backgroundColor: String

Sets the background color of Navigator in StockChart. Values of backgroundColor can be specified in “HTML Color Name”, “hex code” or “rgba values”

Default: “#FFFFFF”
Examples: “blue”, “#0000FF”, “rgb(0,0,255)”, …
  1. var stockChart = new CanvasJS.StockChart("container",
  2. {
  3. .
  4. .
  5. navigator: {
  6. backgroundColor: "blue"
  7. },
  8. .
  9. . 
  10. });
  11. stockChart.render();

Try Editing The Code


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