Datapoint accepts x-value and y-value with optional label and z-value. In your case, you seem to be passing a property called ‘w’ instead of ‘y’ on clicking update button. Changing chart.options.data[0].dataPoints[i] = {x:date1, w:w};
to chart.options.data[0].dataPoints[i] = {x:date1, y:w};
should work fine in your case.
If you are still facing issue, kindly create JSFiddle reproducing the issue you are facing and share it with us, so that we can look into the code / chart-options being used, understand the scenario better and help you out.
—
Vishwas R
Team CanvasJS
Please take a look at Rendering Multiple Charts within a Page in ASP.NET MVC Samples. You can download ASP.NET MVC samples from download page.
—
Vishwas R
Team CanvasJS
This feature is not available as of now but it’s there in our roadmap.
However you can use panning feature to scroll position. You can also add timeline feature with the help of syncing multiple charts. Please take a look at this jsfiddle.
—
Vishwas R
Team CanvasJS
Why is there no way to define margins or offsets for these labels?
I tried adding spaces, html “<br />” elements etc, nothing works.
Sorry, adding break is not available as of now. However you can achieve the same by setting labelMaxWidth, after which label gets wrapped.
I want ticks to only be visible for these 2 labels. Is this possible?
I tried setting “intervalType: ‘day’” and “interval” to the difference in days between these 2 dates, but canvas-js creates ticks for completely different days.
Can you kindly create jsfiddle with sample data, so that we can understand your scenario better and help you out?
—
Vishwas R
Team CanvasJS
Sorry, this feature is not available as of now. However setting markerSize to ‘0’ will make marker to be visible only on mouseover with default size. Please take a look at this jsfiddle.
—
Vishwas R
Team CanvasJS
Rajesh Sudharsan,
Sorry, it’s not possible to load csv data from local machine unless its served from a local webserver or from same domain where html is hosted. It’s basically a browser restriction for security reasons. Please refer this page for more info on Cross-Origin Requests.
—
Vishwas R
Team CanvasJS
Rajesh Sudharsan,
For security reasons, browsers restrict cross-origin requests. Please refer this stackOverflow post for more information. Serving CSV file from local webserver and making an AJAX call to it or serving it from CORS enabled CSV hosting should work fine in this case. Please take a look at this jsfiddle.
Also can you please check the Browser Console if there are any errors. Can you kindly create jsfiddle reproducing the issue if you are facing any other issues?
—
Vishwas R
Team CanvasJS
So inside this class widgetContainer I am adding another class ( run time ) and there I have to inject the chart.
In the jsfiddle that you have shared, we don’t see any container with class-name being added dynamically. Can you kindly create jsfiddle reproducing your issue, so that we can understand your scenario better and help you out?
—
Vishwas R
Team CanvasJS
We are working on the issue. We will give you an internal build once it’s fixed – in couple of days.
—
Vishwas R
Team CanvasJS
Alex,
Sorry, we don’t have 3D charts in our roadmap as of now.
—
Vishwas R
Team CanvasJS
Chetna,
Do you mean you you are unable to export CanvasJS Chart as image using Canvas2Image? If so, you can exportEnabled property to export chart as image in jpeg/png formats.
If this doesn’t solve your issue, can you kindly create jsfiddle reproducing the issue so that we can look into it and help you out?
—
Vishwas R
Team CanvasJS
Thanks for reporting bug along with jsfiddle. We are looking into the issue and fix it in future releases.
—
Vishwas R
Team CanvasJS
Crosshair labels are showing real value due to x-values in the datapoint. You can remove x-values to show actual label in crosshair or you can use labelFormatter as shown in this updated jsfiddle.
—
Vishwas R
Team CanvasJS
Can you kindly create jsfiddle with sample data so that we can understand your scenario better and help you out?
—
Vishwas R
Team CanvasJS