Can you kindly share a sample project over Google-Drive or Onedrive and brief more about your requirements so that we can understand it better and help you out?
—–
Manoj Mohan
Team CanvasJS
Adding exploded property to dataPoints after reading it from the database and parsing it should work fine in this case.
If you are still facing the issue, kindly share a sample project along with sample database over Google-Drive or Onedrive so that we can run it locally at our end, understand the scenario better and help you out.
—-
Manoj Mohan
Team CanvasJS
Sorry, range for x-values is not supported as of now. However, you can take a look at range charts like range-column, range area, range spline area that accepts range of y-values.
—–
Manoj Mohan
Team CanvasJS
Please take a look at the following examples to create a chart from database using:
To auto-refresh the chart every 3 seconds, you can use setInterval() method to call an AJAX request whose response can be parsed to update the chart dataPoints accordingly. Please take a look at this documentation page for updating chart dynamically using an AJAX request.
In case the above resource doesn’t help, can you kindly let us know the Server Side technology you are using so that we can help you out with an appropriate solution?
—–
Manoj Mohan
Team CanvasJS
We are looking into your query and will get back to you at the earliest.
—–
Manoj Mohan
Team CanvasJS
Please take a look at this Gallery Example for rendering chart with data from the database. You can also download PHP sample from our download page.
If this doesn’t help you resolve the issue you are facing, kindly share sample project along with sample database over Google Drive / One Drive so that we can run it locally at our end, understand the scenario better and help you resolve it.
—-
Manoj Mohan
Team CanvasJS
You are passing Column
as chart-type in the code shared above which is not a valid chart-type. Changing chart-type from Column
to column
should work fine in your case. Please take a look at this updated sample.
Please refer to this documentation page for more information about chart-types available in CanvasJS.
—–
Manoj Mohan
Team CanvasJS
Can you kindly share sample project along with sample CSV over Google-Drive or Onedrive and brief us more about the issue you are facing so that we can run it locally, understand the scenario better and help you out?
—–
Manoj Mohan
Team CanvasJS
Whenever you move finger/pointer on the chart, the chart has to know if you are trying to scroll the page or interact with the chart. Hence we have implemented a behavior where if you hold the finger for a while on the chart, it captures the event and doesn’t scroll the page. On the other hand, if you move pointer/finger quickly without pausing, it allows you to scroll the webpage. Kindly check the behavior and let us know if it works as briefed here!
—–
Manoj Mohan
Team CanvasJS
Parsing the JSON after the AJAX request should work fine in your case. Please take a look at this JSFiddle.
—–
Manoj Mohan
Team CanvasJS