score:40

Accepted answer

you would have to set the pointradius property to 1 as well (so the point becomes small initially), along with the pointhoverradius (remains small on hover)

pointradius: 1,
pointhoverradius: 1

score:22

it indeed needs to go in the dataset, like so:

{
    type: 'scatter',
    data: {
        labels: ['2015', '2016', '2017', '2018', '2019', '2020'],
        datasets: [
            {
                label: 'cars',
                data: [{x:-10,y:0}, {x:0,y:10}, {x:10,y:5}, {x:4,y:8}],
                pointradius: 10,
                ....
            },
            {
                label: 'bikes',
                data: [{x:10,y:3}, {x:-2,y:6}, {x:9,y:3}, {x:11,y:6}],
                pointradius: 10,
                ...
            }
        ]
    },
    options: {
       ...
    }

}

Related Query