Home › forums › Using CanvasJS › Show only last X Points at live chart
i have a chart with live data fetched by ajax/php. I want to show only the last x points (e.g. 50) of the series. I don´t want to have a “messed” chart after 1000 points. But it also should be possible to view the history of points (maybe horizontal scrollbar).
Any ideas how to achive this?
You can achieve your requirement using viewportMaximum and viewportMinimum as shown in this JSFiddle.
You must be logged in to reply to this topic.