Skip to content

v1.4.40

Compare
Choose a tag to compare
@Abhinandan-Kushwaha Abhinandan-Kushwaha released this 16 Sep 20:16
· 45 commits to master since this release
e900fd9

🎉 1.4.40

✨ Features added-

Added the properties dynamicLegendComponent and dynamicLegendContainerStyle inside the pointerConfig object.

dynamicLegendComponent is a property inside the pointerConfig prop, very similar to pointerLabelComponent, the only difference is that it is stationary whereas pointerLabelComponent moves as the pointer moves. You can set the position of the dynamicLegendComponent using the dynamicLegendContainerStyle property inside pointerConfig

You are supposed to assign a callback function to dynamicLegendComponent. The callback function receives 2 parameters-

  1. Array of currently selected items (in case you are rendering a single line, the array will have a single item)
  2. Index of the selected item.
    Note: The legend component appears only as long as the pointer remains remains on the screen. To make the dynamic legend remain persistently on the screen, you can set the persistPointer property to true. The initialPointerIndex property can also be useful.

🐛 Bug fixes

  1. Fixed the issue- autoShiftLabels not working properly. See https://gifted-charts.web.app/barchart/#xAxisShift

  2. Fixed the issue- "Bar alignment issue when using the labelsExtraHeight prop." See #839