Search
BarRenderer.stackOuterLabels Property
See Also
 






Gets whether outer labels are displayed stacked on top of stacked bars, instead of showing them on the bar sides.

Namespace: MindFusion.Charting
File: BarRenderer.js

 Syntax

JavaScript  Copy Code

get stackOuterLabels() {}

 Property Value

A Boolean value. true if outer labels are drawn at the top of the bar stack; otherwise false.

 Example

The following code creates two BarSeries with data and outer labels and a new BarStackRenderer using these series. It specifies that the outer labels must be drawn on top of the bar stacks:

JavaScript  Copy Code

//the second argument specifies the inner labels, the third argument specifies the top(outer) labels
var data1 = new Charting.BarSeries(
 new Collections.List([13, 13, 14, 16, 23, 44]), null, new Collections.List(["Jan", "Feb", "Mar", "Apr",

"May", "Jun"]));
var data2 = new Charting.BarSeries(
 new Collections.List([22, 18, 25, 34, 51, 44, 8]), null, new Collections.List(["Jan", "Feb", "Mar", "Apr",

"May", "Jun"]));

var barRenderer = new Charting.BarStackRenderer(new Collections.ObservableCollection([data1, data2]));
barRenderer.stackOuterLabels = true;

 See Also