Yes, you can show time duration on the y-axis.  Use a "timeofday" column 
type for your duration data (each data point is an array [hour, minute, 
second, millisecond]).  I had an example done up, but jsfiddle decided to 
go down, so here's one based on the Visualization 
playground<https://code.google.com/apis/ajax/playground/?type=visualization#bar_chart>(just
 replace the code with this and hit "run"):

function drawVisualization() {
  // Create and populate the data table.
  var data = new google.visualization.DataTable();
  data.addColumn('string', 'name');
  data.addColumn('timeofday', 'filler');
  data.addColumn('timeofday', 'duration');
  data.addRows([
    ['foo', [1, 25, 0, 0], [7, 23, 0, 0]],
    ['bar', [4, 36, 0, 0], [5, 56, 0, 0]],
    ['baz', [2, 48, 0, 0], [9, 20, 0, 0]],
    ['cad', [7, 10, 0, 0], [14, 45, 0, 0]]
  ]);
  
  // Create and draw the visualization.
  new google.visualization.BarChart(document.getElementById('visualization')
).
    draw(data, {
      width:600,
      height:400,
      isStacked: true,
      series: {
        0: {
          color: 'transparent',
          visibleInLegend: false
        }
      }
    });
}

On Thursday, January 31, 2013 5:14:50 AM UTC-5, Dmitry Filimonov wrote:
>
> Hi!
>
> Is there a way to display duration of time in the format 
> HOURS:MINUTES:SECOND values on Google line chart (Y axis)?
> My applications receives data from Google analytics and shows it using 
> Google chart. For visit duration metric the data is a number of seconds. I 
> would like to show it in format above, like Google Analytics service does.
>
> Thanks!
>
> Dmitry
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to