答案 0 :(得分:0)
您需要为xAxis
定义time.tooltipFormat
。
有关允许的格式标记,请参见Moment.js。
options: {
...
scales: {
xAxes: [{
type: 'time',
time: {
unit: 'hour',
tooltipFormat: 'DD.MM.YYYY - HH:mm'
}
...
}]
}
...
}