com.aspose.cells

Class Sparkline

  • java.lang.Object
    • com.aspose.cells.Sparkline
public class Sparkline 
extends java.lang.Object

A sparkline represents a tiny chart or graphic in a worksheet cell that provides a visual representation of data.

Property Getters/Setters Summary
intgetColumn()
Gets the column index of the sparkline.
java.lang.StringgetDataRange()
void
setDataRange(java.lang.Stringvalue)
Represents the data range of the sparkline.
intgetRow()
Gets the row index of the sparkline.
 
Method Summary
voidtoImage(java.io.OutputStreamstream, ImageOrPrintOptions options)
Converts a sparkline to an image.
voidtoImage(java.lang.StringfileName, ImageOrPrintOptions options)
Converts a sparkline to an image.
 

    • Property Getters/Setters Detail

      • getDataRange/setDataRange

        public java.lang.String getDataRange() / public void setDataRange(java.lang.String value)
        
        Represents the data range of the sparkline.
      • getRow

        public int getRow()
        
        Gets the row index of the sparkline.
      • getColumn

        public int getColumn()
        
        Gets the column index of the sparkline.
    • Method Detail

      • toImage

        public void toImage(java.lang.String fileName, ImageOrPrintOptions options)
                    throws java.lang.Exception
        Converts a sparkline to an image.
        Parameters:
        fileName - The image file name.
        options - The image options
      • toImage

        public void toImage(java.io.OutputStream stream, ImageOrPrintOptions options)
                    throws java.lang.Exception
        Converts a sparkline to an image.
        Parameters:
        stream - The image stream.
        options - The image options.