bexodim / ProgressArc

Circular progress bar using CoffeeScript, AngularJS and D3JS
0 stars 0 forks source link

CoffeeScript String Interpolation #5

Open diwu1989 opened 10 years ago

diwu1989 commented 10 years ago
.attr 'transform', 'translate('+actualArcRadius+','+actualArcRadius+')'

can be done via interpolation

.attr 'transform', "translate(#{ actualArcRadius }, #{ actualArcRadius })"
# note that string interpolation is only active when using double quote ", and not when using single quote '