Hide axis and gridlines Highcharts

后端 未结 7 422
醉酒成梦
醉酒成梦 2020-12-08 06:02

I am trying to hide the axis and gridlines of my Highcharts chart entirely. So far I have tried to set the width of the lines to 0, but it didn\'t work out.

         


        
相关标签:
7条回答
  • 2020-12-08 06:50

    If you have bigger version than v4.9 of Highcharts you can use visible: false in the xAxis and yAxis settings.

    Example:

    $('#container').highcharts({
    
        chart: {
            type: 'column'
        },
    
        title: {
            text: 'Highcharts axis visibility'
        },
    
        xAxis: {
            visible: false
        },
    
        yAxis: {
            title: {
                text: 'Fruit'
            },
            visible: false
        }
    
    });
    
    0 讨论(0)
提交回复
热议问题