I initially set the fill color for each point to be completely transparent. If I find the mouse pointer over the graph, the dots pop up. I want to hide all the points so that the line graph is smooth.
This can be done by setting the point radius property in the configuration parameters as follows:
var chartConfig = { type: 'line', options: { elements: { point:{ radius: 0 } } } }
Tips for glasses will also disappear.
include showTooltips: false with your options for the chart. This will prevent the tooltip from hovering over the mouse.
See parameter settings at http://www.chartjs.org/docs/
You can set pointRadius to zero.
pointRadius
var myChart = new Chart(ctx, { type: 'line', data: { labels: [...] datasets: [ { data: [...], pointRadius: 0, } ] }, options: {} })
Source: https://habr.com/ru/post/1241765/More articles:A small copy object that leaves one or more properties in ES6 / ES7? - javascriptAll elements are changed on click, not just on the target - javascriptProblem with Jenkins amazon-ecr - pluginsAngularJS: element follows cursor - javascriptDoes jQuery tooltip not align horizontally? - javascriptWhy does script.src work the same way it does? - javascriptiOS 9: UICollectionView dataSource not installed - iosIs it possible to make a diagonal strip in CSS? - cssDockerhub auto build fails, "not directory" when adding file - dockerhubsftp put -r does not work, the terminal prints "Input myDirectory" and then nothing happens - unixAll Articles