Can you kindly create sample project with sample dataPoints and share it over Google-Drive or Onedrive, so that we can look into your code, understand it better and help you out?
—
Vishwas R
Team CanvasJS
One of my colleagues Mr.Indranil had dropped you a mail regarding this on July 20, 2018 itself, kindly check your inbox once. As we didn’t heard back from you, we thought the issue got resolved and it would be working fine now.
Can you kindly share your Skype ID, so that I can arrange a call-back for you? Over call itself you can have a screen-share and resolve the issue you are facing.
You can share the details over mail to sales@canvasjs.com or schedule a meeting by clicking this link.
—
Vishwas R
Team CanvasJS
Please take a look at tutorial on Live Updating Charts from JSON API & AJAX.
If you are still facing issue, kindly create jsfiddle with the issue you are facing and share it with us along with sample JSON so that we can look into your code, understand it better and help you out.
—
Vishwas R
Team CanvasJS
Once the chart is rendered, you can get dataSeries color using get method as shown in the code snippet below –
for(var i = 0; i < chart.data.length; i++) {
console.log(chart.data[i].get("color"))
}
Please take a look at this jsfiddle.
—
Vishwas R
Team CanvasJS
Thank you, but can I send you the link via private email? because I can not share as public in here.
One of team members will get in touch with you soon over email.
I also try this code https://canvasjs.com/jsp-charts/chart-from-csv-data/
But when I try the content of chart does not appear.
And this is the following error: Failed to load https://canvasjs.com/data/gallery/jsp/tuna-production.csv: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:8080’ is therefore not allowed access.
For security reasons, browsers restrict cross-origin requests. Please refer this stackOverflow post for more information.
—
Vishwas R
Team CanvasJS
Trial Version is for evaluation purposes for up to 30 days. To use charts without ‘Trial Version’ and ‘CanvasJS’ Credit Link you will need to have a Commercial Version of CanvasJS. Please contact sales@canvasjs.com for sales related queries.
—
Vishwas R
Team CanvasJS
Can you kindly share sample project along with sample database over Google-Drive or Onedrive, so that we can look at your code, understand it better and help you out?
This tutorial on Saving/Retrieving BLOB object in Spring MVC might help you handle the scenario you have described above.
—
Vishwas R
Team CanvasJS
valueFormatString formats the labels appearing on axisY. To format the y-values that appear in toolTip / indexLabel, you should use yValueFormatString. Setting yValueFormatSting to ‘#,##0.00’ should work fine in your case. Please refer documentation on yValueFormatString for more info and formatting options available for the same.
It would be helpful for us to understand your scenario better when we look at your working code live in jsfiddle. So I request you to create jsfiddle and share it with us, rather than pasting code, if you are still facing any issue.
—
Vishwas R
Team CanvasJS
Please refer tutorial on Creating Dynamic Charts for more info on how to update dataPoints dynamically. Also refer tutorial on updating chart options / data.
—
Vishwas R
Team CanvasJS
CanvasJS supports rendering any language in title, legend and other elements. You can pass the legend-text in the language you would prefer it to render and it should work fine. Please take a look at this jsfiddle which shows rendering title and legends in Japanese.
a way to retrieve legend labels from JSON file?
Please take a look at this jsfiddle.
—
Vishwas R
Team CanvasJS
Considering this post as duplicate and closing the thread. Please refer the original thread for updates.
—
Vishwas R
Team CanvasJS
Setting valueFormatSting to ‘#,##0.00’ seems to be working fine with the y-value that you have shared (114307653.79).
Can you kindly create jsfiddle reproducing the issue you are facing, so that we can look into your code, understand it better and help you out?
—
Vishwas R
Team CanvasJS
I don’t see any column with the name ‘file_data’ of the type LONGBLOB in the screenshot that you have shared! Please checkout this tutorial on Saving/Retrieving BLOB object in Spring MVC.
If there is any issue integrating CanvasJS in your Spring MVC project, please download the Sample project from our download page. If you have any other issues, kindly create sample project along with 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?
—
Vishwas R
Team CanvasJS