阈值函数在单维数组上工作正常,但是当我尝试在我作为输入的二维数组上实现它时,它不起作用。
我的数组:d4=[{04,300},{10,800},{15,1200}]
我的系列选择:
var options_current = {
series: {
lines: {
show: true,
lineWidth: 7,
steps: true
},
points: {
show: true,
radius: 4
},
},
xaxis: {
min: 1,
max: 30,
tickFormatter: dayFormatter,
tickColor: "rgba(255, 255,255, 0)",
tickDecimals: 0,
minTickSize: 5
},
yaxis: {
min: 1,
tickFormatter: dollarFormatter
},
grid: {
hoverable: true,
clickable: true,
markings: [{
xaxis: {
from: temp_day,
to: temp_day
},
color: '#A4A4A4'
}],
},
};