@mihaela,
Sorry, this feature is not available as of now.
__ Priyanka M S Team CanvasJS
@snehal,
Please take a look at this jsfiddle which renders a dynamic multi-series stackedArea100 chart(change the chart type according to your requirement) by using data from an external JSON source.
@hemel619619,
Can you kindly share a jsfiddle reproducing the issue you are facing, so that we can look into your code, run it across browsers, understand the scenario better and help you out?
@newvibe,
Glad that you figured it out :)
@stella,
In the code you have shared(plotCSV.php), there is no update method used to update the data from CSV every 5 minutes. I suggest you to use an update method as provided in the previous jsfiddle and it should work fine in this case.
@zekageri,
Can you kindly share a jsfiddle along with the sample JSON data(test.svg) reproducing the issue you are facing, so that we can look into your code, understand it better and help you out?
Can you please brief us further about your requirement and kindly share a sample project reproducing the issue you are facing over Google-Drive or Onedrive so that we can look into your code, understand your requirement better and help you out?
@jgurtz,
We are looking into it and will get back to you at the earliest.
@shankar.gidwani
i want to include chart image in pdf without interacting with browser.
You should use the headless browser to achieve this. Please take a look at this sample project on integrating CanvasJS with PhantomJS. Along with this, you can use rasterize.js API to capture the webpage in PDF format. Please take a look at this article on using rasterize.js on PhantomJS engine, which might be of help.
Please take a look at this updated PHP file, which renders the chart using the data in CSV file (readcsv.csv).
David,
Please take a look at this jsfiddle.
@izzar,
Can you kindly share a working sample project with all the dependencies included (like IOCounter.html) over Google-Drive or Onedrive, so that we can look into your code, understand it better and help you out?
Can you kindly share a sample project reproducing the issue you are facing along with a sample CSV file over Google-Drive or Onedrive, so that we can look into your code, understand it better and help you out?
@zaid1987,
CanvasJS accepts only numeric or dateTime value for x-values and numeric value for y-values.
In here, array_push($dataPoints, array("x"=> $row->Name, "y"=> $row->id));, you are assigning string values to x-values and CanvasJS doesn’t accepts string values for dataPoint x-values. You need to assign string values to label to render the chart as shown in the code snippet
array_push($dataPoints, array("x"=> $row->Name, "y"=> $row->id));
array_push($dataPoints, array("label"=> $row->Name, "y"=> $row->id));
Also, you can checkout this Gallery Page for an example in which dataPoints has y-values and labels for rendering the chart in PHP.
If this doesn’t solve your issue, kindly create a sample project reproducing the issue you are facing and share it over Google-Drive or Onedrive along with the sample database so that we can look into your code, understand it better and help you out.