🎉 1.4.28
✨ Features added-
-
Added the prop
referenceLinesOverChartContentto Line and Area charts (earlier available for Bar charts only). See #761 -
Added support for external Labels in Pie and Donut charts. See #763
It uses the below props-showExternalLabels(boolean)labelLineConfig(object of LabelLineConfig type)externalLabelComponent(svg component for label, a callback function with 2 parameters- item and index)
The labelLineConfig prop is an object of LabelLineConfig type described below-
type LabelLineConfig = {
length?: number; // default 10
tailLength?: number; // default 8
color?: ColorValue; // default 'black'
thickness?: number; // default 1
labelComponentWidth?: number; // default 20
labelComponentHeight?: number; // default 10
labelComponentMargin?: number; // default 4
};🔨 Refactor
Renamed the extraRadiusForFocused to extraRadius in Pie and Donut charts.