hAxis: { ticks: [5,10,15,20] }hAxis: { ticks: [{v:32, f:'thirty two'}, {v:64, f:'sixty four'}] }hAxis: { ticks: [new Date(2014,3,15), new Date(2013,5,15)] }hAxis: { ticks: [16, {v:32, f:'thirty two'}, {v:64, f:'sixty four'}, 128] }--
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/b4c344a1-6323-46ad-8c85-e73312cfef1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@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/b4c344a1-6323-46ad-8c85-e73312cfef1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/b4c344a1-6323-46ad-8c85-e73312cfef1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
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/118da9e8-0292-4618-8554-7eaddd0ac4ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@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/b4c344a1-6323-46ad-8c85-e73312cfef1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
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.
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/118da9e8-0292-4618-8554-7eaddd0ac4ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Hi Daniel,
first of all, I would like to thank you for your support.I am a beginner at php/google chart. So I am grateful for your patience.
I tried to use the only exception you mentioned in the previuos message. Unfortunately, it did not work as expected.If you could have a look at it, it would be kind of you.1) I imported my date values as they were formatted like the Date constructor but without the "new " prefix.$temp[] = array('v' => 'Date('.date('Y',strtotime($r['data'])).','.(date('n',strtotime($r['data'])) - 1).','.date('d',strtotime($r['data'])).')');This is demonstrated by the fact that when I use line chart without any tick options, ticks '(Y-m-a,d)' are indeed displayed.2)After this I used the following tick option:hAxis:{ title: "Days", ticks: [{v: 'Date(2018, 4,01)', f:"2018-05-10"},{v: 'Date(2018, 4,11)', f:"2018-05-11"}]} ,Is it what you suggested??
Questions:- is there any difference between Date(2018,4,01) and Date Date(2018,4,1)? or are they both right?
- is there any way to convert datetime values using Date constructor when I load datetime values tothe array $temp? Something like:
$temp[] = array('v' => new Date(date('Y',strtotime($r['data'])), (date('n',strtotime($r['data'])) - 1), date('d',strtotime($r['data'])));I think my issue is how I define this array.Consideration:I also tried to convert my date values to timestamp ($temp[] = array('v' => strtotime($r['data']));) and then use both of thefollowing lines:<!--hAxis: {ticks: [ 1527652800, 1526011200 ] },--><!--hAxis: { format: 'short', ticks: [{v:1527652800, f:'date("Y-m-d", 1527652800)'}, {v:1526011200, f:'date("Y-m-d", 1526011200)'}] },-->but without any success. Why? I thought timestamp were numbers. So, my first attempt should have worked.I am now curious to understand my mistake.
Best,Drigo
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/b4c344a1-6323-46ad-8c85-e73312cfef1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
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/118da9e8-0292-4618-8554-7eaddd0ac4ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
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/85d01d04-d8c0-4eee-ba13-b341e2aa2830%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.