Frage

I'm working with a CorePlot scatter plot, and I'm having trouble putting the finishing touches on the axis label styling. I'd like for the plot to overlap above the Y-axis labels, but the opposite is happening. I've scoured the documentation, but can't find any options to do this.

Here's the output:

Graph output

I've tried manipulating the ZPosition of both the plot & axis labels, but that doesn't seem to be working:

[plot setZPosition:99];
[axisSet.yAxis.axisLabels each:^(CPTAxisLabel *label) {
    [label.contentLayer setZPosition:-1];
}];

Note - Objective Sugar used for loop comprehension

Any ideas as to how to accomplish this?

War es hilfreich?

Lösung

The plot area has a property called topDownLayerOrder that allows you to rearrange the different graph elements in exactly this way.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top