whiskerLength: Number/String

whiskerLength sets the length of Whisker in Error, Box and Whisker Charts. Value can either be in pixels (number – ex: 100) or percent (string – ex: “80%”). Percent values are relative to the dataPointWidth.

Default: Auto Calculated
Example: 10, 14, “80%”, “60%” ..
Note
  • Values should always be positive.
  • Can go upto a maximum of dataPointWidth.
  • Works only in Error / Box and Whisker Charts.
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
  data: [{
   type: "error",
   whiskerLength: 5,
 
  },
 ]
 .
 . 
});
chart.render();

Try Editing The Code

Try Editing The Code


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