Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #5985, issue with allowHTML in offline exporting.
- Loading branch information
1 parent
c38cbb3
commit 578c973
Showing
6 changed files
with
107 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
5 changes: 5 additions & 0 deletions
5
samples/highcharts/exporting/offline-download-usehtml/demo.css
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#container { | ||
max-width: 800px; | ||
height: 400px; | ||
margin: 1em auto; | ||
} |
6 changes: 6 additions & 0 deletions
6
samples/highcharts/exporting/offline-download-usehtml/demo.details
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
name: Highcharts Demo | ||
authors: | ||
- Øystein Moseng | ||
requiresManualTesting: true | ||
... |
5 changes: 5 additions & 0 deletions
5
samples/highcharts/exporting/offline-download-usehtml/demo.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<script src="https://code.highcharts.com/highcharts.js"></script> | ||
<script src="https://code.highcharts.com/modules/exporting.js"></script> | ||
<script src="https://code.highcharts.com/modules/offline-exporting.js"></script> | ||
|
||
<div id="container"></div> |
44 changes: 44 additions & 0 deletions
44
samples/highcharts/exporting/offline-download-usehtml/demo.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
$(function () { | ||
|
||
Highcharts.chart('container', { | ||
|
||
exporting: { | ||
chartOptions: { // specific options for the exported image | ||
plotOptions: { | ||
series: { | ||
dataLabels: { | ||
useHTML: true, | ||
enabled: true | ||
} | ||
} | ||
} | ||
}, | ||
scale: 3, | ||
fallbackToExportServer: false, | ||
allowHTML: true | ||
}, | ||
|
||
title: { | ||
text: 'Offline export' | ||
}, | ||
|
||
subtitle: { | ||
text: 'Should fail for all except SVG' | ||
}, | ||
|
||
chart: { | ||
type: 'area' | ||
}, | ||
|
||
xAxis: { | ||
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', | ||
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] | ||
}, | ||
|
||
series: [{ | ||
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 126.0, 148.5, 216.4, 194.1, 95.6, 54.4] | ||
}] | ||
|
||
}); | ||
|
||
}); |