-1

I'm trying to add labels for the x and y axes, but the label is actually overwriting the linearaxis values.

This is the picture

Okenite
  • 189
  • 1
  • 10

1 Answers1

0

Use the AxisTitleDistance attribute. Either in the XAML or in code.

model.Axes.Add(new LinearAxis { Position = AxisPosition.Bottom, AxisTitleDistance = 25});
model.Axes.Add(new LinearAxis { Position = AxisPosition.Left, AxisTitleDistance = 25});
Palle Due
  • 5,929
  • 4
  • 17
  • 32
  • I solved the problem using the AxisDistance attribute. The AxisTitleDistance doesn't work because i have to move the label instead of the title. – Okenite Dec 04 '17 at 15:45