You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a LineChart graph and I'm seeing some strange behaviour when I use the overflowTop parameter.
As you can see, if the value of this parameter is other than 0, the height of the vertical lines displayed using the parameter verticalLinesHeight is much higher than the area of the graph.
There is no issue for vertical lines displayed using the global parameter showVerticalLines.
However, as I would like to only display some verticals lines I can not use the global parameter showVerticalLines.
So I've tried using the verticalLinesHeight parameter to limit the height of the vertical lines, but this parameter doesn't seem to work for the vertical lines displayed using the showVerticalLine parameter.
The verticalLinesHeight parameter only seems to have an effect for vertical lines displayed with the global parameter showVerticalLines.
Is there something I am missing ?
With an overflowTop parameter other than 0 and whatever the value
Without overflowTop parameter
As a temporary workaround, in the renderSpecificVerticalLines function I added 30 to the y2 value of the SVG Line component -> y2= -xAxisThickness +30
Description
I'm working on a LineChart graph and I'm seeing some strange behaviour when I use the overflowTop parameter.
As you can see, if the value of this parameter is other than 0, the height of the vertical lines displayed using the parameter verticalLinesHeight is much higher than the area of the graph.
There is no issue for vertical lines displayed using the global parameter showVerticalLines.
However, as I would like to only display some verticals lines I can not use the global parameter showVerticalLines.
So I've tried using the verticalLinesHeight parameter to limit the height of the vertical lines, but this parameter doesn't seem to work for the vertical lines displayed using the showVerticalLine parameter.
The verticalLinesHeight parameter only seems to have an effect for vertical lines displayed with the global parameter showVerticalLines.
Is there something I am missing ?
With an overflowTop parameter other than 0 and whatever the value
Without overflowTop parameter
As a temporary workaround, in the renderSpecificVerticalLines function I added 30 to the y2 value of the SVG Line component -> y2= -xAxisThickness +30
Many thanks for your help
Steps to reproduce
Snack or a link to a repository
No response
version of react-native-gifted-charts
1.4.46
React Native version
0.74.4
Platforms
iOS
Workflow
None
The text was updated successfully, but these errors were encountered: