]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
made scatter chart a lot better readable, removed unnecesarry notes (#8080)
authorLeeLenaleee <39033624+LeeLenaleee@users.noreply.github.com>
Thu, 19 Nov 2020 13:25:39 +0000 (14:25 +0100)
committerGitHub <noreply@github.com>
Thu, 19 Nov 2020 13:25:39 +0000 (08:25 -0500)
docs/docs/charts/area.md
docs/docs/charts/scatter.mdx

index 477ece36f907a922130f346d8917e01d0b0a12b2..c535b1b1098e9a12d65151cece0140eee28d0f91 100644 (file)
@@ -10,18 +10,14 @@ Both [line](./line.mdx) and [radar](./radar.mdx) charts support a `fill` option
 
 | Mode | Type | Values |
 | :--- | :--- | :--- |
-| Absolute dataset index <sup>1</sup> | `number` | `1`, `2`, `3`, ... |
-| Relative dataset index <sup>1</sup> | `string` | `'-1'`, `'-2'`, `'+1'`, ... |
-| Boundary <sup>2</sup> | `string` | `'start'`, `'end'`, `'origin'` |
-| Disabled <sup>3</sup> | `boolean` | `false` |
+| Absolute dataset index | `number` | `1`, `2`, `3`, ... |
+| Relative dataset index | `string` | `'-1'`, `'-2'`, `'+1'`, ... |
+| Boundary | `string` | `'start'`, `'end'`, `'origin'` |
+| Disabled <sup>1</sup> | `boolean` | `false` |
 | Stacked value below <sup>4</sup> | `string` | `'stack'` |
-| Axis value <sup>5</sup> | `object` | `{ value: number; }` |
+| Axis value | `object` | `{ value: number; }` |
 
-> <sup>1</sup> dataset filling modes have been introduced in version 2.6.0<br/>
-> <sup>2</sup> prior version 2.6.0, boundary values was `'zero'`, `'top'`, `'bottom'` (not supported anymore)<br/>
-> <sup>3</sup> for backward compatibility, `fill: true` (default) is equivalent to `fill: 'origin'`<br/>
-> <sup>4</sup> stack mode has been introduced in version 3.0.0<br/>
-> <sup>5</sup> axis value mode has been introduced in version 3.0.0<br/>
+> <sup>1</sup> for backward compatibility, `fill: true` (default) is equivalent to `fill: 'origin'`<br/>
 
 **Example**
 
index 7d091f7d14b8fb3373e7e0e2cac7f67b3a4b764e..5e4277fd56d0cde79006d539c57c5468d7bb05fd 100644 (file)
@@ -24,8 +24,12 @@ function example() {
                 }, {
                     x: 10,
                     y: 5
+                }, {
+                    x: 0.5,
+                    y: 5.5
                 }]
-            }]
+            }],
+            backgroundColor: 'red'
         },
         options: {
             scales: {