Thanks for the response Riccardo.

I guess the problem I'm having is the 'collect your data in a
google.visualization.DataTable' step.  All the examples I'm finding
have the data defined within the table already.  The data set isn't
being generated, like my table requires, based on a set of variables
and calculations.  I assume that what you're suggesting is to define
the dataset within the DataTable as I've started to do below:

    var data = new google.visualization.DataTable(
        {
        cols: [{id: 'table_month', label: 'Monthy', type: 'number'},
                 {id: 'table_starting_balance', label: 'Starting
Balance', type: 'number'},
                 {id: 'table_interest_paid', label: 'Interest Paid',
type: 'number'},
                 {id: 'table_payment_made', label: 'Payment Made', type: 
'number'},
                 {id: 'table_ending_balance', label: 'Ending Balance', type:
'number'}],

The column section is easy because those are pre-defined, but I get
stumped in how to define the rows sections of the table because they
are the part that are generated based on variables and calculations.
All the examples in the Google Code Playground already have the data
defined (that's what I mean by 'static').  I see references to JSON in
the links you've provided and elsewhere in the API document.  Is using
JSON the proper method for accomplishing what I want to do?  I've not
used it before, but in my brief reading of its function it might be
the proper data interchange method to use here.  I'd do all of my
calculations, etc. outside of the DataTable and then pass the actual
values into the DataTable using the toJSON() method.  Is that the
correct method to use here?

Thanks again!

Bill

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