links · people · groups · tags | My: links · tags · groups · watchlists · notes login · sign up now! | help · blog
Simpy simpy
 
Michael Shook, member since May 27, 2004
.
Search Everyone: "datasource",

Top "datasource" experts: erickaakcire, ramy.kamel, gotham, dean, frode.johannesen,

1 - 4 of 4   Watch mshook
 
Answer:
  1. http://code.google.com/apis/visualization/documentation/reference.html#GadgetHelper
    • Method: createQueryFromPrefs(prefs)
    • Return Value: google.visualization.Query
    • Description: Static. Create a new instance of google.visualization.Query and set its properties according to values from the gadget preferences. The type of parameter prefs is _IG_Prefs
      1. Preference _table_query_url is used to set the Query data source URL.
      2. Preference _table_query_refresh_interval is used to set the Query refresh interval (in seconds).
  2. Don't know
by mshook 2009-06-21 22:08 gadget · url · data · source · datasource · javascript · howto · question · anwer
http://mshook.appspot.com/z/d4m.htm?/mshook/21+june+2009+a - cached - mail it - history
google.visualization.Query.setResponse({
    version: '0.6',
    status: 'ok',
    sig: '202289222',
    table: {
        cols: [{
            id: 'A',
            label: 'Name',
            type: 'string',
            pattern: ''
        },
        {
            id: 'B',
            label: 'Value',
            type: 'number',
            pattern: '#0.###############'
        }],
        rows: [{
            c: [{
                v: 'One'
            },
            {
                v: 1.0,
                f: '1'
            }]
        },
        {
            c: [{
                v: 'Ten'
            },
            {
                v: 10.0,
                f: '10'
            }]
        }]
    }
});

( pretty printed by http://jsbeautifier.org/ )

by mshook 2009-06-20 00:23 javascript · pp · google · gadget · visualization · api · query · code · how · spreadsheet · data · source · datasource · json
http://spreadsheets.google.com/tq?key=rYdmpMlO1sGo3OBxv6SusWA&range=A1:B3&gid=0 - cached - mail it - history
Here's an example: http://spreadsheets.google.com/tq?key=rYdmpMlO1sGo3OBxv6SusWA&range=A1:B3&gid=0 and the spreadsheet it came from: http://spreadsheets.google.com/ccc?key=rYdmpMlO1sGo3OBxv6SusWA&hl=en

google.visualization.Query

Represents a query that is sent to a data source.

Constructor

google.visualization.Query(dataSourceUrl, opt_options)

Parameters

dataSourceUrl
[Required, String] URL to send the query to. The data source should expose this URL in some way; for example, to get the dataSourceUrl from a Google Spreadsheet, do the following:
  1. In your spreadsheet, select the range of cells.
  2. Select 'Insert' and then 'Gadget' from the menu.
  3. Open the gadget's menu by clicking on the top-right selector.
  4. Select menu option 'Get data source URL'.
by mshook 2009-06-20 00:05 google · gadget · spreadsheet · javascript · json · callback · visualization · api · howto · code · data · source · datasource
http://code.google.com/apis/visualization/documentation/reference.html - cached - mail it - history
1 - 4 of 4  
Related Tags
 
- exclude ~ optional + require
Add Dates