前端 - 请问Highcharts如何给双y轴设置title?
本文介绍了前端 - 请问Highcharts如何给双y轴设置title?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
chart.yAxis[0].setTitle({
text: 'New Y axis title'
});
我这样设置会报错:aught TypeError: Cannot read property '0' of undefined
谢谢!
解决方案
var chart = $('#container_connect').highcharts({
},function(c){
c.yAxis[0].setTitle({
text: labelText[0]
});
c.yAxis[1].setTitle({
text: labelText[1]
});
})
这篇关于前端 - 请问Highcharts如何给双y轴设置title?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文