globalDefault.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. /**
  20. * AUTO-GENERATED FILE. DO NOT MODIFY.
  21. */
  22. /*
  23. * Licensed to the Apache Software Foundation (ASF) under one
  24. * or more contributor license agreements. See the NOTICE file
  25. * distributed with this work for additional information
  26. * regarding copyright ownership. The ASF licenses this file
  27. * to you under the Apache License, Version 2.0 (the
  28. * "License"); you may not use this file except in compliance
  29. * with the License. You may obtain a copy of the License at
  30. *
  31. * http://www.apache.org/licenses/LICENSE-2.0
  32. *
  33. * Unless required by applicable law or agreed to in writing,
  34. * software distributed under the License is distributed on an
  35. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  36. * KIND, either express or implied. See the License for the
  37. * specific language governing permissions and limitations
  38. * under the License.
  39. */
  40. var platform = ''; // Navigator not exists in node
  41. if (typeof navigator !== 'undefined') {
  42. /* global navigator */
  43. platform = navigator.platform || '';
  44. }
  45. var decalColor = 'rgba(0, 0, 0, 0.2)';
  46. export default {
  47. darkMode: 'auto',
  48. // backgroundColor: 'rgba(0,0,0,0)',
  49. colorBy: 'series',
  50. color: ['#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc'],
  51. gradientColor: ['#f6efa6', '#d88273', '#bf444c'],
  52. aria: {
  53. decal: {
  54. decals: [{
  55. color: decalColor,
  56. dashArrayX: [1, 0],
  57. dashArrayY: [2, 5],
  58. symbolSize: 1,
  59. rotation: Math.PI / 6
  60. }, {
  61. color: decalColor,
  62. symbol: 'circle',
  63. dashArrayX: [[8, 8], [0, 8, 8, 0]],
  64. dashArrayY: [6, 0],
  65. symbolSize: 0.8
  66. }, {
  67. color: decalColor,
  68. dashArrayX: [1, 0],
  69. dashArrayY: [4, 3],
  70. rotation: -Math.PI / 4
  71. }, {
  72. color: decalColor,
  73. dashArrayX: [[6, 6], [0, 6, 6, 0]],
  74. dashArrayY: [6, 0]
  75. }, {
  76. color: decalColor,
  77. dashArrayX: [[1, 0], [1, 6]],
  78. dashArrayY: [1, 0, 6, 0],
  79. rotation: Math.PI / 4
  80. }, {
  81. color: decalColor,
  82. symbol: 'triangle',
  83. dashArrayX: [[9, 9], [0, 9, 9, 0]],
  84. dashArrayY: [7, 2],
  85. symbolSize: 0.75
  86. }]
  87. }
  88. },
  89. // If xAxis and yAxis declared, grid is created by default.
  90. // grid: {},
  91. textStyle: {
  92. // color: '#000',
  93. // decoration: 'none',
  94. // PENDING
  95. fontFamily: platform.match(/^Win/) ? 'Microsoft YaHei' : 'sans-serif',
  96. // fontFamily: 'Arial, Verdana, sans-serif',
  97. fontSize: 12,
  98. fontStyle: 'normal',
  99. fontWeight: 'normal'
  100. },
  101. // http://blogs.adobe.com/webplatform/2014/02/24/using-blend-modes-in-html-canvas/
  102. // https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation
  103. // Default is source-over
  104. blendMode: null,
  105. stateAnimation: {
  106. duration: 300,
  107. easing: 'cubicOut'
  108. },
  109. animation: 'auto',
  110. animationDuration: 1000,
  111. animationDurationUpdate: 500,
  112. animationEasing: 'cubicInOut',
  113. animationEasingUpdate: 'cubicInOut',
  114. animationThreshold: 2000,
  115. // Configuration for progressive/incremental rendering
  116. progressiveThreshold: 3000,
  117. progressive: 400,
  118. // Threshold of if use single hover layer to optimize.
  119. // It is recommended that `hoverLayerThreshold` is equivalent to or less than
  120. // `progressiveThreshold`, otherwise hover will cause restart of progressive,
  121. // which is unexpected.
  122. // see example <echarts/test/heatmap-large.html>.
  123. hoverLayerThreshold: 3000,
  124. // See: module:echarts/scale/Time
  125. useUTC: false
  126. };