Closed RahavLussato closed 4 years ago
Why isn't it merged? Is it tested?
the comment is not valid anymore, i changed more stuff from the time i wrote that.
its hard to contribute when its take long time to merge PR
@RahavLussato I'm very sorry for the delay on this. I'll review this pull request now.
change componentDidUpdate to componentWillReceiveProps : detection of changes need to happen before the chart will update to avoid multiple updates because the same changes. its more correct way by the best practices of react.
add new prop
chartVersion
: in my case i have situations that i making math calc on all the data and change all the data, in this cases i don't want to waste time to go all over the data, i want to clear all the and make a new chart (its much faster).add new prop
activeSkip
: in most of the cases when chart is get new data provider that bigger then the old one, the old data is not changed and i want to handle only the new indexes (again performance issue) so i added activeSkip prop to enable this, and new part that check if the newdataProvider
is bigger than the old one and activeSkip is turned on it will handle only the part of the data that exists in the newdataProvider
change
this.state.chart.validateNow();
tothis.state.chart.validateNow(true, false);
it was doing errors inside amcharts.