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
Post a Comment