Jan 02, 2011, 6:16 PM
[CLOSED] Highcharts problem with JSON Store which connect to web service.
hi all ,
we are on the process of injection the highcharts to our application , our pages using EXT.NET JSON store which connect to web service, the problem is once i draw the charts which its data is static data... serises of array all json store stop hits the web service there is my code:
also i would like to comment that all my json EXt.NET stores which reads from the linq object are still working perfectly....
we are on the process of injection the highcharts to our application , our pages using EXT.NET JSON store which connect to web service, the problem is once i draw the charts which its data is static data... serises of array all json store stop hits the web service there is my code:
options = {
chart: {
renderTo: 'sampChart',
zoomType: 'x'
},
title: {
text: 'Daily visits at FaceBook Page'
},
subtitle: {
text: 'Source:FaceBook Insights'
},
xAxis: {
type: 'datetime',
tickInterval: 7 * 24 * 3600 * 1000, // one week
tickWidth: 0,
gridLineWidth: 1,
labels: {
align: 'left',
x: 3,
y: -3
}
},
yAxis: [{ // left y axis
title: {
text: null
},
labels: {
align: 'left',
x: 3,
y: 16,
formatter: function() {
return Highcharts.numberFormat(this.value, 0);
}
},
showFirstLabel: false
}, { // right y axis
linkedTo: 0,
gridLineWidth: 0,
opposite: true,
title: {
text: null
},
labels: {
align: 'right',
x: -3,
y: 16,
formatter: function() {
return Highcharts.numberFormat(this.value, 0);
}
},
showFirstLabel: false
}],
marker: {
lineWidth: 1
},
legend: {
align: 'left',
verticalAlign: 'top',
y: 20,
floating: true,
borderWidth: 0
},
tooltip: {
shared: true,
crosshairs: true
},
plotOptions: {
series: {
cursor: 'pointer',
point: {
events: {
click: function() {
hs.htmlExpand(null, {
pageOrigin: {
x: this.pageX,
y: this.pageY
},
headingText: this.series.name,
maincontentText: Highcharts.dateFormat('%A, %b %e, %Y', this.x) + ':<br/> ' +
this.y + ' visits',
width: 200
});
}
}
},
marker: {
lineWidth: 1
}
}
},
series: [{
name: 'Daily Visits',
data: [[Date.parse('1/1/2011 UTC'), 29.9], [Date.parse('1/2/2011 UTC'), 71.5], [Date.parse('1/3/2011 UTC'), 106.4], [Date.parse('1/4/2011 UTC'), 129.2], [Date.parse('1/5/2011 UTC'), 7], [Date.parse('1/6/2011 UTC'), 12, 8], [Date.parse('1/7/2011 UTC'), 25], [Date.parse('1/8/2011 UTC'), 11], [Date.parse('1/9/2011 UTC'), 25], [Date.parse('1/10/2011 UTC'), 30], [Date.parse('1/11/2011 UTC'), 45], [Date.parse('1/12/2011 UTC'), 12], [Date.parse('1/13/2011 UTC'), 80], [Date.parse('1/14/2011 UTC'), 30], [Date.parse('1/15/2011 UTC'), 45], [Date.parse('1/16/2011 UTC'), 22], [Date.parse('1/17/2011 UTC'), 11], [Date.parse('1/18/2011 UTC'), 11], [Date.parse('1/19/2011 UTC'), 11]],
pointStart: Date.UTC(2010, 0, 1),
pointInterval: 24 * 7 * 3600 * 1000, // one day
lineWidth: 4,
marker: {
radius: 4
}
}]
}
chart = new Highcharts.Chart(options);
i dont why this happen , but once i comment the line chart = new Highcharts.Chart(options); all json EXT store working perfectly on my page , how i can solve this... and why this happen... your prompt reply really appreciated....also i would like to comment that all my json EXt.NET stores which reads from the linq object are still working perfectly....
Last edited by Daniil; Jan 09, 2011 at 12:05 PM.
Reason: Marked as [CLOSED]. No more information was provided.