Skip to content

Commit

Permalink
export (#1204)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhb000 authored and gaugup committed Feb 27, 2022
1 parent c10837f commit 4250c66
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc/.eslintrc.import.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"regenerator-runtime/runtime.js",
"office-ui-fabric-react/lib/utilities/positioning",
"highcharts/modules/accessibility",
"highcharts/modules/exporting",
"highcharts/highcharts-more",
"highcharts/modules/heatmap",
"@nrwl/cypress/plugins/preprocessor"
Expand Down
2 changes: 2 additions & 0 deletions libs/core-ui/src/lib/Highchart/HighchartReact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import * as Highcharts from "highcharts";
import HighchartsMore from "highcharts/highcharts-more";
import * as Accessibility from "highcharts/modules/accessibility";
import * as Exporting from "highcharts/modules/exporting";
import * as React from "react";

import { loadModules } from "./HighchartsModules";
Expand All @@ -12,6 +13,7 @@ import { HighchartsModuleNames } from "./HighchartTypes";
// This is the only module we load for all charts.
// Other modules need to be loaded on demand using modules property of the chart component.
Accessibility.default(Highcharts);
Exporting.default(Highcharts);
// init module
HighchartsMore(Highcharts);

Expand Down
3 changes: 3 additions & 0 deletions libs/core-ui/src/lib/util/getErrorBarChartOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export function getErrorBarChartOptions(
type: "lowmedhigh",
zoomType: "xy"
},
exporting: {
enabled: true
},
legend: {},
plotOptions: {
scatter: {
Expand Down

0 comments on commit 4250c66

Please sign in to comment.