sirensolutions/kibi_timeline_vis

Make the bar color configurable

Opened this issue · 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

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!

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?

@iamambrus the color is fixed at configuration time #8. In retrospect, I shouldn't have done that since it was normal kibana behaviour. Maybe this could be reverted.

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 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?

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.

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
Settings -> Objects -> Edit Saved Object -> scroll down to and edit 'visState' section (a json)
The solution from iamambrus is workable now.