@komal-arora,
CanvasJS can render millions of data points (line series) in just a few hundred milliseconds, smoothly. However, within a chart width of approximately 1000px, displaying millions of data points can overwhelm the visualization, making it hard to discern meaningful patterns. Instead, you can use data grouping or aggregation to create clearer, more insightful charts.
Check out this article for effective techniques like time-based grouping, random sampling, and stratified sampling: The Importance of Data Sampling and Grouping in Data Visualization.
Best Practices:
- Group data by time (e.g., hours, days) for time-series charts.
- Use random or stratified sampling for large datasets.
- Set markerSize: 0 to optimize rendering.
- Load data dynamically (e.g., via AJAX) for zoom/pan interactions.
Try out different sampling techniques to fit your data or scenario!
—
Thangaraj Raman
Team CanvasJS