From 2375272b81b7781b5cddd6142a349a537ac39b9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=AF=E5=8D=97?= <31396322+lxfu1@users.noreply.github.com> Date: Sat, 21 Nov 2020 17:55:34 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E8=B0=83=E6=95=B4=E8=89=B2=E5=80=BC=20?= =?UTF-8?q?(#1987)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/heatmap/basic/demo/calendar.ts | 3 ++- examples/heatmap/basic/demo/shape.ts | 1 - examples/heatmap/basic/demo/size.ts | 1 - examples/heatmap/density/demo/basic.ts | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/heatmap/basic/demo/calendar.ts b/examples/heatmap/basic/demo/calendar.ts index 3611c2c23b..2b8425a0c1 100644 --- a/examples/heatmap/basic/demo/calendar.ts +++ b/examples/heatmap/basic/demo/calendar.ts @@ -58,7 +58,8 @@ fetch('https://gw.alipayobjects.com/os/antvdemo/assets/data/github-commit.json') .then((data) => { const heatmapPlot = new Heatmap(document.getElementById('container'), { data, - padding: [150, 30, 150, 70], + height: 400, + autoFit: false, xField: 'week', yField: 'day', colorField: 'commits', diff --git a/examples/heatmap/basic/demo/shape.ts b/examples/heatmap/basic/demo/shape.ts index 762033358d..5a2413c675 100644 --- a/examples/heatmap/basic/demo/shape.ts +++ b/examples/heatmap/basic/demo/shape.ts @@ -12,7 +12,6 @@ fetch('https://gw.alipayobjects.com/os/bmw-prod/68d3f380-089e-4683-ab9e-44932001 sizeRatio: 0.5, color: ['#0d5fbb', '#7eadfc', '#fd8b6f', '#aa3523'], label: { - offset: -2, style: { fill: '#fff', shadowBlur: 2, diff --git a/examples/heatmap/basic/demo/size.ts b/examples/heatmap/basic/demo/size.ts index 3df22bae96..2f07118259 100644 --- a/examples/heatmap/basic/demo/size.ts +++ b/examples/heatmap/basic/demo/size.ts @@ -12,7 +12,6 @@ fetch('https://gw.alipayobjects.com/os/bmw-prod/68d3f380-089e-4683-ab9e-44932001 shape: 'square', color: ['#dddddd', '#9ec8e0', '#5fa4cd', '#2e7ab6', '#114d90'], label: { - offset: -2, style: { fill: '#fff', shadowBlur: 2, diff --git a/examples/heatmap/density/demo/basic.ts b/examples/heatmap/density/demo/basic.ts index 1fac402b8e..19f63b7636 100644 --- a/examples/heatmap/density/demo/basic.ts +++ b/examples/heatmap/density/demo/basic.ts @@ -9,7 +9,7 @@ fetch('https://gw.alipayobjects.com/os/antvdemo/assets/data/heatmap.json') xField: 'g', yField: 'l', colorField: 'tmp', - color: '#c6e5ff-#9ec9ff-#7cabff-#5b8ff9-#3474db-#005cbe-#00419f-#00287e', + color: '#F51D27-#FA541C-#FF8C12-#FFC838-#FAFFA8-#80FF73-#12CCCC-#1890FF-#6E32C2', legend: { position: 'bottom', },