javascript - echart How to display only one of the two line charts by default and hide the other?
習慣沉默
習慣沉默 2017-05-17 10:06:54
0
3
1145

echart How to display only one of the two line charts by default and hide the other

習慣沉默
習慣沉默

reply all(3)
大家讲道理

legend → Just set selectedMode to "single"
http://echarts.baidu.com/opti...

某草草

Set lengthend.data value

legend: {
        data:['会员总数']
    },

This will only display the legend of the total number of members

我想大声告诉你

legend.selected Object
Legend selected status table.
Example:

selected: {
    // 选中'系列1'
    '系列1': true,
    // 不选中'系列2'
    '系列2': false
}

echarts documentation

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!