Marc,
As you mentioned JavaScript Date Objects are formatted differently by different browsers. Only option here is to do custom format date value before displaying. You can use libraries like momentjs for the same.
—
Sunil Urs
Andres,
Yes, you need to use php echo statements for the same. Currently we are occupied with some other tasks. If you can give us a day or two we can create a simple example for you.
—
Sunil Urs
Andres,
Given that echo is working fine, please try creating this JSON using echo statements and it should work.
—
Sunil Urs
Andres,
Issue might be one of the two
1. $row[‘Tipus_1’] values are null – can you confirm this by logging (echoing) those values??
2. json_encode is not encoding. What is the type of data??
In case json_encode has some issue encoding the data, try creating the entire json data using echo statements and string concatination. If you can get those values to show up in JSON data chart will automatically render them.
—
Sunil Urs
Andres,
At the pie graphic you will see the labels have encoding issues, but they are there, could this be the reason for canvas not showing labels, my data is in utf-8 and words have accents…
CanvasJS doesn’t have any issue rendering Accented Characters. Problem is that JSON that you are generating doesn’t have label values set – labels are null in case of 2nd, 3rd and 4th chart’s JSON data.
Given that JSON data of first chart has labels set properly, you can compare that code with that of 2nd chart’s JSON generating code (on the server side).
—
Sunil Urs
Swapnil,
We just looked into it and it seems like the problem is because of decimal precision problem of JavaScript. We’ll get back to you with a solution soon.
—
Sunil Urs
There is no way to do this automatically. Best option is to calculate the averages either on the server (or client side) and adding it to the chart.
—
Sunil Urs
Daniel,
May I know which Tablet & Browser you were trying on?…. We’ve already fixed that issue. Now the behavior is that the pointer gets locked to chart only when the user touches and holds for a moment. But if you directly try to scroll up vertically without pausing, it should let you scroll.
—
Sunil Urs
Its either a bug or you are doing something wrong – Only difference between commercial and non-commercial version is the link. Can you please create a jsfiddle which reproduces the issue so that we can have a look?
—
Sunil Urs
Olhado,
Currently our website does not support https – but we are considering it though. At the same time we strongly suggest not to link script directly from our site. This is because script on our sever is only meant for the website and it is updated frequently with newer features – sometimes with beta and test builds. These changes can sometimes cause compatibility issue at your end.
Instead we suggest you to download the script and host it on your server.
—
Sunil Urs
Shr,
Thanks for reporting the issue.
I’ve fixed the bug and ‘ve also implemented a new property percentFormatString in dataSeries using which you can control the number of decimals in percent values. Here is a working demo – please hard reload the browser.
You can download this intermediate build here.
—
Sunil Urs
Warria,
It should. In case you face any problem with this please create a JSFiddle which reproduces the issue so that we can have a look.
—
Sunil Urs
Daniel,
Makes sense. We’ll consider this for the next version. Thanks for your feedback.
—
Sunil Urs
Arcent,
We can help you with that. Can you please create a jsfiddle so that we can have a look?
—
Sunil Urs
Bhagchand,
Library is free for non-commercial and personal use only. For commercial purposes you need to purchase license.
Sunil Urs