Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeglider event span color for each timeline #26

Open
jameshorn165 opened this issue Sep 13, 2011 · 2 comments
Open

Timeglider event span color for each timeline #26

jameshorn165 opened this issue Sep 13, 2011 · 2 comments

Comments

@jameshorn165
Copy link

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
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants