function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ashish Narkhede 13Ashish Narkhede 13 

Highcharts chart not rendering if LockerService is enabled

LockerService was enabled as a critical update in my DE org. I am trying to create a home page showing multiple charts using Lightning component and Highcharts as charting library.
The charts are rendered fine if I deactivate the LockerService. I get this error if LockerService is active and I try to render highcharts chart:
Something has gone wrong.

Error in $A.getCallback() [NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.] Failing descriptor: {markup://c:AHM_Home1}. Please try again.
I am using Highcharts version 4.2.3

Code sample: https://jsfiddle.net/ashishn/g81q2vtx/
Brandon H. BarrBrandon H. Barr
Is the highcharts code a static resource? Have you tried the lightning cli? Check it out here (https://www.npmjs.com/package/salesforce-lightning-cli). It runs through your lightning components and will point out any LockerService violations.
Ashish Narkhede 13Ashish Narkhede 13
Yes. I've uploaded highcharts library as static resource in Salesforce.
I tried using lightning CLI. Attached picture is a screenshot of CLI.
User-added image
JyothsnaJyothsna (Salesforce Developers) 
Hi,

In summer 16 releases Some of the features will have limitations and will come during or after Winter 2017.

Please check the below link it will give some idea on your issue.

https://developer.salesforce.com/blogs/developer-relations/2016/04/introducing-lockerservice-lightning-components.html


Best Regards,
Jyothsna