@tdono,
Please take a look at this sample which uses ASP.NET and SQL Server for rendering Multi Series Chart.
___________ Indranil Deo, Team CanvasJS
Tanguy,
You can use valueFormatString to format label of the Axis Y.
If it doesn’t solve your issue please create a jsfiddle. ____________ Indranil Deo, Team CanvasJS
@rsidhu,
You can set the width of the dataPoint using dataPointWidth.
Please take a look at this example.
____________ Indranil Deo, Team CanvasJS
@cancanvas,
You can use rangeArea chart instead of area chart to show filled area even for negative dataPoints as a work-around. Please take a look at this jsfiddle.
@mhoward1,
If you want to display the latest month, you can set intervalType to month and interval to 1 in axisXOption. This will display all the months by default, thus, displaying the latest month as well.
intervalType
interval
Please check the updated jsFiddle.
____________ Indranil Deo, Team CavasJS
Please provide a jsfiddle or pictorial representation of your requirement so that we can understand your problem better and help you accordingly.
@mehul_5005,
Sorry, this feature is not available as of now. However, you can achieve something similar using this work-around.
Please provide a pictorial representation of your requirement so that we can understand your problem better and help you accordingly.
@cesarc,
Are you looking for something like this.
I have updated the link please take a look.
You can do this with PHP as well. Since you are using Microsoft SQL Server with PHP, please go through this link to create dynamic web pages using PHP and SQL Server.
And also, download the sample project from this thread for creating chart using PHP and MySQL.
Please take a look at this jsfiddle.
Priya,
Using setInterval() you can call functions at specified intervals. Making the JSON call inside the setInterval() method would fetch the data at a fixed interval of time.
Please take a look at this link for making a JSON call inside setInterval() method.
@saravanan-srinivasan,
Initializing chart inside window.onload would work in your case.
window.onload
Please take a look at this documentation for window.onload.
The CanvasJSDate directory contains the FetchDateFromDatabase.aspx, FetchDateFromDatabase.aspx.cs, Web.config, and Web.Debug.config files.
The FetchDateFromDatabase.aspx.cs will have server-side coding in C#(it will extract the dataPoints from the database) and the ASPX contains the page visualization declaration.
Please add these files in visual studio. Then create the database and connect with it.