google / google-visualization-issues

288 stars 35 forks source link

dual label/scale for haxis #2140

Open ReetuTyagi opened 8 years ago

ReetuTyagi commented 8 years ago

I am looking for an option to display double labels in the horizontal axis. I want to show data for every month in the first label and then in the second label I want to show which quarter of the year that month falls into.

Something like shown in this image: https://www.google.co.in/imgres?imgurl=http://peltiertech.com/images/2011-07/CS_DualLevelAxis1.png&imgrefurl=http://peltiertech.com/clustered-stacked-column-bar-charts/&h=517&w=347&tbnid=HtD6UzlrRCeYzM:&docid=tUIcp8QZhrXqSM&ei=8paTVomwBtegugSOzISYDQ&tbm=isch&ved=0ahUKEwiJ8f7P2KHKAhVXkI4KHQ4mAdMQMwgkKAkwCQ

lets say first label is Level 1.1, Level 1.2 .....and the second label is Level 1, Level 2....

dlaliberte commented 8 years ago

We don't have support for multi-level axis tick labels, though it is a good idea we will consider for the future. The best you can do now is to control the sizing of your chart (using width and chartArea.width options) and of the bars (using bar.groupWidth option), and then draw your own axis ticks using an HTML table under the chart.

On Mon, Jan 11, 2016 at 6:55 AM, connecting2reetu notifications@github.com wrote:

I am looking for an option to display double labels in the horizontal axis I want to show data for every month in the first label and then in the second label I want to show which quarter of the year that month falls into

Something like shown in this image:

https://wwwgooglecoin/imgres?imgurl=http://peltiertechcom/images/2011-07/CS_DualLevelAxis1png&imgrefurl=http://peltiertechcom/clustered-stacked-column-bar-charts/&h=517&w=347&tbnid=HtD6UzlrRCeYzM:&docid=tUIcp8QZhrXqSM&ei=8paTVomwBtegugSOzISYDQ&tbm=isch&ved=0ahUKEwiJ8f7P2KHKAhVXkI4KHQ4mAdMQMwgkKAkwCQ

lets say first label is Level 11, Level 12 and the second label is Level 1, Level 2

— Reply to this email directly or view it on GitHub https://github.com/google/google-visualization-issues/issues/2140.

Daniel LaLiberte https://plus.google.com/100631381223468223275?prsrc=2 dlaliberte@Google.com dlaliberte@google.com 5CC, Cambridge MA

ReetuTyagi commented 8 years ago

Alright. Thank you for your quick response.