Irrespective of data-source, CanvasJS supports dynamic updates of chart-options. So updating chart-type from dropdown should work fine even incase of json. Please take a look at this jsfiddle.
—
Vishwas R
Team CanvasJS
Sudhir,
Do you mean gradient as chart background? If so please take a look at this jsfiddle. However setting gradient as color is not available as of now.
If this doesn’t answer your requirements, can you kindly share pictorial representation of your requirement so that we can understand it better and help you out?
—
Vishwas R
Team CanvasJS
Label is being clipped as you are restricting axis maximum. Setting labelAngle to a negative value should work fine in your case. Please take a look at this updated jsfiddle.
—
Vishwas R
Team CanvasJS
You can change chart-type whenever there is change in dropdown. Please take a look at this jsfiddle.
—
Vishwas R
Team CanvasJS
Larry,
1. is it different from just add empty objects as default to each dataPoint? also no need to delete it
Both are same. However empty object in a dataSeries can affect axis-range.
2. as you can see in your solution, Xaxis is changed due to this solution. why its happens?
That’s because of empty object. To avoid this you can add a dataPoint with y-value set to null. Please take a look at this updated jsfiddle.
—
Vishwas R
Team CanvasJS
Please take a look at this sample project for creating dynamic charts using data from MySQL database in PHP. Also, please refer to this documentation page for creating Dynamically Updating Charts from JSON API & AJAX.
If this doesn’t suit your requirements, kindly share a sample project with sample data over google-drive or onedrive so that we can understand it better and help you out.
—
Vishwas R
Team CanvasJS
Larry,
You can add an empty object to dataPoints to show legend and remove the empty object when you update dataPoints. Please take a look at this jsfiddle.
—
Vishwas R
Team CanvasJS
Thanks for your appreciation. Feedback from users like you makes our day happier :)
Radar chart is there in our roadmap, but no definite timeline yet. Please subscribe to our blog for update.
—
Vishwas R
Team CanvasJS
Marco,
It seems to be working fine across all browsers. Please check the screenshot below.
Can you kindly share OS & Browser you are using and its version so that we can look into it and help you out?
—
Vishwas R
Team CanvasJS
@jwk,
Please check the path of the file you are linking and it should work fine if its linked properly. It would be helpful for us to understand your scenario better if you could share sample project (over google-drive or onedrive) which you are running in local web server so that we can look into it and help you out.
—
Vishwas R
Team CanvasJS
Thanks for bringing it to our notice. You were facing the issue due to trailing comma in chart-options data: data, // random generator below
. Removing trailing comma should work fine in your case. We have updated the code in docs, please try with latest code or try removing trailing comma data: data // random generator below
—
Vishwas R
Team CanvasJS
You can scale-up or scale-down the chart before exporting using exportChart method and reset it back soon after exporting. Please take a look at this jsfiddle.
—
Vishwas R
Team CanvasJS
You can have one colorSet within a chart, as of now. However if you are trying to have different colorSets for each dataSeries, you can try setting color in dataPoint level. Please take a look at this jsfiddle.
—
Vishwas R
Team CanvasJS