search

Home  >  Q&A  >  body text

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

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

習慣沉默習慣沉默2774 days ago1230

reply all(3)I'll reply

  • 大家讲道理

    大家讲道理2017-05-17 10:08:54

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

    reply
    0
  • 某草草

    某草草2017-05-17 10:08:54

    Set lengthend.data value

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

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

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-17 10:08:54

    legend.selected Object
    Legend selected status table.
    Example:

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

    echarts documentation

    reply
    0
  • Cancelreply