最佳答案
使用 Chart.js 版本 2。尝试在 options
部分中使用 ticks display false
//...
options: {
scales: {
xAxes: [{
ticks: {
display: false
}
}]
}
}
//...
示例:https://jsfiddle.net/7o3m81zt/
关于chart.js - Chartjs : Is it possible to hide the data labels on the axis but show up on the graph on hover?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46610788/