D3 height of the water height diagram - revitalization of shunting - when the value reaches a peak above 90%?

I am working on a variant of a rectangular water chart of old d3v3 water oils.

This almost works, but I noticed that if the value exceeds 90, the entire wave block shunts / animates. I don’t know why, but I feel that this is a calculation problem with

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

fillPercent goes above 0.9 - it brings the load to life.

// current code - value 70 http://jsfiddle.net/xpb0hsey/3/

// current code - value 90 http://jsfiddle.net/xpb0hsey/1/

// current code - value 99 http://jsfiddle.net/xpb0hsey/3/

// old code http://jsfiddle.net/0ht35rpb/166

- and old calibration charts from v3

http://bl.ocks.org/brattonc/5e5ce9beee483220e2f6

- - , , - ... 99 - ?

0

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


All Articles