Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dancek/5643141 to your computer and use it in GitHub Desktop.
Save dancek/5643141 to your computer and use it in GitHub Desktop.
fix for Highcharts export module: exporting.chartOptions
diff --git a/vendor/exporting.src.js b/vendor/exporting.src.js
index d75f7da..75489a2 100644
--- a/vendor/exporting.src.js
+++ b/vendor/exporting.src.js
@@ -335,13 +335,15 @@ extend(Chart.prototype, {
exportChart: function (options, chartOptions) {
options = options || {};
var chart = this,
chartExportingOptions = chart.options.exporting,
+ overrideOptions = chartExportingOptions ? (chartExportingOptions.chartOptions || {}) : {},
svg = chart.getSVG(merge(
{ chart: { borderRadius: 0 } },
chartExportingOptions,
+ overrideOptions,
chartOptions,
{
exporting: {
sourceWidth: options.sourceWidth || chartExportingOptions.sourceWidth, // docs: option and parameter in exportChart()
sourceHeight: options.sourceHeight || chartExportingOptions.sourceHeight // docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment