@kishores,
We are looking into your query and will get back to you at the earliest.
___________ Indranil Deo, Team CanvasJS
@venkateshganu,
It is possible to export the chart data in CSV format, but rendering and updating the chart within excel is not possible as of now. Please check the below code snippet to convert chart data into comma-separated CSV –
function convertChartDataToCSV(args) { var result, ctr, keys, columnDelimiter, lineDelimiter, data; data = args.data || null; if (data == null || !data.length) { return null; } columnDelimiter = args.columnDelimiter || ','; lineDelimiter = args.lineDelimiter || '\n'; keys = Object.keys(data[0]); result = ''; result += keys.join(columnDelimiter); result += lineDelimiter; data.forEach(function(item) { ctr = 0; keys.forEach(function(key) { if (ctr > 0) result += columnDelimiter; result += item[key]; ctr++; }); result += lineDelimiter; }); return result; }
Kindly take a look at this JSFiddle for a fully functional example on exporting chart data as CSV. Also take a look at this plugin, which does the same.
___________ Indranil Deo Team CanvasJS
@msingh,
Legend marker is shown in the center of the Legend. It can be a “circle”, “square”, “cross” and “triangle” and it seems to be working fine at our end. Can you please create a jsfiddle reproducing the issue so that we can look into your code understand it better and help you out.
@vipsachinverma,
1. I want to get the data of selected slices , please give me the code for it.
You can use the click event handler to get the data of the selected dataPoints on a chart.
2. I want to set some selected pie slices by default on page load,
You can achieve the above requirement by setting the exploded property to true for the dataPoints you would like to highlight.
Tejal,
Thanks for the information. Our representative will contact you over the above mentioned emails.
@vikram-masurkar,
You can download the working JSP sample from the download page and try it out locally, which will work in Eclipse Kepler.
Thanks for the confirmation. One of our team members will get in touch with you soon over email.
@gabryca,
Glad that you figured out a way to make it work :)
@fliptscript, @lolaona12, @lumaluis,
We have released v2.3 with the above modification. Please refer to the release blog for more information. Do download the latest version from our download page and let us know your feedback.
@tedadradro,
Thanks for your patience. We are working on some important update at this point. Hoverever, we have added your request to our list and will be fixing it in our future releases.
There is a typo in your code xValueType: "dataTime",. Please change dataTime to dateTime and it should work fine. You can also refer to this documentation page for more information.
xValueType: "dataTime",
In case it doesn’t help you out, can you please create a sample project with a sample database and share it over Google-Drive or Onedrive so that we can look into your code understand it better and help you out?
@murcie96,
Glad you figured out the issue.
@punithkumar,
If the height allocated to the chart is pretty less, some elements might get truncated in order to accommodate the rest of the chart elements. However to work around this issue you can check this jsffidle.
@kris,
Since the difference in the consecutive timestamp is in terms of milliseconds, the corresponding labels displayed on the Axis X are in milliseconds. Setting the valueFormatString of the Axis X to “MMM DD YYYY hh:mm:ss” will work fine in your case.
Please take a look at this updated jsfiddle.
@lumaluis,
It’s not fixed in v2.2 but will be fixed in the next release.