Re: How to display a different column and sort by another column in the google.visualization.ControlWrapper

45 views
Skip to first unread message

Sergey Grabkovsky

unread,
Oct 16, 2012, 9:31:59 AM10/16/12
to google-c...@googlegroups.com
Hi,

What control are you trying to use? I don't know of any first party month controls. Are you using a 3rd party control or making your own? Or are you using one of the controls outlined in the documentation as a month control?

On Sunday, October 14, 2012 12:44:52 PM UTC-4, eviva65 wrote:
Hello guys,

I'm new to using chart API's and would like to know if it is possible to display values in a control wrapper based on one column in the datatable and sort it by another column in the datatable. My month control displays all the months alphabetically, e.g. Apr, Aug, Dec, Feb,...

My goal is to display as Jan, Feb, Mar, Apr, ....

My data looks like this:
    data.addColumn('number', 'Year');
    data.addColumn('number', 'MonText');
    data.addColumn('number', 'MonNum');
    data.addColumn('number', 'Value');
    data.addRows([
        [1996,"Jan", 1, 13],
        [1996,"Jan", 1, 9],
        [1996,"Jan", 1, 11],
        [1996,"Mar", 3, 12],
        [1996,"Feb", 2, 13],
        [1996,"Feb", 2, 9],
        [1996,"Apr", 4, 11],
        [1996,"Apr", 4, 12],

Reply all
Reply to author
Forward
0 new messages