Encapsulates the object that represents the title of chart or axis.
Example:
Workbook workbook = new Workbook();
Worksheet sheet = workbook.getWorksheets().get(0);
Cells cells = sheet.getCells();
cells.get(0,1).putValue("Income");
cells.get(1,0).putValue("Company A");
cells.get(2,0).putValue("Company B");
cells.get(3,0).putValue("Company C");
cells.get(1,1).putValue(10000);
cells.get(2,1).putValue(20000);
cells.get(3,1).putValue(30000);
int chartIndex = sheet.getCharts().add(ChartType.COLUMN, 9, 9, 21, 15);
Chart chart = sheet.getCharts().get(chartIndex);
//Setting the title of a chart
chart.getTitle().setText("Title");
//Setting the font color of the chart title to blue
chart.getTitle().getFont().setColor(Color.getBlue());
//Setting the title of category axis of the chart
chart.getCategoryAxis().getTitle().setText("Category");
//Setting the title of value axis of the chart
chart.getValueAxis().getTitle().setText("Value");
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.
Gets or sets whether a shape should be auto-fit to fully contain the text described within it. Auto-fitting is
when text within a shape is scaled in order to contain all the text inside.
public int getTextDirection() / public void setTextDirection(int value)
Represents text reading order.
The value of the property is TextDirectionType integer constant.NOTE: This member is now obsolete. Instead,
please use ChartTextFrame.ReadingOrder property.
This property will be removed 12 months later since March 2020.
Aspose apologizes for any inconvenience you may have experienced.
public boolean isResizeShapeToFitText() / public void setResizeShapeToFitText(boolean value)
Gets or sets whether a shape should be auto-fit to fully contain the text described within it. Auto-fitting is
when text within a shape is scaled in order to contain all the text inside.
public boolean isInnerMode() / public void setInnerMode(boolean value)
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.
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.
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.
public int getHeight() / public void setHeight(int value)
Gets or sets the height of frame in units of 1/4000 of the chart area.
How to convert units of 1/4000 to pixels?
Height In Pixels = Y * Chart.ChartObject.Height / 4000;
public int getWidth() / public void setWidth(int value)
Gets or sets the width of frame in units of 1/4000 of the chart area.
How to convert units of 1/4000 to pixels?
Width In Pixels = Width * Chart.ChartObject.Height / 4000;
public com.aspose.cells.FontSetting[] getCharacters()
Gets rich text formatting of this Title.
NOTE: This member is now obsolete.
Instead, please use Title.Characters() method.
This property will be removed 12 months later since November 2016.
Aspose apologizes for any inconvenience you may have experienced.
Returns:
returns FontSetting array
characters
public com.aspose.cells.FontSetting[] characters()