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.

Supported Line 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.
  • It overrides indexLabelLineDashType of dataSeries.
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
	data: [
	{
		type: "pie",
		dataPoints : [
			{y: 10, indexLabelLineDashType:  "dash" }
		] 
	},
	]
 .
 . 
});
chart.render();

Try Editing The Code


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