5

Error popover displayed when user tries to export (offline exporting) highcharts scatter chart as JPEG or PNG format inside Lightning components.

Here's the screenshot of the error popup:-

enter image description here

Error:

Failed to execute 'drawImage' on 'CanvasRenderingContext2D'

Exporting works fine with SVG as well as PDF. The issue exists when we do offline exporting as JPEG or PNG.

Can anyone help me out in this ?

1 Answer 1

4

This is a known feature gap in Locker Service. We have fixed it in winter 18 release. W-4063448 is the bug associated with the fix. If you are curious about the fix, please take a look at this commit in our open source repo https://github.com/forcedotcom/aura/commit/90f778b8e3abe147d130ae8ba243681d2d4a619a

4
  • 1
    So are you suggesting that we should wait till winter 18 release ? Or is there any quick workaround we could use. Commented Jul 26, 2017 at 5:11
  • Hi @RaviJayaramappa Any workaround for this issue or waiting till Winter 18 release is the only option?
    – SE_User
    Commented Sep 18, 2017 at 12:02
  • 1
    @SE_User There are no workarounds as of now. But the good news is that Winter 18 is being deployed to all productions instances in the coming weeks. All SandBox instances are already on Winter 18. Commented Sep 18, 2017 at 17:46
  • That sounds good. Thank you @RaviJayaramappa for the update! :)
    – SE_User
    Commented Sep 18, 2017 at 18:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .