Interactive chart also possible with dates and TIMES?

74 views
Skip to first unread message

Peter

unread,
Jun 16, 2010, 5:49:49 PM6/16/10
to Google Visualization API
I have an interactive chart in which I can see the amount of orders on
a specific date.
But I want to be able to have a chart in which I can zoom in to even
time (so hours/minutes/seconds)

Is that possible?

Now I'm doing this:

mydate.setValue(0,0,new Date(2008,1,1))

I'm searching to be able to do provide a full date with
year,month,day,hours,minutes and seconds:
mydate.setValue(0,0,new Date(2008,1,1,18,23,45))

Is that possible?

MC Get Vizzy

unread,
Jun 17, 2010, 5:15:29 AM6/17/10
to google-visua...@googlegroups.com
What chart are you using?  (BTW I found it confusing that your data table is called "mydate" -- that sounds like the name of a Date object.  Why not call it "mydata" or something?)


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


Peter

unread,
Jun 17, 2010, 8:22:39 AM6/17/10
to Google Visualization API
You're right, its better to call it mydata.

I'm using the interactive chart (so the same chart as you see in the
Google Analytics timeline).

annotatedtimeline = new
google.visualization.AnnotatedTimeLine(document.getElementById('ordergraph'));
annotatedtimeline.draw(mydata, {'displayAnnotations': true});



On Jun 17, 11:15 am, MC Get Vizzy <getvi...@google.com> wrote:
> What chart are you using?  (BTW I found it confusing that your data table is
> called "mydate" -- that sounds like the name of a Date object.  Why not call
> it "mydata" or something?)
>
> On Thu, Jun 17, 2010 at 12:49 AM, Peter <floranfe...@gmail.com> wrote:
> > I have an interactive chart in which I can see the amount of orders on
> > a specific date.
> > But I want to be able to have a chart in which I can zoom in to even
> > time (so hours/minutes/seconds)
>
> > Is that possible?
>
> > Now I'm doing this:
>
> > mydate.setValue(0,0,new Date(2008,1,1))
>
> > I'm searching to be able to do provide a full date with
> > year,month,day,hours,minutes and seconds:
> > mydate.setValue(0,0,new Date(2008,1,1,18,23,45))
>
> > Is that possible?
>
> > --
> > 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<google-visualization-api%2Bunsu...@googlegroups.com>
> > .

MC Get Vizzy

unread,
Jun 20, 2010, 5:00:47 AM6/20/10
to google-visua...@googlegroups.com
The type of the column with dates should be 'datetime', not 'date'.  This is often confusing to people.

If you set the type to 'datetime' and it still doesn't work, let me know.

To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages