@akshay30498,
Glad that it’s working fine now.
Instead of CDN, you can serve CanvasJS script from https://cdn.canvasjs.com/canvasjs.min.js
__ Priyanka M S Team CanvasJS
Can you kindly share a jsfiddle with sample data, so that we can look at your code, understand and help you out? We recommend you to use latest version of CanvasJS.
Sushil,
The starting label depends on minimum, maximum and interval, which are depended on dataPoints. Can you kindly create a jsfiddle with sample data, so that we can understand your scenario better and help you out?
@sidv93,
Sorry this feature is not available as of now. However with few lines of CSS code you can achieve this. Please take a look at this jsfiddle.
@liyen,
To display the chart containing datetime value in PHP, you need to first convert datetime string to PHP timestamp using strtotime(). Later convert PHP timestamp value to javascript timestamp and assign that value to dataPoint x-value along with setting xValueType to ‘dateTime’. Please take a look below code snippet for the same.
array_push($dataPoints, array("x"=> strtotime($row->x) * 1000, "y"=> $row->y));
It seems like you are passing invalid x-values to chart. Passing valid number to x-value of dataPoint should work fine in your case. If this doesn’t solve your requirement, please share a jsfiddle so that we can understand your requirement better and help you out.
Using x-value instead of label for dataPoints will display the axis labels for July even if there is no value in database for July month. Please take a look at this JSFiddle.
@himanshu_tanwar,
You can achieve this with the help of labelFormatter and formatDate().
Please take a look at this updated jsfiddle
@kuhuycoi,
Thanks for reporting the issue. We will look into the issue and fix it in future releases.
Can you please share a static HTML page over onedrive or Google drive, so that we can take a look at the chart options you are using, understand your scenario better and help you out?
@sajeeshe,
Please take a look at this jsfiddle.
If this doesn’t solve your requirement, please brief further about your exact requirement along with pictorial representation, so that we can understand it better and help you out.
@mpicazo,
Thanks for reporting. We are looking into it and will get back to you at the earliest.
__ Priyanka MS Team CanvasJS
@prashasti,
Can you kindly share a sample project along with sample data over Google-drive or Onedrive so that we understand your scenario better and help you out?
@can,
Sorry this feature is not available as of now. But with few lines of code you can draw arrow on top of chart. Please take a look at this jsfiddle.
If this doesn’t solve your requirement, please share a pictorial representation of your requirement so that we can understand it better and help you out.
If the month “2018-05” is occupying some space on chart, you can use scaleBreaks to remove the occupied space.
If this doesn’t solve your requirement, can you kindly create and share JSFiddle with sample data so that we can understand your requirement better and help you out.