timeglider / jquery_widget

Timeglider's JS Widget component. See README for details.
193 stars 41 forks source link

Timeglider event span color for each timeline #26

Open jameshorn165 opened 13 years ago

jameshorn165 commented 13 years ago

Hi, I want my timeline band / event span color with different colors for each timeline. Is there any property to event span color in JSON?

Please help me on this issue.

Best Regards, James.H

mellowman commented 12 years ago

I know this is a little old but other may have the same question.

I was able to add color using the table method. Perhaps you can do the same for JSON. I added a bgcolor field to the table. In JSON it may look like "bgcolor": "#FF99FF", Then in the TG_ord.js I added +"background-color:" + b.bgcolor + ";" to line 249 You may be able to add "field" you want by placing a b. before it. I then removed the color from .timeglider-event-spanner in timeglider.css

Good luck

jameshorn165 commented 12 years ago

Thanks Mellowman I did the same after working out all timeline files ;)