Earlier WebKit allowed 448MB of canvas buffer memory whereas now they have dropped it to 224MB. Because of this, there was some memory issue with CanvasJS Charts in the latest iOS. However, we had optimized memory consumption in CanvasJS v2.3 – please check out this release blog for more info.
Please follow below guidelines for more optimization:
1. If your page has dynamic charts, update chart options and re-render and don’t instantiate / create new chart on every update.
2. If you are populating data from JSON or CSV using AJAX, instantiate chart once and update data within AJAX request and do not instantiate / create new chart within every AJAX request.
Also, we will further optimize this behavior in future releases.
—
Manoj Mohan
Team CanvasJS
Samyukta,
Categorising dataseries based on the legendText (Short/Answer column in database) instead of doing it based on month number should work fine in this case. Please take a look at this JSFiddle which shows categorizing dataseries based on label from JSON.
—
Manoj Mohan
Team CanvasJS
We are looking into it and will get back to you at the earliest.
__
Manoj Mohan
Team CanvasJS
Sorry, crosshair updated / changed event is not available as of now. However, you can get the current value through labelFormatter of crosshair and the dataSeries in contentFormatter of toolTip.
If this doesn’t fulfill your requirement, kindly share JSFiddle and brief us more about your requirement so that we can help you to resolve it.
—-
Manoj Mohan
Team CanvasJS
[update]
We have just released v3.11.0 Beta 1 with stripline labelPadding. Please refer the release blog for more information. Do download the latest version from our download page and let us know your feedback.
Sorry, padding in stripLine label is not available as of now.
—-
Manoj Mohan
Team CanvasJS
Trial Version is for evaluation purposes for 30 days which comes with ‘Trial Version’ watermark and ‘CanvasJS’ credit link. 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.
—-
Manoj Mohan
Team CanvasJS
You can programmatically zoom / pan to a region by setting viewportMinimum and viewportMaximum.
And one more query how to handle huge data like by days or weeks.
Can you kindly brief us more about your requirement along with some example or pictorial representation so that we can understand the scenario better and help you out?
—-
Manoj Mohan
Team CanvasJS
Can you kindly share some example or pictorial representation of how you would like to represent infinity along with sample data so that we can understand it better and help you out?
—-
Manoj Mohan
Team CanvasJS
Please take a look at this sample project for creating dynamic chart in ASP.NET MVC using data from MSSQL Database.
—-
Manoj Mohan
Team CanvasJS
Samyukta,
Legends are shown for each dataSeries with a marker and the text. In your case, it shows same name in multiple colors as you are passing same name to multiple dataSeries. Parsing JSON properly and passing legendText / name according to the dataSeries that you are creating dynamically should work fine. Please take a look at this JSFiddle for an example on multi-series chart from JSON file.
—
Manoj Mohan
Team CanvasJS
Can you kindly share sample project along with sample CSV over Google-Drive or Onedrive so that we can look into your code, understand the scenario better and help you out?
—
Manoj Mohan
Team CanvasJS
Setting exploded property to true will explode a slice of pie/doughnut on chart-render.
As you are reading data from database, you can add exploded property by checking the label. Please refer the code-snippet below. Adding the below snippet just before calling chart.render() should work fine in this case.
for(var i = 0; i < chart.options.data[0].dataPoints.length; i++)
if(chart.options.data[0].dataPoints[i].label === "Visa")
chart.options.data[0].dataPoints[i].exploded = true;
—-
Manoj Mohan
Team CanvasJS
It seems to be working fine without any issue. Please take a look at this working sample.
If you are still facing any issue, kindly share sample project reproducing the issue along with sample csv over Google-Drive or Onedrive so that we can understand the issue better and help you resolve the same.
—-
Manoj Mohan
Team CanvasJS