Makes one ECharts chart accessible and keeps it so as the chart changes.
Takes a reading now if the chart has drawn, and again after any later
render that changed its option or its size -- a new query result, a
filter, a dashboard resize. Nothing is re-read on a render that changed
neither, so a reader is not moved back to the start of the chart because
someone else's mouse crossed it.
The reading taken now is always taken again at the chart's next
finished: a large series is drawn progressively, a few hundred points a
frame, and until it has finished only those points have a place to be
outlined at. It is mounted again only if it came out different, so a
reader who reached the chart during its entrance animation stays where
they are. A chart that can no longer be read -- its series replaced by
a type the adapter does not read -- is unbound rather than left announcing
data that is no longer drawn.
Call the returned function before disposing the chart, or when it should
no longer be read; it unsubscribes and tears the MAIDR instance down.
Makes one ECharts chart accessible and keeps it so as the chart changes.
Takes a reading now if the chart has drawn, and again after any later render that changed its option or its size -- a new query result, a filter, a dashboard resize. Nothing is re-read on a render that changed neither, so a reader is not moved back to the start of the chart because someone else's mouse crossed it.
The reading taken now is always taken again at the chart's next
finished: a large series is drawn progressively, a few hundred points a frame, and until it has finished only those points have a place to be outlined at. It is mounted again only if it came out different, so a reader who reached the chart during its entrance animation stays where they are. A chart that can no longer be read -- its series replaced by a type the adapter does not read -- is unbound rather than left announcing data that is no longer drawn.Call the returned function before disposing the chart, or when it should no longer be read; it unsubscribes and tears the MAIDR instance down.