theme: String

Sets the theme of the Navigator. Library comes with various predefined themes. You can easily switch between predefined themes by changing theme property.

Default: Inherits from parent StockChart’s theme property.
Options: “light1″,”light2”, “dark1”, “dark2”
var stockChart = new CanvasJS.StockChart("container",
{
 .
 .
navigator: {
	.
	.
	theme: "dark2",  // "light1", "light2", "dark1"
	.
	.
}
 .
 .
});
stockChart.render()

Try Editing The Code


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