Option to generate historical JSONP data

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: Medium
    • 2.4.3
    • Affects Version/s: None
    • Component/s: Documentation
    • None

      Generate JSONP historical data in the google.visualisation.DataTable format.

      The basic format of the JSON produced is:

            table: {
                 cols: [{id: 'timestamp', label: 'Date', type: 'date'}, ...],
                 rows: [{c:[{v: new Date(0), f: '1 January 1970 00:00'}, ...]}]
            }
              

      This data may be used directly with the
      google.visualization javascript Library.
      ie - the above JSON object
      may be passed directly to a google.visualization.DataTable
      constructor like so:
      new google.visualization.DataTable(json.table[0], 0.5);

      e.g.

               var data = new google.visualization.DataTable(json.table[0], 0.5);
               var chart = new google.visualization.AreaChart(document.getElementById('chart_div'));
               chart.draw(data, {width: 800, height: 400, legend: 'bottom', title: 'Clover Historical Chart'});
           

            Assignee:
            Edwin Dawson [Atlassian]
            Reporter:
            Nick
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: