upperBoxColor: String

upperBoxColor allows you to set the color of the upper box that appears between the mean / median (Q2) and upper quartile (Q3). The value of upperBoxColor can be a “HTML Color Name” or “Hex Code”.

Default: “white”
Example: “red”, “#DD7E86”
Note
  • Works only in Box and Whisker Chart.
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
  data: [{
   type: "boxAndWhisker",
   upperBoxColor: "#DD7E86"
 
  },
 ]
 .
 . 
});
chart.render();

Try Editing The Code


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