Wijmo UI for the Web
textStyle Option
wijmo.chart.wijbarchart Namespace > options type : textStyle Option

Creates an object to use for the fallback style of any chart text that does not have other style options set.

Type: Object

Default value: {fill:"#888", "font-size": 10, stroke:"none"}

Syntax
$(function () {
    
    // Get value
    var returnsValue; // Type:  any
    returnsValue = $(".selector").wijbarchart("option", "textStyle");
    
    // Set value
    var newValue; // Type:  any
    $(".selector").wijbarchart("option", "textStyle", newValue);
        
});
var textStyle : any;
Example
This example sets the text fill color to red. This only takes effect in chart text that does not have other style options set, in this case, the chart labels on each bar.
<script id="scriptInit" type="text/javascript">
    $(document).ready(function () {
        $("#wijbarchart").wijbarchart({
            textStyle: {fill: "red"},
            seriesList: [{
                label: "US",
                data: { x: ['PS3', 'XBOX360', 'Wii'], y: [12.35, 21.50, 30.56] }
            }, {
                label: "Japan",
                data: { x: ['PS3', 'XBOX360', 'Wii'], y: [4.58, 1.23, 9.67] }
            }, {
                label: "Other",
                data: { x: ['PS3', 'XBOX360', 'Wii'], y: [31.59, 37.14, 65.32] }
            }],
        });
    });
</script>
Remarks

Each type of text in the chart has a different set of styles applied by default, but if those styles are set to null, or if a particular style option is not set by default, the chart falls back on any style options you set in this option. Styles for specific types of chart text that may use this option as a fallback style are set in the following options:

The style object is defined in Raphael, in the attr method's parameters. Here is the external documentation: http://raphaeljs.com/reference.html#Element.attr.

See Also

Reference

options type
wijbarchart Method