当前位置: 代码迷 >> 综合 >> ECharts 折线图使用教程
  详细解决方案

ECharts 折线图使用教程

热度:95   发布时间:2024-01-28 00:15:52.0

1 Series

说明:系列列表。

1.1 series.lineStyle

说明:线条样式。

1.1.1 series.lineStyle.color

说明:线条颜色。

默认值:"#000"

1.1.2 series.lineStyle.width

说明:线条宽度。

默认值:2。

1.1.3 series.lineStyle.type

说明:线条类型。

默认值:'solid'。

可选值:

        (1) 'solid',实线。

        (2) 'dotted',点型虚线。

        (3) 'dashed',线性虚线。

实例:

ECharts 折线图设置虚线(两种)

1.2 series.showAllSymbol

说明:显示数据点,只在主轴为类目轴(axis.type 为 'category')时有效。

默认值:'auto'。

可选值:

        (1) 'auto',如果有足够空间则显示数据点,否则随主轴标签间隔隐藏策略。

        (2) true,显示所有数据点。

        (3) false,随主轴标签间隔隐藏策略。

实例:

ECharts 折线图设置showAllSymbol显示所有数据点