backgroundColor: String

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

Default: “#FFFFFF”
Examples: “blue”, “#a0beec”, …
  1. var stockChart = new CanvasJS.StockChart("container",
  2. {
  3. .
  4. .
  5. backgroundColor: "#eccaa0",
  6. .
  7. .
  8. });
  9. stockChart.render();

Try Editing The Code

  Also See:    


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