govind,
Can you kindly create and share a jsfiddle, so that we can look into your code, understand your scenario better and help you out?
__
Priyanka M S
Team CanvasJS
Can you kindly create and share a jsfiddle along with sample data, so that we can look into your code, understand your scenario better and help you out?
__
Priyanka M S
Team CanvasJS
Mohamed,
In the code you have provided above, the mousemove event is defined to perform the same functions as that of mousedown event. Also, the events have been duplicated. Please take a look at this jsfiddle.
__
Priyanka M S
Team CanvasJS
Setting color:"none"
overrides the default color of dataPoints and hence it’s blank. Instead, you set color:null
, for default colors.
__
Priyanka M S
Team CanvasJS
Please take a look at this jsfiddle, which reads data from an external CSV file and plots a scatter chart.
__
Priyanka M S
Team CanvasJS
You can observe this behaviour because the JSON data you are providing to updateChart() method is same as the JSON data provided while rendering chart for the first time. Can you kindly create a jsfiddle that has JSON data updating dynamically, so that we can look into the code, understand your scenario better and help you out?
__
Priyanka M S
Team CanvasJS
Can I test it locally ?
You can test it locally by making an ajax request to your local file. Since you will be running the program directly from the file system, ajax request would get blocked due to browser security/ Cross-Origin requests. So please run the same via a local server like Apache, Nginx, IIS, etc and it should work fine.
can I use this as area chart ?
Yes. You can use the above provide code with any Chart types with axes.
__
Priyanka M S
Team CanvasJS
Samuel,
You can use indexLabel for the same. Please take a look at this jsfiddle.
__
Priyanka M S
Team CanvasJS
Mohamed,
Please take a look at this updated jsfiddle, which provides both the pixel and axis coordinates.
__
Priyanka M S
Every time you call update chart, the new dataPoints along with the complete set of existing dataPoints gets added to the chart. Hence, the complete graph will be drawn repeatedly on top of each other. Clearing the existing dataPoints before adding the next set(complete set) of dataPoints should work fine in your case. Please take a look at this jsfiddle.
__
Priyanka M S
Team CanvasJS