Highchart - show / hide an y-Axis without hiding the series

后端 未结 4 1033
孤独总比滥情好
孤独总比滥情好 2020-12-03 10:21

I\'m working with Highchart. I\'ve got a multiple series graph in which each series have their own y-axis.

pretty much like this one (jsfiddle)

when we cli

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-03 10:43

    We can hide Yaxis label without hiding the y-Axis without hiding the series by returning the empty string as follows:

    yAxis: {
           title: '',
           labels: {
                    formatter: function() {
                        return '';
                    },
                    style: {
                        color: '#4572A7'
                    }
            }
    

    },

提交回复
热议问题