| [`pointRadius`](#point-styling) | `number` | Yes | Yes | `3`
| [`pointRotation`](#point-styling) | `number` | Yes | Yes | `0`
| [`pointStyle`](#point-styling) | `string`\|`Image` | Yes | Yes | `'circle'`
-| [`showLine`](#line-styling) | `boolean` | - | - | `undefined`
+| [`showLine`](#line-styling) | `boolean` | - | - | `true`
| [`spanGaps`](#line-styling) | `boolean`\|`number` | - | - | `undefined`
| [`stepped`](#stepped) | `boolean`\|`string` | - | - | `false`
| [`xAxisID`](#general) | `string` | - | - | first x axis
## Dataset Properties
The scatter chart supports all of the same properties as the [line chart](./charts/line.mdx#dataset-properties).
+By default, the scatter chart will override the showLine property of the line chart to `false`.
## Data Structure
fill: false
},
+ interaction: {
+ mode: 'point'
+ },
+
plugins: {
tooltip: {
callbacks: {
jasmine.triggerMouseEvent(chart, 'mousemove', point);
});
+
+ it('should only show a single point in the tooltip on multiple datasets', function(done) {
+ var chart = window.acquireChart({
+ type: 'scatter',
+ data: {
+ datasets: [{
+ data: [{
+ x: 10,
+ y: 15
+ },
+ {
+ x: 12,
+ y: 10
+ }],
+ label: 'dataset1'
+ },
+ {
+ data: [{
+ x: 20,
+ y: 10
+ },
+ {
+ x: 4,
+ y: 8
+ }],
+ label: 'dataset2'
+ }]
+ },
+ options: {}
+ });
+ var point = chart.getDatasetMeta(0).data[1];
+
+ afterEvent(chart, 'mousemove', function() {
+ expect(chart.tooltip.body.length).toEqual(1);
+
+ done();
+ });
+
+ jasmine.triggerMouseEvent(chart, 'mousemove', point);
+ });
});