6π
The default hit detection radius is a bit large. Try setting
pointHitDetectionRadius : 1,
This provides more definition on a graph with many datapoints.
Update: Fiddle
- [Chartjs]-With Chart.js can I specify a different font size for each row of text in Chart Title?
- [Chartjs]-Chart.js Subtitle won't display
2π
0π
make tooltip like this it works
tooltips: {
mode: 'label',
position: "nearest",
label: 'mylabel',
callbacks: {
label: function(tooltipItem, data) {
return data.datasets[tooltipItem.datasetIndex].label+ " " + number_format2(tooltipItem.yLabel.toString(), 2, ',', '.') ; }, },
}
- [Chartjs]-Chart.js barchart without set fill color
- [Chartjs]-Chart Js Change Label orientation on x-Axis for Line Charts
Source:stackexchange.com