I am trying to use the arrowformat on a column in a table.
I want the arrow to be in column2, but its to point up or down based
on column 1.
I can't quite figure it out.
This is what I have which gives me arrows - but uses the digit 1 as
the base rather than data column 1

what I want is a table that looks like
Results   National  Mine
AAA        12          arrowDown 10 (cause 10 is less than 12)
BBB        14          no arrow  14  (cause 14 is equal to 14)
CCC        2            arrowUp 8  (cause 8 is more than 2)

Here is what I have that gives me all up arrows (I think cause all the
results are more that the base value of 1 - when what I want is the
base value to be column 1.

[code]
function drawTable() {
        var data = new google.visualization.DataTable();
        data.addColumn('string', 'Results');
        data.addColumn('number', 'National');
        data.addColumn('number', 'Mine');
        data.addRows([
                [type1, value1, myvalue1],
                [type2, value2, myvalue2],
                [type3, value3, myvalue3]
        ]);

        var table = new google.visualization.Table(document.getElementById
('tablediv'));

        var formatterArrow = new google.visualization.ArrowFormat({base:1});
        formatterArrow.format(data, 2); // Apply formatter to second column
        table.draw(data, {allowHtml: true, showRowNumber: false,
alternatingRowStyle: true});
}
[/code]

thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to