score:5
Accepted answer
For some reasons the Chart.js
doesn't seem to be honoring the pointRadius
value for which you may need to add the radius
property set to the same value of your pointRadius
which will resolve the issue.
Something like this,
radius: 5,
pointRadius: 5,
Working Fiddle : https://jsfiddle.net/nj4qehLm/2/
HTML Code:
<canvas id='graph' height=200 width=200></canvas>
Javascript Code:
new Chart($('#graph'), {
type: 'radar',
data: {
labels: ['a','b','c'],
datasets: [
{
label: 'aaa',
data: [10,15,5],
backgroundColor: 'rgba(247, 151, 35, 0.5)',
borderColor: 'rgba(247, 151, 35, 1)',
pointBackgroundColor: 'rgba(247, 151, 35, 1)',
pointBorderColor: "#fff",
radius: 5,
pointRadius: 5,
borderWidth: 1
}
]
},
options: {
scale: {
type: 'radialLinear',
ticks: {
// hide tick labels
display: false,
min: 0,
max: 20,
stepSize: 1
},
gridLines: {
// hide lines
display: false
}
},
legend: {
position: 'bottom'
}
}
});
Hope this helps!
score:4
Chartjs has pointHoverRadius
that controls radius of the point when hovered, so just make it the same as your pointRadius
:
pointRadius: 5,
pointHoverRadius: 5
Using radius property didn't work for me.
Source: stackoverflow.com
Related Query
- Chart.js - data points get smaller after hover
- ChartJs line chart - display permanent icon above some data points with text on hover
- How to get chart from data points (arrays) with inconsistent time intervals and chart.js?
- Chart.js - Hover labels to display data for all data points on x-axis
- Chart JS show multiple data points for the same label
- Chart js - Get bar width after render
- Chart Js Show the old data on mouse hover
- Chart js shows old data on mouse hover
- React ChartJS 2 : Get data on clicking the chart
- chart js with angular2 loading dynamic data only after zoomin
- Chart JS not showing On hover with small data
- Wrong chart.js points get highlighted on hover
- Chart js shows old chart data when hover
- How can I achieve displaying data points on chart but Dotted? Chart.js V3.7.0
- Chart JS pass in custom data for points
- How do I get a chart.js chart to display data in a Node/React web application?
- Charts js and laravel: Render chart after passing in json data
- How to reuse a Chartjs Chart component in with different Data and get past the **Canvas is already in use** error?
- How to get Data from API to display chart using chartjs in Vuejs
- Use fetch to get JSON Data for Chart JS
- Chart.js: get chart data from canvas
- How to get the data attribute of the canvas chart created using chartjs
- ChartJS 2 - Adding data to chart breaks after X number of items added
- How to split data from api to get a chart
- get JSON data from function to give value to Chart JS
- Resetting transform: rotate() by removing and appending canvas not showing data after appending and redrawing chart
- Chart.js combined line and bar chart with differing data points
- How can I get my Chart.JS bar chart to stack two data values together on each bar, and print a calculated value on each bar?
- Chart Piechart in only show percentage on hover but it shows data and label with percentage both i just want to show percentage only percentage
- ChartJS chart is bugged after adding new data
More Query from same tag
- Why does chart update fail when its container has ng-show on it?
- Chart.js v2.0 - colouring individual bars differently
- What's the most effective way to implement a radar plot with 50 points at arbitrary locations using chart.js
- Pause horizontal scrolling in chart.js for real time data
- Configuring locale with bundled (CDN) chartjs-adapter-date-fns.bundle.min.js?
- chart.js chart failing to render
- ChartJS - Why is the transition on the first dataset bad?
- i18n with chart.js (javascript)
- Angular Chartjs How to make it reactive to data change?
- How can I cause a legend to appear to the right of the pie (Chart.JS)?
- How to hide section in a Chart.js Pie Chart
- TypeError: CanvasRenderService is not a constructor
- Is it possible to shorten outer labels on Radar graph using Chart.js, without affecting the other labels?
- Create Line Chart and populate with database information
- Chart Js, Style some ticks on the axis differently
- Using CHARTJS with a JavaScript Array
- How to use the tooltipTemplate on Chart.JS 2.0
- Async showing data in pieChart from chart.js with typescript
- chart.js uncaught reference error while updating
- How to Integrate Chart.Funnel.js in Chart.js
- ChartJs Skip few category, possible?
- Chart.js different y axis depending on graph from select options
- Chartjs + jsPDF = Blurry image
- chartjs creating equilvant background like in chartjs.org
- Highest (green) and Lowest (red) coordinates plot using Chart.Js
- How to handle data API from Django Rest Framework in Chart.js
- Chart.js line graph doesn't show up most of the time
- How to determine chart type inside 'chart.js' pluginservice
- Using Chart.js - Creating Legend for Doughnut Chart
- My chart won`t live update - done in Chart.js and Java Script