isEqual() function does not consider a NaN values. When some parameter has a NaN value, then chart will be updated every time, even when configuration has not actually changed.
This checking may seem unnecessary, but I really spent a lot of time to profile the code in an attempt to find the cause of slowdowns.
Also PR contains custom implementation of isNaN function, because standard function has a weird behavior. More details at SO.
Hello
isEqual() function does not consider a NaN values. When some parameter has a NaN value, then chart will be updated every time, even when configuration has not actually changed.
This checking may seem unnecessary, but I really spent a lot of time to profile the code in an attempt to find the cause of slowdowns.
Also PR contains custom implementation of isNaN function, because standard function has a weird behavior. More details at SO.