Write Value Axis.
584 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'orientation'));
586 if (!is_null($xAxis->getAxisOptionsProperty(
'maximum'))) {
588 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'maximum'));
592 if (!is_null($xAxis->getAxisOptionsProperty(
'minimum'))) {
594 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'minimum'));
612 if (!is_null($majorGridlines->getLineColorProperty(
'value'))) {
614 $objWriter->writeAttribute(
'w', $majorGridlines->getLineStyleProperty(
'width'));
616 $objWriter->startElement(
"a:{$majorGridlines->getLineColorProperty('type')}");
617 $objWriter->writeAttribute(
'val', $majorGridlines->getLineColorProperty(
'value'));
619 $objWriter->writeAttribute(
'val', $majorGridlines->getLineColorProperty(
'alpha'));
625 $objWriter->writeAttribute(
'val', $majorGridlines->getLineStyleProperty(
'dash'));
628 if ($majorGridlines->getLineStyleProperty(
'join') ==
'miter') {
637 if (!is_null($majorGridlines->getLineStyleProperty(
array(
'arrow',
'head',
'type')))) {
639 $objWriter->writeAttribute(
'type', $majorGridlines->getLineStyleProperty(
array(
'arrow',
'head',
'type')));
640 $objWriter->writeAttribute(
'w', $majorGridlines->getLineStyleArrowParameters(
'head',
'w'));
641 $objWriter->writeAttribute(
'len', $majorGridlines->getLineStyleArrowParameters(
'head',
'len'));
645 if (!is_null($majorGridlines->getLineStyleProperty(
array(
'arrow',
'end',
'type')))) {
647 $objWriter->writeAttribute(
'type', $majorGridlines->getLineStyleProperty(
array(
'arrow',
'end',
'type')));
648 $objWriter->writeAttribute(
'w', $majorGridlines->getLineStyleArrowParameters(
'end',
'w'));
649 $objWriter->writeAttribute(
'len', $majorGridlines->getLineStyleArrowParameters(
'end',
'len'));
656 if (!is_null($majorGridlines->getGlowSize())) {
658 $objWriter->writeAttribute(
'rad', $majorGridlines->getGlowSize());
659 $objWriter->startElement(
"a:{$majorGridlines->getGlowColor('type')}");
660 $objWriter->writeAttribute(
'val', $majorGridlines->getGlowColor(
'value'));
662 $objWriter->writeAttribute(
'val', $majorGridlines->getGlowColor(
'alpha'));
668 if (!is_null($majorGridlines->getShadowProperty(
'presets'))) {
669 $objWriter->startElement(
"a:{$majorGridlines->getShadowProperty('effect')}");
670 if (!is_null($majorGridlines->getShadowProperty(
'blur'))) {
671 $objWriter->writeAttribute(
'blurRad', $majorGridlines->getShadowProperty(
'blur'));
673 if (!is_null($majorGridlines->getShadowProperty(
'distance'))) {
674 $objWriter->writeAttribute(
'dist', $majorGridlines->getShadowProperty(
'distance'));
676 if (!is_null($majorGridlines->getShadowProperty(
'direction'))) {
677 $objWriter->writeAttribute(
'dir', $majorGridlines->getShadowProperty(
'direction'));
679 if (!is_null($majorGridlines->getShadowProperty(
'algn'))) {
680 $objWriter->writeAttribute(
'algn', $majorGridlines->getShadowProperty(
'algn'));
682 if (!is_null($majorGridlines->getShadowProperty(
array(
'size',
'sx')))) {
683 $objWriter->writeAttribute(
'sx', $majorGridlines->getShadowProperty(
array(
'size',
'sx')));
685 if (!is_null($majorGridlines->getShadowProperty(
array(
'size',
'sy')))) {
686 $objWriter->writeAttribute(
'sy', $majorGridlines->getShadowProperty(
array(
'size',
'sy')));
688 if (!is_null($majorGridlines->getShadowProperty(
array(
'size',
'kx')))) {
689 $objWriter->writeAttribute(
'kx', $majorGridlines->getShadowProperty(
array(
'size',
'kx')));
691 if (!is_null($majorGridlines->getShadowProperty(
'rotWithShape'))) {
692 $objWriter->writeAttribute(
'rotWithShape', $majorGridlines->getShadowProperty(
'rotWithShape'));
694 $objWriter->startElement(
"a:{$majorGridlines->getShadowProperty(array('color', 'type'))}");
695 $objWriter->writeAttribute(
'val', $majorGridlines->getShadowProperty(
array(
'color',
'value')));
698 $objWriter->writeAttribute(
'val', $majorGridlines->getShadowProperty(
array(
'color',
'alpha')));
705 if (!is_null($majorGridlines->getSoftEdgesSize())) {
707 $objWriter->writeAttribute(
'rad', $majorGridlines->getSoftEdgesSize());
715 if ($minorGridlines->getObjectState()) {
719 if (!is_null($minorGridlines->getLineColorProperty(
'value'))) {
721 $objWriter->writeAttribute(
'w', $minorGridlines->getLineStyleProperty(
'width'));
723 $objWriter->startElement(
"a:{$minorGridlines->getLineColorProperty('type')}");
724 $objWriter->writeAttribute(
'val', $minorGridlines->getLineColorProperty(
'value'));
726 $objWriter->writeAttribute(
'val', $minorGridlines->getLineColorProperty(
'alpha'));
732 $objWriter->writeAttribute(
'val', $minorGridlines->getLineStyleProperty(
'dash'));
735 if ($minorGridlines->getLineStyleProperty(
'join') ==
'miter') {
744 if (!is_null($minorGridlines->getLineStyleProperty(
array(
'arrow',
'head',
'type')))) {
746 $objWriter->writeAttribute(
'type', $minorGridlines->getLineStyleProperty(
array(
'arrow',
'head',
'type')));
747 $objWriter->writeAttribute(
'w', $minorGridlines->getLineStyleArrowParameters(
'head',
'w'));
748 $objWriter->writeAttribute(
'len', $minorGridlines->getLineStyleArrowParameters(
'head',
'len'));
752 if (!is_null($minorGridlines->getLineStyleProperty(
array(
'arrow',
'end',
'type')))) {
754 $objWriter->writeAttribute(
'type', $minorGridlines->getLineStyleProperty(
array(
'arrow',
'end',
'type')));
755 $objWriter->writeAttribute(
'w', $minorGridlines->getLineStyleArrowParameters(
'end',
'w'));
756 $objWriter->writeAttribute(
'len', $minorGridlines->getLineStyleArrowParameters(
'end',
'len'));
764 if (!is_null($minorGridlines->getGlowSize())) {
766 $objWriter->writeAttribute(
'rad', $minorGridlines->getGlowSize());
767 $objWriter->startElement(
"a:{$minorGridlines->getGlowColor('type')}");
768 $objWriter->writeAttribute(
'val', $minorGridlines->getGlowColor(
'value'));
770 $objWriter->writeAttribute(
'val', $minorGridlines->getGlowColor(
'alpha'));
776 if (!is_null($minorGridlines->getShadowProperty(
'presets'))) {
777 $objWriter->startElement(
"a:{$minorGridlines->getShadowProperty('effect')}");
778 if (!is_null($minorGridlines->getShadowProperty(
'blur'))) {
779 $objWriter->writeAttribute(
'blurRad', $minorGridlines->getShadowProperty(
'blur'));
781 if (!is_null($minorGridlines->getShadowProperty(
'distance'))) {
782 $objWriter->writeAttribute(
'dist', $minorGridlines->getShadowProperty(
'distance'));
784 if (!is_null($minorGridlines->getShadowProperty(
'direction'))) {
785 $objWriter->writeAttribute(
'dir', $minorGridlines->getShadowProperty(
'direction'));
787 if (!is_null($minorGridlines->getShadowProperty(
'algn'))) {
788 $objWriter->writeAttribute(
'algn', $minorGridlines->getShadowProperty(
'algn'));
790 if (!is_null($minorGridlines->getShadowProperty(
array(
'size',
'sx')))) {
791 $objWriter->writeAttribute(
'sx', $minorGridlines->getShadowProperty(
array(
'size',
'sx')));
793 if (!is_null($minorGridlines->getShadowProperty(
array(
'size',
'sy')))) {
794 $objWriter->writeAttribute(
'sy', $minorGridlines->getShadowProperty(
array(
'size',
'sy')));
796 if (!is_null($minorGridlines->getShadowProperty(
array(
'size',
'kx')))) {
797 $objWriter->writeAttribute(
'kx', $minorGridlines->getShadowProperty(
array(
'size',
'kx')));
799 if (!is_null($minorGridlines->getShadowProperty(
'rotWithShape'))) {
800 $objWriter->writeAttribute(
'rotWithShape', $minorGridlines->getShadowProperty(
'rotWithShape'));
802 $objWriter->startElement(
"a:{$minorGridlines->getShadowProperty(array('color', 'type'))}");
803 $objWriter->writeAttribute(
'val', $minorGridlines->getShadowProperty(
array(
'color',
'value')));
805 $objWriter->writeAttribute(
'val', $minorGridlines->getShadowProperty(
array(
'color',
'alpha')));
811 if (!is_null($minorGridlines->getSoftEdgesSize())) {
813 $objWriter->writeAttribute(
'rad', $minorGridlines->getSoftEdgesSize());
838 if (is_array($caption)) {
839 $caption = $caption[0];
865 $objWriter->writeAttribute(
'formatCode', $xAxis->getAxisNumberFormat());
866 $objWriter->writeAttribute(
'sourceLinked', $xAxis->getAxisNumberSourceLinked());
870 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'major_tick_mark'));
874 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'minor_tick_mark'));
878 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'axis_labels'));
883 if (!is_null($xAxis->getFillProperty(
'value'))) {
885 $objWriter->startElement(
"a:" . $xAxis->getFillProperty(
'type'));
886 $objWriter->writeAttribute(
'val', $xAxis->getFillProperty(
'value'));
888 $objWriter->writeAttribute(
'val', $xAxis->getFillProperty(
'alpha'));
896 $objWriter->writeAttribute(
'w', $xAxis->getLineStyleProperty(
'width'));
897 $objWriter->writeAttribute(
'cap', $xAxis->getLineStyleProperty(
'cap'));
898 $objWriter->writeAttribute(
'cmpd', $xAxis->getLineStyleProperty(
'compound'));
900 if (!is_null($xAxis->getLineProperty(
'value'))) {
902 $objWriter->startElement(
"a:" . $xAxis->getLineProperty(
'type'));
903 $objWriter->writeAttribute(
'val', $xAxis->getLineProperty(
'value'));
905 $objWriter->writeAttribute(
'val', $xAxis->getLineProperty(
'alpha'));
912 $objWriter->writeAttribute(
'val', $xAxis->getLineStyleProperty(
'dash'));
915 if ($xAxis->getLineStyleProperty(
'join') ==
'miter') {
924 if (!is_null($xAxis->getLineStyleProperty(
array(
'arrow',
'head',
'type')))) {
926 $objWriter->writeAttribute(
'type', $xAxis->getLineStyleProperty(
array(
'arrow',
'head',
'type')));
927 $objWriter->writeAttribute(
'w', $xAxis->getLineStyleArrowWidth(
'head'));
928 $objWriter->writeAttribute(
'len', $xAxis->getLineStyleArrowLength(
'head'));
932 if (!is_null($xAxis->getLineStyleProperty(
array(
'arrow',
'end',
'type')))) {
934 $objWriter->writeAttribute(
'type', $xAxis->getLineStyleProperty(
array(
'arrow',
'end',
'type')));
935 $objWriter->writeAttribute(
'w', $xAxis->getLineStyleArrowWidth(
'end'));
936 $objWriter->writeAttribute(
'len', $xAxis->getLineStyleArrowLength(
'end'));
944 if (!is_null($xAxis->getGlowProperty(
'size'))) {
946 $objWriter->writeAttribute(
'rad', $xAxis->getGlowProperty(
'size'));
947 $objWriter->startElement(
"a:{$xAxis->getGlowProperty(array('color','type'))}");
948 $objWriter->writeAttribute(
'val', $xAxis->getGlowProperty(
array(
'color',
'value')));
950 $objWriter->writeAttribute(
'val', $xAxis->getGlowProperty(
array(
'color',
'alpha')));
956 if (!is_null($xAxis->getShadowProperty(
'presets'))) {
957 $objWriter->startElement(
"a:{$xAxis->getShadowProperty('effect')}");
959 if (!is_null($xAxis->getShadowProperty(
'blur'))) {
960 $objWriter->writeAttribute(
'blurRad', $xAxis->getShadowProperty(
'blur'));
962 if (!is_null($xAxis->getShadowProperty(
'distance'))) {
963 $objWriter->writeAttribute(
'dist', $xAxis->getShadowProperty(
'distance'));
965 if (!is_null($xAxis->getShadowProperty(
'direction'))) {
966 $objWriter->writeAttribute(
'dir', $xAxis->getShadowProperty(
'direction'));
968 if (!is_null($xAxis->getShadowProperty(
'algn'))) {
969 $objWriter->writeAttribute(
'algn', $xAxis->getShadowProperty(
'algn'));
971 if (!is_null($xAxis->getShadowProperty(
array(
'size',
'sx')))) {
972 $objWriter->writeAttribute(
'sx', $xAxis->getShadowProperty(
array(
'size',
'sx')));
974 if (!is_null($xAxis->getShadowProperty(
array(
'size',
'sy')))) {
975 $objWriter->writeAttribute(
'sy', $xAxis->getShadowProperty(
array(
'size',
'sy')));
977 if (!is_null($xAxis->getShadowProperty(
array(
'size',
'kx')))) {
978 $objWriter->writeAttribute(
'kx', $xAxis->getShadowProperty(
array(
'size',
'kx')));
980 if (!is_null($xAxis->getShadowProperty(
'rotWithShape'))) {
981 $objWriter->writeAttribute(
'rotWithShape', $xAxis->getShadowProperty(
'rotWithShape'));
984 $objWriter->startElement(
"a:{$xAxis->getShadowProperty(array('color','type'))}");
985 $objWriter->writeAttribute(
'val', $xAxis->getShadowProperty(
array(
'color',
'value')));
987 $objWriter->writeAttribute(
'val', $xAxis->getShadowProperty(
array(
'color',
'alpha')));
994 if (!is_null($xAxis->getSoftEdgesSize())) {
996 $objWriter->writeAttribute(
'rad', $xAxis->getSoftEdgesSize());
1008 if (!is_null($xAxis->getAxisOptionsProperty(
'horizontal_crosses_value'))) {
1010 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'horizontal_crosses_value'));
1014 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'horizontal_crosses'));
1022 if (!is_null($xAxis->getAxisOptionsProperty(
'major_unit'))) {
1024 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'major_unit'));
1028 if (!is_null($xAxis->getAxisOptionsProperty(
'minor_unit'))) {
1030 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'minor_unit'));
1036 if ($isMultiLevelSeries) {
Create styles array
The data for the language used.
static ControlCharacterPHP2OOXML($value='')
Convert from PHP control character to OpenXML escaped control character.
_writeLayout(PHPExcel_Chart_Layout $layout=NULL, $objWriter)
Write Layout.