new ludo.chart.Text(config, rotate, text, styling, anchor)

Displays SVG text for charts

Name Type Description
config Object
rotate Number

Optional rotation in degrees(clockwise)

text String

Optional text. If not set, the datasource should implement the method getText(caller) where caller is the
SVG View asking for the text, example, ludo.chart.Text view

styling Object

SVG CSS attributes for the text

anchor Array

horizontal and vertical anchor of text, example [0.5, 0.5] for center center. First item in the array
is horizontal anchor, where 0 is left, 0.5 center and 1 right. The second one is vertical where 0 is top, 0.5 middle and 1 bottom.