Gets or Sets how the labels will appear for a DataPoint. It takes values "Inside" or "Outside".
Type: LabelStyles
Namespace: Visifire.Charts
Assembly:
|
Silverlight: |
SLVisifire.Charts (in SLVisifire.Charts.dll) |
|
WPF: |
WPFVisifire.Charts (in WPFVisifire.Charts.dll) |
This attribute applies to:
Syntax:
<vc:Chart ... >
<vc:Chart.Series>
<vc:DataSeries>
<vc:DataSeries.DataPoints>
<vc:DataPoint LabelStyle="Inside" />
</vc:DataSeries.DataPoints>
</vc:DataSeries>
</vc:Chart.Series>
</vc:Chart>
Below is the chart after setting LabelStyle property:

Remarks:
For a list of possible values please refer to LabelStyles.
The default value of LabelStyle depends upon type of the chart. The default value of LabelStyle property is "Inside" for the following chart types
StackedColumn (except for top DataSeries)
StackedBar (except for top DataSeries)
StackedArea (except for top DataSeries)
StackedColumn100
StackedBar100
StackedArea100
For all remaining chart types the default value of LabelStyle property is "OutSide"
3. Please note that if LabelStyle is set by user explicitly then auto label placement won't work. Auto label placement will work only if the LabelStyle property is not set by user.
4. Also note that size of labels are not considered while calculating the size of the PlotArea. Auto label placement will try to place the labels inside the PlotArea in order to avoid clipping.
How auto label placement works?
As an example, default value of LabelStyle property of Column chart is "OutSide". Label placement manager will try to place all labels outside of the Column. If any of the labels goes out of the PlotArea, label will be replaced inside the column. If LabelStyle is set by user, auto label placement will not work anymore.