echarts折线图实心
时间: 2023-10-19 18:34:29 浏览: 198
Echarts实现的折线图
5星 · 资源好评率100%
在Echarts折线图中,要将小圆点设置为实心,可以使用option中的series属性进行配置。具体的配置如下所示:
```
series: [
{
name: 'Fake Data',
type: 'line',
smooth: true,
symbol: 'circle',
symbolSize: 5,
itemStyle: {
color: '#F2597F'
},
areaStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: 'rgba(213,72,120,0.8)'
},
{
offset: 1,
color: 'rgba(213,72,120,0.3)'
}
])
},
data: data2
}
]
```
在上述代码中,将symbol属性的值设置为'circle',即可将小圆点改为实心。同时,可以通过itemStyle属性中的color属性来设定小圆点和线的颜色。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [echarts折线图背景颜色自定义,实心圆点,虚线网格等功能](https://blog.csdn.net/qq_44278289/article/details/131726306)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [echarts 折线图小圆点修改为实心,折线图下方半透明效果](https://blog.csdn.net/clearlove7_2018/article/details/124692661)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文