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 |
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 |
- Source: