Re: [visualization-api] I cant configure the ladder of my line chart

16 views
Skip to first unread message
Message has been deleted

Daniel LaLiberte

unread,
Jul 18, 2016, 9:47:07 AM7/18/16
to Google Visualization API
It is not clear what you want, but I suspect you need to actually use "date" or "datetime" values. Use the JS Date constructor, or the string notation, e.g. "Date(yyyy, MM, dd, hh, mm, ss)".  See https://developers.google.com/chart/interactive/docs/datesandtimes

On Mon, Jul 18, 2016 at 9:43 AM, normann badr <norma...@gmail.com> wrote:
Hello,

I have a problem, my chart display collected data every 5 minutes during one day. When i create my chart, i would like a hour time scale per hour. 

I know my english it's terrible.

If you don't have understand what i mean, here a picture of my chart.



If someone have 5 minutes to help, i would appreciate 

--
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/a870c532-7e0f-4fea-beb0-a5c982bdc080%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Message has been deleted

Daniel LaLiberte

unread,
Jul 18, 2016, 10:13:31 AM7/18/16
to Google Visualization API
If you want a precise set of ticks, you can use the ticks option, for the hAxis in your case.

You might want to use the 'timeofday' data type, which lets you specify times regardless of the date. e.g. [9, 30, 37] is 9:30 and 37 seconds.

If you use timeofday, then your ticks option would look like this:  hAxis: { ticks: [ [0, 0, 0], [1, 0, 0], [2, 0, 0], ... ]  }


On Mon, Jul 18, 2016 at 9:54 AM, normann badr <norma...@gmail.com> wrote:
Hello,

Thank you for ur help.

When u look my chart, my chart scale bottom reprensents the time of the day, but it was not hour per hour. In my chart u can see, it s begin at 00:00 then 00:55, 01:50 etc... I would like clean numbers, 00:00, 01:00, 02:00 etc... 

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

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages