<dataLabels type="string" visible="true|false"> <style> <layout> <format>
The type attribute configures the type of data caption to display. The visible attribute is a Boolean that defines whether the labels should be displayed in the chart.
The following table describes the possible type attribute values.
Attribute Value | Description |
---|---|
Auto | A label is added automatically. |
Value | The data caption displays the value. This corresponds to a value axis. |
Label | The data caption displays the category. This corresponds to a category axis. |
Percent | The data caption displays the values in percent. |
LabelAndValue | The data caption displays the category followed by the value. |
LabelAndPercent | The data caption displays the category followed by the value in percent. |
XValue | The data caption displays the second value corresponding to the second value axis. |
Weight | The data caption displays the category followed by the value. |
Scale | The data caption displays the value corresponding to the bubble width. |
Attribute Value | Type of chart |
---|---|
Auto | All except Waterfall |
Value | All |
Label | All except Line, DualLine, Surface, Radar, and HeatMap |
Percent | All except Point series, Radar, HeatMap, and Waterfall |
LabelAndValue | Pie series only |
LabelAndPercent | Pie series only |
XValue | Point series only |
Weight | TreeMap only |
Scale | Bubble and PolarBubble charts only |
The following table shows the <dataLabels> children elements.
Child Element | Description |
---|---|
<style> | The style of a label defines the following properties:
|
<layout> | The data label layout has the following attributes:
|
<format> | The expression to use to format and display tick values. Note For
Percent or LabelAndPercent
type only.
|
<dataLabels type="LabelAndPercent" visible="false"> <style> <border thickness="None"> <color rgb="#000000" alpha="255"/> </border> <background> <color rgb="#000000" alpha="0"/> </background> <font size="8" face="Arial" italic="false" bold="true" strikethrough="false" underline="false" rgb="#707070"/> <alignment textPolicy="NoWrap"/> </style> <layout autoHiding="true" resolveOverlapping="false" mode="Side" position="Outside" spacing="0" singleLine="true" percentMinValue="10.0"> <separator> <start>(</start> <end>)</end> </separator> <format default="true" sample="1234,57" type="Custom"> <template positive="0.00"/> </format> </dataLabels>