Re: Automatic add current date to hAxis

18 views
Skip to first unread message
Message has been deleted

André Esterhuizen

unread,
Jun 15, 2018, 5:31:53 AM6/15/18
to Google Visualization API


On Friday, June 15, 2018 at 11:29:18 AM UTC+2, André Esterhuizen wrote:
How do I replace the date with current year , auomatic take current year
 

 ticks: [new Date('year',0), new Date(2014, 1), new Date(2014, 2), new Date(2014, 3),
                  new Date(2014, 4),  new Date(2014, 5), new Date(2014, 6), new Date(2014, 7),
                  new Date(2014, 8), new Date(2014, 9), new Date(2014, 10), new Date(2014, 11)

Daniel LaLiberte

unread,
Jun 15, 2018, 8:37:13 AM6/15/18
to Google Visualization API
You can specify the formatted representation of each value as well.  For example, instead of just new Date(2014, 1), replace that with {v: new Date(2014, 1), f: 'Feb 2014'}.

--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/205b6a94-6f5c-4365-b7a8-a7f8571b11d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Message has been deleted

André Esterhuizen

unread,
Jun 15, 2018, 12:15:08 PM6/15/18
to Google Visualization API
Tx
Manage to get it to work with your suggestion

On Friday, June 15, 2018 at 2:37:13 PM UTC+2, Daniel LaLiberte wrote:
You can specify the formatted representation of each value as well.  For example, instead of just new Date(2014, 1), replace that with {v: new Date(2014, 1), f: 'Feb 2014'}.

On Fri, Jun 15, 2018 at 5:31 AM André Esterhuizen <esterh...@gmail.com> wrote:


On Friday, June 15, 2018 at 11:29:18 AM UTC+2, André Esterhuizen wrote:
How do I replace the date with current year , auomatic take current year
 

 ticks: [new Date('year',0), new Date(2014, 1), new Date(2014, 2), new Date(2014, 3),
                  new Date(2014, 4),  new Date(2014, 5), new Date(2014, 6), new Date(2014, 7),
                  new Date(2014, 8), new Date(2014, 9), new Date(2014, 10), new Date(2014, 11)

--
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 google-visualization-api+unsub...@googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages