I'm working with D3Plus and D3Plus accepts any D3 method.
I could manage to remove decimals. What I cannot do is adding a '.' as a thousand separator instead of a ',' (in spanish 1.000.000 is 'one million') and this is for a spanish-speaking audience.
This is the relevant part of my code
"number": function(number, params) {
var formatted = d3plus.number.format(number, params);
if (params.key === "encuentros") {
return d3.round(number,0);
}
if (params.key === "poblacion") {
return d3.round(number,0);
}
else {
return formatted;
}
}
I did try return d3.round(number,0) + d3.format('.')
but that does not work.
The chart is "ok" but without decimal separator.