SparklineGroup
in package
A group of sparklines that share formatting (type, colours, markers, axis).
In OOXML this is the x14:sparklineGroup element. A group contains one or
more Sparkline objects (x14:sparkline), each pairing a data range
with the cell it is drawn in.
Table of Contents
Constants
- AXIS_CUSTOM = 'custom'
- AXIS_GROUP = 'group'
- AXIS_INDIVIDUAL = 'individual'
- EMPTY_AS_GAP = 'gap'
- EMPTY_AS_SPAN = 'span'
- EMPTY_AS_ZERO = 'zero'
Methods
- addSparkline() : self
- createSparkline() : self
- Convenience helper: create and add a sparkline from a location cell and data range, returning this group for chaining.
- getColorAxis() : string|null
- getColorFirst() : string|null
- getColorHigh() : string|null
- getColorLast() : string|null
- getColorLow() : string|null
- getColorMarkers() : string|null
- getColorNegative() : string|null
- getColorSeries() : string|null
- getDisplayEmptyCellsAs() : string
- getDisplayFirst() : bool
- getDisplayHidden() : bool
- getDisplayHigh() : bool
- getDisplayLast() : bool
- getDisplayLow() : bool
- getDisplayMarkers() : bool
- getDisplayNegative() : bool
- getDisplayXAxis() : bool
- getLineWeight() : float
- getManualMax() : float|null
- getManualMin() : float|null
- getMaxAxisType() : string
- getMinAxisType() : string
- getRightToLeft() : bool
- getSparklines() : array<string|int, Sparkline>
- getType() : SparklineType
- setColorAxis() : self
- setColorFirst() : self
- setColorHigh() : self
- setColorLast() : self
- setColorLow() : self
- setColorMarkers() : self
- setColorNegative() : self
- setColorSeries() : self
- setDisplayEmptyCellsAs() : self
- setDisplayFirst() : self
- setDisplayHidden() : self
- setDisplayHigh() : self
- setDisplayLast() : self
- setDisplayLow() : self
- setDisplayMarkers() : self
- setDisplayNegative() : self
- setDisplayXAxis() : self
- setLineWeight() : self
- setManualMax() : self
- setManualMin() : self
- setMaxAxisType() : self
- setMinAxisType() : self
- setRightToLeft() : self
- setSparklines() : self
- setType() : self
Constants
AXIS_CUSTOM
public
mixed
AXIS_CUSTOM
= 'custom'
AXIS_GROUP
public
mixed
AXIS_GROUP
= 'group'
AXIS_INDIVIDUAL
public
mixed
AXIS_INDIVIDUAL
= 'individual'
EMPTY_AS_GAP
public
mixed
EMPTY_AS_GAP
= 'gap'
EMPTY_AS_SPAN
public
mixed
EMPTY_AS_SPAN
= 'span'
EMPTY_AS_ZERO
public
mixed
EMPTY_AS_ZERO
= 'zero'
Methods
addSparkline()
public
addSparkline(Sparkline $sparkline) : self
Parameters
- $sparkline : Sparkline
Return values
selfcreateSparkline()
Convenience helper: create and add a sparkline from a location cell and data range, returning this group for chaining.
public
createSparkline(CellAddress|string $location, string $dataRange) : self
Parameters
- $location : CellAddress|string
- $dataRange : string
Return values
selfgetColorAxis()
public
getColorAxis() : string|null
Return values
string|nullgetColorFirst()
public
getColorFirst() : string|null
Return values
string|nullgetColorHigh()
public
getColorHigh() : string|null
Return values
string|nullgetColorLast()
public
getColorLast() : string|null
Return values
string|nullgetColorLow()
public
getColorLow() : string|null
Return values
string|nullgetColorMarkers()
public
getColorMarkers() : string|null
Return values
string|nullgetColorNegative()
public
getColorNegative() : string|null
Return values
string|nullgetColorSeries()
public
getColorSeries() : string|null
Return values
string|nullgetDisplayEmptyCellsAs()
public
getDisplayEmptyCellsAs() : string
Return values
stringgetDisplayFirst()
public
getDisplayFirst() : bool
Return values
boolgetDisplayHidden()
public
getDisplayHidden() : bool
Return values
boolgetDisplayHigh()
public
getDisplayHigh() : bool
Return values
boolgetDisplayLast()
public
getDisplayLast() : bool
Return values
boolgetDisplayLow()
public
getDisplayLow() : bool
Return values
boolgetDisplayMarkers()
public
getDisplayMarkers() : bool
Return values
boolgetDisplayNegative()
public
getDisplayNegative() : bool
Return values
boolgetDisplayXAxis()
public
getDisplayXAxis() : bool
Return values
boolgetLineWeight()
public
getLineWeight() : float
Return values
floatgetManualMax()
public
getManualMax() : float|null
Return values
float|nullgetManualMin()
public
getManualMin() : float|null
Return values
float|nullgetMaxAxisType()
public
getMaxAxisType() : string
Return values
stringgetMinAxisType()
public
getMinAxisType() : string
Return values
stringgetRightToLeft()
public
getRightToLeft() : bool
Return values
boolgetSparklines()
public
getSparklines() : array<string|int, Sparkline>
Return values
array<string|int, Sparkline>getType()
public
getType() : SparklineType
Return values
SparklineTypesetColorAxis()
public
setColorAxis(string|null $colorAxis) : self
Parameters
- $colorAxis : string|null
Return values
selfsetColorFirst()
public
setColorFirst(string|null $colorFirst) : self
Parameters
- $colorFirst : string|null
Return values
selfsetColorHigh()
public
setColorHigh(string|null $colorHigh) : self
Parameters
- $colorHigh : string|null
Return values
selfsetColorLast()
public
setColorLast(string|null $colorLast) : self
Parameters
- $colorLast : string|null
Return values
selfsetColorLow()
public
setColorLow(string|null $colorLow) : self
Parameters
- $colorLow : string|null
Return values
selfsetColorMarkers()
public
setColorMarkers(string|null $colorMarkers) : self
Parameters
- $colorMarkers : string|null
Return values
selfsetColorNegative()
public
setColorNegative(string|null $colorNegative) : self
Parameters
- $colorNegative : string|null
Return values
selfsetColorSeries()
public
setColorSeries(string|null $colorSeries) : self
Parameters
- $colorSeries : string|null
Return values
selfsetDisplayEmptyCellsAs()
public
setDisplayEmptyCellsAs(string $displayEmptyCellsAs) : self
Parameters
- $displayEmptyCellsAs : string
Return values
selfsetDisplayFirst()
public
setDisplayFirst(bool $displayFirst) : self
Parameters
- $displayFirst : bool
Return values
selfsetDisplayHidden()
public
setDisplayHidden(bool $displayHidden) : self
Parameters
- $displayHidden : bool
Return values
selfsetDisplayHigh()
public
setDisplayHigh(bool $displayHigh) : self
Parameters
- $displayHigh : bool
Return values
selfsetDisplayLast()
public
setDisplayLast(bool $displayLast) : self
Parameters
- $displayLast : bool
Return values
selfsetDisplayLow()
public
setDisplayLow(bool $displayLow) : self
Parameters
- $displayLow : bool
Return values
selfsetDisplayMarkers()
public
setDisplayMarkers(bool $displayMarkers) : self
Parameters
- $displayMarkers : bool
Return values
selfsetDisplayNegative()
public
setDisplayNegative(bool $displayNegative) : self
Parameters
- $displayNegative : bool
Return values
selfsetDisplayXAxis()
public
setDisplayXAxis(bool $displayXAxis) : self
Parameters
- $displayXAxis : bool
Return values
selfsetLineWeight()
public
setLineWeight(float $lineWeight) : self
Parameters
- $lineWeight : float
Return values
selfsetManualMax()
public
setManualMax(float|null $manualMax) : self
Parameters
- $manualMax : float|null
Return values
selfsetManualMin()
public
setManualMin(float|null $manualMin) : self
Parameters
- $manualMin : float|null
Return values
selfsetMaxAxisType()
public
setMaxAxisType(string $maxAxisType) : self
Parameters
- $maxAxisType : string
Return values
selfsetMinAxisType()
public
setMinAxisType(string $minAxisType) : self
Parameters
- $minAxisType : string
Return values
selfsetRightToLeft()
public
setRightToLeft(bool $rightToLeft) : self
Parameters
- $rightToLeft : bool
Return values
selfsetSparklines()
public
setSparklines(array<string|int, Sparkline> $sparklines) : self
Parameters
- $sparklines : array<string|int, Sparkline>
Return values
selfsetType()
public
setType(SparklineType $type) : self
Parameters
- $type : SparklineType