Highcharts服务器post请求问题
我正在向highcharts服务器发送post请求,但是我没有得到我期望的结果Highcharts服务器post请求问题,post,highcharts,http-post,Post,Highcharts,Http Post,我正在向highcharts服务器发送post请求,但是我没有得到我期望的结果 { title: { text: 'Volume Capacity Used (GB)' }, subtitle: { text: 'For the month of July' }, plotOptions: { series: { marker: { enabled
{
title: {
text: 'Volume Capacity Used (GB)'
},
subtitle: {
text: 'For the month of July'
},
plotOptions: {
series: {
marker: {
enabled: false
}
}
},
xAxis: {
startOnTick: true,
endOnTick: true,
showFirstLabel: true,
min: 1372636800000,
minorTickInterval: 24 * 3600 * 1000,
type: 'datetime',
title: {
text: 'Date'
}
},
yAxis: [{
labels: {
formatter: function(){
return this.value + ' GB';
}
},
endOnTick: true,
min: 0,
max: 1890,
title: {
text: 'Capacity Used (GB)'
}
},
{
labels:{
formatter:function(){
var max=1890, min=this.axis.linkedParent.min,range=max-min;
return (Math.round((this.value-min)/(range)*100)) + ' %';
}
},
linkedTo:0,
opposite:true,
title: {
text: 'Percentage Used (%)'
}
}],
series: [{
"data":[{
"x":1372638600000,
"y":1362.69
},
{
"x":1372640400000,
"y":1362.7
},
{
"x":1372643100000,
"y":1362.7
},
{
"x":1372644900000,
"y":1362.72
},
{
"x":1372647600000,
"y":1362.72
}],
"name":"GraphName"
}]
};
我的post请求比这个大得多,但是我删除了一些系列数据,因为我不需要把它们全部放在这里
我希望得到的是一张贯穿整个月的图表,然而我得到的是一张只显示7月1日的图表,其他什么都没有
我想这与POST请求有关。然而,在其他几个月内,使用相同的POST请求和不同的数据,它确实有效
有什么想法吗
我在这里复制了您的示例:(
基于您的源代码)并且导出的图表看起来是一样的。您使用哪个浏览器和版本的Highcharts?结果表明,我需要在Highcharts配置中禁用或增加turboThreshold
例如:
series: [{
turboThreshold: 10000,
"data":[{
"x":1372638600000,
"y":1362.69
},
{
"x":1372640400000,
"y":1362.7
},
{
"x":1372643100000,
"y":1362.7
},
{
"x":1372644900000,
"y":1362.72
},
{
"x":1372647600000,
"y":1362.72
}],
"name":"GraphName"
}]
为了完全禁用它,我将turboThreshold值更改为0 啊,也许这是一个有大量数据的问题。。我已经更新了我的问题,添加了完整帖子请求的链接。