如何在 highcharts ng 中创建阈值
How to create a threshold in highcharts ng
我有一个带有 highchart ng 的简单折线图问题是我无法根据 highcharts api should be plotoption.series.threshold also according to this answer it should be under plotoptions but as you can see in my jsfiddle it seems not to work for me. 将阈值设置为零阈值 属性 我想在这里做的是移动x轴到点0,所有负值都显示在x轴之后
代码:
$scope.highchartsNG = {
options: {
chart: {
type: 'line'
},
plotOptions: {
line: {
},
series: {
threshold: 3
}
}
},
series: [{
data: [10, 15, 12, 8, -7]
}],
title: {
text: 'Hello'
},
loading: false
}
我有一个带有 highchart ng 的简单折线图问题是我无法根据 highcharts api should be plotoption.series.threshold also according to this answer it should be under plotoptions but as you can see in my jsfiddle it seems not to work for me. 将阈值设置为零阈值 属性 我想在这里做的是移动x轴到点0,所有负值都显示在x轴之后
代码:
$scope.highchartsNG = {
options: {
chart: {
type: 'line'
},
plotOptions: {
line: {
},
series: {
threshold: 3
}
}
},
series: [{
data: [10, 15, 12, 8, -7]
}],
title: {
text: 'Hello'
},
loading: false
}