@ecan-bi/datav 1.0.82 → 1.0.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.0.82 */
1
+ /*! @ecan-bi/datav@1.0.84 */
2
2
  (function(global, factory) {
3
3
  typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue"), require("echarts/core"), require("resize-detector"), require("ant-design-vue"), require("ant-design-vue/es/spin/style"), require("ant-design-vue/es/skeleton/style"), require("lodash-es"), require("axios"), require("mitt"), require("dayjs"), require("ant-design-vue/es/progress/style"), require("ant-design-vue/es/input/style"), require("ant-design-vue/es/date-picker/style"), require("ant-design-vue/es/date-picker/locale/zh_CN"), require("ant-design-vue/es/select/style"), require("ant-design-vue/es/button/style"), require("ant-design-vue/es/checkbox/style"), require("echarts/renderers"), require("echarts/charts"), require("echarts/components"), require("echarts"), require("ant-design-vue/es/modal/style"), require("ant-design-vue/es/table/style")) : typeof define === "function" && define.amd ? define(["exports", "vue", "echarts/core", "resize-detector", "ant-design-vue", "ant-design-vue/es/spin/style", "ant-design-vue/es/skeleton/style", "lodash-es", "axios", "mitt", "dayjs", "ant-design-vue/es/progress/style", "ant-design-vue/es/input/style", "ant-design-vue/es/date-picker/style", "ant-design-vue/es/date-picker/locale/zh_CN", "ant-design-vue/es/select/style", "ant-design-vue/es/button/style", "ant-design-vue/es/checkbox/style", "echarts/renderers", "echarts/charts", "echarts/components", "echarts", "ant-design-vue/es/modal/style", "ant-design-vue/es/table/style"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global["@ecan/bi-datav"] = {}, global.vue, global["echarts/core"], global["resize-detector"], global["ant-design-vue"], null, null, global["lodash-es"], global.axios, global.mitt, global.dayjs, null, null, null, global["ant-design-vue/es/date-picker/locale/zh_CN"], null, null, null, global["echarts/renderers"], global["echarts/charts"], global["echarts/components"], global.echarts));
4
4
  })(this, function(exports2, vue, core, resizeDetector, antDesignVue, style$1, style$2, lodashEs, axios, mitt, dayjs, style$3, style$4, style$5, locale, style$6, style$7, style$8, renderers, charts, components$1, echarts) {
@@ -1723,7 +1723,7 @@
1723
1723
  if (isNeedFormat) {
1724
1724
  v = ((_a2 = vue.unref(p)) == null ? void 0 : _a2.format((propKey == null ? void 0 : propKey.trim()) || record.format)) || "";
1725
1725
  } else {
1726
- if (Object.prototype.toString.call(p) === "[object Objet]") {
1726
+ if (Object.prototype.toString.call(p) === "[object Object]") {
1727
1727
  v = p[propKey || "value"];
1728
1728
  } else if (Array.isArray(p)) {
1729
1729
  v = p.join(",");
@@ -4305,6 +4305,7 @@
4305
4305
  xAxisLabelColor: "#333",
4306
4306
  xAxisLineStyleColor: "#333",
4307
4307
  xAxisTickShow: true,
4308
+ xAxisLabelFormatter: "{value}",
4308
4309
  yAxisSplitLineShow: true,
4309
4310
  yAxisSplitLineStyleColor: "#333",
4310
4311
  yAxisLabelColor: "#333",
@@ -4358,108 +4359,115 @@
4358
4359
  const hideModal = () => {
4359
4360
  visible.value = false;
4360
4361
  };
4361
- const option = vue.computed(() => ({
4362
- toolbox: {
4363
- show: props2.toolboxShow,
4364
- left: props2.toolboxLeft,
4365
- top: props2.toolboxTop,
4366
- itemSize: props2.toolboxItemSize,
4367
- itemGap: props2.toolboxItemGap,
4368
- feature: {
4369
- myDownload: {
4370
- show: true,
4371
- title: "\u6570\u636E\u4E0B\u8F7D",
4372
- icon: "path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",
4373
- onclick() {
4374
- useDownloadFile(props2.toolboxDownloadUrl);
4362
+ const option = vue.computed(() => {
4363
+ const xAxisLabelFormatter = props2.xAxisLabelFormatter;
4364
+ const yAxisLabelFormatter = props2.yAxisLabelFormatter;
4365
+ return {
4366
+ toolbox: {
4367
+ show: props2.toolboxShow,
4368
+ left: props2.toolboxLeft,
4369
+ top: props2.toolboxTop,
4370
+ itemSize: props2.toolboxItemSize,
4371
+ itemGap: props2.toolboxItemGap,
4372
+ feature: {
4373
+ myDownload: {
4374
+ show: true,
4375
+ title: "\u6570\u636E\u4E0B\u8F7D",
4376
+ icon: "path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",
4377
+ onclick() {
4378
+ useDownloadFile(props2.toolboxDownloadUrl);
4379
+ }
4380
+ },
4381
+ myDataZoom: {
4382
+ show: true,
4383
+ title: "\u653E\u5927",
4384
+ icon: "path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",
4385
+ onclick() {
4386
+ visible.value = true;
4387
+ }
4388
+ },
4389
+ myInfo: {
4390
+ show: true,
4391
+ title: "\u8BF4\u660E\u4FE1\u606F",
4392
+ icon: "path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",
4393
+ onclick() {
4394
+ antDesignVue.Modal.info({
4395
+ title: "\u8BF4\u660E\u4FE1\u606F",
4396
+ content: props2.toolboxInfoText
4397
+ });
4398
+ }
4399
+ }
4400
+ }
4401
+ },
4402
+ title: {
4403
+ text: props2.titleText,
4404
+ subText: props2.titleSubtext,
4405
+ left: "center"
4406
+ },
4407
+ grid: {
4408
+ top: props2.gridTop,
4409
+ bottom: props2.gridBottom,
4410
+ left: props2.gridLeft,
4411
+ right: props2.gridRight,
4412
+ containLabel: props2.gridContainLabel
4413
+ },
4414
+ color: props2.colors,
4415
+ xAxis: {
4416
+ type: "category",
4417
+ data: vue.unref(dimensions),
4418
+ splitLine: {
4419
+ show: props2.xAxisSplitLineShow,
4420
+ lineStyle: {
4421
+ color: props2.xAxisSplitLineStyleColor
4375
4422
  }
4376
4423
  },
4377
- myDataZoom: {
4378
- show: true,
4379
- title: "\u653E\u5927",
4380
- icon: "path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",
4381
- onclick() {
4382
- visible.value = true;
4424
+ axisLabel: {
4425
+ color: props2.xAxisLabelColor,
4426
+ formatter(value) {
4427
+ return useValueFormatter(xAxisLabelFormatter, value);
4383
4428
  }
4384
4429
  },
4385
- myInfo: {
4386
- show: true,
4387
- title: "\u8BF4\u660E\u4FE1\u606F",
4388
- icon: "path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",
4389
- onclick() {
4390
- antDesignVue.Modal.info({
4391
- title: "\u8BF4\u660E\u4FE1\u606F",
4392
- content: props2.toolboxInfoText
4393
- });
4430
+ axisLine: {
4431
+ lineStyle: {
4432
+ color: props2.xAxisLineStyleColor
4394
4433
  }
4395
- }
4396
- }
4397
- },
4398
- title: {
4399
- text: props2.titleText,
4400
- subText: props2.titleSubtext,
4401
- left: "center"
4402
- },
4403
- grid: {
4404
- top: props2.gridTop,
4405
- bottom: props2.gridBottom,
4406
- left: props2.gridLeft,
4407
- right: props2.gridRight,
4408
- containLabel: props2.gridContainLabel
4409
- },
4410
- color: props2.colors,
4411
- xAxis: {
4412
- type: "category",
4413
- data: vue.unref(dimensions),
4414
- splitLine: {
4415
- show: props2.xAxisSplitLineShow,
4416
- lineStyle: {
4417
- color: props2.xAxisSplitLineStyleColor
4434
+ },
4435
+ axisTick: {
4436
+ show: props2.xAxisTickShow
4418
4437
  }
4419
4438
  },
4420
- axisLabel: {
4421
- color: props2.xAxisLabelColor
4422
- },
4423
- axisLine: {
4424
- lineStyle: {
4425
- color: props2.xAxisLineStyleColor
4439
+ yAxis: {
4440
+ type: "value",
4441
+ splitLine: {
4442
+ show: props2.yAxisSplitLineShow,
4443
+ lineStyle: {
4444
+ color: props2.yAxisSplitLineStyleColor
4445
+ }
4446
+ },
4447
+ axisLabel: {
4448
+ color: props2.yAxisLabelColor,
4449
+ formatter(value) {
4450
+ return useValueFormatter(yAxisLabelFormatter, value);
4451
+ }
4452
+ },
4453
+ axisLine: {
4454
+ lineStyle: {
4455
+ color: props2.yAxisLineStyleColor
4456
+ }
4426
4457
  }
4427
4458
  },
4428
- axisTick: {
4429
- show: props2.xAxisTickShow
4430
- }
4431
- },
4432
- yAxis: {
4433
- type: "value",
4434
- splitLine: {
4435
- show: props2.yAxisSplitLineShow,
4436
- lineStyle: {
4437
- color: props2.yAxisSplitLineStyleColor
4438
- }
4459
+ tooltip: {
4460
+ trigger: "axis"
4439
4461
  },
4440
- axisLabel: {
4441
- color: props2.yAxisLabelColor,
4442
- formatter(value) {
4443
- return useValueFormatter(props2.yAxisLabelFormatter, value);
4444
- }
4462
+ legend: {
4463
+ show: props2.legendShow,
4464
+ orient: props2.legendOrient,
4465
+ top: props2.legendTop,
4466
+ left: props2.legendLeft
4445
4467
  },
4446
- axisLine: {
4447
- lineStyle: {
4448
- color: props2.yAxisLineStyleColor
4449
- }
4450
- }
4451
- },
4452
- tooltip: {
4453
- trigger: "axis"
4454
- },
4455
- legend: {
4456
- show: props2.legendShow,
4457
- orient: props2.legendOrient,
4458
- top: props2.legendTop,
4459
- left: props2.legendLeft
4460
- },
4461
- series: vue.unref(series)
4462
- }));
4468
+ series: vue.unref(series)
4469
+ };
4470
+ });
4463
4471
  const { getGlobalModel, setGlobalModel } = vue.inject(GLOBAL_MODEL, {
4464
4472
  getGlobalModel: (key) => void 0,
4465
4473
  setGlobalModel: (key, value) => void 0
@@ -4650,6 +4658,7 @@
4650
4658
  top: "",
4651
4659
  left: "",
4652
4660
  rotate: "",
4661
+ xAxisLabelFormatter: "{value}",
4653
4662
  yAxisLabelFormatter: "{value}",
4654
4663
  data: [
4655
4664
  {
@@ -4716,7 +4725,8 @@
4716
4725
  toolboxDownloadUrl: "",
4717
4726
  toolboxInfoText: "\u5F53\u524D\u65E0\u8BF4\u660E\u4FE1\u606F",
4718
4727
  isUseHorizontalAxis: false,
4719
- axisInverse: false
4728
+ axisInverse: false,
4729
+ isStack: false
4720
4730
  };
4721
4731
  const barComponentProps = transformToComponentProps(barProps);
4722
4732
  const barEvents = ["refreshData", "click"];
@@ -4751,135 +4761,147 @@
4751
4761
  const len = ds.length;
4752
4762
  const series2 = [];
4753
4763
  for (let i = 0; i < len; i++) {
4754
- series2.push({
4764
+ const item = {
4755
4765
  ...ds[i],
4756
4766
  type: "bar",
4757
4767
  barWidth: props2.barWidth
4758
- });
4768
+ };
4769
+ if (props2.isStack) {
4770
+ item.stack = "stack";
4771
+ item.label = {
4772
+ show: true
4773
+ };
4774
+ }
4775
+ series2.push(item);
4759
4776
  }
4760
4777
  return series2;
4761
4778
  });
4762
4779
  const dimensions = vue.ref([]);
4763
4780
  const loading = vue.ref(false);
4764
- const option = vue.computed(() => ({
4765
- toolbox: {
4766
- show: props2.toolboxShow,
4767
- left: props2.toolboxLeft,
4768
- top: props2.toolboxTop,
4769
- itemSize: props2.toolboxItemSize,
4770
- itemGap: props2.toolboxItemGap,
4771
- feature: {
4772
- myDownload: {
4773
- show: true,
4774
- title: "\u6570\u636E\u4E0B\u8F7D",
4775
- icon: "path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",
4776
- onclick() {
4777
- useDownloadFile(props2.toolboxDownloadUrl);
4778
- }
4779
- },
4780
- myDataZoom: {
4781
- show: true,
4782
- title: "\u653E\u5927",
4783
- icon: "path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",
4784
- onclick() {
4785
- visible.value = true;
4786
- }
4787
- },
4788
- myInfo: {
4789
- show: true,
4790
- title: "\u8BF4\u660E\u4FE1\u606F",
4791
- icon: "path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",
4792
- onclick() {
4793
- antDesignVue.Modal.info({
4794
- title: "\u8BF4\u660E\u4FE1\u606F",
4795
- content: props2.toolboxInfoText
4796
- });
4781
+ const option = vue.computed(() => {
4782
+ const yAxisLabelFormatter = props2.yAxisLabelFormatter;
4783
+ const xAxisLabelFormatter = props2.xAxisLabelFormatter;
4784
+ return {
4785
+ toolbox: {
4786
+ show: props2.toolboxShow,
4787
+ left: props2.toolboxLeft,
4788
+ top: props2.toolboxTop,
4789
+ itemSize: props2.toolboxItemSize,
4790
+ itemGap: props2.toolboxItemGap,
4791
+ feature: {
4792
+ myDownload: {
4793
+ show: true,
4794
+ title: "\u6570\u636E\u4E0B\u8F7D",
4795
+ icon: "path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",
4796
+ onclick() {
4797
+ useDownloadFile(props2.toolboxDownloadUrl);
4798
+ }
4799
+ },
4800
+ myDataZoom: {
4801
+ show: true,
4802
+ title: "\u653E\u5927",
4803
+ icon: "path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",
4804
+ onclick() {
4805
+ visible.value = true;
4806
+ }
4807
+ },
4808
+ myInfo: {
4809
+ show: true,
4810
+ title: "\u8BF4\u660E\u4FE1\u606F",
4811
+ icon: "path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",
4812
+ onclick() {
4813
+ antDesignVue.Modal.info({
4814
+ title: "\u8BF4\u660E\u4FE1\u606F",
4815
+ content: props2.toolboxInfoText
4816
+ });
4817
+ }
4797
4818
  }
4798
4819
  }
4799
- }
4800
- },
4801
- title: {
4802
- text: props2.titleText,
4803
- subtext: props2.titleSubtext,
4804
- left: "center"
4805
- },
4806
- grid: {
4807
- top: props2.gridTop,
4808
- bottom: props2.gridBottom,
4809
- left: props2.gridLeft,
4810
- right: props2.gridRight,
4811
- containLabel: props2.gridContainLabel
4812
- },
4813
- color: props2.colors,
4814
- tooltip: {
4815
- trigger: "axis",
4816
- show: props2.tooltipShow,
4817
- formatter: handleFormatter(props2.tooltipFormatter),
4818
- textStyle: {
4819
- color: props2.tooltipTextStyleColor
4820
- }
4821
- },
4822
- legend: {
4823
- show: props2.legendShow,
4824
- orient: props2.legendOrient,
4825
- top: props2.legendTop,
4826
- left: props2.legendLeft,
4827
- textStyle: {
4828
- color: props2.legendTextStyleColor
4829
- }
4830
- },
4831
- xAxis: {
4832
- type: props2.isUseHorizontalAxis ? "value" : "category",
4833
- data: props2.isUseHorizontalAxis ? null : vue.unref(dimensions),
4834
- inverse: props2.isUseHorizontalAxis ? false : props2.axisInverse,
4835
- splitLine: {
4836
- show: props2.xAxisSplitLineShow,
4837
- lineStyle: {
4838
- color: props2.xAxisSplitLineStyleColor
4839
- }
4840
4820
  },
4841
- axisLabel: {
4842
- color: props2.xAxisLabelColor,
4843
- interval: 0,
4844
- rotate: props2.xAxisLabelRotate,
4845
- width: props2.xAxisLabelWidth,
4846
- overflow: props2.xAxisLabelOverflow
4821
+ title: {
4822
+ text: props2.titleText,
4823
+ subtext: props2.titleSubtext,
4824
+ left: "center"
4847
4825
  },
4848
- axisLine: {
4849
- lineStyle: {
4850
- color: props2.xAxisLineStyleColor
4826
+ grid: {
4827
+ top: props2.gridTop,
4828
+ bottom: props2.gridBottom,
4829
+ left: props2.gridLeft,
4830
+ right: props2.gridRight,
4831
+ containLabel: props2.gridContainLabel
4832
+ },
4833
+ color: props2.colors,
4834
+ tooltip: {
4835
+ trigger: "axis",
4836
+ show: props2.tooltipShow,
4837
+ formatter: handleFormatter(props2.tooltipFormatter),
4838
+ textStyle: {
4839
+ color: props2.tooltipTextStyleColor
4851
4840
  }
4852
4841
  },
4853
- axisTick: {
4854
- show: props2.xAxisTickShow
4855
- }
4856
- },
4857
- yAxis: {
4858
- type: props2.isUseHorizontalAxis ? "category" : "value",
4859
- data: props2.isUseHorizontalAxis ? vue.unref(dimensions) : null,
4860
- inverse: props2.isUseHorizontalAxis ? props2.axisInverse : false,
4861
- splitLine: {
4862
- show: props2.yAxisSplitLineShow,
4863
- lineStyle: {
4864
- color: props2.yAxisSplitLineStyleColor
4842
+ legend: {
4843
+ show: props2.legendShow,
4844
+ orient: props2.legendOrient,
4845
+ top: props2.legendTop,
4846
+ left: props2.legendLeft,
4847
+ textStyle: {
4848
+ color: props2.legendTextStyleColor
4865
4849
  }
4866
4850
  },
4867
- axisLabel: {
4868
- color: props2.yAxisLabelColor,
4869
- formatter(value) {
4870
- if (props2.isUseHorizontalAxis)
4871
- return value;
4872
- return useValueFormatter(props2.yAxisLabelFormatter, value);
4851
+ xAxis: {
4852
+ type: props2.isUseHorizontalAxis ? "value" : "category",
4853
+ data: props2.isUseHorizontalAxis ? null : vue.unref(dimensions),
4854
+ inverse: props2.isUseHorizontalAxis ? false : props2.axisInverse,
4855
+ splitLine: {
4856
+ show: props2.xAxisSplitLineShow,
4857
+ lineStyle: {
4858
+ color: props2.xAxisSplitLineStyleColor
4859
+ }
4860
+ },
4861
+ axisLabel: {
4862
+ color: props2.xAxisLabelColor,
4863
+ interval: 0,
4864
+ rotate: props2.xAxisLabelRotate,
4865
+ width: props2.xAxisLabelWidth,
4866
+ overflow: props2.xAxisLabelOverflow,
4867
+ formatter(value) {
4868
+ return useValueFormatter(xAxisLabelFormatter, value);
4869
+ }
4870
+ },
4871
+ axisLine: {
4872
+ lineStyle: {
4873
+ color: props2.xAxisLineStyleColor
4874
+ }
4875
+ },
4876
+ axisTick: {
4877
+ show: props2.xAxisTickShow
4873
4878
  }
4874
4879
  },
4875
- axisLine: {
4876
- lineStyle: {
4877
- color: props2.yAxisLineStyleColor
4880
+ yAxis: {
4881
+ type: props2.isUseHorizontalAxis ? "category" : "value",
4882
+ data: props2.isUseHorizontalAxis ? vue.unref(dimensions) : null,
4883
+ inverse: props2.isUseHorizontalAxis ? props2.axisInverse : false,
4884
+ splitLine: {
4885
+ show: props2.yAxisSplitLineShow,
4886
+ lineStyle: {
4887
+ color: props2.yAxisSplitLineStyleColor
4888
+ }
4889
+ },
4890
+ axisLabel: {
4891
+ color: props2.yAxisLabelColor,
4892
+ formatter(value) {
4893
+ return useValueFormatter(yAxisLabelFormatter, value);
4894
+ }
4895
+ },
4896
+ axisLine: {
4897
+ lineStyle: {
4898
+ color: props2.yAxisLineStyleColor
4899
+ }
4878
4900
  }
4879
- }
4880
- },
4881
- series: vue.unref(series)
4882
- }));
4901
+ },
4902
+ series: vue.unref(series)
4903
+ };
4904
+ });
4883
4905
  const { pageMode } = vue.inject(GLOBAL_CONFIG, {
4884
4906
  pageMode: "normal"
4885
4907
  });
@@ -5068,6 +5090,7 @@
5068
5090
  xAxisLabelColor: "#333",
5069
5091
  xAxisLineStyleColor: "#333",
5070
5092
  xAxisTickShow: true,
5093
+ xAxisLabelFormatter: "{value}",
5071
5094
  yAxisSplitLineShow: true,
5072
5095
  yAxisSplitLineStyleColor: "#333",
5073
5096
  yAxisLabelColor: "#333",
@@ -5118,120 +5141,127 @@
5118
5141
  const hideModal = () => {
5119
5142
  visible.value = false;
5120
5143
  };
5121
- const option = vue.computed(() => ({
5122
- toolbox: {
5123
- show: props2.toolboxShow,
5124
- left: props2.toolboxLeft,
5125
- top: props2.toolboxTop,
5126
- itemSize: props2.toolboxItemSize,
5127
- itemGap: props2.toolboxItemGap,
5128
- feature: {
5129
- myDownload: {
5130
- show: true,
5131
- title: "\u6570\u636E\u4E0B\u8F7D",
5132
- icon: "path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",
5133
- onclick() {
5134
- useDownloadFile(props2.toolboxDownloadUrl);
5144
+ const option = vue.computed(() => {
5145
+ const xAxisLabelFormatter = props2.xAxisLabelFormatter;
5146
+ const yAxisLabelFormatter = props2.yAxisLabelFormatter;
5147
+ return {
5148
+ toolbox: {
5149
+ show: props2.toolboxShow,
5150
+ left: props2.toolboxLeft,
5151
+ top: props2.toolboxTop,
5152
+ itemSize: props2.toolboxItemSize,
5153
+ itemGap: props2.toolboxItemGap,
5154
+ feature: {
5155
+ myDownload: {
5156
+ show: true,
5157
+ title: "\u6570\u636E\u4E0B\u8F7D",
5158
+ icon: "path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",
5159
+ onclick() {
5160
+ useDownloadFile(props2.toolboxDownloadUrl);
5161
+ }
5162
+ },
5163
+ myDataZoom: {
5164
+ show: true,
5165
+ title: "\u653E\u5927",
5166
+ icon: "path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",
5167
+ onclick() {
5168
+ visible.value = true;
5169
+ }
5170
+ },
5171
+ myInfo: {
5172
+ show: true,
5173
+ title: "\u8BF4\u660E\u4FE1\u606F",
5174
+ icon: "path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",
5175
+ onclick() {
5176
+ antDesignVue.Modal.info({
5177
+ title: "\u8BF4\u660E\u4FE1\u606F",
5178
+ content: props2.toolboxInfoText
5179
+ });
5180
+ }
5181
+ }
5182
+ }
5183
+ },
5184
+ title: {
5185
+ text: props2.titleText,
5186
+ subtext: props2.titleSubtext,
5187
+ left: "center"
5188
+ },
5189
+ grid: {
5190
+ top: props2.gridTop,
5191
+ bottom: props2.gridBottom,
5192
+ left: props2.gridLeft,
5193
+ right: props2.gridRight,
5194
+ containLabel: props2.gridContainLabel
5195
+ },
5196
+ color: props2.colors,
5197
+ xAxis: {
5198
+ splitLine: {
5199
+ show: props2.xAxisSplitLineShow,
5200
+ lineStyle: {
5201
+ color: props2.xAxisSplitLineStyleColor
5135
5202
  }
5136
5203
  },
5137
- myDataZoom: {
5138
- show: true,
5139
- title: "\u653E\u5927",
5140
- icon: "path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",
5141
- onclick() {
5142
- visible.value = true;
5204
+ axisLabel: {
5205
+ color: props2.xAxisLabelColor,
5206
+ formatter(value) {
5207
+ return useValueFormatter(xAxisLabelFormatter, value);
5143
5208
  }
5144
5209
  },
5145
- myInfo: {
5146
- show: true,
5147
- title: "\u8BF4\u660E\u4FE1\u606F",
5148
- icon: "path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",
5149
- onclick() {
5150
- antDesignVue.Modal.info({
5151
- title: "\u8BF4\u660E\u4FE1\u606F",
5152
- content: props2.toolboxInfoText
5153
- });
5210
+ axisLine: {
5211
+ lineStyle: {
5212
+ color: props2.xAxisLineStyleColor
5154
5213
  }
5214
+ },
5215
+ axisTick: {
5216
+ show: props2.xAxisTickShow
5155
5217
  }
5156
- }
5157
- },
5158
- title: {
5159
- text: props2.titleText,
5160
- subtext: props2.titleSubtext,
5161
- left: "center"
5162
- },
5163
- grid: {
5164
- top: props2.gridTop,
5165
- bottom: props2.gridBottom,
5166
- left: props2.gridLeft,
5167
- right: props2.gridRight,
5168
- containLabel: props2.gridContainLabel
5169
- },
5170
- color: props2.colors,
5171
- xAxis: {
5172
- splitLine: {
5173
- show: props2.xAxisSplitLineShow,
5174
- lineStyle: {
5175
- color: props2.xAxisSplitLineStyleColor
5176
- }
5177
- },
5178
- axisLabel: {
5179
- color: props2.xAxisLabelColor
5180
5218
  },
5181
- axisLine: {
5182
- lineStyle: {
5183
- color: props2.xAxisLineStyleColor
5219
+ yAxis: {
5220
+ splitLine: {
5221
+ show: props2.yAxisSplitLineShow,
5222
+ lineStyle: {
5223
+ color: props2.yAxisSplitLineStyleColor
5224
+ }
5225
+ },
5226
+ axisLabel: {
5227
+ color: props2.yAxisLabelColor,
5228
+ formatter(value) {
5229
+ return useValueFormatter(yAxisLabelFormatter, value);
5230
+ }
5231
+ },
5232
+ axisLine: {
5233
+ lineStyle: {
5234
+ color: props2.yAxisLineStyleColor
5235
+ }
5184
5236
  }
5185
5237
  },
5186
- axisTick: {
5187
- show: props2.xAxisTickShow
5188
- }
5189
- },
5190
- yAxis: {
5191
- splitLine: {
5192
- show: props2.yAxisSplitLineShow,
5193
- lineStyle: {
5194
- color: props2.yAxisSplitLineStyleColor
5238
+ tooltip: {
5239
+ show: props2.tooltipShow,
5240
+ trigger: props2.tooltipTrigger,
5241
+ formatter: function(params) {
5242
+ var _a2, _b2;
5243
+ const record = (_b2 = (_a2 = params == null ? void 0 : params.data) == null ? void 0 : _a2.record) != null ? _b2 : {};
5244
+ return useVariablesInText(props2.tooltipFormatter, record);
5245
+ },
5246
+ axisPointer: {
5247
+ type: "cross"
5195
5248
  }
5196
5249
  },
5197
- axisLabel: {
5198
- color: props2.yAxisLabelColor,
5199
- formatter(value) {
5200
- return useValueFormatter(props2.yAxisLabelFormatter, value);
5201
- }
5250
+ legend: {
5251
+ show: props2.legendShow,
5252
+ orient: props2.legendOrient,
5253
+ top: props2.legendTop,
5254
+ left: props2.legendLeft
5202
5255
  },
5203
- axisLine: {
5204
- lineStyle: {
5205
- color: props2.yAxisLineStyleColor
5256
+ series: [
5257
+ {
5258
+ data: vue.unref(dataset),
5259
+ type: "scatter",
5260
+ symbolSize: props2.symbolSize
5206
5261
  }
5207
- }
5208
- },
5209
- tooltip: {
5210
- show: props2.tooltipShow,
5211
- trigger: props2.tooltipTrigger,
5212
- formatter: function(params) {
5213
- var _a2, _b2;
5214
- const record = (_b2 = (_a2 = params == null ? void 0 : params.data) == null ? void 0 : _a2.record) != null ? _b2 : {};
5215
- return useVariablesInText(props2.tooltipFormatter, record);
5216
- },
5217
- axisPointer: {
5218
- type: "cross"
5219
- }
5220
- },
5221
- legend: {
5222
- show: props2.legendShow,
5223
- orient: props2.legendOrient,
5224
- top: props2.legendTop,
5225
- left: props2.legendLeft
5226
- },
5227
- series: [
5228
- {
5229
- data: vue.unref(dataset),
5230
- type: "scatter",
5231
- symbolSize: props2.symbolSize
5232
- }
5233
- ]
5234
- }));
5262
+ ]
5263
+ };
5264
+ });
5235
5265
  const { getGlobalModel, setGlobalModel } = vue.inject(GLOBAL_MODEL, {
5236
5266
  getGlobalModel: (key) => void 0,
5237
5267
  setGlobalModel: (key, value) => void 0