# yaxis-formatter attribute

Type: | formatter
Inherited: | no
Used By: | Graph elements except piegraph
Default: | floatingpoint() or integer()
See: | lang xaxis-formatter y yaxis

How to format the values on the y axis. See here for more information on formatters.
Valid values are:

- `integer()` - plot the values as integers.
- `floatingpoint()` - plot the values as floating point values.
- `floatingpoint(min,max)`, where min and max define the minimum and maximum number of decimal places
- `currency()` - plot the values as currencies. The currency formatting depends on the lang attribute.
- `currency(locale` - plot the values as currencies in the specied Locale. Locale is of the form `la-CO`, where `la` is the language and `CO` is the country - for example `en-US` or `fr-FR`.
- `percentage()` - plot the values as percentages, with one decimal place
- `percentage(num)` - plot the values as percentages with the specified number of decimal places.
- `simple(format)` - plot the values using the specified `java.text.DecimalFormat`
- `none` - don't plot values on the y axis.

The default depends on the data being plotted - if all the specified values are integers, the default will be `integer()`, otherwise it's `floatingpoint()`.

    bargraph { lang:en_GB; yaxis-formatter:currency(); }

    bargraph { yaxis-formatter:currency(en-GB) };

    bargraph { yaxis-formatter:percentage(0); }