In my opinion, should be in Core.js/componentWillReceiveProps nextProps.redraw instead of this.props.redraw,
With nextProps.redraw you enable to choose how user want draw the chart in next update cycle (redraw:false with new metrics or redraw:true with new labels,..).
But with this.props.redraw you can affect only second update cycle, which is not so flexible and you can not redraw chart instantly when you need it.
Is there some point why it has to be this.props.redraw or can I create pull request?
In my opinion, should be in Core.js/componentWillReceiveProps
nextProps.redraw
instead ofthis.props.redraw
, With nextProps.redraw you enable to choose how user want draw the chart in next update cycle (redraw:false with new metrics or redraw:true with new labels,..). But with this.props.redraw you can affect only second update cycle, which is not so flexible and you can not redraw chart instantly when you need it.Is there some point why it has to be this.props.redraw or can I create pull request?