google visualization annotated time line chart (TimeofDay)

896 views
Skip to first unread message

Ali

unread,
Jan 12, 2012, 11:26:06 AM1/12/12
to Google Visualization API, noma...@yahoo.com
Hi,
I am able to create day and time graph successfully using annotated
timeline chart. But I have some data which has milliseconds. I want to
show the milliseconds on the x-axis. I think so if I use the column-
type to TimeOfDay and set the time with milliseconds then it would
resolve my problem but I am seeing exceptions. Could someone please,
help me how to show the milliseconds on the x-axis.


Jinji

unread,
Jan 15, 2012, 9:51:07 AM1/15/12
to google-visua...@googlegroups.com, noma...@yahoo.com
The Annotated Time Line only supports 'date' and 'datetime' as type of the first column (see here).
You can try to use LineChart instead.



--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.


Jinji

unread,
Jan 15, 2012, 1:24:19 PM1/15/12
to google-visua...@googlegroups.com
All of those controls you mentioned (the 1min/5min/... buttons and the zoom control) would have to be implemented outside the chart, and affect the chart using the viewWindow option (see the LineChart documentation about viewWindow).

On Sun, Jan 15, 2012 at 7:09 PM, Noman Ali <noma...@yahoo.com> wrote:
Ok, I will use the linechart but how will I make the smart buttons, like 1min, 5min, 1hr etc and how will I be able to zoom in zoom out.
 
Please, advise.

--- On Sun, 1/15/12, Jinji <ji...@google.com> wrote:

Ali

unread,
Jun 20, 2012, 3:46:32 PM6/20/12
to google-visua...@googlegroups.com
Hi Ronen,
As I said, I am able to impleted the annotated time line but many things are not in my control. I have started working on line chart to create my own controls. But in the mean time, I want to know is there any way that  I could customize the zoom controls in existing annotated time chart. The chart I have created using the annotated time line chart only have minutes, so I don't need the 3m, 6m and 1 yrs button in zoom .
 
Your prompt response , really appreciated.
 
Regards,
Noman Ali

On Sunday, January 15, 2012 1:24:19 PM UTC-5, Yuval Ronen wrote:
All of those controls you mentioned (the 1min/5min/... buttons and the zoom control) would have to be implemented outside the chart, and affect the chart using the viewWindow option (see the LineChart documentation about viewWindow).

On Sun, Jan 15, 2012 at 7:09 PM, Noman Ali <noma...@yahoo.com> wrote:
Ok, I will use the linechart but how will I make the smart buttons, like 1min, 5min, 1hr etc and how will I be able to zoom in zoom out.
 
Please, advise.

--- On Sun, 1/15/12, Jinji <ji...@google.com> wrote:

From: Jinji <ji...@google.com>
Subject: Re: [visualization-api] google visualization annotated time line chart (TimeofDay)
To: google-visualization-api@googlegroups.com
Cc: noma...@yahoo.com
Date: Sunday, January 15, 2012, 2:51 PM

The Annotated Time Line only supports 'date' and 'datetime' as type of the first column (see here).
You can try to use LineChart instead.

On Thu, Jan 12, 2012 at 6:26 PM, Ali <noma...@gmail.com> wrote:
Hi,
 I am able to create day and time graph successfully using annotated
timeline chart. But I have some data which has milliseconds. I want to
show the milliseconds on the x-axis. I think so if I use the column-
type to TimeOfDay and set the time with milliseconds then it would
resolve my problem but I am seeing exceptions. Could someone please,
help me how to show the milliseconds on the x-axis.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to google-visualization-api+unsub...@googlegroups.com.

asgallant

unread,
Jun 20, 2012, 11:38:01 PM6/20/12
to google-visua...@googlegroups.com
You can turn them off by setting the "displayZoomButtons" option to false, but I don't believe there is any other way to modify them.
Reply all
Reply to author
Forward
0 new messages