Skip to content

Conversation

beberlei
Copy link
Member

The idea is that on the secondary axis the label should not be on the left (default), because that lets it get rendered into the chart. With its position being right, the label is outside of the charts values:

        $chart = new ezcGraphLineChart();
        $chart->palette = new ezcGraphPaletteBlack();
        $chart->xAxis->axisLabelRenderer = new ezcGraphAxisExactLabelRenderer();
        $chart->xAxis->labelPosition = ezcGraph::RIGHT;

The option is a bit misleading right now, because it needs to be combined with $axis->position which it interacts with.

PhoenixFnX and others added 5 commits January 21, 2022 18:14
I just commit the minimum code to allow labels on the right of a vertical secondary axis
only $axis->labelPosition === ezcGraph::RIGHT is supported
…lt and only code for RIGHT exists. Add a test for setting element property.
@beberlei
Copy link
Member Author

Replaces #7

@derickr
Copy link
Member

derickr commented Feb 10, 2022

This is still a draft?

1 similar comment
@derickr
Copy link
Member

derickr commented Sep 14, 2022

This is still a draft?

@beberlei
Copy link
Member Author

Yes, it doesnt work with all cases, just my special case for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants