You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

870 lines
19 KiB

  1. /*
  2. * uCharts®
  3. * 高性能跨平台图表库,支持H5、APP、小程序(微信/支付宝/百度/头条/QQ/360)、Vue、Taro等支持canvas的框架平台
  4. * Copyright (c) 2021 QIUN®秋云 https://www.ucharts.cn All rights reserved.
  5. * Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  6. * 复制使用请保留本段注释,感谢支持开源!
  7. *
  8. * uCharts®官方网站
  9. * https://www.uCharts.cn
  10. *
  11. * 开源地址:
  12. * https://gitee.com/uCharts/uCharts
  13. *
  14. * uni-app插件市场地址:
  15. * http://ext.dcloud.net.cn/plugin?id=271
  16. *
  17. */
  18. // 主题颜色配置:如每个图表类型需要不同主题,请在对应图表类型上更改color属性
  19. const color = ['#1890FF', '#91CB74', '#FAC858', '#EE6666', '#73C0DE', '#3CA272', '#FC8452', '#9A60B4', '#ea7ccc'];
  20. //事件转换函数,主要用作格式化x轴为时间轴,根据需求自行修改
  21. const formatDateTime = (timeStamp, returnType)=>{
  22. var date = new Date();
  23. date.setTime(timeStamp * 1000);
  24. var y = date.getFullYear();
  25. var m = date.getMonth() + 1;
  26. m = m < 10 ? ('0' + m) : m;
  27. var d = date.getDate();
  28. d = d < 10 ? ('0' + d) : d;
  29. var h = date.getHours();
  30. h = h < 10 ? ('0' + h) : h;
  31. var minute = date.getMinutes();
  32. var second = date.getSeconds();
  33. minute = minute < 10 ? ('0' + minute) : minute;
  34. second = second < 10 ? ('0' + second) : second;
  35. if(returnType == 'full'){return y + '-' + m + '-' + d + ' '+ h +':' + minute + ':' + second;}
  36. if(returnType == 'y-m-d'){return y + '-' + m + '-' + d;}
  37. if(returnType == 'h:m'){return h +':' + minute;}
  38. if(returnType == 'h:m:s'){return h +':' + minute +':' + second;}
  39. return [y, m, d, h, minute, second];
  40. }
  41. module.exports = {
  42. //demotype为自定义图表类型,一般不需要自定义图表类型,只需要改根节点上对应的类型即可
  43. "type":["pie","ring","rose","word","funnel","map","arcbar","line","column","area","radar","gauge","candle","mix","tline","tarea","scatter","bubble","demotype"],
  44. "range":["饼状图","圆环图","玫瑰图","词云图","漏斗图","地图","圆弧进度条","折线图","柱状图","区域图","雷达图","仪表盘","K线图","混合图","时间轴折线","时间轴区域","散点图","气泡图","自定义类型"],
  45. //增加自定义图表类型,如果需要categories,请在这里加入您的图表类型,例如最后的"demotype"
  46. //自定义类型时需要注意"tline","tarea","scatter","bubble"等时间轴(矢量x轴)类图表,没有categories,不需要加入categories
  47. "categories":["line","column","area","radar","gauge","candle","mix","demotype"],
  48. //instance为实例变量承载属性,不要删除
  49. "instance":{},
  50. //option为opts及eopts承载属性,不要删除
  51. "option":{},
  52. //下面是自定义format配置,因除H5端外的其他端无法通过props传递函数,只能通过此属性对应下标的方式来替换
  53. "formatter":{
  54. "yAxisDemo1":function(val){return val+'元'},
  55. "yAxisDemo2":function(val){return val.toFixed(2)},
  56. "xAxisDemo1":function(val){return val+'年'},
  57. "xAxisDemo2":function(val){return formatDateTime(val,'h:m')},
  58. "seriesDemo1":function(val){return val+'元'},
  59. "tooltipDemo1":function(item, category, index, opts){
  60. if(index==0){
  61. return '随便用'+item.data+'年'
  62. }else{
  63. return '其他我没改'+item.data+'天'
  64. }
  65. },
  66. "pieDemo":function(val, index, series){
  67. if(index !== undefined){
  68. return series[index].name+':'+series[index].data+'元'
  69. }
  70. },
  71. },
  72. //这里演示了自定义您的图表类型的option,可以随意命名,之后在组件上 type="demotype" 后,组件会调用这个花括号里的option,如果组件上还存在opts参数,会将demotype与opts中option合并后渲染图表。
  73. "demotype":{
  74. //我这里把曲线图当做了自定义图表类型,您可以根据需要随意指定类型或配置
  75. "type": "line",
  76. "color": color,
  77. "padding": [15,10,0,15],
  78. "xAxis": {
  79. "disableGrid": true,
  80. },
  81. "yAxis": {
  82. "gridType": "dash",
  83. "dashLength": 2,
  84. },
  85. "legend": {
  86. },
  87. "extra": {
  88. "line": {
  89. "type": "curve",
  90. "width": 2
  91. },
  92. }
  93. },
  94. //下面是自定义配置,请添加项目所需的通用配置
  95. "pie":{
  96. "type": "pie",
  97. "color": color,
  98. "padding": [5,5,5,5],
  99. "extra": {
  100. "pie": {
  101. "activeOpacity": 0.5,
  102. "activeRadius": 10,
  103. "offsetAngle": 0,
  104. "labelWidth": 15,
  105. "border": true,
  106. "borderWidth": 3,
  107. "borderColor": "#FFFFFF"
  108. },
  109. }
  110. },
  111. "ring":{
  112. "type": "ring",
  113. "padding": [15,5,5,5],
  114. "rotate": false,
  115. "dataLabel": true,
  116. "color":[ '#66AFF5', '#FABD2B', '#6F8EDC', '#FFCF8F', '#F98120', '#1CC99E', '#9474FB',
  117. '#657292','#7A6A99','#BF5D52','#EE6666','#77B7E4','#E6A065','#9D5139','#C1AA88','#F87F7A',
  118. '#F6CF74','#7F5506','#88BB9B','#6E99AA','#5789D0'
  119. ],
  120. "legend": {
  121. "show": true,
  122. "position": "bottom",
  123. "float": "center",
  124. "padding": 5,
  125. "margin": 5,
  126. "backgroundColor": "rgba(0,0,0,0)",
  127. "borderColor": "rgba(0,0,0,0)",
  128. "borderWidth": 0,
  129. "fontSize": 10,
  130. "fontColor": "#666666",
  131. "lineHeight": 25,
  132. "hiddenColor": "#CECECE",
  133. "itemGap": 6
  134. },
  135. "title": {
  136. "name": "",
  137. "fontSize": 15,
  138. "color": "#666666"
  139. },
  140. "subtitle": {
  141. "name": "70",
  142. "fontSize": 25,
  143. "color": "#7cb5ec"
  144. },
  145. "extra": {
  146. "ring": {
  147. "ringWidth":30,
  148. "activeOpacity": 0.5,
  149. "activeRadius": 10,
  150. "offsetAngle": 0,
  151. "labelWidth": 15,
  152. "border": true,
  153. "borderWidth": 3,
  154. "borderColor": "#FFFFFF"
  155. },
  156. },
  157. },
  158. "rose":{
  159. "type": "rose",
  160. "color": color,
  161. "padding": [5,5,5,5],
  162. "legend": {
  163. "show": true,
  164. "position": "left",
  165. "lineHeight": 25,
  166. },
  167. "extra": {
  168. "rose": {
  169. "type": "area",
  170. "minRadius": 50,
  171. "activeOpacity": 0.5,
  172. "activeRadius": 10,
  173. "offsetAngle": 0,
  174. "labelWidth": 15,
  175. "border": false,
  176. "borderWidth": 2,
  177. "borderColor": "#FFFFFF"
  178. },
  179. }
  180. },
  181. "word":{
  182. "type": "word",
  183. "color": color,
  184. "extra": {
  185. "word": {
  186. "type": "normal",
  187. "autoColors": false
  188. }
  189. }
  190. },
  191. "funnel":{
  192. "type": "funnel",
  193. "color": color,
  194. "padding": [15,15,0,15],
  195. "extra": {
  196. "funnel": {
  197. "activeOpacity": 0.3,
  198. "activeWidth": 10,
  199. "border": true,
  200. "borderWidth": 2,
  201. "borderColor": "#FFFFFF",
  202. "fillOpacity": 1,
  203. "labelAlign": "right"
  204. },
  205. }
  206. },
  207. "map":{
  208. "type": "map",
  209. "color": color,
  210. "padding": [0,0,0,0],
  211. "dataLabel": true,
  212. "extra": {
  213. "map": {
  214. "border": true,
  215. "borderWidth": 1,
  216. "borderColor": "#666666",
  217. "fillOpacity": 0.6,
  218. "activeBorderColor": "#F04864",
  219. "activeFillColor": "#FACC14",
  220. "activeFillOpacity": 1
  221. },
  222. }
  223. },
  224. "arcbar":{
  225. "type": "arcbar",
  226. "color": color,
  227. "title": {
  228. "name": "百分比",
  229. "fontSize": 25,
  230. "color": "#00FF00"
  231. },
  232. "subtitle": {
  233. "name": "默认标题",
  234. "fontSize": 15,
  235. "color": "#666666"
  236. },
  237. "extra": {
  238. "arcbar": {
  239. "type": "default",
  240. "width": 12,
  241. "backgroundColor": "#E9E9E9",
  242. "startAngle": 0.75,
  243. "endAngle": 0.25,
  244. "gap": 2
  245. }
  246. }
  247. },
  248. "line":{
  249. "type": "line",
  250. "canvasId": "",
  251. "canvas2d": true,
  252. "background": "none",
  253. "animation": true,
  254. "timing": "easeOut",
  255. "duration": 1000,
  256. "color": [
  257. "#1890FF",
  258. "#91CB74",
  259. "#FAC858",
  260. "#EE6666",
  261. "#73C0DE",
  262. "#3CA272",
  263. "#FC8452",
  264. "#9A60B4",
  265. "#ea7ccc"
  266. ],
  267. "padding": [
  268. 15,
  269. 0,
  270. 0,
  271. 4
  272. ],
  273. "rotate": false,
  274. "errorReload": true,
  275. "fontSize": 13,
  276. "fontColor": "#666666",
  277. "enableScroll": true,
  278. "touchMoveLimit": 60,
  279. "enableMarkLine": false,
  280. "dataLabel": true,
  281. "dataPointShape": true,
  282. "dataPointShapeType": "solid",
  283. "xAxis": {
  284. "disabled": false,
  285. "axisLine": true,
  286. "axisLineColor": "#CCCCCC",
  287. "calibration": false,
  288. "fontColor": "#666666",
  289. "fontSize": 13,
  290. "rotateLabel": true,
  291. "itemCount": 3,
  292. "boundaryGap": "center",
  293. "disableGrid": true,
  294. "gridColor": "#CCCCCC",
  295. "gridType": "solid",
  296. "dashLength": 4,
  297. "gridEval": 1,
  298. "scrollShow": true,
  299. "scrollAlign": "left",
  300. "scrollColor": "#A6A6A6",
  301. "scrollBackgroundColor": "#EFEBEF"
  302. },
  303. "yAxis": {
  304. "disabled": false,
  305. "disableGrid": false,
  306. "splitNumber": 5,
  307. "gridType": "dash",
  308. "dashLength": 2,
  309. "gridColor": "#CCCCCC",
  310. "padding": 10,
  311. "showTitle": false,
  312. "min":0,
  313. "max":100,
  314. "data": []
  315. },
  316. "legend": {
  317. "show": true,
  318. "position": "bottom",
  319. "float": "center",
  320. "padding": 5,
  321. "margin": 5,
  322. "backgroundColor": "rgba(0,0,0,0)",
  323. "borderColor": "rgba(0,0,0,0)",
  324. "borderWidth": 0,
  325. "fontSize": 13,
  326. "fontColor": "#666666",
  327. "lineHeight": 11,
  328. "hiddenColor": "#CECECE",
  329. "itemGap": 10
  330. },
  331. "extra": {
  332. "line": {
  333. "type": "straight",
  334. "width": 2
  335. },
  336. "tooltip": {
  337. "showBox": true,
  338. "showArrow": true,
  339. "showCategory": false,
  340. "borderWidth": 0,
  341. "borderRadius": 0,
  342. "borderColor": "#000000",
  343. "borderOpacity": 0.7,
  344. "bgColor": "#000000",
  345. "bgOpacity": 0.7,
  346. "gridType": "solid",
  347. "dashLength": 4,
  348. "gridColor": "#CCCCCC",
  349. "fontColor": "#FFFFFF",
  350. "splitLine": true,
  351. "horizentalLine": false,
  352. "xAxisLabel": false,
  353. "yAxisLabel": false,
  354. "labelBgColor": "#FFFFFF",
  355. "labelBgOpacity": 0.7,
  356. "labelFontColor": "#666666"
  357. },
  358. "markLine": {
  359. "type": "solid",
  360. "dashLength": 4,
  361. "data": []
  362. }
  363. }
  364. },
  365. "tline":{
  366. "type": "line",
  367. "color": color,
  368. "padding": [15,10,0,15],
  369. "xAxis": {
  370. "disableGrid": false,
  371. "boundaryGap":"justify",
  372. },
  373. "yAxis": {
  374. "gridType": "dash",
  375. "dashLength": 2,
  376. "data":[
  377. {
  378. "min":0,
  379. "max":80
  380. }
  381. ]
  382. },
  383. "legend": {
  384. },
  385. "extra": {
  386. "line": {
  387. "type": "curve",
  388. "width": 2
  389. },
  390. }
  391. },
  392. "tarea":{
  393. "type": "area",
  394. "color": color,
  395. "padding": [15,10,0,15],
  396. "xAxis": {
  397. "disableGrid": true,
  398. "boundaryGap":"justify",
  399. },
  400. "yAxis": {
  401. "gridType": "dash",
  402. "dashLength": 2,
  403. "data":[
  404. {
  405. "min":0,
  406. "max":80
  407. }
  408. ]
  409. },
  410. "legend": {
  411. },
  412. "extra": {
  413. "area": {
  414. "type": "curve",
  415. "opacity": 0.2,
  416. "addLine": true,
  417. "width": 2,
  418. "gradient": true
  419. },
  420. }
  421. },
  422. "column":{
  423. "type": "column",
  424. "canvasId": "",
  425. "canvas2d": true,
  426. "background": "none",
  427. "animation": true,
  428. "timing": "easeOut",
  429. "duration": 1000,
  430. "color": [
  431. "#1890FF",
  432. "#91CB74",
  433. "#FAC858",
  434. "#EE6666",
  435. "#73C0DE",
  436. "#3CA272",
  437. "#FC8452",
  438. "#9A60B4",
  439. "#ea7ccc"
  440. ],
  441. "padding": [
  442. 15,
  443. 15,
  444. 0,
  445. 5
  446. ],
  447. "rotate": false,
  448. "errorReload": true,
  449. "fontSize": 13,
  450. "fontColor": "#666666",
  451. "enableScroll": true,
  452. "touchMoveLimit": 60,
  453. "enableMarkLine": false,
  454. "dataLabel": true,
  455. "dataPointShape": true,
  456. "dataPointShapeType": "solid",
  457. "xAxis": {
  458. "disabled": false,
  459. "axisLine": true,
  460. "axisLineColor": "#CCCCCC",
  461. "calibration": false,
  462. "fontColor": "#666666",
  463. "fontSize": 13,
  464. "rotateLabel": false,
  465. "itemCount": 7,
  466. "boundaryGap": "center",
  467. "disableGrid": true,
  468. "gridColor": "#CCCCCC",
  469. "gridType": "solid",
  470. "dashLength": 4,
  471. "gridEval": 1,
  472. "scrollShow": true,
  473. "scrollAlign": "left",
  474. "scrollColor": "#A6A6A6",
  475. "scrollBackgroundColor": "#EFEBEF"
  476. },
  477. "yAxis": {
  478. "disabled": false,
  479. "disableGrid": false,
  480. "splitNumber": 5,
  481. "gridType": "dash",
  482. "dashLength": 8,
  483. "gridColor": "#CCCCCC",
  484. "padding": 10,
  485. "showTitle": false,
  486. "min":0,
  487. "max":100,
  488. "data": []
  489. },
  490. "legend": {
  491. "show": true,
  492. "position": "bottom",
  493. "float": "center",
  494. "padding": 5,
  495. "margin": 5,
  496. "backgroundColor": "rgba(0,0,0,0)",
  497. "borderColor": "rgba(0,0,0,0)",
  498. "borderWidth": 0,
  499. "fontSize": 13,
  500. "fontColor": "#666666",
  501. "lineHeight": 11,
  502. "hiddenColor": "#CECECE",
  503. "itemGap": 10
  504. },
  505. "extra": {
  506. "column": {
  507. "type": "group",
  508. "width": 30,
  509. "seriesGap": 2,
  510. "categoryGap": 3,
  511. "barBorderCircle": false,
  512. "linearType": "none",
  513. "linearOpacity": 1,
  514. "colorStop": 0,
  515. "meterBorder": 1,
  516. "meterFillColor": "#FFFFFF",
  517. "activeBgColor": "#000000",
  518. "activeBgOpacity": 0.08,
  519. "meterBorde": 1
  520. },
  521. "tooltip": {
  522. "showBox": true,
  523. "showArrow": true,
  524. "showCategory": false,
  525. "borderWidth": 0,
  526. "borderRadius": 0,
  527. "borderColor": "#000000",
  528. "borderOpacity": 0.7,
  529. "bgColor": "#000000",
  530. "bgOpacity": 0.7,
  531. "gridType": "solid",
  532. "dashLength": 4,
  533. "gridColor": "#CCCCCC",
  534. "fontColor": "#FFFFFF",
  535. "splitLine": true,
  536. "horizentalLine": false,
  537. "xAxisLabel": false,
  538. "yAxisLabel": false,
  539. "labelBgColor": "#FFFFFF",
  540. "labelBgOpacity": 0.7,
  541. "labelFontColor": "#666666"
  542. },
  543. "markLine": {
  544. "type": "solid",
  545. "dashLength": 4,
  546. "data": []
  547. }
  548. }
  549. },
  550. "area":{
  551. "type": "area",
  552. "color": color,
  553. "padding": [15,15,0,15],
  554. "xAxis": {
  555. "disableGrid": true,
  556. },
  557. "yAxis": {
  558. "gridType": "dash",
  559. "dashLength": 2,
  560. },
  561. "legend": {
  562. },
  563. "extra": {
  564. "area": {
  565. "type": "straight",
  566. "opacity": 0.2,
  567. "addLine": true,
  568. "width": 2,
  569. "gradient": false
  570. },
  571. }
  572. },
  573. "radar":{
  574. "type": "radar",
  575. "canvasId": "",
  576. "canvas2d": false,
  577. "background": "none",
  578. "animation": true,
  579. "timing": "easeOut",
  580. "duration": 1000,
  581. "color": [
  582. "#1890FF",
  583. "#91CB74",
  584. "#FAC858",
  585. "#EE6666",
  586. "#73C0DE",
  587. "#3CA272",
  588. "#FC8452",
  589. "#9A60B4",
  590. "#ea7ccc"
  591. ],
  592. "padding": [
  593. 5,
  594. 5,
  595. 5,
  596. 5
  597. ],
  598. "rotate": false,
  599. "errorReload": true,
  600. "fontSize": 13,
  601. "fontColor": "#666666",
  602. "enableScroll": false,
  603. "touchMoveLimit": 60,
  604. "enableMarkLine": false,
  605. "dataLabel": true,
  606. "dataPointShape": true,
  607. "dataPointShapeType": "solid",
  608. "legend": {
  609. "show": false,
  610. "position": "right",
  611. "float": "center",
  612. "padding": 5,
  613. "margin": 5,
  614. "backgroundColor": "rgba(0,0,0,0)",
  615. "borderColor": "rgba(0,0,0,0)",
  616. "borderWidth": 0,
  617. "fontSize": 13,
  618. "fontColor": "#666666",
  619. "lineHeight": 25,
  620. "hiddenColor": "#CECECE",
  621. "itemGap": 10
  622. },
  623. "extra": {
  624. "radar": {
  625. "gridType": "radar",
  626. "gridColor": "#CCCCCC",
  627. "gridCount": 3,
  628. "labelColor": "#666666",
  629. "opacity": 0.2,
  630. "border": false,
  631. "borderWidth": 2,
  632. "max": 100
  633. },
  634. "tooltip": {
  635. "showBox": true,
  636. "showArrow": true,
  637. "showCategory": false,
  638. "borderWidth": 0,
  639. "borderRadius": 0,
  640. "borderColor": "#000000",
  641. "borderOpacity": 0.7,
  642. "bgColor": "#000000",
  643. "bgOpacity": 0.7,
  644. "gridType": "solid",
  645. "dashLength": 4,
  646. "gridColor": "#CCCCCC",
  647. "fontColor": "#FFFFFF",
  648. "splitLine": true,
  649. "horizentalLine": false,
  650. "xAxisLabel": false,
  651. "yAxisLabel": false,
  652. "labelBgColor": "#FFFFFF",
  653. "labelBgOpacity": 0.7,
  654. "labelFontColor": "#666666"
  655. }
  656. }
  657. },
  658. "gauge":{
  659. "type": "gauge",
  660. "color": color,
  661. "title": {
  662. "name": "66Km/H",
  663. "fontSize": 25,
  664. "color": "#2fc25b",
  665. "offsetY": 50
  666. },
  667. "subtitle": {
  668. "name": "实时速度",
  669. "fontSize": 15,
  670. "color": "#1890ff",
  671. "offsetY": -50
  672. },
  673. "extra": {
  674. "gauge": {
  675. "type": "default",
  676. "width": 30,
  677. "labelColor": "#666666",
  678. "startAngle": 0.75,
  679. "endAngle": 0.25,
  680. "startNumber": 0,
  681. "endNumber": 100,
  682. "labelFormat": "",
  683. "splitLine": {
  684. "fixRadius": 0,
  685. "splitNumber": 10,
  686. "width": 30,
  687. "color": "#FFFFFF",
  688. "childNumber": 5,
  689. "childWidth": 12
  690. },
  691. "pointer": {
  692. "width": 24,
  693. "color": "auto"
  694. }
  695. }
  696. }
  697. },
  698. "candle":{
  699. "type": "candle",
  700. "color": color,
  701. "padding": [15,15,0,15],
  702. "enableScroll": true,
  703. "enableMarkLine": true,
  704. "dataLabel": false,
  705. "xAxis": {
  706. "labelCount": 4,
  707. "itemCount": 40,
  708. "disableGrid": true,
  709. "gridColor": "#CCCCCC",
  710. "gridType": "solid",
  711. "dashLength": 4,
  712. "scrollShow": true,
  713. "scrollAlign": "left",
  714. "scrollColor": "#A6A6A6",
  715. "scrollBackgroundColor": "#EFEBEF"
  716. },
  717. "yAxis": {
  718. },
  719. "legend": {
  720. },
  721. "extra": {
  722. "candle": {
  723. "color": {
  724. "upLine": "#f04864",
  725. "upFill": "#f04864",
  726. "downLine": "#2fc25b",
  727. "downFill": "#2fc25b"
  728. },
  729. "average": {
  730. "show": true,
  731. "name": ["MA5","MA10","MA30"],
  732. "day": [5,10,20],
  733. "color": ["#1890ff","#2fc25b","#facc14"]
  734. }
  735. },
  736. "markLine": {
  737. "type": "dash",
  738. "dashLength": 5,
  739. "data": [
  740. {
  741. "value": 2150,
  742. "lineColor": "#f04864",
  743. "showLabel": true
  744. },
  745. {
  746. "value": 2350,
  747. "lineColor": "#f04864",
  748. "showLabel": true
  749. }
  750. ]
  751. }
  752. }
  753. },
  754. "mix":{
  755. "type": "mix",
  756. "color": color,
  757. "padding": [15,15,0,15],
  758. "xAxis": {
  759. "disableGrid": true,
  760. },
  761. "yAxis": {
  762. "disabled": false,
  763. "disableGrid": false,
  764. "splitNumber": 5,
  765. "gridType": "dash",
  766. "dashLength": 4,
  767. "gridColor": "#CCCCCC",
  768. "padding": 10,
  769. "showTitle": true,
  770. "data": []
  771. },
  772. "legend": {
  773. },
  774. "extra": {
  775. "mix": {
  776. "column": {
  777. "width": 20
  778. }
  779. },
  780. }
  781. },
  782. "scatter":{
  783. "type": "scatter",
  784. "color":color,
  785. "padding":[15,15,0,15],
  786. "dataLabel":false,
  787. "xAxis": {
  788. "disableGrid": false,
  789. "gridType":"dash",
  790. "splitNumber":5,
  791. "boundaryGap":"justify",
  792. "min":0
  793. },
  794. "yAxis": {
  795. "disableGrid": false,
  796. "gridType":"dash",
  797. },
  798. "legend": {
  799. },
  800. "extra": {
  801. "scatter": {
  802. },
  803. }
  804. },
  805. "bubble":{
  806. "type": "bubble",
  807. "color":color,
  808. "padding":[15,15,0,15],
  809. "xAxis": {
  810. "disableGrid": false,
  811. "gridType":"dash",
  812. "splitNumber":5,
  813. "boundaryGap":"justify",
  814. "min":0,
  815. "max":250
  816. },
  817. "yAxis": {
  818. "disableGrid": false,
  819. "gridType":"dash",
  820. "data":[{
  821. "min":0,
  822. "max":150
  823. }]
  824. },
  825. "legend": {
  826. },
  827. "extra": {
  828. "bubble": {
  829. "border":2,
  830. "opacity": 0.5,
  831. },
  832. }
  833. }
  834. }