kibi_timeline_vis icon indicating copy to clipboard operation
kibi_timeline_vis copied to clipboard

Make the bar color configurable

Open tianchao-haohan opened this issue 8 years ago • 8 comments

I use a range value in the Event label and I need to config the bar to different color. Just like the attached picture: screenshot1

tianchao-haohan avatar Nov 10 '16 09:11 tianchao-haohan

I've checked the code and as far as I understand it should rely on kibana for standard colors, ultimately source the color palette from seed_colors.js However despite various attempts (and the rest of kibana showing the changed palette) cannot change colors in the timeline plugin. Any ideas? Many thanks!

iamambrus avatar Nov 15 '16 20:11 iamambrus

Actually, I‘m a layman of GUI. I don't know how to achieve of this requirement. But I found that it is able to change colors in the heatmap plugin "https://github.com/stormpython/heatmap". Is there any reference value on this?

tianchao-haohan avatar Nov 18 '16 03:11 tianchao-haohan

@iamambrus the color is fixed at configuration time https://github.com/sirensolutions/kibi_timeline_vis/pull/8. In retrospect, I shouldn't have done that since it was normal kibana behaviour. Maybe this could be reverted.

scampi avatar Nov 18 '16 12:11 scampi

Thanks @scampi It's not that much of an issue actually as (I realised) you can go to Kibana - advanced view - edit object and change the JSON definition and overwrite the color there. That's good enough for now. Bottom line: timeline vis is great, love it!

iamambrus avatar Nov 18 '16 12:11 iamambrus

@iamambrus I have tried the method that "edit object and change the JSON definition and overwrite the color there". It doesn't work. Is that workable in your environment?

tianchao-haohan avatar Nov 22 '16 03:11 tianchao-haohan

What works for me in Kibana is go to Settings -> Objects -> Edit Saved Object -> scroll down to and edit 'visState' section (a json) You should see there your timelines, each of them having a color attribute. Edit it, save, reload and voila.

iamambrus avatar Nov 22 '16 08:11 iamambrus

I use a range value in the Event label and I need to config the bar to different color

@tianchao-haohan can you elaborate your issue ? Do you want to have different colors depending on ranges of your value ?

scampi avatar Nov 22 '16 10:11 scampi

@scampi Settings -> Objects -> Edit Saved Object -> scroll down to and edit 'visState' section (a json) The solution from iamambrus is workable now.

tianchao-haohan avatar Dec 07 '16 07:12 tianchao-haohan