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
In JavaScript, date object can be created in 4 ways. new Date()
, new Date(year, month, day, hours, minutes, seconds, milliseconds)
, new Date(milliseconds)
, new Date(date string)
.
In your case i.e new Date(year, month, day)
, month counts from 0 to 11 i.e. 0 corresponds to January and 11 corresponds to December. Changing the month according to JavaScript date-object should work fine in your case.
For different JavaScript date formats please refer this article.
Please take a look at this JSFiddle for a working example with sample code.
—
Vishwas R
Team CanvasJS
Ryan,
You can position custom DOM wherever you want on the chart with the help of convertValueToPixel and convertPixelToValue methods. Please take a look at this jsfiddle where many custom texts are positioned as indexLabels.
—
Vishwas R
Team CanvasJS