itemBackgroundColorOnHover: String

Sets the background color of particular option (zoom/pan, reset, export-menu & export-options) within toolbar on mouse hover. Values of itemBackgroundColorOnHover can be specified in “HTML Color Name”, “hex code” or “rgba values”.

Default: “#2196f3”
Example: “blue”, “#a0beec”, …
var chart = new CanvasJS.Chart("container",
{
 .
 .
 toolbar: {
     itemBackgroundColorOnHover: "#eccaa0",
     .
     .
 },
 .
 . 
});
chart.render();

Try Editing The Code


If you have any questions, please feel free to ask in our forums.Ask Question