javascript - How to align two texts on right in d3 -
How to align the text to the left of another text right?
Two different element texts (one for numbers and one for 'R $') because each has a different style (like image below)
To facilitate the example, make a small code in JSBin So that it is next to each value that you say? To wit. Such as "
text = summary.append" text ".attr" text-anchor ":" end ", x: 250 text.append" tspan ".text" R $ ".attr" Class ":" summary-currency "text .append" tspan ".text (d) -> D3.format (', 0f') D.attr" class ":" summary-value "
Comments
Post a Comment