If you specify a format of '#' you will only see only whole integer values.
 But if a value that is rounded is not close to an integer, the tick will
appear to be in the wrong position, or the label will be wrong for the
tick.

The Google Charts API assumes you want 5 gridlines in many cases, and
depending on where your data values fall, 5 gridlines may not work out to
give you integer tick values.

The better thing to do is to turn on the variable number of gridlines
feature by specifying:

  gridlines: { count: -1}

Then it tries hard to give you nice round tick values.

You can also specify exactly what tick values you want by using the 'ticks'
option.

  gridlines: { ticks: [ -4, -2, 0, 2, 4 ] }



On Fri, Feb 21, 2014 at 10:13 AM, asgallant <[email protected]>wrote:

> Use the vAxis.format option:
>
> vAxis: {
>     format: '#'
> }
>
>
> On Friday, February 21, 2014 5:57:12 AM UTC-5, Julio wrote:
>>
>> Hi, When I create a chart, decimal values ​​are not, but on the y axis
>> shows decimal values​​, how can I do to show only integers?
>>
>  --
> 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
> http://groups.google.com/group/google-visualization-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]>   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 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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to