npm react-native-gifted-charts 1.4.28
v1.4.28

latest releases: 1.4.81, 1.4.80, 1.4.79...
2 years ago

🎉 1.4.28

✨ Features added-

  1. Added the prop referenceLinesOverChartContent to Line and Area charts (earlier available for Bar charts only). See #761

  2. Added support for external Labels in Pie and Donut charts. See #763

    It uses the below props-

    1. showExternalLabels (boolean)
    2. labelLineConfig (object of LabelLineConfig type)
    3. 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.

Don't miss a new react-native-gifted-charts release

NewReleases is sending notifications on new releases.