From fa1c25081ffc8ca3713cecbaa61c666719c0111f Mon Sep 17 00:00:00 2001
From: Visiky <736929286@qq.com>
Date: Thu, 10 Jun 2021 22:23:28 +0800
Subject: [PATCH] =?UTF-8?q?fix(docs):=20=E4=BF=AE=E5=A4=8D=E6=96=87?=
=?UTF-8?q?=E6=A1=A3=20demo=20=E6=97=A0=E9=99=90=E5=A2=9E=E5=A4=A7=20(#262?=
=?UTF-8?q?5)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
close: #2623
---
docs/common/crosshairs-text.en.md | 3 ++-
docs/common/crosshairs-text.zh.md | 3 ++-
examples/more-plots/stock/demo/slider.ts | 2 +-
examples/more-plots/treemap/demo/drill-down.ts | 18 ++----------------
4 files changed, 7 insertions(+), 19 deletions(-)
diff --git a/docs/common/crosshairs-text.en.md b/docs/common/crosshairs-text.en.md
index a75c2ad35a..01a700e56b 100644
--- a/docs/common/crosshairs-text.en.md
+++ b/docs/common/crosshairs-text.en.md
@@ -52,4 +52,5 @@ type TooltipCrosshairsTextCallback = (
) => TooltipCrosshairsText;
```
-
+
+
diff --git a/docs/common/crosshairs-text.zh.md b/docs/common/crosshairs-text.zh.md
index 0f0524e6f6..6e5460f172 100644
--- a/docs/common/crosshairs-text.zh.md
+++ b/docs/common/crosshairs-text.zh.md
@@ -48,4 +48,5 @@ type TooltipCrosshairsText = {
type TooltipCrosshairsTextCallback = (type: string, defaultContent: any, items: any[], currentPoint: Point) => TooltipCrosshairsText;
```
-
+
+
diff --git a/examples/more-plots/stock/demo/slider.ts b/examples/more-plots/stock/demo/slider.ts
index 9ccc57cd86..e6406b700c 100644
--- a/examples/more-plots/stock/demo/slider.ts
+++ b/examples/more-plots/stock/demo/slider.ts
@@ -1,6 +1,6 @@
import { Stock } from '@antv/g2plot';
-fetch('https://gw.alipayobjects.com/os/antfincdn/qtQ9nYfYJe/stock-data.json')
+fetch('https://gw.alipayobjects.com/os/antfincdn/ZWgtj7pC%261/stock.json')
.then((data) => data.json())
.then((data) => {
const stockPlot = new Stock('container', {
diff --git a/examples/more-plots/treemap/demo/drill-down.ts b/examples/more-plots/treemap/demo/drill-down.ts
index 41b4156f71..1987b80134 100644
--- a/examples/more-plots/treemap/demo/drill-down.ts
+++ b/examples/more-plots/treemap/demo/drill-down.ts
@@ -1,22 +1,8 @@
import { Treemap } from '@antv/g2plot';
-import { each, clone } from '@antv/util';
-fetch('https://gw.alipayobjects.com/os/basement_prod/c2589761-62d6-411d-9d51-794d6860c4a9.json')
+fetch('https://gw.alipayobjects.com/os/antfincdn/k5SYI%24mOo1/treemap.json')
.then((res) => res.json())
- .then((fetchData) => {
- const rootData = { name: '公司销售数据', children: [] };
- each(fetchData, (s) => {
- const children = clone(s.children);
- const childrenArray = [];
- each(children, (c) => {
- if (c.children && c.children.length > 0) {
- childrenArray.push(c);
- }
- });
- s.children = childrenArray;
- rootData.children.push(s);
- });
-
+ .then((rootData) => {
const treemapPlot = new Treemap('container', {
data: rootData,
colorField: 'name',