Skip to content

How to change font size of chart axis labels? #723

@Jaguar1

Description

@Jaguar1

I am trying to set a different font size (and eventually change also the color) of X and Y axis labels in a chart.
My code is like:

$oShape = $currentSlide->createChartShape(); // ..etc. and chart looks good
$oShape->getPlotArea()->getAxisX()->getFont()->setSize(7); // it does nothing

setSize() doesn't set the new value and font size remains the same. No errors or warnings.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions