Appearance
使用 Chart 组件,向 option.series 传入 type: 'line' 即可绘制折线图。下面是几种常见用法。
Chart
option.series
type: 'line'
smooth 让折线变为平滑曲线,areaStyle 让其填充为面积图。
smooth
areaStyle
通过 legend 与多个 series 展示多条折线对比。
legend
series