horizontal chart with stack option set to true
Hi all,
We are using the eZ Components->Graph with php
we had successfully implemented the vertical stack chart by changing property following property
$graph->options->stackBars = false; to $graph->options->stackBars = true; in existing vertical bar chart
Code sample:
$graph = new ezcGraphBarChart();
$graph->title=$title;
$graph->palette = new CustomBarChartPalette();
$graph->driver = new ezcGraphGdDriver();
$graph->driver->options->supersampling = 1;
// Stack bars
$graph->options->stackBars = true;
Now we are trying to implement horizontal stack chart, in order to implement that we are using class "ezcGraphHorizontalBarChart" and setting its stack bar property to true
$graph = new ezcGraphHorizontalBarChart();
$graph->title=$title;
$graph->palette = new CustomBarChartPalette();
$graph->driver = new ezcGraphGdDriver();
$graph->driver->options->supersampling = 1;
// Stack bars
$graph->options->stackBars = true;
but it seem "$graph->options->stackBars" is not working for horizontal bar chart and as a result we are not getting horizontal stack chart,
could you please help me to implemnt horizontal stack chart.
Thanks in advance,
Sharad
<div><p>Hi all,<br><br>We are using the eZ Components->Graph with php<br>we had successfully implemented the vertical stack chart by changing property following property <br>$graph->options->stackBars = false; to $graph->options->stackBars = true; in existing vertical bar chart <br> Code sample:<br> $graph = new ezcGraphBarChart();<br> $graph->title=$title;<br> $graph->palette = new CustomBarChartPalette();<br> $graph->driver = new ezcGraphGdDriver();<br> $graph->driver->options->supersampling = 1;<br> // Stack bars<br> $graph->options->stackBars = true;<br><br>Now we are trying to implement horizontal stack chart, in order to implement that we are using class "ezcGraphHorizontalBarChart" and setting its stack bar property to true<br><br>$graph = new ezcGraphHorizontalBarChart();<br> $graph->title=$title;<br> $graph->palette = new CustomBarChartPalette();<br> $graph->driver = new ezcGraphGdDriver();<br> $graph->driver->options->supersampling = 1;<br> // Stack bars<br> $graph->options->stackBars = true;<br><br>but it seem "$graph->options->stackBars" is not working for horizontal bar chart and as a result we are not getting horizontal stack chart,<br><br>could you please help me to implemnt horizontal stack chart.<br><br>Thanks in advance,<br>Sharad<br></p></div>
RSS Feed