Toolbar object lets you customize the look & feel of export-menu & export drop-down options in the StockChart.
var stockChart = new CanvasJS.StockChart("container", { . . toolbar: { itemBackgroundColor: "#fff", itemBackgroundColorOnHover: "#eccaa0", fontColor: "#d6d6d6", fontColorOnHover: "#d3d3d3", }, . . }); stockChart.render();
Applies To | Attribute | Type | Default | Options/Examples |
---|---|---|---|---|
toolbar | itemBackgroundColor | String | “white” | “blue”, “#d3d3d3”,… |
toolbar | itemBackgroundColorOnHover | String | “#2196f3” | “red”, “#3e3e3e”,… |
toolbar | fontColor | String | “black” | “yellow”, “#000”,… |
toolbar | fontColorOnHover | String | “white” | “white”, “#e3e3e3”,… |
You can customize the look & feel of export button & it’s drop-down options as shown in the example below.
Also See: