[]
        
(Showing Draft Content)

IChartArea

Interface IChartArea


public interface IChartArea
Represents the chart area of a chart. The chart area on a 2-D chart contains the axes, the chart title, the axis titles, and the legend. The chart area on a 3-D chart contains the chart title and the legend; it doesn’t include the plot area (the area within the chart area where the data is plotted). For information about the area where data is plotted and formatted, see the IPlotArea object.

 IChart chart = worksheet.getShapes().addChart(ChartType.ColumnClustered, 20, 20, 300, 200).getChart();
 IChartArea chartArea = chart.getChartArea();
 chartArea.setRoundedCorners(true);
 boolean roundedCorners = chartArea.getRoundedCorners();
 
  • Method Details

    • getParent

      IChart getParent()
      Returns the parent object for the specified object.
      
       IChart chart = worksheet.getShapes().addChart(ChartType.ColumnClustered, 20, 20, 300, 200).getChart();
       IChartArea chartArea = chart.getChartArea();
       IChart parentChart = chartArea.getParent();
       
      Returns:
      The parent object for the specified object.
    • getFont

      IFontFormat getFont()
      Returns the IFontFormat object that represents the font of the specified object.
      
       IChart chart = worksheet.getShapes().addChart(ChartType.ColumnClustered, 20, 20, 300, 200).getChart();
       IChartArea chartArea = chart.getChartArea();
       chartArea.getFont().setBold(true);
       boolean bold = chartArea.getFont().getBold();
       
      Returns:
      The object that represents the font of the specified object.
    • getFormat

      IChartFormat getFormat()
      Gets the IChartFormat object for the chart area.
      
       IChart chart = worksheet.getShapes().addChart(ChartType.ColumnClustered, 20, 20, 300, 200).getChart();
       IChartArea chartArea = chart.getChartArea();
       IChartFormat format = chartArea.getFormat();
       
      Returns:
      The IChartFormat object for the chart area.
    • getRoundedCorners

      boolean getRoundedCorners()
      Gets whether the embedded chart has rounded corners.
      
       IChart chart = worksheet.getShapes().addChart(ChartType.ColumnClustered, 20, 20, 300, 200).getChart();
       IChartArea chartArea = chart.getChartArea();
       chartArea.setRoundedCorners(true);
       boolean roundedCorners = chartArea.getRoundedCorners();
       
      Returns:
      true if the embedded chart has rounded corners; otherwise, false.
    • setRoundedCorners

      void setRoundedCorners(boolean value)
      Sets whether the embedded chart has rounded corners.
      
       IChart chart = worksheet.getShapes().addChart(ChartType.ColumnClustered, 20, 20, 300, 200).getChart();
       IChartArea chartArea = chart.getChartArea();
       chartArea.setRoundedCorners(true);
       boolean roundedCorners = chartArea.getRoundedCorners();
       
      Parameters:
      value - Whether the embedded chart has rounded corners.