Adrielpin / gchartphp

Automatically exported from code.google.com/p/gchartphp
0 stars 0 forks source link

gStackedBarChart::setHorizontal() doesn't work (simple bug) #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In the function gStackedBarChart::setHorizontal() you have a big.

The two conditional statements should be switched around. At the moment calling 
setHorizontal() actually makes the chart VERTICAL.

TO FIX.

Change this code:

        if($isHorizontal){
            $this -> setChartType('s', 'v');
        }
        else{
            $this -> setChartType('s', 'h');
        }

To this:

        if($isHorizontal){
            $this -> setChartType('s', 'h');
        }
        else{
            $this -> setChartType('s', 'v');
        }

Also, your default stacked chart type is set in the code to horizontal, but the 
example gallery page suggests that it's meant to be vertical by default.

Ally

Original issue reported on code.google.com by ally.akb...@gmail.com on 15 Jun 2010 at 12:19

GoogleCodeExporter commented 8 years ago
Thank you Ally!

I solved the issue in r43.

Original comment by bardellie on 16 Jun 2010 at 4:15