Can you kindly create a sample project reproducing the issue you are facing and share it with us over Google-Drive or Onedrive along with the PHP file that is being used to generate data(sample data/database) so that we can look into the code, edit and run it locally to understand the scenario better and help you resolve?
—
Shashi Ranjan
Team CanvasJS
Please take a look at this documentation page for step-to-step tutorial on rendering multiple charts in a page.
—
Shashi Ranjan
Team CanvasJS
X axis’s viewportMinimum and viewportMaximum can either be a numeric or a Date Object. The value being passed by you seems to be invalid as it’s neither numeric nor date-time object. Passing viewportMinimum and viewportMaximum with a valid date object according to your requirements should work fine in this case. You can refer to the code snippet below for an example on the same.
viewportMinimum: new Date(2019, 01, 01, 09, 00, 00),
viewportMaximum: new Date(2019, 01, 01, 12, 30, 00)
If you are still facing the issue, kindly create a JSFiddle reproducing the issue you are facing and share it with us so that we can look into the code, understand the scenario better and help you out?
—
Shashi Ranjan
Team CanvasJS
It seems like JSON data shared by you is partial. Can you please create a JSFiddle reproducing the issue along with your complete JSON data being hosted on some JSON storage service like npoint.io and share it with us so that we can look into the code to understand the scenario better and help you out.
—
Shashi Ranjan
Team CanvasJS
It seems to be working fine. Please take a look at this gallery page for an example on creating a chart using JSON data in PHP.
If you are still facing the issue, kindly create a sample project reproducing the issue you are facing along with your sample data and share it with us over Google-Drive or Onedrive so that we can look into the code, understand the scenario better and help you out.
—
Shashi Ranjan
Team CanvasJS
Can you kindly create a sample project reproducing the issue you are facing and share it with us over Google-Drive or Onedrive along with the PHP file that is being used to generate data(sample data/database) so that we can look into the code, run it locally to understand the scenario better and help you resolve?
—
Shashi Ranjan
Team CanvasJS
As of now, markers can have only five possible values – “circle”, “square”, “triangle”, “cross” & “none”. However, you can position images in place of markers using this workaround. Please take a look at this documentation page for more information on positioning images on top of the chart.
—
Shashi Ranjan
Team CanvasJS
Stacked Charts are plotted when multiple column/area charts with same x values are plotted on same scale. In the JSFiddle shared above, you’re using label to display the date and time values. Passing it as Date Object to x-values and use the valueFormatString for formatting the date and time values should work fine in your case. Please refer this documentation page for more information on valueFormatString. Also, please take a look at this updated JSFiddle.
—
Shashi Ranjan
Team CanvasJS
Splitting string using the explode method before passing it to dataPoints should work fine in your case. Please take a look at this updated Sample Project.
—
Shashi Ranjan
Team CanvasJS
x-value can either be a numeric or a date-time object. Since the value being passed by you seems to be invalid (0 0.05 – there is a space between 0 & 0.05). Passing x-values in a valid number format based on your requirements should work fine in this case.
—
Shashi Ranjan
Team CanvasJS
Please take a look at this gallery page for an example on creating chart with multiple axes in PHP.
If you are still facing the issue in creating a chart with multiple axes, kindly create a sample project reproducing the issue you are facing and share it with us over Google-Drive or Onedrive so that we can look into the code, understand the scenario better and help you out.
—
Shashi Ranjan
Team CanvasJS