Class XSSFChart

    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.poi.ooxml.POIXMLDocumentPart

        org.apache.poi.ooxml.POIXMLDocumentPart.RelationPart
    • Field Summary

      • Fields inherited from class org.apache.poi.xddf.usermodel.chart.XDDFChart

        DEFAULT_HEIGHT, DEFAULT_WIDTH, DEFAULT_X, DEFAULT_Y
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      XSSFCategoryAxis createCategoryAxis​(AxisPosition pos)
      Deprecated.
      XSSFDateAxis createDateAxis​(AxisPosition pos)
      Deprecated.
      XSSFValueAxis createValueAxis​(AxisPosition pos)
      Deprecated.
      java.util.List<? extends XSSFChartAxis> getAxis()
      Deprecated.
      use XDDFChart.getAxes() instead
      XSSFChart getChartAxisFactory()
      Deprecated.
      XSSFChartDataFactory getChartDataFactory()
      Deprecated.
      XSSFGraphicFrame getGraphicFrame()
      Returns the parent graphic frame.
      XSSFManualLayout getManualLayout()
      Deprecated.
      XSSFChartLegend getOrCreateLegend()
      Deprecated.
      java.lang.String getTitleFormula()
      Get the chart title formula expression if there is one
      XSSFRichTextString getTitleText()
      Returns the title static text, or null if none is set.
      void plot​(ChartData data, ChartAxis... chartAxis)
      Deprecated.
      void setTitleFormula​(java.lang.String formula)
      Set the formula expression to use for the chart title
      • Methods inherited from class org.apache.poi.xddf.usermodel.chart.XDDFChart

        clear, clearChartSeries, createCategoryAxis, createData, createDateAxis, createRelationshipInChart, createSeriesAxis, createValueAxis, deleteLegend, deleteShapeProperties, displayBlanksAs, findDefinedParagraphProperty, findDefinedRunProperty, formatRange, getAxes, getChartSeries, getCTChart, getCTChartSpace, getFormattedTitle, getOrAddLegend, getOrAddManualLayout, getOrAddShapeProperties, getOrAddView3D, getTitle, getTitleOverlay, getWorkbook, importContent, isPlotOnlyVisibleCells, plot, saveWorkbook, setAutoTitleDeleted, setBackWall, setChartIndex, setExternalId, setFloor, setPlotOnlyVisibleCells, setSheetTitle, setSideWall, setTitleOverlay, setTitleText, setValueRange, setWorkbook
      • Methods inherited from class org.apache.poi.ooxml.POIXMLDocumentPart

        _invokeOnDocumentRead, addRelation, createRelationship, createRelationship, createRelationship, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, isCommited, isCommitted, setCommited, setCommitted, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getGraphicFrame

        public XSSFGraphicFrame getGraphicFrame()
        Returns the parent graphic frame.
        Returns:
        the graphic frame this chart belongs to
      • plot

        @Deprecated
        @Removal(version="4.2")
        public void plot​(ChartData data,
                         ChartAxis... chartAxis)
        Deprecated.
        Description copied from interface: Chart
        Plots specified data on the chart.
        Specified by:
        plot in interface Chart
        Parameters:
        data - a data to plot
      • getAxis

        @Deprecated
        @Removal(version="4.2")
        public java.util.List<? extends XSSFChartAxis> getAxis()
        Deprecated.
        use XDDFChart.getAxes() instead
        Specified by:
        getAxis in interface Chart
        Returns:
        list of all chart axis
      • getTitleText

        public XSSFRichTextString getTitleText()
        Returns the title static text, or null if none is set. Note that a title formula may be set instead. Empty text result is for backward compatibility, and could mean the title text is empty or there is a formula instead. Check for a formula first, falling back on text for cleaner logic.
        Returns:
        static title text if set, null if there is no title, empty string if the title text is empty or the title uses a formula instead
      • getTitleFormula

        public java.lang.String getTitleFormula()
        Get the chart title formula expression if there is one
        Returns:
        formula expression or null
      • setTitleFormula

        public void setTitleFormula​(java.lang.String formula)
        Set the formula expression to use for the chart title
        Parameters:
        formula -