When you specify dates in JavaScript and most languages with numbers, the
months start at 0.  So your new Date(2016, 12, 15) is actually wrapping
around to Jan 15, 2017.

On Thu, Dec 22, 2016 at 4:40 AM, B. Rentrug <[email protected]> wrote:

> hi,
>
> i want to set a max value for vaxis as a date (e.g. today). but it does
> not work :( (see the print screen)
>
> chart options look like this:
>
> var options = {
> chartArea: {left:50,top:10,width: '94%', height: '70%'},
> vAxis: {minValue: 0, title: 'Reaktionszeit in sec', textStyle: {color:
> font_color, fontName: font_fam}, titleTextStyle: {color: font_color,
> fontName: font_fam}},
>
> hAxis: {textStyle: {color: font_color, fontName: font_fam}, format:
> 'd.M.yy',lantedText:true, slantedTextAngle:270, showTextEvery:1
> ,minValue: new Date(2016,12,15)
> ,maxValue: new Date(2016,12,22)
> }
>
> }
>
>
> can anyone help??
>
> --
> 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 [email protected].
> To post to this group, send email to google-visualization-api@
> 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/b51fce1f-9de0-4efa-824a-
> d21e90472814%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/b51fce1f-9de0-4efa-824a-d21e90472814%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]>   5CC, Cambridge MA

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/CAOtcSJP3v%3DaZ4C0DWiGZ_Lrci1huZsQGzQWq6sLRUQYiNruBhg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to