Skip to main content

Stacked Area Chart

The stacked charts are a popular visual aid used for categorizing and comparing the parts of a whole using different colors to distinguish the categories.

Stacked Area ChartStacked Area Chart
import lightningchart as lc

lc.set_license('my-license-key')

data = [
[2, 1, 2, 0, 2, 1],
[4, 5, 3, 5, 6, 4],
[8, 6, 7, 8, 7, 6],
[10, 9, 8, 9, 10, 9],
]

chart = lc.StackedAreaChart(
data=data,
theme=lc.Themes.White,
title='Stacked Area Chart',
xlabel='x',
ylabel='y'
)
chart.open()