ludo.chart.Text

ludo.chart.


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

Displays SVG text for charts

Parameters:
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 https://developer.mozilla.org/en-US/docs/Web/SVG/Element/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.

Source: