victory
victory copied to clipboard
VictoryLine is cuts off when interpolation is used
-
[X] I am using the latest version of Victory
-
[X] I've searched open issues to make sure I'm not opening a duplicate issue
The Problem
consider the following example:
<VictoryChart>
<VictoryLine
data={[
{ x: 1, y: 2 },
{ x: 2, y: 3 },
{ x: -3, y: 5 },
{ x: -4, y: 4 },
{ x: -5, y: 7 }
]}
/>
</VictoryChart>
When no interpolation is used, the chart looks fine, however, when interpolation is added, the bottom potion of the graph is cut off
Reproduction
This issue is reproducible on both web and React Native
Navigate to https://formidable.com/open-source/victory/docs/victory-line/ and try the following:
<VictoryChart>
<VictoryLine
interpolation="cardinal"
data={[
{ x: 1, y: 2 },
{ x: 2, y: 3 },
{ x: -3, y: 5 },
{ x: -4, y: 4 },
{ x: -5, y: 7 }
]}
/>
</VictoryChart>
![Screen Shot 2022-05-12 at 15 53 15](https://user-images.githubusercontent.com/1520328/168180448-7d83412e-3b8f-42c7-8eb3-7a331618b705.png)
![Screen Shot 2022-05-12 at 15 53 23](https://user-images.githubusercontent.com/1520328/168180453-a09e9629-c651-4f00-b381-ec47e1ebc8aa.png)