-
Notifications
You must be signed in to change notification settings - Fork 281
Closed
Milestone
Description
When setting the property "format" on a ChartContainer the format does not change.
I believe this is due to the fact that the format property is only read in the function "componentWillReceiveProps" in TimeAxis.js.
"componentWillReceiveProps" is not run during the construction of a React Component.
I worked around this by having "format" set to a state variable of the parent component and resetting "format" after the chart was rendered.
Ideally I guess the props would be read during "componentDidMount" when renderTimeAxis() is run.
Metadata
Metadata
Assignees
Labels
No labels