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%” ..

Notes
  • 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 it Yourself by Editing the Code below.

Try it Yourself by Editing the Code below.



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