This sample demonstrates a multi-colored line chart showing the average January temperature in the United States from 1895 to 2025. Each data point is represented with a unique color, and hovering over the points reveals detailed information through tooltips.
In this example, you can see how to render and configure each point in line type series.
Multi colored line charts are used to represent time-dependent data to show the trends at equal intervals with their individual colors by using pointColorMapping
.
Tooltips
are enabled in this example. To see a tooltip in action, hover over or tap on the chart.
Injecting Module
Chart component features are segregated into individual feature-wise modules. To use multi colored line series,
we need to inject MultiColoredLineSeries
module using Chart.Inject(MultiColoredLineSeries)
method.
More information on the multi colored line series can be found in this documentation section.