indexLabelLineDashType: String

Sets the Dash Type for indexLabel’s line. It is applicable only for pie and doughnut charts when indexLabelPlacement is set to “outside”. For other chart-types, indexLabelLineThickness should be set greater than zero.


Default: solid
Example: “dot”, “dash”, etc.

Other Supported Dash Types:

  • “solid”
  • “shortDash”
  • “shortDot”
  • “shortDashDot”
  • “shortDashDotDot”
  • “dot”
  • “dash”
  • “dashDot”
  • “longDash”
  • “longDashDot”
  • “longDashDotDot”

Note
  • By default supported only by Pie / Doughnut Chart types.
  • For other chart-types, indexLabelLineThickness should be set grater then zero.

var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
data:[{
     type: "pie",
     indexLabelLineDashType: "dot",

}]
});
chart.render();


Try it Yourself by Editing the Code below.



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