I want to use odometer to show numbers in my html. Numbers vary from 100 to 10mn. I want to have a fixed number of digits. What is the format for that?
here is what I have been using:
var total_ads1 = d3.select("body")
.append("div")
.attr("class", "total_ads");
od = new Odometer({
el: document.querySelector(".total_ads"),
value: sum,
format:'(dd,ddd,ddd)',
theme:'car',
duration:1000,
});
Every time it has to print smaller number it alters the number of cells in the odometer. I thought updating the inner html with text might work but it looks like it converts it internally to numbers.