Skip to content

ChartContainer format is not working #140

@zvebbo

Description

@zvebbo

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
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions