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

Sets the numeric format of the chart labels that show the value of each chart element. You can use Standard Numeric Format Strings.

Type: String

Default value: ""

 

Syntax
$(function () {
    
    // Get value
    var returnsValue; // Type:  string
    returnsValue = $(".selector").wijbarchart("option", "chartLabelFormatString");
    
    // Set value
    var newValue; // Type:  string
    $(".selector").wijbarchart("option", "chartLabelFormatString", newValue);
        
});
var chartLabelFormatString : string;
Example
In this example, the zero after the n indicates the number of decimal spaces to show.
$("#barchart").wijbarchart({
    chartLabelFormatString: "n0"
});
Remarks

Some common numeric strings include:

You can also change the style of these labels using chartLabelStyle, or to hide them, see showChartLabels.

See Also

Reference

options type
chartLabelStyle Field
showChartLabels Field
wijbarchart Method

Concepts

Formatting Strings