Hi,
Thanks for reporting. I’ve been able to reproduce the issue. Will get back to you with a fix soon.
—
Sunil
jquery's path is wrong. You can see this using Chrome Developers Tools or Firebug.
Please replace
<script src="jquery.js"></script>
with (google hosted jquery script)
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
Do let me know if it worked.
Hi,
I just checked the links. jquery is not referenced properly in the given URL. Please fix the same and it should work properly…
yes, its in the road-map as of now… probably v1.4 or 1.5.
Dom,
I can confirm that this is a bug. Thanks for reporting… Will get back to you soon with a fix..
—
Sunil
Samip,
Thats a really nice customization. And interesting stories too… Have been reading for the past one hour… :-)
Thanks for sharing.
—
Sunil
Hi,
You can take one of the two approaches…
1. Return the data variable directly from the server and assign it to the chart’s “data” property. So your JSON response would look something like this.
[
{
type: "stackedColumn",
dataPoints: [
{ y: 111338, label: "USA" },
{ y: 49088, label: "Russia" },
{ y: 62200, label: "China" },
{ y: 90085, label: "India" },
{ y: 38600, label: "Australia", },
{ y: 48750, label: "SA", }
]
}, {
type: "stackedColumn",
dataPoints: [
{ y: 135305, label: "USA" },
{ y: 107922, label: "Russia" },
{ y: 52300, label: "China" },
{ y: 3360, label: "India" },
{ y: 39900, label: "Australia", },
{ y: 0, label: "SA", }
]
}
]
2. Return data in any custom format and then process it on the client side to build array in above format.
Dombn,
I’ve just fixed the bug. Please download v1.2.1 and it should work fine.
Thanks for reporting,
Sunil Urs
Simon,
I’ve just fixed the problem. Please download v 1.2.1 and it should work fine. In case there is any issue, do let me know.
—
Sunil Urs
Simon,
I could reproduce the issue after including prototype library. Problem is that prototype extends default objects like Array, etc by adding new properties to them because of which “for in” won’t work as expected. I’ll try to fix the problem and get back.
Here is a thread on the same…
Thanks for Reproting,
Sunil
Samip,
Just wanted to inform you that this feature is now available in the main release – v1.2. Do update.
—
Sunil
Hi,
Am not able to reproduce the issue with the above code. I also added skeleton css framework but its still working fine (I guess you are using skeleton let me know if its something else).
If you can create a fiddle for the same, that would be helpful.
Chandresh,
From the chart it looks like provided data is not in order.. Please verify
1. That the x(date) values is in order
2. Month values being passed to the Date constructor follow zero based index – in javascript month values range from 0-11 (instead of 1-12). See this post
In case there is no issue as mentioned above, please provide the jsonObj values. That is the best way to figure out the problem.
—
Sunil Urs
Chandresh,
Can you please add some screenshots with browser version & OS details.
Am Glad that you liked CanvasJS. I was planning for something similar… It’ll be available in v1.3 – around a month.