globalDefault.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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 = '';
  41. // Navigator not exists in node
  42. if (typeof navigator !== 'undefined') {
  43. /* global navigator */
  44. platform = navigator.platform || '';
  45. }
  46. var decalColor = 'rgba(0, 0, 0, 0.2)';
  47. export default {
  48. darkMode: 'auto',
  49. // backgroundColor: 'rgba(0,0,0,0)',
  50. colorBy: 'series',
  51. color: ['#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc'],
  52. gradientColor: ['#f6efa6', '#d88273', '#bf444c'],
  53. aria: {
  54. decal: {
  55. decals: [{
  56. color: decalColor,
  57. dashArrayX: [1, 0],
  58. dashArrayY: [2, 5],
  59. symbolSize: 1,
  60. rotation: Math.PI / 6
  61. }, {
  62. color: decalColor,
  63. symbol: 'circle',
  64. dashArrayX: [[8, 8], [0, 8, 8, 0]],
  65. dashArrayY: [6, 0],
  66. symbolSize: 0.8
  67. }, {
  68. color: decalColor,
  69. dashArrayX: [1, 0],
  70. dashArrayY: [4, 3],
  71. rotation: -Math.PI / 4
  72. }, {
  73. color: decalColor,
  74. dashArrayX: [[6, 6], [0, 6, 6, 0]],
  75. dashArrayY: [6, 0]
  76. }, {
  77. color: decalColor,
  78. dashArrayX: [[1, 0], [1, 6]],
  79. dashArrayY: [1, 0, 6, 0],
  80. rotation: Math.PI / 4
  81. }, {
  82. color: decalColor,
  83. symbol: 'triangle',
  84. dashArrayX: [[9, 9], [0, 9, 9, 0]],
  85. dashArrayY: [7, 2],
  86. symbolSize: 0.75
  87. }]
  88. }
  89. },
  90. // If xAxis and yAxis declared, grid is created by default.
  91. // grid: {},
  92. textStyle: {
  93. // color: '#000',
  94. // decoration: 'none',
  95. // PENDING
  96. fontFamily: platform.match(/^Win/) ? 'Microsoft YaHei' : 'sans-serif',
  97. // fontFamily: 'Arial, Verdana, sans-serif',
  98. fontSize: 12,
  99. fontStyle: 'normal',
  100. fontWeight: 'normal'
  101. },
  102. // http://blogs.adobe.com/webplatform/2014/02/24/using-blend-modes-in-html-canvas/
  103. // https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation
  104. // Default is source-over
  105. blendMode: null,
  106. stateAnimation: {
  107. duration: 300,
  108. easing: 'cubicOut'
  109. },
  110. animation: 'auto',
  111. animationDuration: 1000,
  112. animationDurationUpdate: 500,
  113. animationEasing: 'cubicInOut',
  114. animationEasingUpdate: 'cubicInOut',
  115. animationThreshold: 2000,
  116. // Configuration for progressive/incremental rendering
  117. progressiveThreshold: 3000,
  118. progressive: 400,
  119. // Threshold of if use single hover layer to optimize.
  120. // It is recommended that `hoverLayerThreshold` is equivalent to or less than
  121. // `progressiveThreshold`, otherwise hover will cause restart of progressive,
  122. // which is unexpected.
  123. // see example <echarts/test/heatmap-large.html>.
  124. hoverLayerThreshold: 3000,
  125. // See: module:echarts/scale/Time
  126. useUTC: false
  127. };