you can do this with google.visualization.ImageChart and the chxl parameter. set options.cht = 'lc' for a line chart, and then specify the labels as described here:
http://code.google.com/apis/chart/labels.html#axis_labels this can be a bit tricky so if you try it out and you have trouble, post another message to this thread with further questions. On Sun, Jul 12, 2009 at 8:25 PM, ChartMan <[email protected]> wrote: > Currently there is no way to control which labels are shown and which > aren't.The chart decides this based on an internal algorithm that takes > into consideration #labels and allotted space. > > ChartMan > > > On Mon, Jun 29, 2009 at 11:55 PM, Brett <[email protected]> wrote: > >> >> This is kind of hard to explain so I will do my best. It's in >> reference to the LineChart. >> >> If i want to show a graph of points for calls for specific time of day >> on the graph and show x titles only on >> 7am, 10 am, 1pm, and 4pm (assuming our call day ranges from 7am - 7pm) >> >> I cant currently do this because it seems googles api by default, in >> order to reduce the number of labels, >> shows the first one, hides second, shows third, hides fourth, etc etc. >> >> () = hidden >> * = would be shown but no value supplied from me >> >> so if the hour currently was even..i would ONLY be showing labels 10am >> and 4pm >> (2pm*) (3pm) 4pm (5pm) (6pm*) (7am) (8am*) (9am) 10am (11am) (12pm*) >> (1pm) (2pm*) >> >> and if the hour was odd i would ONLY be showing 7am and 1pm only. >> (3pm*) (4pm) (5pm*) (6pm) 7am (8am) (9am*) (10am) (11am*) (12pm) 1pm >> (2pm) (3pm*) >> >> And what i want is this (7, 10, 1, 4 visible) >> (2pm) (3pm) 4pm (5pm) (6pm) 7am (8am) (9am) 10am (11am) (12pm) 1pm >> (2pm) >> (3pm) 4pm (5pm) (6pm) 7am (8am) (9am) 10am (11am) (12pm) 1pm (2pm) >> (3pm) >> >> basically no matter where they land they show. >> >> >> Is there a way of doing this? Perhaps only have it show the labels we >> supply and not the other instead of defaulting to hide odds show >> evens. >> >> Thanks for help. >> Brett >> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en -~----------~----~----~----~------~----~------~--~---
