@jemoreno,
Thanks for your suggestion. We will consider this feature for future releases.
____ Shashi Ranjan Team CanvasJS
@sepetar,
You can achieve the above requirement by calculating y-values using Math.sin() function for each angle value passed, as shown in this JSFiddle.
@mattipv4,
Sorry, this feature is not available as of now.
@savnur-imran,
As you are also facing a similar issue, you might also be passing a string to dataPoints array instead of an object. In case you are fetching the data from a JSON data source, I would suggest parsing the received to the format accepted by CanvasJS. Please refer to the code snippet below for an example:
dataPoints : [ //array of dataPoint {x: new Date(2019, 00, 28), y: 10}, //dataPoint {x: new Date(2019, 00, 29), y: 15} //dataPoint ]
In case you’re still facing the issue, kindly create a JSFiddle reproducing the issue so that we can look into the code and chart-options being used by you, understand the scenario better and help you out?
@asha,
Can you please create a JSFiddle reproducing the issue so that we can look into it and help you out?
@tejal,
Size of the exported image depends on the chart size(width and height of the chart). Hence by changing the width & the height of the chart before exporting it and resetting it back should work fine in your case. Please take a look at this JSFiddle.
@murcie96,
You can achieve the above requirement by creating a new div dynamically every time you pass a new JSON API link and render the chart using the provided JSON data source as shown in this JSFiddle.
Please use the following JSON data sources with the above example: https://api.myjson.com/bins/espz0 https://api.myjson.com/bins/vguws https://api.myjson.com/bins/166nss
@park,
To achieve the above requirement please follow the steps below:
Please refer to this StackOverflow page for including external JS file in a JSP page.
____ Shashi Ranjan Team CanvasJS.
@guilhermemaranhao,
Yes, it is possible by substantially increasing the value of smallest DataPoint of the DataSeries as shown in this JSFiddle.
You can achieve the above requirement by adding the y-value of the 1st and 2nd DataSeries for their corresponding x-value and then pushing it to a third DataSeries as shown in this JSFiddle.
As the dataPoint y-value is small compared to other y-values, the height of that specific dataPoint becomes smaller and may become less than 1px height. Because of this behavior, you can’t see the dataPoint with y-value 1. We will improve this behavior in our future releases.
@badman31,
Since we are working on some important features right now, we haven’t set a definite timeline yet for this issue.
@administratorfp,
CanvasJS doesn’t support dotted legend marker as of now. But you can work around it by setting the “markerColor” to “white” as shown in this JSFiddle.
@rajnishazad11,
This is not an error. In JavaScript month index starts from 0(January) and ends at 11(December). For more information please refer to this StackOverflow page.
@sajjaharikrishna,
Can you kindly create a JSFiddle with sample data, so that we can look into your code understand your issue better and help you out?