backgroundColor: String

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


Default: “white”
Examples: “blue”, “#a0beec”, …

var stockChart = new CanvasJS.StockChart("container",
{
 .
 .
rangeSelector: {
  inputFields: {
    style: {
      backgroundColor: "#d8d8d8",
      .
      .
    }
  }
},
 .
 .
});
stockChart.render();



Try it Yourself by Editing the Code below.




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