giswqs / streamlit-timeline

Streamlit component for rendering vis.js timeline
https://timeline.streamlitapp.com
MIT License
93 stars 11 forks source link

Question #3

Closed ChrisDelClea closed 1 year ago

ChrisDelClea commented 1 year ago

Hey @giswqs ,

really cool component. Quick question: Could one combine the timeline with a linechart. So instead of having boxes one would have just a linechart? So i could also have along the y-axis groups and for each group i would get a linechart in the x-axis along the time?

giswqs commented 1 year ago

Check out the examples at https://visjs.github.io/vis-timeline/examples/timeline/. If you can find a solution there, it should be feasible with this streamlit component as well.

ChrisDelClea commented 1 year ago

I actually found the page too but no solution for my problem. Do you know the difference between graph2d and timeline and how to combine them?

ChrisDelClea commented 1 year ago

Can i somehow set the default focus not to hours but days?

giswqs commented 1 year ago

I am not really a JavaScript user. I think you can look at the Configuration Options, zoomMin, ZoomMax, hiddenDates, etc.

https://visjs.github.io/vis-timeline/docs/timeline/#items

ChrisDelClea commented 1 year ago

Thanks