Line Chart with Labeled Trendlines
Multiple datasets with different trendline styles and custom labels
Configuration Features
This example demonstrates advanced trendline features on line chart data:
- Two of five datasets have a trendline: Africa (solid) and Asia (dashed). A dataset without
trendlineLinear gets no trendline
- Custom labels: Asia places its label with an
offset and sets displayValue: false, so no slope is printed
- Legend integration: Asia adds its own legend entry, "Asian trendline"
- Line styles: Solid and dashed
- Color gradients: Asia's trendline runs from
colorMin to colorMax