I've a line chart(chartJs) and i want to change the background colour of shaded region when hovered. I tried below :
const data = {
labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
datasets: [
{
data: [12, 1, 4, 3, 5, 2, 3],
pointHoverRadius: 5,
**backgroundColor: "blue",**
borderWidth: 5,
**hoverBackgroundColor: "red",** --> this instead changes the color of point on hover.
}
]
};
Other config(Extended Line chart) :
options: {
tooltips: {
enabled: false,
intersect: false,
mode: 'index',
},
events: ['mousemove', 'mouseout', 'touchstart', 'touchmove'],
hover: {
mode: 'index',
intersect: false,
},
I want to change the color of shaded blue region to red.