Reputation: 71
In lightningchartJS how can I add border to my pie chart? Where a whole chart has a border as well as the individual category also has a border.
pie.setLabelFormatter(SliceLabelFormatters.NamePlusRelativeValue).setSliceStrokeStyle({color: ColorRGBA(200, 200, 200)})
Upvotes: 0
Views: 630
Reputation: 391
You can use the PieChart.setSliceStrokeStyle method to set a border that is used for all Slices in the chart.
pieChart.setSliceStrokeStyle(
new SolidLine( {
thickness: 3,
fillStyle: new SolidFill( { color: ColorRGBA( 200, 200, 200 ) } )
} )
)
Upvotes: 1