当前位置:网站首页>Echart line chart: multiple line charts show only one line at a time
Echart line chart: multiple line charts show only one line at a time
2022-06-13 06:07:00 【HaanLen】
Display multiple broken lines normally
option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
tooltip: {
trigger: 'axis'
},
yAxis: {
type: 'value'
},
series: [
{
data: [150, 230, 224, 218, 135, 147, 160],
type: 'line',
name: 'heeki'
},
{
data: [110, 210, 224, 18, 135, 17, 260],
type: 'line',
name: 'DDDDD'
},
{
data: [250, 20, 224, 18, 135, 77, 260],
type: 'line',
name: 'DDggDD'
},
{
data: [150, 210, 424, 18, 135, 17, 230],
type: 'line',
name: 'DDyyD'
},
{
data: [110, 210, 24, 18, 465, 177, 360],
type: 'line',
name: ' equally '
}
]
};
Just click the legend to show the broken line , Show only one at a time
option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
legend: {
show: true,
selectedMode: 'single'
},
tooltip: {
trigger: 'axis'
},
yAxis: {
type: 'value'
},
series: [
{
data: [150, 230, 224, 218, 135, 147, 160],
type: 'line',
name: 'heeki'
},
{
data: [110, 210, 224, 18, 135, 17, 260],
type: 'line',
name: 'DDDDD'
},
{
data: [250, 20, 224, 18, 135, 77, 260],
type: 'line',
name: 'DDggDD'
},
{
data: [150, 210, 424, 18, 135, 17, 230],
type: 'line',
name: 'DDyyD'
},
{
data: [110, 210, 24, 18, 465, 177, 360],
type: 'line',
name: ' equally '
}
]
};
边栏推荐
- Interrupt processing
- Leetcode- divide candy - simple
- Class conflicts caused by tongweb Enterprise Edition and embedded Edition
- Use of Nacos configuration center
- Self summarizing
- 本地文件秒搜工具 Everything
- 自我总结ing
- Kotlin learning notes (1)
- Security baseline check script - the road to dream
- Leetcode- number of words in string - simple
猜你喜欢
【ONE·Data || 带头双向循环链表简单实现】
3. Postman easy to use
[to]12 common IP commands in the iproute installation package
微信小程序:点击事件获取当前设备信息(基础)
Ffmpeg download suffix is Video files for m3u8
自我总结ing
超有范的 logo 在线设计制作工具
Source code analysis of ArrayList
Pod libwebp error reporting solution
Add attributes in storyboard and Xib (fillet, foreground...) Ibinspectable and ibdesignable
随机推荐
[spark]spark introductory practical series_ 8_ Spark_ Mllib (upper)__ Introduction to machine learning and sparkmllib
2021-11-04 implementation of binary search
MySQL trigger
[turn] explain awk (2)_ Combining formatted output with built-in variables to realize requirements
自定义View —— 可伸展的CollapsExpendView
AUTOSAR actual combat tutorial pdf version
MySQL stored procedure
Leetcode- maximum average of subarray i- simple
软件测试——接口常见问题汇总
Tongweb customs clearance guidelines
The technical analysis of ERP systems of the two camps in the world has been picked up many times.
Echart折线图:当多条折线存在相同name,图例仍全部显示
安全基线检查脚本—— 筑梦之路
【美团笔试题】
微信小程序:全局状态变量的使用
[turn] explain awk (1)__ Awk Basics_ Options_ Program segment parsing and examples
Record the basic use of zxing, the Google open source library, to generate and read QR codes
MySQL stored procedure
Software testing - Summary of common interface problems
Leetcode- third largest number - simple