Slider for selecting timeline data - under the chart #2231
-
Hi guys Does Nivo support some build in slider? https://charts.ant.design/en/examples/area/stacked#basic-slider Thanks a lot |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @petrvecera, no it doesn't. |
Beta Was this translation helpful? Give feedback.
-
I was able to get around this in React by wrapping the Chart rendering logic inside a Context which holds the data that gets displayed. You can use a generic slider component from MUI or Bootstrap, pass it range parameters then update the the Context state onChange to mutate the range of data passed to the displayed chart. This really only works with longitudinal data. If people are interested I can throw up some code. |
Beta Was this translation helpful? Give feedback.
Hi @petrvecera, no it doesn't.