javascript - How to align two texts on right in d3 -



javascript - How to align two texts on right in d3 -

how align text left of text right-aligned?

must 2 distinct elements texts (one numbers , 1 'r$') because each have different style (like image below)

to facilitate example, made ​​a little code in jsbin

http://jsbin.com/qukoto/4/edit

so next each value mean? i.e. this

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"

javascript svg d3.js

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -