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
You can use labelFormatter to customize labels to be displayed on axis. Please take a look at this jsfiddle.
If this doesn’t fulfill your requirements kindly share a pictorial representation so that we can understand your requirements better and help you out.
—
Vishwas R
Team CanvasJS
Michaelp,
Sorry, this feature is not available as of now.
—
Vishwas R
Team CanvasJS
1) If series start not from the same data-point position and use label approach you suggested, then label displays not correctly
https://jsfiddle.net/tn2u0650/32/ but if adds empty elements as stub for missing points then chart looks good https://jsfiddle.net/tn2u0650/31/
You can use x-value along with labels to align all data-points based on x-values properly. Please take a look at this updated JSFiddle.
2) If set interval to 1 then chart looks bad for big range, for instance if we have 800 items than all range from 1 till 800 will be displayed on X-asix
Calculation of axis interval depends on various factors like axis-minimum, axis-maximum, number of labels that can be shown within that range of axis, length of axis etc. When you set interval to a value, it doesn’t auto-calculate instead accepts the value that you have assigned irrespective of range, number of data-points and length of axis. You can either remove hard-coded interval so that it will be auto-calculated or you can calculate based on range, number of ticks as shown in this JSFiddle.
—
Vishwas R
Team CanvasJS