From 0dc8bf232667ee31d85e432b3110cbc5c07d0532 Mon Sep 17 00:00:00 2001 From: hustcc Date: Sat, 21 Nov 2020 17:59:19 +0800 Subject: [PATCH] fix(demo): fix line, area demo (#1988) --- examples/area/basic/demo/basic-slider.ts | 1 + examples/line/basic/demo/line-point-style.ts | 19 +------------------ examples/line/basic/demo/meta.json | 8 ++++---- 3 files changed, 6 insertions(+), 22 deletions(-) diff --git a/examples/area/basic/demo/basic-slider.ts b/examples/area/basic/demo/basic-slider.ts index 4b88f4cd7c..7348d3193b 100644 --- a/examples/area/basic/demo/basic-slider.ts +++ b/examples/area/basic/demo/basic-slider.ts @@ -10,6 +10,7 @@ fetch('https://gw.alipayobjects.com/os/bmw-prod/1d565782-dde4-4bb6-8946-ea6a38cc xAxis: { tickCount: 5, }, + animation: false, slider: { start: 0.1, end: 0.9, diff --git a/examples/line/basic/demo/line-point-style.ts b/examples/line/basic/demo/line-point-style.ts index 48aee5e373..c5c2096e89 100644 --- a/examples/line/basic/demo/line-point-style.ts +++ b/examples/line/basic/demo/line-point-style.ts @@ -30,29 +30,12 @@ const line = new Line('container', { state: { active: { style: { - shadowColor: 'yellow', shadowBlur: 4, - stroke: 'transparent', + stroke: '#000', fill: 'red', }, }, }, - theme: { - geometries: { - point: { - // 设置 point(geometry)-diamond(shape) 样式 - diamond: { - active: { - style: { - shadowColor: '#FCEBB9', - shadowBlur: 2, - stroke: '#F6BD16', - }, - }, - }, - }, - }, - }, interactions: [{ type: 'marker-active' }], }); diff --git a/examples/line/basic/demo/meta.json b/examples/line/basic/demo/meta.json index 8f55de08b7..a3bca467ae 100644 --- a/examples/line/basic/demo/meta.json +++ b/examples/line/basic/demo/meta.json @@ -10,7 +10,7 @@ "zh": "基础折线图", "en": "Basic line plot" }, - "screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*ASuIQr9C7Q4AAAAAAAAAAAAAARQnAQ" + "screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*DRzUQ4UkxjMAAAAAAAAAAAAAARQnAQ" }, { "filename": "line-point-style.ts", @@ -18,7 +18,7 @@ "zh": "配置折线数据点样式", "en": "Line plot data point style" }, - "screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*tnfLTbhoBvcAAAAAAAAAAAAAARQnAQ" + "screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*VN5SQYsPOaIAAAAAAAAAAAAAARQnAQ" }, { "filename": "line-slider.ts", @@ -26,7 +26,7 @@ "zh": "带缩略轴的折线", "en": "Line plot with slider" }, - "screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*T0pISJhToPEAAAAAAAAAAAAAARQnAQ" + "screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*r8MPQ4n9CIQAAAAAAAAAAAAAARQnAQ" }, { "filename": "line-annotation.ts", @@ -34,7 +34,7 @@ "zh": "折线图带图表标注", "en": "Line plot with guide line" }, - "screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*ElDbQ4yz14kAAAAAAAAAAAAAARQnAQ" + "screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*7V6nSpj64uYAAAAAAAAAAAAAARQnAQ" } ] }