Hi Adrien,

The tick labels are generated values, so you would need something more than
the formatted representation for all your data values.

We've been considering some more general ways of specifying the formatting
of tick values, including use of the data formatter that you apply to your
columns of data.  One alternative is to provide a formatting function that
could generate any output you would like.

Another alternative to consider for your case is to use timeofday values,
which should allow any number of minutes or hours.  You should be able to
specify a value with the array notation, like [hours, minutes], where the
minutes might be any number.  Then you can format your values with "HH:mm",
at least up to 24 hours.  There are some bugs in the current release,
however, so you will probably have to experiment and work around problems,
any maybe you will need to specify a viewWindow max value to see all your
data.  Any feedback or ideas you can provide at this time will likely have
more impact on the changes we make.


On Mon, Apr 20, 2015 at 9:23 AM, Adrien Mille <[email protected]>
wrote:

> Hi everybody,
>
> I'm looking for a way to set a custom formater for my labels (vAxis in a
> column chart).
> I read the whole documentation and I only understand we could give a
> format by a string value (like 'percent' or '#' etc..).
>
> In my case, the values displayed in the chart are already formatted by the
> API.
> But the values used on the vAxis are not formatted as I would like to.
> Currently, I've row values (integer), those values are minutes that I want
> to display as "hours:minutes", hours could be more than 24.
>
> --
> 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.

Reply via email to