Please take a look at this documentation page on click event for dataPoint which gets triggered when you click on any dataPoint. You can also refer this documentation page, for the same on the legend.
If this doesn’t fulfill your requirements, kindly let us know to which chart element you are trying to bind the event, so that we can guide you accordingly.
—
Shashi Ranjan
Team CanvasJS
For security reasons, browsers restrict cross-origin requests. Please refer to this StackOverflow post for more information. Serving CSV file from a local web server and making an AJAX call to it or serving it from CORS enabled CSV hosting should work fine in this case.
Also, it’s not possible to load CSV data from the local machine unless it’s served from a local web server or from the same domain where HTML is hosted. It’s basically a browser restriction for security reasons. Please refer to the above link for more info on Cross-Origin Requests.
—
Shashi Ranjan
Team CanvasJS
Please take a look at this gallery example for Drilldown Charts in PHP along with source code which you can try locally.
—
Shashi Ranjan
Team CanvasJS
Please take a look at this documentation page for step by step tutorial on rendering chart using data from CSV.
In case you are still facing the issue, please create a JSFiddle with an appropriate data source, reproducing the same so that we can look into the code, understand it better and help you out.
—
Shashi Ranjan
Team CanvasJS
Please check this sample project to create dynamic charts using data from MySQL database in PHP with CanvasJS Charts.
—
Shashi Ranjan
Team CanvasJS
You can add background-image to chart-container and set chart backgroundColor to transparent as shown in this JSFiddle. The same approach can be used for adding watermark as a background to the chart.
—
Shashi Ranjan
Team CanvasJS
Sorry, RTL support is not available as of now. However to align title, subtitles, legends to the right, please use horizontalAlign property.
—
Shashi Ranjan
Team CanvasJS
After fetching the data from the database parsing it to the format accepted by CanvasJS (like {x: 5, y: 6}) should work fine in your case. Please take a look at this updated JSFiddle for the same.
—
Shashi Ranjan
Team CanvasJS
Thanks for reporting the issue. It seems like a bug, we will be fixing it in future releases.
—
Shashi Ranjan
Team CanvasJS
You can use yValueFormatString to format the value to be displayed in toolTip and indexLabel. Please take a look at this JSFiddle to achieve the above requirement.
—
Shashi Ranjan
Team CanvasJS
The values ylineA and ylineB that you are trying to pass as startValue and endValue are basically an element within $datapoints
array. But you are trying to access it directly, which would be undefined. Accessing the values properly should work fine in this case.
If the issue still persists, kindly share a working sample project along with sample database so that we can run it locally at our end to help you fix the issue.
—
Shashi Ranjan
Team CanvasJS
It seems like the sequence of dataPoints is not proper & CanvasJS doesn’t sort the dataPoints but rendered in the order provided by you. Because of this, you can observe an extra line from the last dataPoint to the first. Sorting dataPoints before passing it to chart-options or storing sorted values in JSON should work fine in this case.
—
Shashi Ranjan
Team CanvasJS