From 6928b23a508cd3899b27db809cc4b070b1ab7805 Mon Sep 17 00:00:00 2001 From: LeeLenaleee <39033624+LeeLenaleee@users.noreply.github.com> Date: Thu, 19 Nov 2020 14:25:39 +0100 Subject: [PATCH] made scatter chart a lot better readable, removed unnecesarry notes (#8080) --- docs/docs/charts/area.md | 16 ++++++---------- docs/docs/charts/scatter.mdx | 6 +++++- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/docs/charts/area.md b/docs/docs/charts/area.md index 477ece36f..c535b1b10 100644 --- a/docs/docs/charts/area.md +++ b/docs/docs/charts/area.md @@ -10,18 +10,14 @@ Both [line](./line.mdx) and [radar](./radar.mdx) charts support a `fill` option | Mode | Type | Values | | :--- | :--- | :--- | -| Absolute dataset index 1 | `number` | `1`, `2`, `3`, ... | -| Relative dataset index 1 | `string` | `'-1'`, `'-2'`, `'+1'`, ... | -| Boundary 2 | `string` | `'start'`, `'end'`, `'origin'` | -| Disabled 3 | `boolean` | `false` | +| Absolute dataset index | `number` | `1`, `2`, `3`, ... | +| Relative dataset index | `string` | `'-1'`, `'-2'`, `'+1'`, ... | +| Boundary | `string` | `'start'`, `'end'`, `'origin'` | +| Disabled 1 | `boolean` | `false` | | Stacked value below 4 | `string` | `'stack'` | -| Axis value 5 | `object` | `{ value: number; }` | +| Axis value | `object` | `{ value: number; }` | -> 1 dataset filling modes have been introduced in version 2.6.0
-> 2 prior version 2.6.0, boundary values was `'zero'`, `'top'`, `'bottom'` (not supported anymore)
-> 3 for backward compatibility, `fill: true` (default) is equivalent to `fill: 'origin'`
-> 4 stack mode has been introduced in version 3.0.0
-> 5 axis value mode has been introduced in version 3.0.0
+> 1 for backward compatibility, `fill: true` (default) is equivalent to `fill: 'origin'`
**Example** diff --git a/docs/docs/charts/scatter.mdx b/docs/docs/charts/scatter.mdx index 7d091f7d1..5e4277fd5 100644 --- a/docs/docs/charts/scatter.mdx +++ b/docs/docs/charts/scatter.mdx @@ -24,8 +24,12 @@ function example() { }, { x: 10, y: 5 + }, { + x: 0.5, + y: 5.5 }] - }] + }], + backgroundColor: 'red' }, options: { scales: { -- 2.47.2