gifted-charts-core 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gifted-charts-core",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "Mathematical and logical utilities used by react-gifted-charts and react-native-gifted-charts",
5
5
  "main": "index.ts",
6
6
  "files": [
@@ -560,7 +560,7 @@ export const useBarChart = (props: extendedBarChartPropsType) => {
560
560
 
561
561
  const animatedWidth = widthValue.interpolate({
562
562
  inputRange: [0, 1],
563
- outputRange: [0, totalWidth],
563
+ outputRange: [0, initialSpacing + totalWidth + endSpacing],
564
564
  });
565
565
 
566
566
  const getPropsCommonForBarAndStack = (item, index) => {
@@ -707,7 +707,10 @@ export const getAxesAndRulesProps = (
707
707
  secondaryYAxis: props.secondaryYAxis,
708
708
  formatYLabel: props.formatYLabel,
709
709
  };
710
- if (props.secondaryYAxis && maxValue !== undefined) {
710
+ if (
711
+ (props.secondaryYAxis || props.lineConfig?.isSecondary) &&
712
+ maxValue !== undefined
713
+ ) {
711
714
  axesAndRulesProps.secondaryYAxis = { ...props.secondaryYAxis, maxValue };
712
715
  }
713
716