randyzwitch / ECharts.jl

Julia package for the Apache ECharts v4 visualization library
https://randyzwitch.com/ECharts.jl/
Other
84 stars 9 forks source link

Clean up decimal precision #21

Closed randyzwitch closed 6 years ago

randyzwitch commented 6 years ago

Pick a default like 2 or 3 decimals, to avoid massive floating point being displayed

randyzwitch commented 6 years ago

More complicated than expected, could use .toFixed(2) using a formatter property in ECharts, but that is exactly two decimals, instead of up to 2 decimals. Possibly round data within Julia?

randyzwitch commented 6 years ago

Punt, make users do the rounding on the way in for now