19 'format' => self::FORMAT_CODE_GENERAL,
33 'orientation' => self::ORIENTATION_NORMAL,
34 'minor_tick_mark' => self::TICK_MARK_NONE,
35 'major_tick_mark' => self::TICK_MARK_NONE,
36 'axis_labels' => self::AXIS_LABELS_NEXT_TO,
37 'horizontal_crosses' => self::HORIZONTAL_CROSSES_AUTOZERO,
38 'horizontal_crosses_value' => null,
47 'type' => self::EXCEL_COLOR_TYPE_ARGB,
58 'type' => self::EXCEL_COLOR_TYPE_ARGB,
70 'compound' => self::LINE_STYLE_COMPOUND_SIMPLE,
71 'dash' => self::LINE_STYLE_DASH_SOLID,
72 'cap' => self::LINE_STYLE_CAP_FLAT,
73 'join' => self::LINE_STYLE_JOIN_BEVEL,
76 'type' => self::LINE_STYLE_ARROW_TYPE_NOARROW,
77 'size' => self::LINE_STYLE_ARROW_SIZE_5,
80 'type' => self::LINE_STYLE_ARROW_TYPE_NOARROW,
81 'size' => self::LINE_STYLE_ARROW_SIZE_8,
92 'presets' => self::SHADOW_PRESETS_NOSHADOW,
95 'type' => self::EXCEL_COLOR_TYPE_STANDARD,
108 'rotWithShape' => null,
119 'type' => self::EXCEL_COLOR_TYPE_STANDARD,
141 $this->axisNumber[
'format'] = (string) $format_code;
142 $this->axisNumber[
'source_linked'] = 0;
152 return $this->axisNumber[
'format'];
162 return (
string) $this->axisNumber[
'source_linked'];
179 public function setAxisOptionsProperties($axis_labels, $horizontal_crosses_value = null, $horizontal_crosses = null, $axis_orientation = null, $major_tmt = null, $minor_tmt = null, $minimum = null, $maximum = null, $major_unit = null, $minor_unit = null): void
181 $this->axisOptions[
'axis_labels'] = (string) $axis_labels;
182 ($horizontal_crosses_value !== null) ? $this->axisOptions[
'horizontal_crosses_value'] = (
string) $horizontal_crosses_value : null;
183 ($horizontal_crosses !== null) ? $this->axisOptions[
'horizontal_crosses'] = (
string) $horizontal_crosses : null;
184 ($axis_orientation !== null) ? $this->axisOptions[
'orientation'] = (
string) $axis_orientation : null;
185 ($major_tmt !== null) ? $this->axisOptions[
'major_tick_mark'] = (
string) $major_tmt : null;
186 ($minor_tmt !== null) ? $this->axisOptions[
'minor_tick_mark'] = (
string) $minor_tmt : null;
187 ($minor_tmt !== null) ? $this->axisOptions[
'minor_tick_mark'] = (
string) $minor_tmt : null;
188 ($minimum !== null) ? $this->axisOptions[
'minimum'] = (
string) $minimum : null;
189 ($maximum !== null) ? $this->axisOptions[
'maximum'] = (
string) $maximum : null;
190 ($major_unit !== null) ? $this->axisOptions[
'major_unit'] = (
string) $major_unit : null;
191 ($minor_unit !== null) ? $this->axisOptions[
'minor_unit'] = (
string) $minor_unit : null;
203 return $this->axisOptions[$property];
213 $this->axisOptions[
'orientation'] = (string) $orientation;
249 return $this->fillProperties[$property];
261 return $this->lineProperties[$property];
277 public function setLineStyleProperties($line_width = null, $compound_type = null, $dash_type = null, $cap_type = null, $join_type = null, $head_arrow_type = null, $head_arrow_size = null, $end_arrow_type = null, $end_arrow_size = null): void
279 ($line_width !== null) ? $this->lineStyleProperties[
'width'] = $this->
getExcelPointsWidth((
float) $line_width) : null;
280 ($compound_type !== null) ? $this->lineStyleProperties[
'compound'] = (
string) $compound_type : null;
281 ($dash_type !== null) ? $this->lineStyleProperties[
'dash'] = (
string) $dash_type : null;
282 ($cap_type !== null) ? $this->lineStyleProperties[
'cap'] = (
string) $cap_type : null;
283 ($join_type !== null) ? $this->lineStyleProperties[
'join'] = (
string) $join_type : null;
284 ($head_arrow_type !== null) ? $this->lineStyleProperties[
'arrow'][
'head'][
'type'] = (
string) $head_arrow_type : null;
285 ($head_arrow_size !== null) ? $this->lineStyleProperties[
'arrow'][
'head'][
'size'] = (
string) $head_arrow_size : null;
286 ($end_arrow_type !== null) ? $this->lineStyleProperties[
'arrow'][
'end'][
'type'] = (
string) $end_arrow_type : null;
287 ($end_arrow_size !== null) ? $this->lineStyleProperties[
'arrow'][
'end'][
'size'] = (
string) $end_arrow_size : null;
337 public function setShadowProperties($sh_presets, $sh_color_value = null, $sh_color_type = null, $sh_color_alpha = null, $sh_blur = null, $sh_angle = null, $sh_distance = null): void
341 $sh_color_value ?? $this->shadowProperties[
'color'][
'value'],
342 $sh_color_alpha ?? (
int) $this->shadowProperties[
'color'][
'alpha'],
343 $sh_color_type ?? $this->shadowProperties[
'color'][
'type']
345 ->setShadowBlur($sh_blur)
346 ->setShadowAngle($sh_angle)
347 ->setShadowDistance($sh_distance);
359 $this->shadowProperties[
'presets'] = $shadow_presets;
374 $base_reference = $reference;
375 foreach ($properties_map as $property_key => $property_val) {
376 if (is_array($property_val)) {
377 if ($reference === null) {
378 $reference = &$this->shadowProperties[$property_key];
380 $reference = &$reference[$property_key];
384 if ($base_reference === null) {
385 $this->shadowProperties[$property_key] = $property_val;
387 $reference[$property_key] = $property_val;
420 if ($blur !== null) {
452 if ($distance !== null) {
483 $color_value ?? $this->glowProperties[
'color'][
'value'],
484 $color_alpha ?? (
int) $this->glowProperties[
'color'][
'alpha'],
485 $color_type ?? $this->glowProperties[
'color'][
'type']
510 if (
$size !== null) {
540 if (
$size !== null) {
552 return $this->softEdges[
'size'];
getShadowPresetsMap($shadow_presets_option)
getLineStyleProperty($elements)
Get Line Style Property.
getLineStyleArrowSize($array_selector, $array_kay_selector)
setShadowProperiesMapValues(array $properties_map, &$reference=null)
Set Shadow Properties from Mapped Values.
setShadowAngle($angle)
Set Shadow Angle.
getFillProperty($property)
Get Fill Property.
setLineStyleProperties($line_width=null, $compound_type=null, $dash_type=null, $cap_type=null, $join_type=null, $head_arrow_type=null, $head_arrow_size=null, $end_arrow_type=null, $end_arrow_size=null)
Set Line Style Properties.
setAxisOrientation($orientation)
Set Axis Orientation Property.
getAxisNumberFormat()
Get Axis Number Format Data Type.
setSoftEdges($size)
Set Soft Edges Size.
getGlowProperty($property)
Get Glow Property.
getAxisNumberSourceLinked()
Get Axis Number Source Linked.
setShadowBlur($blur)
Set Shadow Blur.
getLineProperty($property)
Get Line Property.
getLineStyleArrowLength($arrow)
Get Line Style Arrow Excel Length.
setAxisNumberProperties($format_code)
Get Series Data Type.
setFillParameters($color, $alpha=0, $type=self::EXCEL_COLOR_TYPE_ARGB)
Set Fill Property.
setGlowSize($size)
Set Glow Color.
getExcelPointsWidth($width)
setShadowProperties($sh_presets, $sh_color_value=null, $sh_color_type=null, $sh_color_alpha=null, $sh_blur=null, $sh_angle=null, $sh_distance=null)
Set Shadow Properties.
getLineStyleArrowWidth($arrow)
Get Line Style Arrow Excel Width.
setShadowColor($color, $alpha, $type)
Set Shadow Color.
setLineParameters($color, $alpha=0, $type=self::EXCEL_COLOR_TYPE_ARGB)
Set Line Property.
getShadowProperty($elements)
Get Shadow Property.
setShadowPresetsProperties($shadow_presets)
Set Shadow Color.
setGlowColor($color, $alpha, $type)
Set Glow Color.
getExcelPointsAngle($angle)
getSoftEdgesSize()
Get Soft Edges Size.
setGlowProperties($size, $color_value=null, $color_alpha=null, $color_type=null)
Set Glow Properties.
setAxisOptionsProperties($axis_labels, $horizontal_crosses_value=null, $horizontal_crosses=null, $axis_orientation=null, $major_tmt=null, $minor_tmt=null, $minimum=null, $maximum=null, $major_unit=null, $minor_unit=null)
Set Axis Options Properties.
setShadowDistance($distance)
Set Shadow Distance.
getAxisOptionsProperty($property)
Get Axis Options Property.
getArrayElementsValue($properties, $elements)
setColorProperties($color, $alpha, $type)