You can loop through the JSON and parse it to the format accepted by CanvasJS. Please take a look at this documentation page for tutorial on rendering chart from JSON data.
___________
Indranil Deo
Team CanvasJS
fallingColor and risingColor are only available at dataSeries level. You can loop through the dataPoints and set color for each of the dataPoints based on your requirements as shown in this JSFiddle.
___________
Indranil Deo
Team CanvasJS
I am afraid we have events only for the dataPoints as of now.
___________
Indranil Deo
Team CanvasJS
Prathyush,
Please refer to this documentation page for step-by-step instructions on integrating CanvasJS with ASP.NET MVC and SQL Server. Also, please check this link for information on creating dynamic chart in ASP.NET MVC.
___________
Indranil Deo
Team CanvasJS
You can hide the gridlines by setting the gridThickness of the axisY to 0. Please take a look at this documentation page for more information on gridThickness.
___________
Indranil Deo
Team CanvasJS
Please take a look at this StackOverflow thread for more information on converting c# DateTime to JavaScript timestamp.
___________
Indranil Deo
Team CanvasJS
Can you please create a sample project reproducing the issue with your sample data and share it over Google-Drive or Onedrive so that we can look into your code, understand your scenario better and help you out?
___________
Indranil Deo
Team CanvasJS
CanvasJS is a charting library that supports 30+ chart types used for data visualization and is not an usual paint app.
___________
Indranil Deo
Team CanvasJS
I Have a error while publishing angular 8 project having cancavjs version 2.3.2. It is not publishing. Kindly help me in urgently.
Can you please create a sample project reproducing the issue and share it over Google Drive or Onedrive so that we can look into the code, understand the scenario better and help you out.
I want a click event on data points in a chart container. I am using angular 8 and canvasjs 2.3.2. Kindly help us.
You can use the click option to add a click event handler for the dataPoints.
___________
Indranil Deo
Team CanvasJS
@nsn,
Can you kindly create a sample project reproducing the issue and share it over google-drive or onedrive so that we can look into your code, understand the scenario better and help you out?
___________
Indranil Deo
Team CanvasJS
We are busy implementing some other important features at this point of time. We will add this feature to wishlist and look into it in the future versions.
__________
Indranil Deo
Team CanvasJS
Please take a look at this gallery example to render chart using data from the database in PHP.
In case this doesn’t help please share the server-side technology along with a sample project and sample database reproducing the issue over google drive/one drive so that we can look into it understand your requirements better and help you out with an appropriate solution.
__________
Indranil Deo
Team CanvasJS
Thanks for sharing the link. It might help others who have similar usecase.
__________
Indranil Deo
Team CanvasJS
You can use GetTimestamp() to convert C# date to timestamp(in seconds), then converting the same to JavaScript timestamp(in milliseconds) before passing it to the chart options should work fine in your case.
__________
Indranil Deo
Team CanvasJS