Created
May 24, 2013 12:24
-
-
Save dancek/5643141 to your computer and use it in GitHub Desktop.
fix for Highcharts export module: exporting.chartOptions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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