huww98 / TimeChart

An chart library specialized for large-scale time-series data, built on WebGL.
https://huww98.github.io/TimeChart
MIT License
365 stars 31 forks source link

Adding vertical lines #7

Closed sleighsoft closed 3 years ago

sleighsoft commented 4 years ago

Is it possible to add vertical lines to the chart on click? If not, how difficult would it be to add this functionality?

huww98 commented 4 years ago

This can be easy to implement, it should look like the crosshair.

I'm planning for a plugin mechanism so that people can add functionality like this without modifying the code from this library.

huww98 commented 3 years ago

I've made a demo that adds vertical lines programmatically. https://huww98.github.io/TimeChart/demo/plugins/events.html

As for adding on click, I don't want to include it in this library, because the UI varies a lot depending on the use case.