-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Axis Labels not always updating #699
Comments
I've found out why, but not sure of the fix. Here's
The problem is that the tickValues are always [1...12] even though the labels change. |
Hitting this issue, I have labels that change based on the other dimension of the data but the 'tickValues' remain the same. |
I just hit this issue as well. Used this as a hack in my component containing the VictoryAxis to fix it for now: constructor(props) {
super()
this.state = { tickValues: props.tickValues }
}
componentWillReceiveProps(nextProps) {
// TODO: Remove once VictoryAxis not updating bug is fixed
// https://github.com/FormidableLabs/victory/issues/699
if (!isEqual(nextProps.tickValues, this.state.tickValues)) {
this.setState(
{ tickValues: [] },
() => this.setState({ tickValues: nextProps.tickValues })
)
}
} |
@boygirl I upgraded to 0.24 and this issue is still not resolved for me. When I pass new tickValues to VictoryAxis it still doesn't re-render with the new values. |
Same issue here with |
I have some area charts in which the X-axis labels are not always being updated.
For example, when
tickValues
changes from the first to the second lineThe chart still shows Aug 2016 ... Jul as the labels.
The data/lines/area is changing, just not the labels. I'd submit a PR if I could find the responsible code.
The text was updated successfully, but these errors were encountered: