dark.js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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 contrastColor = '#B9B8CE';
  41. var backgroundColor = '#100C2A';
  42. var axisCommon = function () {
  43. return {
  44. axisLine: {
  45. lineStyle: {
  46. color: contrastColor
  47. }
  48. },
  49. splitLine: {
  50. lineStyle: {
  51. color: '#484753'
  52. }
  53. },
  54. splitArea: {
  55. areaStyle: {
  56. color: ['rgba(255,255,255,0.02)', 'rgba(255,255,255,0.05)']
  57. }
  58. },
  59. minorSplitLine: {
  60. lineStyle: {
  61. color: '#20203B'
  62. }
  63. }
  64. };
  65. };
  66. var colorPalette = ['#4992ff', '#7cffb2', '#fddd60', '#ff6e76', '#58d9f9', '#05c091', '#ff8a45', '#8d48e3', '#dd79ff'];
  67. var theme = {
  68. darkMode: true,
  69. color: colorPalette,
  70. backgroundColor: backgroundColor,
  71. axisPointer: {
  72. lineStyle: {
  73. color: '#817f91'
  74. },
  75. crossStyle: {
  76. color: '#817f91'
  77. },
  78. label: {
  79. // TODO Contrast of label backgorundColor
  80. color: '#fff'
  81. }
  82. },
  83. legend: {
  84. textStyle: {
  85. color: contrastColor
  86. }
  87. },
  88. textStyle: {
  89. color: contrastColor
  90. },
  91. title: {
  92. textStyle: {
  93. color: '#EEF1FA'
  94. },
  95. subtextStyle: {
  96. color: '#B9B8CE'
  97. }
  98. },
  99. toolbox: {
  100. iconStyle: {
  101. borderColor: contrastColor
  102. }
  103. },
  104. dataZoom: {
  105. borderColor: '#71708A',
  106. textStyle: {
  107. color: contrastColor
  108. },
  109. brushStyle: {
  110. color: 'rgba(135,163,206,0.3)'
  111. },
  112. handleStyle: {
  113. color: '#353450',
  114. borderColor: '#C5CBE3'
  115. },
  116. moveHandleStyle: {
  117. color: '#B0B6C3',
  118. opacity: 0.3
  119. },
  120. fillerColor: 'rgba(135,163,206,0.2)',
  121. emphasis: {
  122. handleStyle: {
  123. borderColor: '#91B7F2',
  124. color: '#4D587D'
  125. },
  126. moveHandleStyle: {
  127. color: '#636D9A',
  128. opacity: 0.7
  129. }
  130. },
  131. dataBackground: {
  132. lineStyle: {
  133. color: '#71708A',
  134. width: 1
  135. },
  136. areaStyle: {
  137. color: '#71708A'
  138. }
  139. },
  140. selectedDataBackground: {
  141. lineStyle: {
  142. color: '#87A3CE'
  143. },
  144. areaStyle: {
  145. color: '#87A3CE'
  146. }
  147. }
  148. },
  149. visualMap: {
  150. textStyle: {
  151. color: contrastColor
  152. }
  153. },
  154. timeline: {
  155. lineStyle: {
  156. color: contrastColor
  157. },
  158. label: {
  159. color: contrastColor
  160. },
  161. controlStyle: {
  162. color: contrastColor,
  163. borderColor: contrastColor
  164. }
  165. },
  166. calendar: {
  167. itemStyle: {
  168. color: backgroundColor
  169. },
  170. dayLabel: {
  171. color: contrastColor
  172. },
  173. monthLabel: {
  174. color: contrastColor
  175. },
  176. yearLabel: {
  177. color: contrastColor
  178. }
  179. },
  180. timeAxis: axisCommon(),
  181. logAxis: axisCommon(),
  182. valueAxis: axisCommon(),
  183. categoryAxis: axisCommon(),
  184. line: {
  185. symbol: 'circle'
  186. },
  187. graph: {
  188. color: colorPalette
  189. },
  190. gauge: {
  191. title: {
  192. color: contrastColor
  193. },
  194. axisLine: {
  195. lineStyle: {
  196. color: [[1, 'rgba(207,212,219,0.2)']]
  197. }
  198. },
  199. axisLabel: {
  200. color: contrastColor
  201. },
  202. detail: {
  203. color: '#EEF1FA'
  204. }
  205. },
  206. candlestick: {
  207. itemStyle: {
  208. color: '#f64e56',
  209. color0: '#54ea92',
  210. borderColor: '#f64e56',
  211. borderColor0: '#54ea92'
  212. // borderColor: '#ca2824',
  213. // borderColor0: '#09a443'
  214. }
  215. }
  216. };
  217. theme.categoryAxis.splitLine.show = false;
  218. export default theme;