Ryan,

Unfortunately, the minValue, maxValue, and baseline value are ignored for
date and time values.  I am not sure that this is a recent bug but I just
noticed it a week ago.  You might try to experiment with the viewWindow min
and max, and the gridlines.count option to get the desired result.  Or you
might be able to convert all your date values to strings, if the values are
evenly spaced, in which case axes will use your explicit values.

Another new feature that could work for you is that you can provide an
explicit array of tick values, with a ticks: [...] option.  In the current
release, the formatting is done using your format option, and that should
be enough.  In an upcoming release, you can also specify the formatting of
each tick value.

Hope that helps.

dan


On Wed, Jun 19, 2013 at 4:24 AM, Ryan Justin <[email protected]>wrote:

> Hi,
>
> I need to set time range for my hAxis to have minValue of 09:00 and
> maxValue 17:00 with increment of 1 hour (i.e. 9, 10, 11, 12, 13, 14, ... ,
> 17)
>
> Currently my data is formatted as H:m (for example: 09:35, 10:20)
>
> var formatter3 = new google.visualization.DateFormat({pattern: 'H:m'});
> formatter3.format(data,0);
>
> And below are my options:
>
> var options = {
>             curveType: "function",
>             title : '',
>             hAxis:{slantedTextAngle: 90,textStyle:{fontSize:8}},
>             colors : ['red','#3366CC', '#999999'],
>             vAxes: {
>                 0: {logScale: false, format:'0.0000'},
>                 1: {logScale: false}
>             },
>             hAxis: {
>                            format: 'H:m',
>                            minValue: new Date(null, null, null, 9, 0, 0),
>                            maxValue: new Date(null, null, null, 17, 0, 0),
>                            viewWindow:{min: new Date(null, null, null, 9, 0, 
> 0),
>                                        max: new Date(null, null, null, 17, 0, 
> 0)},
>             series: {
>                 0: {targetAxisIndex:0, type: "line"},
>                 1: {targetAxisIndex:0, type: "line"},
>                 2: {targetAxisIndex:1, type: "bars"}
>             }
>         };
>
> However , it is still not working. Please advise if anyone has the clue. 
> Thanks!
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Chart API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-chart-api.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>  -
978-394-1058
[email protected] <[email protected]>   562D 5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton MA

-- 
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-chart-api.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to