Skip to content

how to invert Axis? #1534

Answered by igiona
ikikaidesu asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to to do so in the view-model, where I create the data series:

Viewmodel

...

XAxes = [
    new Axis { 
        Labels = xAxisLabels
    }
];
YAxes = [
    new Axis {
        Labels = yAxisLabels,
        IsInverted = true,
        MinStep = 1
    }
];

View

      <lvc:CartesianChart
            Height="600"
            Width="1200"
            Series="{Binding MySeries}"
            XAxes="{Binding XAxes}"
            YAxes="{Binding YAxes}">

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ikikaidesu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants