Hi Christian,
With only a single value, the axis generator has no way to judge what the
range of tick values should be. We are changing how this works so that
only a single tick value will show up in that case, and I believe you
should be able to see that behavior now if you load version 1.1.
But if you can't use 1.1, you should use an explicit viewWindow option on
the hAxis to constrain the generated axis tick values. I can't tell
whether you are using dates or numbers on the hAxis, but assuming dates,
you would do something like this:
var options = {
hAxis: {
viewWindow: {
min: new Date(2015, 6, 10),
max: new Date(2015, 6, 11)
}
}
}
On Fri, Jul 10, 2015 at 8:42 AM, Christian Alexander <[email protected]> wrote:
> Hey Everyone,
>
> I'm using a column chart to show off values for a given day across a range
> of days. When I use a range slider to show only one date, the chart
> autofills the labels on the hAxis to show 2010,2020,2030, et cetera.
>
> Could anyone tell me of a way to prevent the Chart from making its own
> labels? I would like the charts to only display labels that have data (no
> autofilling labels). I believe this is due to the hAxis being a continuous
> axis, so I attempted to set the column properties to string using
> aggregateData.setColumnProperty(1,{'type':
> 'string'}); but that was of no help.
>
> Thanks & Regards,
>
> Christian
>
> --
> 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/d/optout.
>
--
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/d/optout.