3D分组柱状图.js 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819
  1. // 配置版本号
  2. const version = '2023091901'
  3. // 标题
  4. const title = '3D分组柱状图'
  5. // 用于标识,唯一,和文件夹名称一致
  6. const name = '3D分组柱状图'
  7. // 右侧配置项
  8. const setting = [
  9. {
  10. label: '维度',
  11. type: 'select', // 设置组件类型
  12. field: 'xField', // 字段
  13. optionField: 'xField', // 对应options中的字段
  14. // 是否多选
  15. multiple: false,
  16. value: '',
  17. tabName: 'data'
  18. },
  19. {
  20. label: '指标',
  21. type: 'select', // 设置组件类型
  22. field: 'yField', // 字段
  23. optionField: 'yField', // 对应options中的字段
  24. // 是否多选
  25. multiple: false,
  26. value: '',
  27. tabName: 'data'
  28. },
  29. {
  30. label: '分组字段',
  31. type: 'select', // 设置组件类型
  32. field: 'seriesField', // 字段
  33. optionField: 'seriesField', // 对应options中的字段
  34. // 是否多选
  35. multiple: false,
  36. value: '',
  37. tabName: 'data'
  38. },
  39. {
  40. label: '柱子宽度',
  41. type: 'inputNumber', // 设置组件类型
  42. field: 'seriesCustom_barWidth', // 字段
  43. optionField: 'seriesCustom.barWidth', // 对应options中的字段
  44. value: 20,
  45. tabName: 'custom',
  46. groupName: 'graph'
  47. },
  48. {
  49. label: '柱子顶部颜色',
  50. // 设置组件类型
  51. type: 'colorSelect',
  52. // 字段
  53. field: 'seriesCustom_barTopColor',
  54. // 对应options中的字段
  55. optionField: 'seriesCustom.barTopColor',
  56. value: ['#0e4481', '#1e637b', '#5D7092', '#F6BD16', '#6F5EF9', '#6DC8EC', '#945FB9', '#FF9845', '#1E9493', '#FF99C3'],
  57. tabName: 'custom',
  58. groupName: 'graph'
  59. },
  60. {
  61. label: '柱子颜色',
  62. // 设置组件类型
  63. type: 'colorSelect',
  64. // 字段
  65. field: 'seriesCustom_barColor',
  66. // 对应options中的字段
  67. optionField: 'seriesCustom.barColor',
  68. value: ['#1370a7', '#4ebebe', '#3864ab', '#9c9c46', '#a6404b', '#ac582c', '#719c33', '#945FB9', '#FF9845', '#1E9493'],
  69. tabName: 'custom',
  70. groupName: 'graph'
  71. },
  72. {
  73. label: '柱子底部颜色',
  74. // 设置组件类型
  75. type: 'colorSelect',
  76. // 字段
  77. field: 'seriesCustom_barBottomColor',
  78. // 对应options中的字段
  79. optionField: 'seriesCustom.barBottomColor',
  80. value: ['#0998d9', '#2ec6ad', '#6F5EF9', '#6DC8EC', '#945FB9', '#FF9845', '#1E9493', '#FF99C3', '#5B8FF9', '#61DDAA'],
  81. tabName: 'custom',
  82. groupName: 'graph'
  83. },
  84. {
  85. label: '阴影柱子颜色',
  86. // 设置组件类型
  87. type: 'colorSelect',
  88. // 字段
  89. field: 'seriesCustom_shadowColor',
  90. // 对应options中的字段
  91. optionField: 'seriesCustom.shadowColor',
  92. value: ['#082442', '#0e2e3c', '#082442', '#0e2e3c', '#082442', '#0e2e3c', '#082442', '#0e2e3c', '#082442', '#0e2e3c'],
  93. tabName: 'custom',
  94. groupName: 'graph'
  95. },
  96. {
  97. label: '阴影柱子顶部颜色',
  98. // 设置组件类型
  99. type: 'colorSelect',
  100. // 字段
  101. field: 'seriesCustom_shadowTopColor',
  102. // 对应options中的字段
  103. optionField: 'seriesCustom.shadowTopColor',
  104. value: ['#0e4481', '#1e637b', '#5D7092', '#F6BD16', '#6F5EF9', '#6DC8EC', '#945FB9', '#FF9845', '#1E9493', '#FF99C3'],
  105. tabName: 'custom',
  106. groupName: 'graph'
  107. },
  108. {
  109. label: '底部阴影颜色',
  110. // 设置组件类型
  111. type: 'colorPicker',
  112. // 字段
  113. field: 'graphic_children_style_fill',
  114. // 对应options中的字段
  115. optionField: 'graphic.children.style.fill',
  116. value: '#3f4867',
  117. tabName: 'custom',
  118. groupName: 'graph'
  119. },
  120. {
  121. label: '数据标签',
  122. type: 'switch', // 设置组件类型
  123. field: 'series_barColor_label_show', // 字段
  124. optionField: 'series.barColor.label.show', // 对应options中的字段
  125. value: 0,
  126. active: 1,
  127. inactive: 0,
  128. tabName: 'custom',
  129. groupName: 'graph'
  130. },
  131. {
  132. label: '数据标签位置',
  133. type: 'select', // 设置组件类型
  134. field: 'series_barColor_label_position', // 字段
  135. optionField: 'series.barColor.label.position', // 对应options中的字段
  136. // 是否多选
  137. multiple: false,
  138. value: 'inside',
  139. tabName: 'custom',
  140. options: [
  141. {
  142. label: '顶部',
  143. value: 'top'
  144. },
  145. {
  146. label: '居中',
  147. value: 'inside'
  148. },
  149. {
  150. label: '底部',
  151. value: 'bottom'
  152. }
  153. ],
  154. groupName: 'graph'
  155. },
  156. {
  157. label: '数据标签颜色',
  158. type: 'colorPicker', // 设置组件类型
  159. field: 'series_barColor_label_color', // 字段
  160. optionField: 'series.barColor.label.color', // 对应options中的字段
  161. value: '#ffffff',
  162. tabName: 'custom',
  163. groupName: 'graph'
  164. },
  165. {
  166. label: '数据标签大小',
  167. // 设置组件类型
  168. type: 'inputNumber',
  169. // 字段
  170. field: 'series_barColor_label_fontSize',
  171. // 对应options中的字段
  172. optionField: 'series.barColor.label.fontSize',
  173. value: 12,
  174. tabName: 'custom',
  175. groupName: 'graph'
  176. },
  177. // 网格线
  178. {
  179. label: '分隔线',
  180. type: 'switch',
  181. field: 'yAxis_splitLine_show',
  182. optionField: 'yAxis.splitLine.show',
  183. value: 0,
  184. active: 1,
  185. inactive: 0,
  186. tabName: 'custom',
  187. groupName: 'grid'
  188. },
  189. {
  190. label: '宽度',
  191. type: 'inputNumber',
  192. field: 'yAxis_splitLine_lineStyle_width',
  193. optionField: 'yAxis.splitLine.lineStyle.width',
  194. value: 1,
  195. tabName: 'custom',
  196. groupName: 'grid'
  197. },
  198. {
  199. label: '颜色',
  200. type: 'colorPicker',
  201. field: 'yAxis_splitLine_lineStyle_color',
  202. optionField: 'yAxis.splitLine.lineStyle.color',
  203. value: '#fff',
  204. tabName: 'custom',
  205. groupName: 'grid'
  206. },
  207. // x轴 xAxis
  208. {
  209. label: '显示',
  210. type: 'switch',
  211. field: 'xAxis_show',
  212. optionField: 'xAxis.show',
  213. value: 0,
  214. active: 1,
  215. inactive: 0,
  216. tabName: 'custom',
  217. groupName: 'xAxis'
  218. },
  219. {
  220. label: '名称',
  221. type: 'input',
  222. field: 'xAxis_name',
  223. optionField: 'xAxis.name',
  224. value: '',
  225. tabName: 'custom',
  226. groupName: 'xAxis'
  227. },
  228. {
  229. label: '名称位置',
  230. type: 'select',
  231. field: 'xAxis_nameLocation',
  232. optionField: 'xAxis.nameLocation',
  233. value: 'start',
  234. tabName: 'custom',
  235. options: [
  236. {
  237. label: '左',
  238. value: 'start'
  239. },
  240. {
  241. label: '中',
  242. value: 'center'
  243. },
  244. {
  245. label: '右',
  246. value: 'end'
  247. }],
  248. groupName: 'xAxis'
  249. },
  250. {
  251. label: '名称字体大小',
  252. type: 'inputNumber',
  253. field: 'xAxis_nameTextStyle_fontSize',
  254. optionField: 'xAxis.nameTextStyle.fontSize',
  255. value: 12,
  256. tabName: 'custom',
  257. groupName: 'xAxis'
  258. },
  259. {
  260. label: '名称颜色',
  261. type: 'colorPicker',
  262. field: 'xAxis_nameTextStyle_color',
  263. optionField: 'xAxis.nameTextStyle.color',
  264. // 是否多选
  265. multiple: false,
  266. value: '#8C8C8C',
  267. tabName: 'custom',
  268. groupName: 'xAxis'
  269. },
  270. {
  271. label: '轴线显示',
  272. type: 'switch',
  273. field: 'xAxis_axisLine_show',
  274. optionField: 'xAxis.axisLine.show',
  275. value: 0,
  276. active: 1,
  277. inactive: 0,
  278. tabName: 'custom',
  279. groupName: 'xAxis'
  280. },
  281. {
  282. label: '轴线颜色',
  283. type: 'colorPicker',
  284. field: 'xAxis_axisLine_lineStyle_color',
  285. optionField: 'xAxis.axisLine.lineStyle.color',
  286. // 是否多选
  287. multiple: false,
  288. value: '#333',
  289. tabName: 'custom',
  290. groupName: 'xAxis'
  291. },
  292. {
  293. label: '轴线宽度',
  294. type: 'inputNumber',
  295. field: 'xAxis_axisLine_lineStyle_width',
  296. optionField: 'xAxis.axisLine.lineStyle.width',
  297. value: 1,
  298. tabName: 'custom',
  299. groupName: 'xAxis'
  300. },
  301. {
  302. label: '标签显示',
  303. type: 'switch',
  304. field: 'xAxis_axisLabel_show',
  305. optionField: 'xAxis.axisLabel.show',
  306. value: 1,
  307. active: 1,
  308. inactive: 0,
  309. tabName: 'custom',
  310. groupName: 'xAxis'
  311. },
  312. {
  313. label: '标签颜色',
  314. type: 'colorPicker',
  315. field: 'xAxis_axisLabel_textStyle_color',
  316. optionField: 'xAxis.axisLabel.textStyle.color',
  317. // 是否多选
  318. multiple: false,
  319. value: '#8C8C8C',
  320. tabName: 'custom',
  321. groupName: 'xAxis'
  322. },
  323. {
  324. label: '标签大小',
  325. type: 'inputNumber',
  326. field: 'xAxis_axisLabel_textStyle_fontSize',
  327. optionField: 'xAxis.axisLabel.textStyle.fontSize',
  328. value: 14,
  329. tabName: 'custom',
  330. groupName: 'xAxis'
  331. },
  332. {
  333. label: '标签距离',
  334. type: 'inputNumber',
  335. field: 'xAxis_axisLabel_margin',
  336. optionField: 'xAxis.axisLabel.margin',
  337. value: 30,
  338. tabName: 'custom',
  339. groupName: 'xAxis'
  340. },
  341. // Y轴 yAxis
  342. {
  343. label: '显示',
  344. type: 'switch',
  345. field: 'yAxis_show',
  346. optionField: 'yAxis.show',
  347. value: 1,
  348. active: 1,
  349. inactive: 0,
  350. tabName: 'custom',
  351. groupName: 'yAxis'
  352. },
  353. {
  354. label: '名称',
  355. type: 'input',
  356. field: 'yAxis_name',
  357. optionField: 'yAxis.name',
  358. value: '',
  359. tabName: 'custom',
  360. groupName: 'yAxis'
  361. },
  362. {
  363. label: '名称位置',
  364. type: 'select',
  365. field: 'yAxis_nameLocation',
  366. optionField: 'yAxis.nameLocation',
  367. value: 'end',
  368. tabName: 'custom',
  369. options: [
  370. {
  371. label: '下',
  372. value: 'start'
  373. },
  374. {
  375. label: '中',
  376. value: 'center'
  377. },
  378. {
  379. label: '上',
  380. value: 'end'
  381. }],
  382. groupName: 'yAxis'
  383. },
  384. {
  385. label: '名称字体大小',
  386. type: 'inputNumber',
  387. field: 'yAxis_nameTextStyle_fontSize',
  388. optionField: 'yAxis.nameTextStyle.fontSize',
  389. value: 12,
  390. tabName: 'custom',
  391. groupName: 'yAxis'
  392. },
  393. {
  394. label: '名称颜色',
  395. type: 'colorPicker',
  396. field: 'yAxis_nameTextStyle_color',
  397. optionField: 'yAxis.nameTextStyle.color',
  398. // 是否多选
  399. multiple: false,
  400. value: '#8C8C8C',
  401. tabName: 'custom',
  402. groupName: 'yAxis'
  403. },
  404. {
  405. label: '轴线显示',
  406. type: 'switch',
  407. field: 'yAxis_axisLine_show',
  408. optionField: 'yAxis.axisLine.show',
  409. value: 1,
  410. active: 1,
  411. inactive: 0,
  412. tabName: 'custom',
  413. groupName: 'yAxis'
  414. },
  415. {
  416. label: '轴线颜色',
  417. type: 'colorPicker',
  418. field: 'yAxis_axisLine_lineStyle_color',
  419. optionField: 'yAxis.axisLine.lineStyle.color',
  420. // 是否多选
  421. multiple: false,
  422. value: '#333',
  423. tabName: 'custom',
  424. groupName: 'yAxis'
  425. },
  426. {
  427. label: '轴线宽度',
  428. type: 'inputNumber',
  429. field: 'yAxis_axisLine_lineStyle_width',
  430. optionField: 'yAxis.axisLine.lineStyle.width',
  431. value: 1,
  432. tabName: 'custom',
  433. groupName: 'yAxis'
  434. },
  435. {
  436. label: '标签显示',
  437. type: 'switch',
  438. field: 'yAxis_axisLabel_show',
  439. optionField: 'yAxis.axisLabel.show',
  440. value: 1,
  441. active: 1,
  442. inactive: 0,
  443. tabName: 'custom',
  444. groupName: 'yAxis'
  445. },
  446. {
  447. label: '标签颜色',
  448. type: 'colorPicker',
  449. field: 'yAxis_axisLabel_textStyle_color',
  450. optionField: 'yAxis.axisLabel.textStyle.color',
  451. // 是否多选
  452. multiple: false,
  453. value: '#8C8C8C',
  454. tabName: 'custom',
  455. groupName: 'yAxis'
  456. },
  457. {
  458. label: '标签大小',
  459. type: 'inputNumber',
  460. field: 'yAxis_axisLabel_textStyle_fontSize',
  461. optionField: 'yAxis.axisLabel.textStyle.fontSize',
  462. value: 14,
  463. tabName: 'custom',
  464. groupName: 'yAxis'
  465. },
  466. {
  467. label: '标签距离',
  468. type: 'inputNumber',
  469. field: 'yAxis_axisLabel_margin',
  470. optionField: 'yAxis.axisLabel.margin',
  471. value: 10,
  472. tabName: 'custom',
  473. groupName: 'yAxis'
  474. },
  475. {
  476. label: '刻度显示',
  477. type: 'switch',
  478. field: 'yAxis_axisTick_show',
  479. optionField: 'yAxis.axisTick.show',
  480. value: 1,
  481. active: 1,
  482. inactive: 0,
  483. tabName: 'custom',
  484. groupName: 'yAxis'
  485. },
  486. {
  487. label: '刻度颜色',
  488. type: 'colorPicker',
  489. field: 'yAxis_axisTick_lineStyle_color',
  490. optionField: 'yAxis.axisTick.lineStyle.color',
  491. // 是否多选
  492. multiple: false,
  493. value: '#fff',
  494. tabName: 'custom',
  495. groupName: 'yAxis'
  496. },
  497. {
  498. label: '刻度长度',
  499. type: 'inputNumber',
  500. field: 'yAxis_axisTick_length',
  501. optionField: 'yAxis.axisTick.length',
  502. // 是否多选
  503. multiple: false,
  504. value: 1,
  505. tabName: 'custom',
  506. groupName: 'yAxis'
  507. }
  508. ]
  509. // 配置处理脚本
  510. const optionHandler = ''
  511. // 数据处理脚本
  512. const dataHandler = ''
  513. const xData = ['本年话务总量', '本年人工话务量', '每万客户呼入量', '每万客户呼入量'
  514. ]
  515. const yData1 = [300, 1230, 425, 1200]
  516. const yData2 = [400, 400, 400, 1200]
  517. const maxData1 = [1500, 1500, 1500, 1500]
  518. const maxData2 = [1500, 1500, 1500, 1500]
  519. const option = {
  520. animation: false,
  521. tooltip: {
  522. show: true
  523. },
  524. grid: {
  525. left: '15%',
  526. right: '5%',
  527. bottom: '15%',
  528. z: 100,
  529. containLabel: false,
  530. show: false
  531. },
  532. graphic: {
  533. type: 'group',
  534. bottom: '5%',
  535. left: '10%',
  536. z: 100,
  537. children: [
  538. {
  539. type: 'rect',
  540. left: 0,
  541. bottom: 0,
  542. shape: {
  543. width: 418 * 0.9,
  544. height: 10
  545. },
  546. style: {
  547. fill: '#3f4867'
  548. }
  549. },
  550. {
  551. type: 'polygon',
  552. left: 0,
  553. bottom: 10,
  554. shape: {
  555. // 左上、右上、右下、左下
  556. points: [[418 / 10, -320 / 6], [418 - 418 / 6, -320 / 6], [418 * 0.9, 0], [0, 0]]
  557. },
  558. style: {
  559. fill: '#303256'
  560. }
  561. }
  562. ]
  563. },
  564. xAxis: [
  565. {
  566. show: true,
  567. name: '',
  568. type: 'category',
  569. data: xData,
  570. nameTextStyle: {
  571. color: '',
  572. fontSize: 12
  573. },
  574. nameLocation: '',
  575. // 坐标轴刻度设置
  576. axisTick: {
  577. show: false,
  578. alignWithLabel: true
  579. },
  580. // 是否显示坐标轴的轴线
  581. axisLine: {
  582. show: false,
  583. lineStyle: {
  584. color: '#333'
  585. }
  586. },
  587. // 坐标轴刻度标签
  588. axisLabel: {
  589. show: true,
  590. textStyle: {
  591. fontSize: 10,
  592. color: 'rgb(40, 129, 170)'
  593. },
  594. margin: 30
  595. }
  596. },
  597. {
  598. show: false,
  599. type: 'category',
  600. axisLine: {
  601. show: false
  602. },
  603. axisTick: {
  604. show: false
  605. },
  606. axisLabel: {
  607. show: false
  608. },
  609. splitArea: {
  610. show: false
  611. },
  612. splitLine: {
  613. show: false
  614. },
  615. data: xData
  616. }
  617. ],
  618. yAxis: {
  619. name: '',
  620. nameTextStyle: {
  621. color: '',
  622. fontSize: 12
  623. },
  624. nameLocation: 'end',
  625. show: true,
  626. type: 'value',
  627. axisLabel: {
  628. show: true,
  629. textStyle: {
  630. color: '#fff',
  631. fontSize: 12
  632. },
  633. margin: 10
  634. },
  635. axisTick: {
  636. show: true,
  637. lineStyle: {
  638. color: '#fff',
  639. width: 1
  640. }
  641. },
  642. // 分隔线
  643. splitLine: {
  644. show: false, // yAxis.show配置为true时,该配置才有效
  645. lineStyle: {
  646. color: '#fff',
  647. width: 1
  648. }
  649. },
  650. // y轴轴线是否显示
  651. axisLine: {
  652. show: true,
  653. lineStyle: {
  654. color: '#fff'
  655. }
  656. }
  657. },
  658. seriesCustom: {
  659. barWidth: 30,
  660. // 顶部菱形颜色
  661. barTopColor: ['#2DB1EF', '#2DB1EF'],
  662. // barTopColor: '#2DB1EF',
  663. // 底部菱形颜色
  664. barBottomColor: ['#187dcb', '#187dcb'],
  665. // barBottomColor: '#187dcb',
  666. // 柱子颜色
  667. barColor: ['#1db0dd', '#1db0dd'],
  668. // barColor: '#1db0dd',
  669. // 阴影柱子颜色
  670. shadowColor: ['#041133', '#041133'],
  671. // shadowColor: '#041133',
  672. // 阴影柱子顶部颜色
  673. shadowTopColor: ['#142f5a', '#142f5a']
  674. // shadowTopColor: '#142f5a'
  675. },
  676. series: [
  677. {
  678. id: 'barTopColor1',
  679. type: 'pictorialBar',
  680. tooltip: { show: false },
  681. symbol: 'diamond',
  682. symbolSize: [30, 10],
  683. symbolOffset: ['-60%', -5],
  684. symbolPosition: 'end',
  685. z: 15,
  686. zlevel: 2,
  687. color: 'rgba(2, 175, 249,1)',
  688. data: yData1
  689. },
  690. {
  691. id: 'barTopColor2',
  692. type: 'pictorialBar',
  693. tooltip: { show: false },
  694. symbol: 'diamond',
  695. symbolSize: [30, 10],
  696. symbolOffset: ['60%', -5],
  697. symbolPosition: 'end',
  698. z: 15,
  699. zlevel: 2,
  700. color: 'rgba(45, 206, 177,0.9)',
  701. data: yData2
  702. },
  703. {
  704. id: ' barColor1',
  705. type: 'bar',
  706. barGap: '20%',
  707. barWidth: 30,
  708. color: '#115ba6',
  709. label: {
  710. show: true,
  711. position: 'inside',
  712. color: '#fff'
  713. },
  714. zlevel: 2,
  715. z: 12,
  716. data: yData1
  717. },
  718. {
  719. id: 'barColor2',
  720. type: 'bar',
  721. // barGap: '60%',
  722. barWidth: 30,
  723. color: '#73eccd',
  724. label: {
  725. show: true,
  726. position: 'inside',
  727. color: '#fff'
  728. },
  729. zlevel: 2,
  730. z: 12,
  731. data: yData2
  732. },
  733. {
  734. id: 'barBottomColor1',
  735. type: 'pictorialBar',
  736. tooltip: { show: false },
  737. symbol: 'diamond',
  738. symbolSize: [30, 10],
  739. symbolOffset: ['-60%', 5],
  740. zlevel: 2,
  741. z: 15,
  742. color: 'rgb(2, 192, 255)',
  743. data: yData1
  744. },
  745. {
  746. id: 'barBottomColor2',
  747. type: 'pictorialBar',
  748. tooltip: { show: false },
  749. symbol: 'diamond',
  750. symbolSize: [30, 10],
  751. symbolOffset: ['60%', 5],
  752. zlevel: 2,
  753. z: 15,
  754. color: 'S',
  755. data: yData2
  756. },
  757. {
  758. id: 'shadowColor1',
  759. type: 'bar',
  760. tooltip: { show: false },
  761. xAxisIndex: 1,
  762. barGap: '20%',
  763. data: maxData1,
  764. zlevel: 1,
  765. barWidth: 30,
  766. color: 'rgba(9, 44, 76,.8)'
  767. },
  768. {
  769. id: 'shadowColor2',
  770. type: 'bar',
  771. tooltip: { show: false },
  772. xAxisIndex: 1,
  773. barGap: '20%',
  774. data: maxData2,
  775. zlevel: 1,
  776. barWidth: 30,
  777. color: 'rgba(16, 56, 70,.8)'
  778. },
  779. {
  780. id: 'shadowTopColor1',
  781. type: 'pictorialBar',
  782. tooltip: { show: false },
  783. symbol: 'diamond',
  784. symbolSize: [30, 10],
  785. symbolOffset: ['-60%', -5],
  786. symbolPosition: 'end',
  787. z: 15,
  788. color: 'rgb(15, 69, 133)',
  789. zlevel: 1,
  790. data: maxData1
  791. },
  792. {
  793. id: 'shadowTopColor2',
  794. type: 'pictorialBar',
  795. tooltip: { show: false },
  796. symbol: 'diamond',
  797. symbolSize: [30, 10],
  798. symbolOffset: ['60%', -5],
  799. symbolPosition: 'end',
  800. z: 15,
  801. color: 'rgb(30, 100, 112)',
  802. zlevel: 1,
  803. data: maxData2
  804. }
  805. ]
  806. }
  807. export default {
  808. version,
  809. title,
  810. name,
  811. option,
  812. setting,
  813. optionHandler,
  814. dataHandler
  815. }