地铁二期项目正式开始

macarons2.js 9.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. define({
  2. // 全图默认背景
  3. // backgroundColor: 'rgba(0,0,0,0)',
  4. // 默认色板
  5. color: ['#ed9678','#e7dac9','#cb8e85','#f3f39d','#c8e49c',
  6. '#f16d7a','#f3d999','#d3758f','#dcc392','#2e4783',
  7. '#82b6e9','#ff6347','#a092f1','#0a915d','#eaf889',
  8. '#6699FF','#ff6666','#3cb371','#d5b158','#38b6b6'],
  9. // 值域
  10. dataRange: {
  11. color:['#cb8e85','#e7dac9'],//颜色
  12. //text:['高','低'], // 文本,默认为数值文本
  13. textStyle: {
  14. color: '#333' // 值域文字颜色
  15. }
  16. },
  17. // 柱形图默认参数
  18. bar: {
  19. barMinHeight: 0, // 最小高度改为0
  20. // barWidth: null, // 默认自适应
  21. barGap: '30%', // 柱间距离,默认为柱形宽度的30%,可设固定值
  22. barCategoryGap : '20%', // 类目间柱形距离,默认为类目间距的20%,可设固定值
  23. itemStyle: {
  24. normal: {
  25. // color: '各异',
  26. barBorderColor: '#fff', // 柱条边线
  27. barBorderRadius: 0, // 柱条边线圆角,单位px,默认为0
  28. barBorderWidth: 1, // 柱条边线线宽,单位px,默认为1
  29. label: {
  30. show: false
  31. // position: 默认自适应,水平布局为'top',垂直布局为'right',可选为
  32. // 'inside'|'left'|'right'|'top'|'bottom'
  33. // textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
  34. }
  35. },
  36. emphasis: {
  37. // color: '各异',
  38. barBorderColor: 'rgba(0,0,0,0)', // 柱条边线
  39. barBorderRadius: 0, // 柱条边线圆角,单位px,默认为0
  40. barBorderWidth: 1, // 柱条边线线宽,单位px,默认为1
  41. label: {
  42. show: false
  43. // position: 默认自适应,水平布局为'top',垂直布局为'right',可选为
  44. // 'inside'|'left'|'right'|'top'|'bottom'
  45. // textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
  46. }
  47. }
  48. }
  49. },
  50. // 折线图默认参数
  51. line: {
  52. itemStyle: {
  53. normal: {
  54. // color: 各异,
  55. label: {
  56. show: false
  57. // position: 默认自适应,水平布局为'top',垂直布局为'right',可选为
  58. // 'inside'|'left'|'right'|'top'|'bottom'
  59. // textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
  60. },
  61. lineStyle: {
  62. width: 2,
  63. type: 'solid',
  64. shadowColor : 'rgba(0,0,0,0)', //默认透明
  65. shadowBlur: 5,
  66. shadowOffsetX: 3,
  67. shadowOffsetY: 3
  68. }
  69. },
  70. emphasis: {
  71. // color: 各异,
  72. label: {
  73. show: false
  74. // position: 默认自适应,水平布局为'top',垂直布局为'right',可选为
  75. // 'inside'|'left'|'right'|'top'|'bottom'
  76. // textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
  77. }
  78. }
  79. },
  80. //smooth : false,
  81. //symbol: null, // 拐点图形类型
  82. symbolSize: 2, // 拐点图形大小
  83. //symbolRotate : null, // 拐点图形旋转控制
  84. showAllSymbol: false // 标志图形默认只有主轴显示(随主轴标签间隔隐藏策略)
  85. },
  86. // K线图默认参数
  87. k: {
  88. // barWidth : null // 默认自适应
  89. // barMaxWidth : null // 默认自适应
  90. itemStyle: {
  91. normal: {
  92. color: '#fe9778', // 阳线填充颜色
  93. color0: '#e7dac9', // 阴线填充颜色
  94. lineStyle: {
  95. width: 1,
  96. color: '#f78766', // 阳线边框颜色
  97. color0: '#f1ccb8' // 阴线边框颜色
  98. }
  99. },
  100. emphasis: {
  101. // color: 各异,
  102. // color0: 各异
  103. }
  104. }
  105. },
  106. // 饼图默认参数
  107. pie: {
  108. center : ['50%', '50%'], // 默认全局居中
  109. radius : [0, '75%'],
  110. clockWise : false, // 默认逆时针
  111. startAngle: 90,
  112. minAngle: 0, // 最小角度改为0
  113. selectedOffset: 10, // 选中是扇区偏移量
  114. itemStyle: {
  115. normal: {
  116. // color: 各异,
  117. borderColor: '#fff',
  118. borderWidth: 1,
  119. label: {
  120. show: true,
  121. position: 'outer',
  122. textStyle: {color: '#1b1b1b'},
  123. lineStyle: {color: '#1b1b1b'}
  124. // textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
  125. },
  126. labelLine: {
  127. show: true,
  128. length: 20,
  129. lineStyle: {
  130. // color: 各异,
  131. width: 1,
  132. type: 'solid'
  133. }
  134. }
  135. }
  136. }
  137. },
  138. map: {
  139. mapType: 'china', // 各省的mapType暂时都用中文
  140. mapLocation: {
  141. x : 'center',
  142. y : 'center'
  143. // width // 自适应
  144. // height // 自适应
  145. },
  146. showLegendSymbol : true, // 显示图例颜色标识(系列标识的小圆点),存在legend时生效
  147. itemStyle: {
  148. normal: {
  149. // color: 各异,
  150. borderColor: '#fff',
  151. borderWidth: 1,
  152. areaStyle: {
  153. color: '#ccc'//rgba(135,206,250,0.8)
  154. },
  155. label: {
  156. show: false,
  157. textStyle: {
  158. color: 'rgba(139,69,19,1)'
  159. }
  160. }
  161. },
  162. emphasis: { // 也是选中样式
  163. // color: 各异,
  164. borderColor: 'rgba(0,0,0,0)',
  165. borderWidth: 1,
  166. areaStyle: {
  167. color: '#f3f39d'
  168. },
  169. label: {
  170. show: false,
  171. textStyle: {
  172. color: 'rgba(139,69,19,1)'
  173. }
  174. }
  175. }
  176. }
  177. },
  178. force : {
  179. itemStyle: {
  180. normal: {
  181. // color: 各异,
  182. label: {
  183. show: false
  184. // textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
  185. },
  186. nodeStyle : {
  187. brushType : 'both',
  188. strokeColor : '#a17e6e'
  189. },
  190. linkStyle : {
  191. strokeColor : '#a17e6e'
  192. }
  193. },
  194. emphasis: {
  195. // color: 各异,
  196. label: {
  197. show: false
  198. // textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
  199. },
  200. nodeStyle : {},
  201. linkStyle : {}
  202. }
  203. }
  204. },
  205. gauge : {
  206. axisLine: { // 坐标轴线
  207. show: true, // 默认显示,属性show控制显示与否
  208. lineStyle: { // 属性lineStyle控制线条样式
  209. color: [[0.2, '#ed9678'],[0.8, '#e7dac9'],[1, '#cb8e85']],
  210. width: 8
  211. }
  212. },
  213. axisTick: { // 坐标轴小标记
  214. splitNumber: 10, // 每份split细分多少段
  215. length :12, // 属性length控制线长
  216. lineStyle: { // 属性lineStyle控制线条样式
  217. color: 'auto'
  218. }
  219. },
  220. axisLabel: { // 坐标轴文本标签,详见axis.axisLabel
  221. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  222. color: 'auto'
  223. }
  224. },
  225. splitLine: { // 分隔线
  226. length : 18, // 属性length控制线长
  227. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  228. color: 'auto'
  229. }
  230. },
  231. pointer : {
  232. length : '90%',
  233. color : 'auto'
  234. },
  235. title : {
  236. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  237. color: '#333'
  238. }
  239. },
  240. detail : {
  241. textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  242. color: 'auto'
  243. }
  244. }
  245. }
  246. });