3D分组柱状图.js 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835
  1. // 配置版本号
  2. const version = '2023091901'
  3. // 标题
  4. const title = '3D分组柱状图'
  5. // 用于标识,唯一,和文件夹名称一致
  6. const name = '3DFenZuZhuZhuangTu'
  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: 'switch',
  222. field: 'xAxis_axisLine_show',
  223. optionField: 'xAxis.axisLine.show',
  224. value: 0,
  225. active: 1,
  226. inactive: 0,
  227. tabName: 'custom',
  228. groupName: 'xAxis'
  229. },
  230. {
  231. label: '轴线颜色',
  232. type: 'colorPicker',
  233. field: 'xAxis_axisLine_lineStyle_color',
  234. optionField: 'xAxis.axisLine.lineStyle.color',
  235. // 是否多选
  236. multiple: false,
  237. value: '#333',
  238. tabName: 'custom',
  239. groupName: 'xAxis'
  240. },
  241. {
  242. label: '标签显示',
  243. type: 'switch',
  244. field: 'xAxis_axisLabel_show',
  245. optionField: 'xAxis.axisLabel.show',
  246. value: 1,
  247. active: 1,
  248. inactive: 0,
  249. tabName: 'custom',
  250. groupName: 'xAxis'
  251. },
  252. {
  253. label: '标签颜色',
  254. type: 'colorPicker',
  255. field: 'xAxis_axisLabel_textStyle_color',
  256. optionField: 'xAxis.axisLabel.textStyle.color',
  257. // 是否多选
  258. multiple: false,
  259. value: '#8C8C8C',
  260. tabName: 'custom',
  261. groupName: 'xAxis'
  262. },
  263. {
  264. label: '标签大小',
  265. type: 'inputNumber',
  266. field: 'xAxis_axisLabel_textStyle_fontSize',
  267. optionField: 'xAxis.axisLabel.textStyle.fontSize',
  268. value: 14,
  269. tabName: 'custom',
  270. groupName: 'xAxis'
  271. },
  272. {
  273. label: '标签距离',
  274. type: 'inputNumber',
  275. field: 'xAxis_axisLabel_margin',
  276. optionField: 'xAxis.axisLabel.margin',
  277. value: 30,
  278. tabName: 'custom',
  279. groupName: 'xAxis'
  280. },
  281. {
  282. label: '标题',
  283. type: 'input',
  284. field: 'xAxis_name',
  285. optionField: 'xAxis.name',
  286. value: '',
  287. tabName: 'custom',
  288. groupName: 'xAxis'
  289. },
  290. {
  291. label: '标题颜色',
  292. type: 'colorPicker',
  293. field: 'xAxis_nameTextStyle_color',
  294. optionField: 'xAxis.nameTextStyle.color',
  295. // 是否多选
  296. multiple: false,
  297. value: '#8C8C8C',
  298. tabName: 'custom',
  299. groupName: 'xAxis'
  300. },
  301. {
  302. label: '标题大小',
  303. type: 'inputNumber',
  304. field: 'xAxis_nameTextStyle_fontSize',
  305. optionField: 'xAxis.nameTextStyle.fontSize',
  306. value: 12,
  307. tabName: 'custom',
  308. groupName: 'xAxis'
  309. },
  310. {
  311. label: '标题位置',
  312. type: 'select',
  313. field: 'xAxis_nameLocation',
  314. optionField: 'xAxis.nameLocation',
  315. value: 'start',
  316. tabName: 'custom',
  317. options: [
  318. {
  319. label: '左',
  320. value: 'start'
  321. },
  322. {
  323. label: '中',
  324. value: 'center'
  325. },
  326. {
  327. label: '右',
  328. value: 'end'
  329. }],
  330. groupName: 'xAxis'
  331. },
  332. // Y轴 yAxis
  333. {
  334. label: '显示',
  335. type: 'switch',
  336. field: 'yAxis_show',
  337. optionField: 'yAxis.show',
  338. value: 1,
  339. active: 1,
  340. inactive: 0,
  341. tabName: 'custom',
  342. groupName: 'yAxis'
  343. },
  344. {
  345. label: '轴线显示',
  346. type: 'switch',
  347. field: 'yAxis_axisLine_show',
  348. optionField: 'yAxis.axisLine.show',
  349. value: 1,
  350. active: 1,
  351. inactive: 0,
  352. tabName: 'custom',
  353. groupName: 'yAxis'
  354. },
  355. {
  356. label: '轴线颜色',
  357. type: 'colorPicker',
  358. field: 'yAxis_axisLine_lineStyle_color',
  359. optionField: 'yAxis.axisLine.lineStyle.color',
  360. // 是否多选
  361. multiple: false,
  362. value: '#333',
  363. tabName: 'custom',
  364. groupName: 'yAxis'
  365. },
  366. {
  367. label: '刻度显示',
  368. type: 'switch',
  369. field: 'yAxis_axisTick_show',
  370. optionField: 'yAxis.axisTick.show',
  371. value: 1,
  372. active: 1,
  373. inactive: 0,
  374. tabName: 'custom',
  375. groupName: 'yAxis'
  376. },
  377. {
  378. label: '刻度颜色',
  379. type: 'colorPicker',
  380. field: 'yAxis_axisTick_lineStyle_color',
  381. optionField: 'yAxis.axisTick.lineStyle.color',
  382. // 是否多选
  383. multiple: false,
  384. value: '#fff',
  385. tabName: 'custom',
  386. groupName: 'yAxis'
  387. },
  388. {
  389. label: '刻度宽度',
  390. type: 'inputNumber',
  391. field: 'yAxis_axisTick_lineStyle_width',
  392. optionField: 'yAxis.axisTick.lineStyle.width',
  393. // 是否多选
  394. multiple: false,
  395. value: 1,
  396. tabName: 'custom',
  397. groupName: 'yAxis'
  398. },
  399. {
  400. label: '标签显示',
  401. type: 'switch',
  402. field: 'yAxis_axisLabel_show',
  403. optionField: 'yAxis.axisLabel.show',
  404. value: 1,
  405. active: 1,
  406. inactive: 0,
  407. tabName: 'custom',
  408. groupName: 'yAxis'
  409. },
  410. {
  411. label: '标签颜色',
  412. type: 'colorPicker',
  413. field: 'yAxis_axisLabel_textStyle_color',
  414. optionField: 'yAxis.axisLabel.textStyle.color',
  415. // 是否多选
  416. multiple: false,
  417. value: '#8C8C8C',
  418. tabName: 'custom',
  419. groupName: 'yAxis'
  420. },
  421. {
  422. label: '标签大小',
  423. type: 'inputNumber',
  424. field: 'yAxis_axisLabel_textStyle_fontSize',
  425. optionField: 'yAxis.axisLabel.textStyle.fontSize',
  426. value: 14,
  427. tabName: 'custom',
  428. groupName: 'yAxis'
  429. },
  430. {
  431. label: '标签距离',
  432. type: 'inputNumber',
  433. field: 'yAxis_axisLabel_margin',
  434. optionField: 'yAxis.axisLabel.margin',
  435. value: 10,
  436. tabName: 'custom',
  437. groupName: 'yAxis'
  438. },
  439. {
  440. label: '标题',
  441. type: 'input',
  442. field: 'yAxis_name',
  443. optionField: 'yAxis.name',
  444. value: '',
  445. tabName: 'custom',
  446. groupName: 'yAxis'
  447. },
  448. {
  449. label: '标题颜色',
  450. type: 'colorPicker',
  451. field: 'yAxis_nameTextStyle_color',
  452. optionField: 'yAxis.nameTextStyle.color',
  453. // 是否多选
  454. multiple: false,
  455. value: '#8C8C8C',
  456. tabName: 'custom',
  457. groupName: 'yAxis'
  458. },
  459. {
  460. label: '标题大小',
  461. type: 'inputNumber',
  462. field: 'yAxis_nameTextStyle_fontSize',
  463. optionField: 'yAxis.nameTextStyle.fontSize',
  464. value: 12,
  465. tabName: 'custom',
  466. groupName: 'yAxis'
  467. },
  468. {
  469. label: '标题位置',
  470. type: 'select',
  471. field: 'yAxis_nameLocation',
  472. optionField: 'yAxis.nameLocation',
  473. value: 'end',
  474. tabName: 'custom',
  475. options: [
  476. {
  477. label: '下',
  478. value: 'start'
  479. },
  480. {
  481. label: '中',
  482. value: 'center'
  483. },
  484. {
  485. label: '上',
  486. value: 'end'
  487. }],
  488. groupName: 'yAxis'
  489. }
  490. ]
  491. // 配置处理脚本
  492. const optionHandler = ''
  493. // 数据处理脚本
  494. const dataHandler = ''
  495. const xData = ['本年话务总量', '本年人工话务量', '每万客户呼入量', '每万客户呼入量'
  496. ]
  497. const yData1 = [300, 1230, 425, 1200]
  498. const yData2 = [400, 400, 400, 1200]
  499. const maxData1 = [1500, 1500, 1500, 1500]
  500. const maxData2 = [1500, 1500, 1500, 1500]
  501. const option = {
  502. animation: false,
  503. tooltip: {
  504. show: true
  505. },
  506. grid: {
  507. left: '15%',
  508. right: '5%',
  509. bottom: '15%',
  510. z: 100,
  511. containLabel: false,
  512. show: false
  513. },
  514. graphic: {
  515. type: 'group',
  516. bottom: '5%',
  517. left: '10%',
  518. z: 100,
  519. children: [
  520. {
  521. type: 'rect',
  522. left: 0,
  523. bottom: 0,
  524. shape: {
  525. width: 418 * 0.9,
  526. height: 10
  527. },
  528. style: {
  529. fill: '#3f4867'
  530. }
  531. },
  532. {
  533. type: 'polygon',
  534. left: 0,
  535. bottom: 10,
  536. shape: {
  537. // 左上、右上、右下、左下
  538. points: [[418 / 10, -320 / 6], [418 - 418 / 6, -320 / 6], [418 * 0.9, 0], [0, 0]]
  539. },
  540. style: {
  541. fill: '#303256'
  542. }
  543. }
  544. ]
  545. },
  546. xAxis: [
  547. {
  548. show: true,
  549. name: '',
  550. type: 'category',
  551. data: xData,
  552. nameTextStyle: {
  553. color: '',
  554. fontSize: 12
  555. },
  556. nameLocation: '',
  557. // 坐标轴刻度设置
  558. axisTick: {
  559. show: false,
  560. alignWithLabel: true
  561. },
  562. // 是否显示坐标轴的轴线
  563. axisLine: {
  564. show: false,
  565. lineStyle: {
  566. color: '#333'
  567. }
  568. },
  569. // 坐标轴刻度标签
  570. axisLabel: {
  571. show: true,
  572. textStyle: {
  573. fontSize: 10,
  574. color: 'rgb(40, 129, 170)'
  575. },
  576. margin: 30
  577. }
  578. },
  579. {
  580. show: false,
  581. type: 'category',
  582. axisLine: {
  583. show: false
  584. },
  585. axisTick: {
  586. show: false
  587. },
  588. axisLabel: {
  589. show: false
  590. },
  591. splitArea: {
  592. show: false
  593. },
  594. splitLine: {
  595. show: false
  596. },
  597. data: xData
  598. }
  599. ],
  600. yAxis: {
  601. name: '',
  602. nameTextStyle: {
  603. color: '',
  604. fontSize: 12
  605. },
  606. nameLocation: 'end',
  607. show: true,
  608. type: 'value',
  609. axisLabel: {
  610. show: true,
  611. textStyle: {
  612. color: '#fff',
  613. fontSize: 12
  614. },
  615. margin: 10
  616. },
  617. axisTick: {
  618. show: true,
  619. lineStyle: {
  620. color: '#fff',
  621. width: 1
  622. }
  623. },
  624. // 分隔线
  625. splitLine: {
  626. show: false, // yAxis.show配置为true时,该配置才有效
  627. lineStyle: {
  628. color: '#fff',
  629. width: 1
  630. }
  631. },
  632. // y轴轴线是否显示
  633. axisLine: {
  634. show: true,
  635. lineStyle: {
  636. color: '#fff'
  637. }
  638. }
  639. },
  640. seriesCustom: {
  641. barWidth: 30,
  642. // 顶部菱形颜色
  643. barTopColor: ['#2DB1EF', '#2DB1EF'],
  644. // barTopColor: '#2DB1EF',
  645. // 底部菱形颜色
  646. barBottomColor: ['#187dcb', '#187dcb'],
  647. // barBottomColor: '#187dcb',
  648. // 柱子颜色
  649. barColor: ['#1db0dd', '#1db0dd'],
  650. // barColor: '#1db0dd',
  651. // 阴影柱子颜色
  652. shadowColor: ['#041133', '#041133'],
  653. // shadowColor: '#041133',
  654. // 阴影柱子顶部颜色
  655. shadowTopColor: ['#142f5a', '#142f5a']
  656. // shadowTopColor: '#142f5a'
  657. },
  658. series: [
  659. {
  660. id: 'barTopColor1',
  661. type: 'pictorialBar',
  662. tooltip: { show: false },
  663. symbol: 'diamond',
  664. symbolSize: [30, 10],
  665. symbolOffset: ['-60%', -5],
  666. symbolPosition: 'end',
  667. z: 15,
  668. zlevel: 2,
  669. color: 'rgba(2, 175, 249,1)',
  670. data: yData1
  671. },
  672. {
  673. id: 'barTopColor2',
  674. type: 'pictorialBar',
  675. tooltip: { show: false },
  676. symbol: 'diamond',
  677. symbolSize: [30, 10],
  678. symbolOffset: ['60%', -5],
  679. symbolPosition: 'end',
  680. z: 15,
  681. zlevel: 2,
  682. color: 'rgba(45, 206, 177,0.9)',
  683. data: yData2
  684. },
  685. {
  686. id: ' barColor1',
  687. type: 'bar',
  688. barGap: '20%',
  689. barWidth: 30,
  690. color: '#115ba6',
  691. // itemStyle: {
  692. // normal: {
  693. // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  694. // {
  695. // offset: 0,
  696. // color: '#115ba6'
  697. // },
  698. // {
  699. // offset: 1,
  700. // color: '#1db0dd'
  701. // }
  702. // ]),
  703. // opacity: 0.8,
  704. // shadowColor: 'rgba(0, 0, 0, 0.5)', // 阴影颜色
  705. // shadowBlur: 0 // 阴影模糊值
  706. // }
  707. // },
  708. label: {
  709. show: true,
  710. position: 'inside',
  711. color: '#fff'
  712. },
  713. zlevel: 2,
  714. z: 12,
  715. data: yData1
  716. },
  717. {
  718. id: 'barColor2',
  719. type: 'bar',
  720. // barGap: '60%',
  721. barWidth: 30,
  722. color: '#73eccd',
  723. // itemStyle: {
  724. // normal: {
  725. // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  726. // {
  727. // offset: 0,
  728. // color: '#73eccd'
  729. // },
  730. // {
  731. // offset: 1,
  732. // color: '#4dd9e5'
  733. // }
  734. // ]),
  735. // opacity: 0.8,
  736. // shadowColor: 'rgba(0, 0, 0, 0.5)', // 阴影颜色
  737. // shadowBlur: 0 // 阴影模糊值
  738. // }
  739. // },
  740. label: {
  741. show: true,
  742. position: 'inside',
  743. color: '#fff'
  744. },
  745. zlevel: 2,
  746. z: 12,
  747. data: yData2
  748. },
  749. {
  750. id: 'barBottomColor1',
  751. type: 'pictorialBar',
  752. tooltip: { show: false },
  753. symbol: 'diamond',
  754. symbolSize: [30, 10],
  755. symbolOffset: ['-60%', 5],
  756. zlevel: 2,
  757. z: 15,
  758. color: 'rgb(2, 192, 255)',
  759. data: yData1
  760. },
  761. {
  762. id: 'barBottomColor2',
  763. type: 'pictorialBar',
  764. tooltip: { show: false },
  765. symbol: 'diamond',
  766. symbolSize: [30, 10],
  767. symbolOffset: ['60%', 5],
  768. zlevel: 2,
  769. z: 15,
  770. color: 'S',
  771. data: yData2
  772. },
  773. {
  774. id: 'shadowColor1',
  775. type: 'bar',
  776. tooltip: { show: false },
  777. xAxisIndex: 1,
  778. barGap: '20%',
  779. data: maxData1,
  780. zlevel: 1,
  781. barWidth: 30,
  782. color: 'rgba(9, 44, 76,.8)'
  783. },
  784. {
  785. id: 'shadowColor2',
  786. type: 'bar',
  787. tooltip: { show: false },
  788. xAxisIndex: 1,
  789. barGap: '20%',
  790. data: maxData2,
  791. zlevel: 1,
  792. barWidth: 30,
  793. color: 'rgba(16, 56, 70,.8)'
  794. },
  795. {
  796. id: 'shadowTopColor1',
  797. type: 'pictorialBar',
  798. tooltip: { show: false },
  799. symbol: 'diamond',
  800. symbolSize: [30, 10],
  801. symbolOffset: ['-60%', -5],
  802. symbolPosition: 'end',
  803. z: 15,
  804. color: 'rgb(15, 69, 133)',
  805. zlevel: 1,
  806. data: maxData1
  807. },
  808. {
  809. id: 'shadowTopColor2',
  810. type: 'pictorialBar',
  811. tooltip: { show: false },
  812. symbol: 'diamond',
  813. symbolSize: [30, 10],
  814. symbolOffset: ['60%', -5],
  815. symbolPosition: 'end',
  816. z: 15,
  817. color: 'rgb(30, 100, 112)',
  818. zlevel: 1,
  819. data: maxData2
  820. }
  821. ]
  822. }
  823. export default {
  824. version,
  825. title,
  826. name,
  827. option,
  828. setting,
  829. optionHandler,
  830. dataHandler
  831. }