Wijmo UI for the Web
chartLabelStyle Field
wijmo.chart.wijbarchart Namespace > options type : chartLabelStyle Field

Sets all of the style options of the chart labels that show the value of each chart element.

Type: Object

Default value: {}

Syntax
$(function () {
    
    // Get value
    var returnsValue; // Type:  any
    returnsValue = $(".selector").wijbarchart("option", "chartLabelStyle");
    
    // Set value
    var newValue; // Type:  any
    $(".selector").wijbarchart("option", "chartLabelStyle", newValue);
        
});
var chartLabelStyle : any;
Example
$("#wijbarchart").wijbarchart({
    chartLabelStyle: {
        fill: "black", 
        "fill-opacity": 0.15, 
        "font-size": 24
    }
)};
Remarks

Any style options set in the fallback textStyle option are used for any style options that are not set explicitly (or set by default) in this option.

For more information on the available style parameters, see the Style Options topic. For information on changing the numeric format of these labels, see chartLabelFormatString, or to hide them, see showChartLabels. See also Rotate Bar Labels.

The style object is defined in RaphaelJS, in the attr method’s parameters. Here is an external link to the documentation: http://raphaeljs.com/reference.html#Element.attr

See Also

Reference

options type
chartLabelFormatString Option
wijbarchart Method

Concepts

Style Options

How To

Rotate Bar Labels