-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20703 from highcharts/bugfix/15921-fillcolor-hcm
bugfix/15921-fillcolor-hcm
- Loading branch information
Showing
10 changed files
with
115 additions
and
19 deletions.
There are no files selected for viewing
Empty file.
6 changes: 6 additions & 0 deletions
6
samples/highcharts/accessibility/high-contrast-mode/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 - high contrast mode | ||
authors: | ||
- Gøran Slettemark | ||
js_wrap: b | ||
... |
11 changes: 11 additions & 0 deletions
11
samples/highcharts/accessibility/high-contrast-mode/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,11 @@ | ||
<script src="https://code.highcharts.com/highcharts.js"></script> | ||
<script src="https://code.highcharts.com/modules/accessibility.js"></script> | ||
|
||
<figure class="highcharts-figure"> | ||
<div id="container"></div> | ||
|
||
<p class="highcharts-description"> | ||
Area chart with high contrast mode enabled and custom colors defined. | ||
</p> | ||
</figure> | ||
|
29 changes: 29 additions & 0 deletions
29
samples/highcharts/accessibility/high-contrast-mode/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,29 @@ | ||
Highcharts.chart('container', { | ||
chart: { | ||
type: 'area' | ||
}, | ||
title: { | ||
text: 'High contrast mode with custom colors' | ||
}, | ||
accessibility: { | ||
highContrastMode: true, // force high contrast mode, | ||
highContrastTheme: { | ||
colors: [ | ||
'#FFFFFF', | ||
'#f9455a', | ||
'#041867' | ||
] | ||
} | ||
}, | ||
series: [ | ||
{ | ||
data: [5, 5, 5, 5, 5, 5] | ||
}, | ||
{ | ||
data: [0, 1, 2, 3, 4, 5] | ||
}, | ||
{ | ||
data: [5, 4, 3, 2, 1, 0] | ||
} | ||
] | ||
}); |
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
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
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