@ecan-bi/datav 1.0.83 → 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.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.0.83 */
1
+ /*! @ecan-bi/datav@1.0.84 */
2
2
  var _a, _b, _c;
3
3
  import { watch, inject, computed, unref, watchEffect, defineComponent, shallowRef, toRefs, onMounted, onUnmounted, h, nextTick, createVNode, resolveComponent, openBlock, createElementBlock, createBlock, renderSlot, withCtx, ref, normalizeStyle, createCommentVNode, provide, toDisplayString, Fragment, renderList, createElementVNode, normalizeClass, pushScopeId, popScopeId, createSlots, resolveDynamicComponent, mergeProps, withModifiers, withDirectives, vShow } from "vue";
4
4
  import { throttle, init, use, registerMap } from "echarts/core";
@@ -4300,6 +4300,7 @@ const lineProps = {
4300
4300
  xAxisLabelColor: "#333",
4301
4301
  xAxisLineStyleColor: "#333",
4302
4302
  xAxisTickShow: true,
4303
+ xAxisLabelFormatter: "{value}",
4303
4304
  yAxisSplitLineShow: true,
4304
4305
  yAxisSplitLineStyleColor: "#333",
4305
4306
  yAxisLabelColor: "#333",
@@ -4353,108 +4354,115 @@ const _sfc_main$a = defineComponent({
4353
4354
  const hideModal = () => {
4354
4355
  visible.value = false;
4355
4356
  };
4356
- const option = computed(() => ({
4357
- toolbox: {
4358
- show: props2.toolboxShow,
4359
- left: props2.toolboxLeft,
4360
- top: props2.toolboxTop,
4361
- itemSize: props2.toolboxItemSize,
4362
- itemGap: props2.toolboxItemGap,
4363
- feature: {
4364
- myDownload: {
4365
- show: true,
4366
- title: "\u6570\u636E\u4E0B\u8F7D",
4367
- 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",
4368
- onclick() {
4369
- useDownloadFile(props2.toolboxDownloadUrl);
4357
+ const option = computed(() => {
4358
+ const xAxisLabelFormatter = props2.xAxisLabelFormatter;
4359
+ const yAxisLabelFormatter = props2.yAxisLabelFormatter;
4360
+ return {
4361
+ toolbox: {
4362
+ show: props2.toolboxShow,
4363
+ left: props2.toolboxLeft,
4364
+ top: props2.toolboxTop,
4365
+ itemSize: props2.toolboxItemSize,
4366
+ itemGap: props2.toolboxItemGap,
4367
+ feature: {
4368
+ myDownload: {
4369
+ show: true,
4370
+ title: "\u6570\u636E\u4E0B\u8F7D",
4371
+ 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",
4372
+ onclick() {
4373
+ useDownloadFile(props2.toolboxDownloadUrl);
4374
+ }
4375
+ },
4376
+ myDataZoom: {
4377
+ show: true,
4378
+ title: "\u653E\u5927",
4379
+ 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",
4380
+ onclick() {
4381
+ visible.value = true;
4382
+ }
4383
+ },
4384
+ myInfo: {
4385
+ show: true,
4386
+ title: "\u8BF4\u660E\u4FE1\u606F",
4387
+ 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",
4388
+ onclick() {
4389
+ Modal$1.info({
4390
+ title: "\u8BF4\u660E\u4FE1\u606F",
4391
+ content: props2.toolboxInfoText
4392
+ });
4393
+ }
4394
+ }
4395
+ }
4396
+ },
4397
+ title: {
4398
+ text: props2.titleText,
4399
+ subText: props2.titleSubtext,
4400
+ left: "center"
4401
+ },
4402
+ grid: {
4403
+ top: props2.gridTop,
4404
+ bottom: props2.gridBottom,
4405
+ left: props2.gridLeft,
4406
+ right: props2.gridRight,
4407
+ containLabel: props2.gridContainLabel
4408
+ },
4409
+ color: props2.colors,
4410
+ xAxis: {
4411
+ type: "category",
4412
+ data: unref(dimensions),
4413
+ splitLine: {
4414
+ show: props2.xAxisSplitLineShow,
4415
+ lineStyle: {
4416
+ color: props2.xAxisSplitLineStyleColor
4370
4417
  }
4371
4418
  },
4372
- myDataZoom: {
4373
- show: true,
4374
- title: "\u653E\u5927",
4375
- 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",
4376
- onclick() {
4377
- visible.value = true;
4419
+ axisLabel: {
4420
+ color: props2.xAxisLabelColor,
4421
+ formatter(value) {
4422
+ return useValueFormatter(xAxisLabelFormatter, value);
4378
4423
  }
4379
4424
  },
4380
- myInfo: {
4381
- show: true,
4382
- title: "\u8BF4\u660E\u4FE1\u606F",
4383
- 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",
4384
- onclick() {
4385
- Modal$1.info({
4386
- title: "\u8BF4\u660E\u4FE1\u606F",
4387
- content: props2.toolboxInfoText
4388
- });
4425
+ axisLine: {
4426
+ lineStyle: {
4427
+ color: props2.xAxisLineStyleColor
4389
4428
  }
4390
- }
4391
- }
4392
- },
4393
- title: {
4394
- text: props2.titleText,
4395
- subText: props2.titleSubtext,
4396
- left: "center"
4397
- },
4398
- grid: {
4399
- top: props2.gridTop,
4400
- bottom: props2.gridBottom,
4401
- left: props2.gridLeft,
4402
- right: props2.gridRight,
4403
- containLabel: props2.gridContainLabel
4404
- },
4405
- color: props2.colors,
4406
- xAxis: {
4407
- type: "category",
4408
- data: unref(dimensions),
4409
- splitLine: {
4410
- show: props2.xAxisSplitLineShow,
4411
- lineStyle: {
4412
- color: props2.xAxisSplitLineStyleColor
4429
+ },
4430
+ axisTick: {
4431
+ show: props2.xAxisTickShow
4413
4432
  }
4414
4433
  },
4415
- axisLabel: {
4416
- color: props2.xAxisLabelColor
4417
- },
4418
- axisLine: {
4419
- lineStyle: {
4420
- color: props2.xAxisLineStyleColor
4434
+ yAxis: {
4435
+ type: "value",
4436
+ splitLine: {
4437
+ show: props2.yAxisSplitLineShow,
4438
+ lineStyle: {
4439
+ color: props2.yAxisSplitLineStyleColor
4440
+ }
4441
+ },
4442
+ axisLabel: {
4443
+ color: props2.yAxisLabelColor,
4444
+ formatter(value) {
4445
+ return useValueFormatter(yAxisLabelFormatter, value);
4446
+ }
4447
+ },
4448
+ axisLine: {
4449
+ lineStyle: {
4450
+ color: props2.yAxisLineStyleColor
4451
+ }
4421
4452
  }
4422
4453
  },
4423
- axisTick: {
4424
- show: props2.xAxisTickShow
4425
- }
4426
- },
4427
- yAxis: {
4428
- type: "value",
4429
- splitLine: {
4430
- show: props2.yAxisSplitLineShow,
4431
- lineStyle: {
4432
- color: props2.yAxisSplitLineStyleColor
4433
- }
4454
+ tooltip: {
4455
+ trigger: "axis"
4434
4456
  },
4435
- axisLabel: {
4436
- color: props2.yAxisLabelColor,
4437
- formatter(value) {
4438
- return useValueFormatter(props2.yAxisLabelFormatter, value);
4439
- }
4457
+ legend: {
4458
+ show: props2.legendShow,
4459
+ orient: props2.legendOrient,
4460
+ top: props2.legendTop,
4461
+ left: props2.legendLeft
4440
4462
  },
4441
- axisLine: {
4442
- lineStyle: {
4443
- color: props2.yAxisLineStyleColor
4444
- }
4445
- }
4446
- },
4447
- tooltip: {
4448
- trigger: "axis"
4449
- },
4450
- legend: {
4451
- show: props2.legendShow,
4452
- orient: props2.legendOrient,
4453
- top: props2.legendTop,
4454
- left: props2.legendLeft
4455
- },
4456
- series: unref(series)
4457
- }));
4463
+ series: unref(series)
4464
+ };
4465
+ });
4458
4466
  const { getGlobalModel, setGlobalModel } = inject(GLOBAL_MODEL, {
4459
4467
  getGlobalModel: (key) => void 0,
4460
4468
  setGlobalModel: (key, value) => void 0
@@ -4645,6 +4653,7 @@ const barProps = {
4645
4653
  top: "",
4646
4654
  left: "",
4647
4655
  rotate: "",
4656
+ xAxisLabelFormatter: "{value}",
4648
4657
  yAxisLabelFormatter: "{value}",
4649
4658
  data: [
4650
4659
  {
@@ -4711,7 +4720,8 @@ const barProps = {
4711
4720
  toolboxDownloadUrl: "",
4712
4721
  toolboxInfoText: "\u5F53\u524D\u65E0\u8BF4\u660E\u4FE1\u606F",
4713
4722
  isUseHorizontalAxis: false,
4714
- axisInverse: false
4723
+ axisInverse: false,
4724
+ isStack: false
4715
4725
  };
4716
4726
  const barComponentProps = transformToComponentProps(barProps);
4717
4727
  const barEvents = ["refreshData", "click"];
@@ -4746,135 +4756,147 @@ const _sfc_main$9 = defineComponent({
4746
4756
  const len = ds.length;
4747
4757
  const series2 = [];
4748
4758
  for (let i = 0; i < len; i++) {
4749
- series2.push({
4759
+ const item = {
4750
4760
  ...ds[i],
4751
4761
  type: "bar",
4752
4762
  barWidth: props2.barWidth
4753
- });
4763
+ };
4764
+ if (props2.isStack) {
4765
+ item.stack = "stack";
4766
+ item.label = {
4767
+ show: true
4768
+ };
4769
+ }
4770
+ series2.push(item);
4754
4771
  }
4755
4772
  return series2;
4756
4773
  });
4757
4774
  const dimensions = ref([]);
4758
4775
  const loading = ref(false);
4759
- const option = computed(() => ({
4760
- toolbox: {
4761
- show: props2.toolboxShow,
4762
- left: props2.toolboxLeft,
4763
- top: props2.toolboxTop,
4764
- itemSize: props2.toolboxItemSize,
4765
- itemGap: props2.toolboxItemGap,
4766
- feature: {
4767
- myDownload: {
4768
- show: true,
4769
- title: "\u6570\u636E\u4E0B\u8F7D",
4770
- 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",
4771
- onclick() {
4772
- useDownloadFile(props2.toolboxDownloadUrl);
4773
- }
4774
- },
4775
- myDataZoom: {
4776
- show: true,
4777
- title: "\u653E\u5927",
4778
- 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",
4779
- onclick() {
4780
- visible.value = true;
4781
- }
4782
- },
4783
- myInfo: {
4784
- show: true,
4785
- title: "\u8BF4\u660E\u4FE1\u606F",
4786
- 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",
4787
- onclick() {
4788
- Modal$1.info({
4789
- title: "\u8BF4\u660E\u4FE1\u606F",
4790
- content: props2.toolboxInfoText
4791
- });
4776
+ const option = computed(() => {
4777
+ const yAxisLabelFormatter = props2.yAxisLabelFormatter;
4778
+ const xAxisLabelFormatter = props2.xAxisLabelFormatter;
4779
+ return {
4780
+ toolbox: {
4781
+ show: props2.toolboxShow,
4782
+ left: props2.toolboxLeft,
4783
+ top: props2.toolboxTop,
4784
+ itemSize: props2.toolboxItemSize,
4785
+ itemGap: props2.toolboxItemGap,
4786
+ feature: {
4787
+ myDownload: {
4788
+ show: true,
4789
+ title: "\u6570\u636E\u4E0B\u8F7D",
4790
+ 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",
4791
+ onclick() {
4792
+ useDownloadFile(props2.toolboxDownloadUrl);
4793
+ }
4794
+ },
4795
+ myDataZoom: {
4796
+ show: true,
4797
+ title: "\u653E\u5927",
4798
+ 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",
4799
+ onclick() {
4800
+ visible.value = true;
4801
+ }
4802
+ },
4803
+ myInfo: {
4804
+ show: true,
4805
+ title: "\u8BF4\u660E\u4FE1\u606F",
4806
+ 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",
4807
+ onclick() {
4808
+ Modal$1.info({
4809
+ title: "\u8BF4\u660E\u4FE1\u606F",
4810
+ content: props2.toolboxInfoText
4811
+ });
4812
+ }
4792
4813
  }
4793
4814
  }
4794
- }
4795
- },
4796
- title: {
4797
- text: props2.titleText,
4798
- subtext: props2.titleSubtext,
4799
- left: "center"
4800
- },
4801
- grid: {
4802
- top: props2.gridTop,
4803
- bottom: props2.gridBottom,
4804
- left: props2.gridLeft,
4805
- right: props2.gridRight,
4806
- containLabel: props2.gridContainLabel
4807
- },
4808
- color: props2.colors,
4809
- tooltip: {
4810
- trigger: "axis",
4811
- show: props2.tooltipShow,
4812
- formatter: handleFormatter(props2.tooltipFormatter),
4813
- textStyle: {
4814
- color: props2.tooltipTextStyleColor
4815
- }
4816
- },
4817
- legend: {
4818
- show: props2.legendShow,
4819
- orient: props2.legendOrient,
4820
- top: props2.legendTop,
4821
- left: props2.legendLeft,
4822
- textStyle: {
4823
- color: props2.legendTextStyleColor
4824
- }
4825
- },
4826
- xAxis: {
4827
- type: props2.isUseHorizontalAxis ? "value" : "category",
4828
- data: props2.isUseHorizontalAxis ? null : unref(dimensions),
4829
- inverse: props2.isUseHorizontalAxis ? false : props2.axisInverse,
4830
- splitLine: {
4831
- show: props2.xAxisSplitLineShow,
4832
- lineStyle: {
4833
- color: props2.xAxisSplitLineStyleColor
4834
- }
4835
4815
  },
4836
- axisLabel: {
4837
- color: props2.xAxisLabelColor,
4838
- interval: 0,
4839
- rotate: props2.xAxisLabelRotate,
4840
- width: props2.xAxisLabelWidth,
4841
- overflow: props2.xAxisLabelOverflow
4816
+ title: {
4817
+ text: props2.titleText,
4818
+ subtext: props2.titleSubtext,
4819
+ left: "center"
4842
4820
  },
4843
- axisLine: {
4844
- lineStyle: {
4845
- color: props2.xAxisLineStyleColor
4821
+ grid: {
4822
+ top: props2.gridTop,
4823
+ bottom: props2.gridBottom,
4824
+ left: props2.gridLeft,
4825
+ right: props2.gridRight,
4826
+ containLabel: props2.gridContainLabel
4827
+ },
4828
+ color: props2.colors,
4829
+ tooltip: {
4830
+ trigger: "axis",
4831
+ show: props2.tooltipShow,
4832
+ formatter: handleFormatter(props2.tooltipFormatter),
4833
+ textStyle: {
4834
+ color: props2.tooltipTextStyleColor
4846
4835
  }
4847
4836
  },
4848
- axisTick: {
4849
- show: props2.xAxisTickShow
4850
- }
4851
- },
4852
- yAxis: {
4853
- type: props2.isUseHorizontalAxis ? "category" : "value",
4854
- data: props2.isUseHorizontalAxis ? unref(dimensions) : null,
4855
- inverse: props2.isUseHorizontalAxis ? props2.axisInverse : false,
4856
- splitLine: {
4857
- show: props2.yAxisSplitLineShow,
4858
- lineStyle: {
4859
- color: props2.yAxisSplitLineStyleColor
4837
+ legend: {
4838
+ show: props2.legendShow,
4839
+ orient: props2.legendOrient,
4840
+ top: props2.legendTop,
4841
+ left: props2.legendLeft,
4842
+ textStyle: {
4843
+ color: props2.legendTextStyleColor
4860
4844
  }
4861
4845
  },
4862
- axisLabel: {
4863
- color: props2.yAxisLabelColor,
4864
- formatter(value) {
4865
- if (props2.isUseHorizontalAxis)
4866
- return value;
4867
- return useValueFormatter(props2.yAxisLabelFormatter, value);
4846
+ xAxis: {
4847
+ type: props2.isUseHorizontalAxis ? "value" : "category",
4848
+ data: props2.isUseHorizontalAxis ? null : unref(dimensions),
4849
+ inverse: props2.isUseHorizontalAxis ? false : props2.axisInverse,
4850
+ splitLine: {
4851
+ show: props2.xAxisSplitLineShow,
4852
+ lineStyle: {
4853
+ color: props2.xAxisSplitLineStyleColor
4854
+ }
4855
+ },
4856
+ axisLabel: {
4857
+ color: props2.xAxisLabelColor,
4858
+ interval: 0,
4859
+ rotate: props2.xAxisLabelRotate,
4860
+ width: props2.xAxisLabelWidth,
4861
+ overflow: props2.xAxisLabelOverflow,
4862
+ formatter(value) {
4863
+ return useValueFormatter(xAxisLabelFormatter, value);
4864
+ }
4865
+ },
4866
+ axisLine: {
4867
+ lineStyle: {
4868
+ color: props2.xAxisLineStyleColor
4869
+ }
4870
+ },
4871
+ axisTick: {
4872
+ show: props2.xAxisTickShow
4868
4873
  }
4869
4874
  },
4870
- axisLine: {
4871
- lineStyle: {
4872
- color: props2.yAxisLineStyleColor
4875
+ yAxis: {
4876
+ type: props2.isUseHorizontalAxis ? "category" : "value",
4877
+ data: props2.isUseHorizontalAxis ? unref(dimensions) : null,
4878
+ inverse: props2.isUseHorizontalAxis ? props2.axisInverse : false,
4879
+ splitLine: {
4880
+ show: props2.yAxisSplitLineShow,
4881
+ lineStyle: {
4882
+ color: props2.yAxisSplitLineStyleColor
4883
+ }
4884
+ },
4885
+ axisLabel: {
4886
+ color: props2.yAxisLabelColor,
4887
+ formatter(value) {
4888
+ return useValueFormatter(yAxisLabelFormatter, value);
4889
+ }
4890
+ },
4891
+ axisLine: {
4892
+ lineStyle: {
4893
+ color: props2.yAxisLineStyleColor
4894
+ }
4873
4895
  }
4874
- }
4875
- },
4876
- series: unref(series)
4877
- }));
4896
+ },
4897
+ series: unref(series)
4898
+ };
4899
+ });
4878
4900
  const { pageMode } = inject(GLOBAL_CONFIG, {
4879
4901
  pageMode: "normal"
4880
4902
  });
@@ -5063,6 +5085,7 @@ const scatterProps = {
5063
5085
  xAxisLabelColor: "#333",
5064
5086
  xAxisLineStyleColor: "#333",
5065
5087
  xAxisTickShow: true,
5088
+ xAxisLabelFormatter: "{value}",
5066
5089
  yAxisSplitLineShow: true,
5067
5090
  yAxisSplitLineStyleColor: "#333",
5068
5091
  yAxisLabelColor: "#333",
@@ -5113,120 +5136,127 @@ const _sfc_main$8 = defineComponent({
5113
5136
  const hideModal = () => {
5114
5137
  visible.value = false;
5115
5138
  };
5116
- const option = computed(() => ({
5117
- toolbox: {
5118
- show: props2.toolboxShow,
5119
- left: props2.toolboxLeft,
5120
- top: props2.toolboxTop,
5121
- itemSize: props2.toolboxItemSize,
5122
- itemGap: props2.toolboxItemGap,
5123
- feature: {
5124
- myDownload: {
5125
- show: true,
5126
- title: "\u6570\u636E\u4E0B\u8F7D",
5127
- 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",
5128
- onclick() {
5129
- useDownloadFile(props2.toolboxDownloadUrl);
5139
+ const option = computed(() => {
5140
+ const xAxisLabelFormatter = props2.xAxisLabelFormatter;
5141
+ const yAxisLabelFormatter = props2.yAxisLabelFormatter;
5142
+ return {
5143
+ toolbox: {
5144
+ show: props2.toolboxShow,
5145
+ left: props2.toolboxLeft,
5146
+ top: props2.toolboxTop,
5147
+ itemSize: props2.toolboxItemSize,
5148
+ itemGap: props2.toolboxItemGap,
5149
+ feature: {
5150
+ myDownload: {
5151
+ show: true,
5152
+ title: "\u6570\u636E\u4E0B\u8F7D",
5153
+ 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",
5154
+ onclick() {
5155
+ useDownloadFile(props2.toolboxDownloadUrl);
5156
+ }
5157
+ },
5158
+ myDataZoom: {
5159
+ show: true,
5160
+ title: "\u653E\u5927",
5161
+ 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",
5162
+ onclick() {
5163
+ visible.value = true;
5164
+ }
5165
+ },
5166
+ myInfo: {
5167
+ show: true,
5168
+ title: "\u8BF4\u660E\u4FE1\u606F",
5169
+ 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",
5170
+ onclick() {
5171
+ Modal$1.info({
5172
+ title: "\u8BF4\u660E\u4FE1\u606F",
5173
+ content: props2.toolboxInfoText
5174
+ });
5175
+ }
5176
+ }
5177
+ }
5178
+ },
5179
+ title: {
5180
+ text: props2.titleText,
5181
+ subtext: props2.titleSubtext,
5182
+ left: "center"
5183
+ },
5184
+ grid: {
5185
+ top: props2.gridTop,
5186
+ bottom: props2.gridBottom,
5187
+ left: props2.gridLeft,
5188
+ right: props2.gridRight,
5189
+ containLabel: props2.gridContainLabel
5190
+ },
5191
+ color: props2.colors,
5192
+ xAxis: {
5193
+ splitLine: {
5194
+ show: props2.xAxisSplitLineShow,
5195
+ lineStyle: {
5196
+ color: props2.xAxisSplitLineStyleColor
5130
5197
  }
5131
5198
  },
5132
- myDataZoom: {
5133
- show: true,
5134
- title: "\u653E\u5927",
5135
- 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",
5136
- onclick() {
5137
- visible.value = true;
5199
+ axisLabel: {
5200
+ color: props2.xAxisLabelColor,
5201
+ formatter(value) {
5202
+ return useValueFormatter(xAxisLabelFormatter, value);
5138
5203
  }
5139
5204
  },
5140
- myInfo: {
5141
- show: true,
5142
- title: "\u8BF4\u660E\u4FE1\u606F",
5143
- 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",
5144
- onclick() {
5145
- Modal$1.info({
5146
- title: "\u8BF4\u660E\u4FE1\u606F",
5147
- content: props2.toolboxInfoText
5148
- });
5205
+ axisLine: {
5206
+ lineStyle: {
5207
+ color: props2.xAxisLineStyleColor
5149
5208
  }
5209
+ },
5210
+ axisTick: {
5211
+ show: props2.xAxisTickShow
5150
5212
  }
5151
- }
5152
- },
5153
- title: {
5154
- text: props2.titleText,
5155
- subtext: props2.titleSubtext,
5156
- left: "center"
5157
- },
5158
- grid: {
5159
- top: props2.gridTop,
5160
- bottom: props2.gridBottom,
5161
- left: props2.gridLeft,
5162
- right: props2.gridRight,
5163
- containLabel: props2.gridContainLabel
5164
- },
5165
- color: props2.colors,
5166
- xAxis: {
5167
- splitLine: {
5168
- show: props2.xAxisSplitLineShow,
5169
- lineStyle: {
5170
- color: props2.xAxisSplitLineStyleColor
5171
- }
5172
- },
5173
- axisLabel: {
5174
- color: props2.xAxisLabelColor
5175
5213
  },
5176
- axisLine: {
5177
- lineStyle: {
5178
- color: props2.xAxisLineStyleColor
5214
+ yAxis: {
5215
+ splitLine: {
5216
+ show: props2.yAxisSplitLineShow,
5217
+ lineStyle: {
5218
+ color: props2.yAxisSplitLineStyleColor
5219
+ }
5220
+ },
5221
+ axisLabel: {
5222
+ color: props2.yAxisLabelColor,
5223
+ formatter(value) {
5224
+ return useValueFormatter(yAxisLabelFormatter, value);
5225
+ }
5226
+ },
5227
+ axisLine: {
5228
+ lineStyle: {
5229
+ color: props2.yAxisLineStyleColor
5230
+ }
5179
5231
  }
5180
5232
  },
5181
- axisTick: {
5182
- show: props2.xAxisTickShow
5183
- }
5184
- },
5185
- yAxis: {
5186
- splitLine: {
5187
- show: props2.yAxisSplitLineShow,
5188
- lineStyle: {
5189
- color: props2.yAxisSplitLineStyleColor
5233
+ tooltip: {
5234
+ show: props2.tooltipShow,
5235
+ trigger: props2.tooltipTrigger,
5236
+ formatter: function(params) {
5237
+ var _a2, _b2;
5238
+ const record = (_b2 = (_a2 = params == null ? void 0 : params.data) == null ? void 0 : _a2.record) != null ? _b2 : {};
5239
+ return useVariablesInText(props2.tooltipFormatter, record);
5240
+ },
5241
+ axisPointer: {
5242
+ type: "cross"
5190
5243
  }
5191
5244
  },
5192
- axisLabel: {
5193
- color: props2.yAxisLabelColor,
5194
- formatter(value) {
5195
- return useValueFormatter(props2.yAxisLabelFormatter, value);
5196
- }
5245
+ legend: {
5246
+ show: props2.legendShow,
5247
+ orient: props2.legendOrient,
5248
+ top: props2.legendTop,
5249
+ left: props2.legendLeft
5197
5250
  },
5198
- axisLine: {
5199
- lineStyle: {
5200
- color: props2.yAxisLineStyleColor
5251
+ series: [
5252
+ {
5253
+ data: unref(dataset),
5254
+ type: "scatter",
5255
+ symbolSize: props2.symbolSize
5201
5256
  }
5202
- }
5203
- },
5204
- tooltip: {
5205
- show: props2.tooltipShow,
5206
- trigger: props2.tooltipTrigger,
5207
- formatter: function(params) {
5208
- var _a2, _b2;
5209
- const record = (_b2 = (_a2 = params == null ? void 0 : params.data) == null ? void 0 : _a2.record) != null ? _b2 : {};
5210
- return useVariablesInText(props2.tooltipFormatter, record);
5211
- },
5212
- axisPointer: {
5213
- type: "cross"
5214
- }
5215
- },
5216
- legend: {
5217
- show: props2.legendShow,
5218
- orient: props2.legendOrient,
5219
- top: props2.legendTop,
5220
- left: props2.legendLeft
5221
- },
5222
- series: [
5223
- {
5224
- data: unref(dataset),
5225
- type: "scatter",
5226
- symbolSize: props2.symbolSize
5227
- }
5228
- ]
5229
- }));
5257
+ ]
5258
+ };
5259
+ });
5230
5260
  const { getGlobalModel, setGlobalModel } = inject(GLOBAL_MODEL, {
5231
5261
  getGlobalModel: (key) => void 0,
5232
5262
  setGlobalModel: (key, value) => void 0