Open avenix opened 4 years ago
ok. I found the answer and I am posting it here for the reference. I was using a MultiBrush as well, which turned out to steal the clicks of the TimeMarkers. This was my hierarchy:
ChartRow
Multibrush
LabelAxis
Charts
LineChart
TimeMarker
TimeMarker <-- I wanted to detect clicks on these
TimeMarker
TimeRangeMarker (current)
I guess I will now create something like a MultiBrush but for lines rather than ranges.
❔Question
I want to add time markers to the time series, to select them and to move them with the mouse.
1- I render
TimeMarkers
within theCharts
as described in the documentation:and added an
onClick
event handler to theTimeMarkers
renderLine
method:any idea why am I not getting those events?
2- Do you think it would make more sense to handle mouse events in my application and use the tracker position to identify the
TimeMarker
being clicked?Thanks! I love your library.
Environment