this.myBarChart = new Chart('myBarChart', {
type: 'bar',
data: {
labels: ["Voice Control Mode", "Manual Mode", "Automatic Mode","Single Drive Mode","Dual Drive Mode"],
datasets: [
{
type: 'bar',
label: "Recordings",
backgroundColor: "rgba(2,117,216,1)",
borderColor: "rgba(2,117,216,1)",
data: [this.data.voicecontrolmode, this.data.manualmode, this.data.automaticmode,this.data.singledrivemode,this.data.dualdrivemode],
order:2
},
{
type: 'line',
data: [this.data.totalrecordings, this.data.totalrecordings, this.data.totalrecordings,this.data.totalrecordings,this.data.totalrecordings],
label: 'Total Recordings',
backgroundColor: "rgba(150,29,255,1)",
borderColor: "rgba(150,29,255,1)",
pointRadius:0,
pointHoverRadius:0,
order:1
}
]
},
options: {
// plugins:,
scales: {
xAxis: {
ticks: {
maxTicksLimit: 6
}
},
yAxis: {
ticks: {
maxTicksLimit: 5
}
}
}
}
});
I want to remove labels: ["Voice Control Mode", "Manual Mode", "Automatic Mode","Single Drive Mode","Dual Drive Mode"] for only the line chart so that total recordings is just a straight line but when I hover over that it should just say- Total Recordings:95(example). For the bar chart the labels should still show up.enter image description here