I understand how I can filter the data used in a chart (I've set up a responsive chart that tracks the filter data).
However, the data series I'm charting is quite large (weekly average mortgage interest rates going back to 2010).
I'd like to be able to create a default filter that only displays the 50 (or so) most recent values. I'd also like to display a button or link which, when clicked, would toggle between displaying those most recent values, and all the values.
I understand how I can filter the data used in a chart (I've set up a responsive chart that tracks the filter data).
However, the data series I'm charting is quite large (weekly average mortgage interest rates going back to 2010).
I'd like to be able to create a default filter that only displays the 50 (or so) most recent values. I'd also like to display a button or link which, when clicked, would toggle between displaying those most recent values, and all the values.
Is that possible? If so, how do I do it?