ChartJs does not work for salesforce lightning framework

ChartJs library is widely used inside salesforce lightning experience and looks like with salesforce locker service feature (Its a security feature) ,it does not work due to below

gContext2D.webkitImageSmoothingEnabled’ is deprecated and will be removed in M55, around November 2016. Please use ‘CanvasRenderingContext2D.imageSmoothingEnabled’ instead

Expected Behavior

Chart.js renders inside salesforce lightning framework

Current Behavior

Chart.js is not usable with salesforce lightning platform

Possible Solution

Replace gContext2D.webkitImageSmoothingEnabled with CanvasRenderingContext2D.imageSmoothingEnabled

Steps to Reproduce (for bugs)

http://salesforce.stackexchange.com/questions/149260/radar-chart-using-chart-js-not-working

Environment

Author: Fantashit

1 thought on “ChartJs does not work for salesforce lightning framework

  1. @simonbrunel Thanks for your time .I am going to contact salesforce locker team to see if they consider this as bug and fix from their end .I will close the issue once I hear from them .Appreciate your time

Comments are closed.