high-contrast-light.src.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /**
  2. * @license Highcharts JS v9.1.1 (2021-06-04)
  3. *
  4. * (c) 2009-2021 Highsoft AS
  5. *
  6. * License: www.highcharts.com/license
  7. */
  8. 'use strict';
  9. (function (factory) {
  10. if (typeof module === 'object' && module.exports) {
  11. factory['default'] = factory;
  12. module.exports = factory;
  13. } else if (typeof define === 'function' && define.amd) {
  14. define('highcharts/themes/high-contrast-light', ['highcharts'], function (Highcharts) {
  15. factory(Highcharts);
  16. factory.Highcharts = Highcharts;
  17. return factory;
  18. });
  19. } else {
  20. factory(typeof Highcharts !== 'undefined' ? Highcharts : undefined);
  21. }
  22. }(function (Highcharts) {
  23. var _modules = Highcharts ? Highcharts._modules : {};
  24. function _registerModule(obj, path, args, fn) {
  25. if (!obj.hasOwnProperty(path)) {
  26. obj[path] = fn.apply(null, args);
  27. }
  28. }
  29. _registerModule(_modules, 'Extensions/Themes/HighContrastLight.js', [_modules['Core/Globals.js'], _modules['Core/DefaultOptions.js']], function (Highcharts, D) {
  30. /* *
  31. *
  32. * (c) 2010-2021 Highsoft AS
  33. *
  34. * Author: Øystein Moseng
  35. *
  36. * License: www.highcharts.com/license
  37. *
  38. * Accessible high-contrast theme for Highcharts. Specifically tailored
  39. * towards 3:1 contrast against white/off-white backgrounds. Neighboring
  40. * colors are tested for color blindness.
  41. *
  42. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  43. *
  44. * */
  45. var setOptions = D.setOptions;
  46. Highcharts.theme = {
  47. colors: [
  48. '#5f98cf',
  49. '#434348',
  50. '#49a65e',
  51. '#f45b5b',
  52. '#708090',
  53. '#b68c51',
  54. '#397550',
  55. '#c0493d',
  56. '#4f4a7a',
  57. '#b381b3'
  58. ],
  59. navigator: {
  60. series: {
  61. color: '#5f98cf',
  62. lineColor: '#5f98cf'
  63. }
  64. }
  65. };
  66. // Apply the theme
  67. setOptions(Highcharts.theme);
  68. });
  69. _registerModule(_modules, 'masters/themes/high-contrast-light.src.js', [], function () {
  70. });
  71. }));