osrec / currencyFormatter.js

A super simple currency formatting library
MIT License
633 stars 61 forks source link

Prevent number ticking from displaying on the dom #31

Closed mlg87 closed 6 years ago

mlg87 commented 6 years ago

not exactly the best issue title, but im not quite sure what to call this. i would like to prevent the numbers from scrolling/tallying/iterating (whatever one calls this) on the dom like they are doing in this gif. given that this isnt an async func, how could i do this?

osrec commented 6 years ago

Hi there, this doesn't seem to be a currencyFormatter.js issue. It looks like your charting library is updating the numbers as part of its animation (as your charts animate, the vertical axis is being scaled). To get round it, either turn off animations, or only update the axis formatting at the end of the animation.

mlg87 commented 6 years ago

@osrec you are correct. thanks for the quick feedback. chart library is bizcharts btw