pacbard / gChartPhp

Apache License 2.0
88 stars 45 forks source link

Can I create the Funnel/PipeLine Chart using gChartPHP? #9

Closed ghost closed 10 years ago

ghost commented 10 years ago

Can I create the Funnel/PipeLine Chart using gChartPHP?

pacbard commented 10 years ago

It looks like the funnel bar chart was never included in the Google Image Chart (see examples here). The closest chart available would be the double/stacked bar graph.

Have you checked out the new Google Charts API? They might have added support for funnel charts there. Be aware that this project does not support the new Chart API.

ghost commented 10 years ago

Thanks @pacbard .

No, I think the new google chart API also does not provide the funnel chart. Does gChartPHP supports double/stacked bar graph directly or does it need any code change as shown below in http://stackoverflow.com/questions/6585495/centered-bars-on-a-google-chart-barchart

pacbard commented 10 years ago

Now I get your question.

The funnel chart is not directly supported by this wrapper on the sense that we don't provide an easy way to create it. However, you will be able to create the chart using the workaround described in the link that you provided (I.e., use a stacked chart, use the first and last bar to resize the funnel and color it the same as the background, fix the axis label).

I will take a look and try to put together an actual wrapper for it, but it will not be done in a week or two.

ghost commented 10 years ago

Thanks @pacbard for your valuable time.

pacbard commented 10 years ago

I have a prototype working. I'll push the new class in a bit.

ghost commented 10 years ago

Thanks, @pacbard

Also if you find time can you please look into my new issue https://github.com/jdorn/php-reports/issues/148

Thanks, Sreekanth