[英]Highchart y axis min interval
i would like to show a positive, negative spline chart with different intervals 我想显示一个具有不同间隔的正,负样条图
let say positive 0 to 50 and the interval has to increment by 5 negative 0 to 1000 the interval has to increment by 100 假设正数0到50,间隔必须增加5负数0到1000,间隔必须增加100
is there any way i can do this in Highcharts 我有什么办法可以在Highcharts中做到这一点吗?
here is the Series im trying to display 这是我试图展示的系列
series: [{
id: 'error1',
name: 'Errors One',
color:'red',
data: [5, 3, 4, 7, 2],
}, {
id: 'ErrorsOne',
color: 'red',
data: [-222, -234, -123, -189, -289],
showInLegend: false
}, {
id:'error2',
name: 'Errors Two',
color:'blue',
data: [3, 4, 4, 2, 5],
}, {
id:'ErrorsTwo',
color:'blue',
data: [-300, -245, -122, -245, -166],
showInLegend: false
}]
here is the url for jsfiddle 这是jsfiddle的网址
thanks 谢谢
You can use tickPostions or tickPositioner 您可以使用tickPostions或tickPositioner
http://api.highcharts.com/highcharts#yAxis.tickPositions http://api.highcharts.com/highcharts#yAxis.tickPositioner http://api.highcharts.com/highcharts#yAxis.tickPositions http://api.highcharts.com/highcharts#yAxis.tickPositioner
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.