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 +1 -1
- package/src/BarChart/index.ts +1 -1
- package/src/utils/index.tsx +4 -1
package/package.json
CHANGED
package/src/BarChart/index.ts
CHANGED
|
@@ -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) => {
|
package/src/utils/index.tsx
CHANGED
|
@@ -707,7 +707,10 @@ export const getAxesAndRulesProps = (
|
|
|
707
707
|
secondaryYAxis: props.secondaryYAxis,
|
|
708
708
|
formatYLabel: props.formatYLabel,
|
|
709
709
|
};
|
|
710
|
-
if (
|
|
710
|
+
if (
|
|
711
|
+
(props.secondaryYAxis || props.lineConfig?.isSecondary) &&
|
|
712
|
+
maxValue !== undefined
|
|
713
|
+
) {
|
|
711
714
|
axesAndRulesProps.secondaryYAxis = { ...props.secondaryYAxis, maxValue };
|
|
712
715
|
}
|
|
713
716
|
|