I’ve fixed the bug. Issue was not because of the legend but due to wrong calculation of axis height. Please download this intermediate build and let me know if it worked fine.
—
Sunil Urs
Because the alignment issue is mainly due to reduced chart width (because of the other element next to chart), you can consider adding a dummy div element next to other charts or reduce their width accordingly.
Hetal,
You can achieve this using jQuery & any of the available jQuery Plugins. We are doing the same in our gallery using jQuery UI Dialog.
—
Sunil Urs
Patsy,
I’ve found the issue but haven’t fixed the same yet. You should have a solution by the end of this week.
—
Sunil Urs
Though I got some idea on the requirement, if you can upload a screenshot, that would help me in getting a clear picture on the same.
Real-time charts are already supported.. Have a look
You can expect v1.5 in around 2 months.
Tim,
Because am getting repeated questions on few planned features, I was also considering the same. Will add a page soon. Thanks for the suggestion.
—
Sunil Urs
[Update]
Now we have a Tutorial on Hiding / Showing Data Series in a Chart.
Blindo,
As of now you need to add/remove the dataseries from data array to achieve the same. It’ll be possible via API in v1.5
—
Sunil Urs
I think the issue is most probably because the onload event has fired even before your script tag is executed. So instead of placing the script tag inside the div element place it just before the end of head tag. Entire CanvasJS website uses Bootstrap.
Also, onload is not the best way to go. We are using onload in all the examples just to keep it simple and so that we don’t rely on any other libraries. Better approach is to use jQuery’s ready method.
—
Sunil Urs
Savak,
If its working fine on the localhost, then the issue is most probably with on the server side. Try the following steps.
1. Using chrome developer tools find out if you are getting response from the server for the ajax request. If there is any issue on the server side, you’ll get appropriate errors in the response.
2. If you are not receiving data, then try to access the URL directly to see if the URL that you are accessing is right.
3. If the URL is right, then issue is probably in the PHP script. Try to debug the same.
Hope this helps
—
Sunil Urs
Thanks for the fiddle. I’ll be looking into this issue tomorrow.
Thanks, now that pie labelling is done, I’ll look into this.
Paul,
There is no limit on the number of data samples for pie/doughnut. CanvasJS tries to render every dataPoint. But when dataPoint’s segment becomes smaller than .1 pixel, it won’t be visible in most cases – limit should depends on browser’s implementation of Canvas.
—
Sunil Urs
Hi,
Here is an intermediate build with new properties implemented. But you won’t have to use them in most cases! New labelling algorithm is smart enough to wrap automatically when required. Here is fiddle demonstrating the same.
New Properties in DataSeries:
indexLabelMaxWidth: 150, 200, etc
indexLabelWrap: true/false
Please let me know if everything is working fine so that I can push it to the public.
—
Sunil Urs