Skip to content

折线图

使用 Chart 组件,向 option.series 传入 type: 'line' 即可绘制折线图。下面是几种常见用法。

基础折线图

平滑曲线与面积

smooth 让折线变为平滑曲线,areaStyle 让其填充为面积图。

多系列折线

通过 legend 与多个 series 展示多条折线对比。