scottharwell / GoogleCharts

CakePHP Plugin for Google Charts Javascript API
26 stars 30 forks source link

Switching x and y axis #11

Closed dood2013 closed 10 years ago

dood2013 commented 10 years ago

Hi,

First of all, this is a really great plugin and its working perfectly,

I just wanted to know is there any way to switch the x-axis and the y-axis so when I choose to display a barchart the bars are displayed vertically (currently the bars are displayed horizontally)

Any help would be greatly appreciated

scottharwell commented 10 years ago

I think that you could solve this just by setting an option in the options array. It will accept any value that you pass, and as long as GoogleCharts API supports the option, then it will work. But, the display of the chart is controlled completely by the GoogleCharts API, so this would not be something to build in to the plugin.

Checkout the API for all the bar chart options. https://developers.google.com/chart/interactive/docs/gallery/columnchart#Configuration_Options