Axis configuration

Properties

AxisTitlePosition

Where to place the axis titles, compared to the chart area. Supported values:

barChart.setAxisTitlesPosition(AxisTitlesPosition.IN);

HAxis / VAxis

An object with members to configure various horizontal axis elements. To specify properties of this object, you can use object literal notation, as shown here:

Axis haxis= Axis.Builder()
    .slantedText(true)
    .direction(Direction.REVERSE)
    .minorGridlines(GridLines.New("red", 5))
    .format("currency").build();

barChart.setHAxis(haxis);