Chart

Line

Web supportediOS supportedAndroid supported

Show a trend across ordered categories.

ECharts line series · View source

Use it for trends. Keep the line straight when values between points are unknown.

Configuration

Keys accepted inside zyplot(z => ({...})). Required keys are marked with an asterisk.

NameTypeDefaultDescription
categories*string[]—Labels on the category axis.
series*ChartSeries[]—Named series aligned with the categories.
formatChartNumberFormat—Number prefix, suffix, decimals, and locale.
isSmoothboolean—Draw a curved line.
emphasisIdstring—Keep one series in color and mute the rest.
axisChartAxes{ x: true, y: true }Show or hide each axis.
xAxisNativeChartAxisOptions—Horizontal scale, domain, ticks, grid, and labels.
yAxisNativeChartAxisOptions—Vertical scale, domain, ticks, grid, and labels.
heightnumber240 web / 320 nativeChart height in pixels or native points.
isLoadingbooleanfalseShows the built-in placeholder while data loads.
themeChartTheme—Colors and typography for this chart.