@@ -132,7 +132,7 @@ function fnSlide_BarHorizontal(PhpPresentation $objPHPPresentation): void
132132
133133 // Create a bar chart (that should be inserted in a shape)
134134 echo date ('H:i:s ' ) . ' Create a horizontal bar chart (that should be inserted in a chart shape) ' . EOL ;
135- $ barChartHorz = clone $ objPHPPresentation ->getSlide (1 )->getShapeCollection ()[2 ]->getPlotArea ()->getType ();
135+ $ barChartHorz = clone $ objPHPPresentation ->getSlide (1 )->getShapeCollection ()[1 ]->getPlotArea ()->getType ();
136136 $ barChartHorz ->setBarDirection (Bar3D::DIRECTION_HORIZONTAL );
137137
138138 // Create templated slide
@@ -148,7 +148,7 @@ function fnSlide_BarHorizontal(PhpPresentation $objPHPPresentation): void
148148 ->setWidth (700 )
149149 ->setOffsetX (120 )
150150 ->setOffsetY (80 );
151- $ shape ->setShadow ($ oShadow );
151+ // $shape->setShadow($oShadow);
152152 $ shape ->setFill ($ oFill );
153153 $ shape ->getBorder ()->setLineStyle (Border::LINE_SINGLE );
154154 $ shape ->getTitle ()->setText ('PHPPresentation Monthly Downloads ' );
@@ -363,7 +363,7 @@ function fnSlide_Bar3DHorizontal(PhpPresentation $objPHPPresentation): void
363363
364364 // Create a bar chart (that should be inserted in a shape)
365365 echo date ('H:i:s ' ) . ' Create a horizontal bar chart (that should be inserted in a chart shape) ' . EOL ;
366- $ bar3DChartHorz = clone $ objPHPPresentation ->getSlide (5 )->getShapeCollection ()[2 ]->getPlotArea ()->getType ();
366+ $ bar3DChartHorz = clone $ objPHPPresentation ->getSlide (5 )->getShapeCollection ()[1 ]->getPlotArea ()->getType ();
367367 $ bar3DChartHorz ->setBarDirection (Bar3D::DIRECTION_HORIZONTAL );
368368
369369 // Create templated slide
@@ -379,7 +379,7 @@ function fnSlide_Bar3DHorizontal(PhpPresentation $objPHPPresentation): void
379379 ->setWidth (700 )
380380 ->setOffsetX (120 )
381381 ->setOffsetY (80 );
382- $ shape ->setShadow ($ oShadow );
382+ // $shape->setShadow($oShadow);
383383 $ shape ->setFill ($ oFill );
384384 $ shape ->getBorder ()->setLineStyle (Border::LINE_SINGLE );
385385 $ shape ->getTitle ()->setText ('PHPPresentation Monthly Downloads ' );
0 commit comments