HighCharts - How can I turn off the points?

前端 未结 3 1241
花落未央
花落未央 2020-12-14 05:12

I\'m using HighCharts. Here is the documentation. I would like to turn off those points but at first I do not know how is that called. Therefore I can not turn them off. Do

3条回答
  •  长情又很酷
    2020-12-14 05:55

    In Highcharts we have three ways to disable markers:

    1) Disable for all series by type:

    plotOptions: {
        line: { /* or spline, area, series, areaspline etc.*/
            marker: {
               enabled: false
            }
        }
    }
    

    2) Disable for one specific series:

    series: [{
        data: [14,17,21],
        marker: {
           enabled: false
        }
    }]
    

    3) Disable marker for a certain point:

    series: [{
        data: [{
            y: 14,
            marker: {
                enabled: false
            }
        },{
            y: 17
        },{
            y: 21
        }]
    }]
    

提交回复
热议问题