Creates a number format definition that can be used for example in the aggregations "extendedNumberFormat" and "extendedNumberFormatPercent" of a graphomate.ui.charts.Chart. It will be applied to number labels if the label format mode is set to extended.
Usage Example
var chart = new graphomate.ui.charts.Chart({
chartType: graphomate.ui.charts.enums.ChartType.Bar,
series1: [5, 16, 17, 20],
labelFormatMode: graphomate.ui.enums.LabelFormatMode.Extended,
extendedNumberFormat: new graphomate.ui.ExtendedNumberFormat({
negativeSign: "(",
suffix: "$",
decimalPlaces: 2
})
});
Add Comment