Problem/Motivation

When using Highcharts, 'graph export' functionality is enabled by default, displayed as a burger menu on the chart. See https://api.highcharts.com/highcharts/exporting

There may be cases where this functionality is not required.

Proposed resolution

Add functionality to disable this functionality when not required.

There are other options related to exporting that may be added as well as this option.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

John Cook created an issue. See original summary.

John Cook’s picture

I created a patch that adds this option to disable exporting.

A new ExportingOptions class was created to hold this setting and possibly other settings related to the exporting functionality. The class can accept an array on construction and use that to populate its properties.

To disable the exporting functionality the code like the following should be used:

$options['exporting']['enabled'] = FALSE;

When this is done to the example chart it looks like:
Before patch:

After patch:

John Cook’s picture

Status: Active » Needs review

  • andileco committed 57f6dbd on 8.x-3.x
    Issue #2944125 by John Cook: Disable exporting for Highcharts
    
andileco’s picture

Status: Needs review » Fixed
andileco’s picture

Status: Fixed » Closed (fixed)