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
Does anyone know a way that I could get the x-axis labels to show below the entire graph? I've been trying to create a custom tick label component but I can only figure out how to position them based on distance from the y-axis. Perhaps a way to access the chart height and use that to calculate the y-position of the tick labels? I cannot figure out a way to access the chart height during render, however.
Ideally, the tick labels would show within the red region, and using a fixed y prop on the tick labels won't work as the graphs can take many different forms depending on whether the data is purely negative, purely positive or spanning both negative and positive regions.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Does anyone know a way that I could get the x-axis labels to show below the entire graph? I've been trying to create a custom tick label component but I can only figure out how to position them based on distance from the y-axis. Perhaps a way to access the chart height and use that to calculate the y-position of the tick labels? I cannot figure out a way to access the chart height during render, however.
Ideally, the tick labels would show within the red region, and using a fixed y prop on the tick labels won't work as the graphs can take many different forms depending on whether the data is purely negative, purely positive or spanning both negative and positive regions.
Beta Was this translation helpful? Give feedback.
All reactions