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: {
...
}
}
Source: stackoverflow.com
Related Query
- how to change size of point in ChartJS
- Change point size and color on hover in chartjs
- How to change ChartJS font size with javascript?
- ChartJS - Size of the point doesn't change
- ChartJs 2.0 How do I obtain point information being clicked upon?
- Chartjs linechart with only one point - how to center
- Change point color on click using ChartJS
- how to change background in chartjs and remove background lines?
- How to change the color of legend in chartjs and be able to add one more legend?
- How to change the cursor to a pointer when I hover over a bar in a ChartJS bar chart?
- how to change Y axis value dynamically based on user input in Chartjs for Line chart?
- Chartjs Radar - Change color of end point labels
- ChartJS -- How do I change scale color when I have to scales?
- Change size of a specific point on a line chart in Chart.js
- How to add ChartJS code in Html2Pdf to view image
- How to Change the Label Strike-Through with light gray on a ChartJS Doughnut?
- How to change chartjs ticks orientation to 'slope right'?
- How do I add time sourced from an external source as an X axis to a ChartJS graph?
- How do I change axis, title, legend formatting on chartjs template
- Is there any way to change the font color and size of labels in Chartjs 3.0.0
- Change point style in Chartjs via external event
- How to dynamically change point location with line in Chart.js?
- Change font size and font color in Chartjs Angular 5
- Chartjs - how to change the notation of doughnut chart
- How to add new data point and remove leftmost data point dynamically in Chartjs
- How can I change the cursor on pie chart segment hover in ChartJS 3?
- In ChartJS how do I change the color of a label in the legend?
- Change dot size individually Scatter Chart -- ChartJS
- ChartJS - How to change color of some data points in graph
- Change background point color at runtime for angular ng2-charts / chartjs
More Query from same tag
- Chart.js: Set different options to datasets
- Chart.js Example Isn't working
- Chartjs show hidden data on tooltip
- Chart.js Line Chart x-Axes label rounding
- How to apply to different bground color for each area in Chart.js
- Chart.Js pie chart click
- Chart.js How can I embed additional values to each data point in radar chart
- Chart.js update function (chart,labels,data) will not update the chart
- Chartjs x axis scaling
- Adding a label to a doughnut chart in Chart.js shows all values in each chart
- Chart.js not showing up on online site
- Chart.js - consolidating days to month totals along the x (time) axis?
- How to add label in chart.js for polar chart area
- Why chart renders after second click - react-chartjs-2
- Export chart.js into fixed sized chart
- how to show chart using chart js
- How to add label for ChartJs Legend
- How to modify bar width in Chartjs 2 bar charts
- ChartJS: Changing Font-Size of X-Axis Labels on Line Chart
- Remove only y-axis line from chat drawn using chart.js 1.0.2
- Using ChartJs with MVC 5 Razor
- Chartjs not showing chart
- Change value from 0 to something on tooltip only
- chartjs - how to set the order in which the different charts are displayed
- ChartJS fails to render horizontal bar chart for timeseries data
- downhole chart - recharts or chart.js or anything else?
- How to use Chart.js in Angular4?
- Chartjs is disappearing in Ionic tabs when keyboard dismiss
- chart.js barchart without set fill color
- ChartJS - Line chart issue with only 1 point