A5.chart.u.styletext Method
Syntax
Arguments
- drawSettingsobject
The draw settings for the text to style.
- colorstringfunction
The color of the text. A value of "default" will result in the default palette color being used. A function called with "data" (see A5.chart Render Data Object) and "temp" can be used to dynamically calculate the color.
- outlinebooleanobject
If true or an object is passed in then an outline will be added to the text style. A function called with "data" (see A5.chart Render Data Object) and "temp" can be used to dynamically calculate the outline.
- colorstring
The CSS color to use for the text outline. If not supplied then the palette default will be used.
- widthnumber
The number of pixels of solid outline to have around the text. If not supplied then the palette default will be used.
- halonumber
The number of pixels of halo falloff to have around the outline of the text. If not supplied then the palette default will be used.
- stylestringfunction
The CSS style to add to the text. A function called with "data" (see A5.chart Render Data Object) and "temp" can be used to dynamically calculate the style.
- dataobject
The chart data. See A5.chart Render Data Object.
- tempobject
The temporary object.
- settingsobject
The top level chart settings.
- pathstring
An optional name to store the result in if the result is going to be used repeatedly.
Description
Get style for a chart text element.