D3 errors in diagrams on diagrams - maneuvering height error

I noticed that if the value of the diagram exceeds 90 --- the whole wave block shunts / animates - I'm not sure what causes this. Can anyone figure this out?

// jug 0 http://jsfiddle.net/xpb0hsey/1/

enter image description here

// jug 1 http://jsfiddle.net/xpb0hsey/2/

enter image description here

older chart that doesn't seem to have a problem - jsfiddle.net/0ht35rpb/166

a possible error in the code is in

fillPercent looks stable at <0.9 - but when it reaches 1 - it triggers a shunt in the entire wave clip.

waveGroup.attr('transform','translate('+waveGroupXPosition+','+waveRiseScale(fillPercent)+')');
0
source share

Source: https://habr.com/ru/post/1684924/


All Articles