Sets the theme of the StockChart. Library comes with various predefined themes. You can easily switch between predefined themes by changing theme property.
Default: “light1”var stockChart = new CanvasJS.StockChart("container", { . . theme: "dark1", // "light1", "light2", "dark2" . . }); stockChart.render();
Also See: