Demonstrates how trendlines handle missing data points (null/undefined)
This example shows how the trendline plugin handles datasets containing null
and undefined
values. The trendline automatically excludes these values from calculations:
undefined
and null
values that are ignored"rgba(255,105,180, .8)"
- Pink semi-transparent color"dotted"
- Dotted line pattern2
- Line width of 2 pixelsNote: The trendline calculation only uses valid numeric data points, automatically filtering out null/undefined values.