Re: Image_Graph: overlapping bar chart
| From: | Pierre-Alain Joye | Date: | Tue, 29 Mar 2005 18:00:26 +0000 |
| Subject: | Re: Image_Graph: overlapping bar chart | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18396@lists.php.net to get a copy of this message | ||
On Tue, 29 Mar 2005 16:53:25 +0200
pear.nosey@veggerby.dk (Jesper Veggerby Hansen) wrote:
> Could be possible - though you may consider it a hack...
>
> Use a combination of Image_Graph_Plot_Bar::setBarWidth() to
> accomplish the overlapping through setting the width of the
> individual bars. This however (maybe) causes the first and last
> bar to violate the plotarea boundaries, to fix this simply apply
> some more "axis padding" (as it's called, i.e. more space to the
> left/right of the first/last value). This is done using
> Image_Graph_Plotarea::setAxisPadding()
>
> I think it could be possible...
Little notice, if you plan to add this feature internally, you
have to split it in small rectangles if you like to make it work
with alpha blending (2d plane intersection will work nicely here).
Hope that helps
--Pierre