Point Line Series

Also known as a Line Series, Line Graph, Line Chart, and Line with Markers

This example shows the basic usage of a line series with 'markers' for visual representation of the data points. Similarly to line series, it is drawn on a Cartesian coordinate system and represents the relationship between two variables. Line series display information as a series of data points connected by straight line segments in any direction. This type of series additionally draws data markers on top of the line at the location specified in a dataset.

The chart can be created with few simple lines of code:

// Add a line series with markers using default X and Y axes.const lineSeries = chart.addPointLineSeries()

Line Series with markers provides an ability to specify styles for both markers and lines individually.

The style indicates individual per point coloring. The style enables the usage of individual fill taken from the input.The series can accept points in format { x: number, y: number, color: Color }If the color is not provided during the input of data points ( e.g. in format { x: number, y: number } ), the configurable fallback color is used.

As it was mentioned before, the series accepts points in format { x: number, y: number: color: Color } with specified IndividualPointFill to enable individual point coloring or { x: number, y: number } for other fill styles. Any number of points can be added with a single call similarly to line series with point markers.

Dataset without colors.

If IndividualPointFill is specified, the fallback color is used. Otherwise, the specified fill style is used.