Skip to content

Commit d5aa9fb

Browse files
committed
edited mode on better level and updated docs to be bit more clear
1 parent 242651f commit d5aa9fb

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

docs/docs/charts/line.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ The line chart allows a number of properties to be specified for each dataset. T
8787
| [`pointRadius`](#point-styling) | `number` | Yes | Yes | `3`
8888
| [`pointRotation`](#point-styling) | `number` | Yes | Yes | `0`
8989
| [`pointStyle`](#point-styling) | `string`\|`Image` | Yes | Yes | `'circle'`
90-
| [`showLine`](#line-styling) | `boolean` | - | - | `undefined`
90+
| [`showLine`](#line-styling) | `boolean` | - | - | `true`
9191
| [`spanGaps`](#line-styling) | `boolean`\|`number` | - | - | `undefined`
9292
| [`stepped`](#stepped) | `boolean`\|`string` | - | - | `false`
9393
| [`xAxisID`](#general) | `string` | - | - | first x axis

docs/docs/charts/scatter.mdx

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function example() {
5050
## Dataset Properties
5151

5252
The scatter chart supports all of the same properties as the [line chart](./charts/line.mdx#dataset-properties).
53+
By default, the scatter chart will override the showLine property of the line chart to `false`.
5354

5455
## Data Structure
5556

src/controllers/controller.scatter.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ ScatterController.defaults = {
2424
fill: false
2525
},
2626

27+
interaction: {
28+
mode: 'point'
29+
},
30+
2731
plugins: {
2832
tooltip: {
29-
mode: 'point',
3033
callbacks: {
3134
title() {
3235
return ''; // doesn't make sense for scatter since data are formatted as a point

0 commit comments

Comments
 (0)