Home › forums › Using CanvasJS › Total canvas memory use exceeds the maximum limit
I am loading 5 to 6 charts on a single page. Although it is loading and working fine on the desktop. But when I see them on the iPad, Some of the charts are not loading and the console is saying
“Total canvas memory use exceeds the maximum limit”
I am using the latest version of canvasjs. I also used destroy function for canvas. Please help.
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.
You must be logged in to reply to this topic.