Skip to content

How can I change the size of the font of the xAxis and yAxis? #202

Open
@alvarohghg

Description

@alvarohghg

I'm trying to make a responsive app for phones and tablets but the font is too small for tablets and I cannot see any option that allows changing the font size (apart from the title and subtitle) so my chart looks like this on tablets:

Captura

My code is like this:

val aaChartModelGrafica : AAChartModel = AAChartModel()
            .chartType(AAChartType.Bar)
            .title("Días de actividad de $asignaturaSeleccionada")
            .titleStyle(
                AAStyle()
                    .color("#0D6277")
                    .fontSize(titleSize)
            )
            .backgroundColor("#d8fcf2")
            .colorsTheme(arrayOf("#f13e71", "#d8fcf2", "#06caf4", "#7dffc0"))
            .dataLabelsEnabled(true)
            .xAxisReversed(true)
            .zoomType(AAChartZoomType.XY)
            .yAxisTitle("Minutos estudiados")
            .categories(dataGrafica.map { it.first }.toTypedArray())
            .series(arrayOf(
                AASeriesElement()
                    .name("Minutos")
                    .data(dataGrafica.map { it.second }.toTypedArray()))
            )

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions