Class DataLabels

Encapsulates a collection of all the DataLabel objects for the specified Series.

Example:

//Set the DataLabels in the chart
DataLabels datalabels;
for (int i = 0; i < chart.getNSeries().getCount(); i++)
{
datalabels = chart.getNSeries().get(i).getDataLabels();
//Set the position of DataLabels
datalabels.setPosition(LabelPositionType.INSIDE_BASE);
//Show the category name in the DataLabels
datalabels.setCategoryNameShown(true);
//Show the value in the DataLabels
datalabels.setValueShown(true);
//Not show the percentage in the DataLabels
datalabels.setPercentageShown(false);
//Not show the legend key.
datalabels.setLegendKeyShown(false);
}

Indicates whether the size of the plot area size includes the tick marks, and the axis labels.
False specifies that the size shall determine the size of the plot area, the tick marks, and the axis labels.

isValueShown/setValueShown

Represents a specified chart's data label values display behavior. True displays the values. False to hide.
NOTE: This member is now obsolete. Instead,
please use DataLabels.ShowValue property.
This property will be removed 12 months later since June 2010.
Aspose apologizes for any inconvenience you may have experienced.

isPercentageShown/setPercentageShown

Represents a specified chart's data label percentage value display behavior.
True displays the percentage value. False to hide.
NOTE: This member is now obsolete. Instead,
please use DataLabels.ShowPercentage property.
This property will be removed 12 months later since June 2010.
Aspose apologizes for any inconvenience you may have experienced.

isBubbleSizeShown/setBubbleSizeShown

Represents a specified chart's data label percentage value display behavior. True displays the percentage value. False to hide.
NOTE: This member is now obsolete. Instead,
please use DataLabels.ShowBubbleSize property.
This property will be removed 12 months later since June 2010.
Aspose apologizes for any inconvenience you may have experienced.

isCategoryNameShown/setCategoryNameShown

Represents a specified chart's data label category name display behavior.True to display the category name for the data labels on a chart. False to hide.
NOTE: This member is now obsolete. Instead,
please use DataLabels.ShowCategoryName property.
This property will be removed 12 months later since June 2010.
Aspose apologizes for any inconvenience you may have experienced.

isSeriesNameShown/setSeriesNameShown

Returns or sets a Boolean to indicate the series name display behavior for the data labels on a chart.
True to show the series name. False to hide.
NOTE: This member is now obsolete. Instead,
please use DataLabels.ShowSeriesName property.
This property will be removed 12 months later since June 2010.
Aspose apologizes for any inconvenience you may have experienced.

isLegendKeyShown/setLegendKeyShown

Represents a specified chart's data label legend key display behavior.True if the data label legend key is visible.
NOTE: This member is now obsolete. Instead,
please use DataLabels.ShowLegendKey property.
This property will be removed 12 months later since June 2010.
Aspose apologizes for any inconvenience you may have experienced.

getFont

getSeparator/setSeparator

public int getSeparator() / public void setSeparator(int value)

Sets or returns the _separator type used for the data labels on a chart.
The value of the property is DataLablesSeparatorType integer constant.
Sets _separator type will specify standard _separator for datalabels.
Space is " "
Comma is ", "
Semicolon is "; "
Period is ". "
NewLine is "\n"
If want set standard _separator, may sets _separator tyep to InnerCustom and set SepartorValue at the same time.

isInnerMode/setInnerMode

Indicates whether the size of the plot area size includes the tick marks, and the axis labels.
False specifies that the size shall determine the size of the plot area, the tick marks, and the axis labels.
Only for Xlsx file.

getChart

getBorder

getArea

getTextFont

Gets a Font object of the specified ChartFrame object.
NOTE: This member is now obsolete. Instead,
please use ChartFrame.Font property.
This property will be removed 12 months later since JANUARY 2012.
Aspose apologizes for any inconvenience you may have experienced.

getAutoScaleFont/setAutoScaleFont

True if the text in the object changes font size when the object size changes. The default value is True.

getBackground/setBackground

public int getBackground() / public void setBackground(int value)

Gets and sets the display mode of the background
The value of the property is BackgroundMode integer constant.NOTE: This member is now obsolete. Instead,
please use ChartFrame.BackgroundMode property.
This property will be removed 12 months later since JANUARY 2012.
Aspose apologizes for any inconvenience you may have experienced.