Too much empty space between bottom of the chart and the X axis labels #289
-
Hello, I'm testing LiveCharts2 in simple WPF UserControl and there's always a lot separation between x axis and x axis' labels. How to fix it? Is it possible to adjust any margin/padding of these entities? Many thanks for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Try to set the padding when creating the chart X-axis, or maybe Position if that doesn't work: cartesianChart1.Axes = new[] Here is the Axis.cs full code:
|
Beta Was this translation helpful? Give feedback.
-
I found same issue in WPF sample Axes/Multiple where multiple charts are displayed: |
Beta Was this translation helpful? Give feedback.
-
This is a new property in https://github.com/beto-rodriguez/LiveCharts2/blob/master/docs/shared/series2.md |
Beta Was this translation helpful? Give feedback.
This is a new property in
v2
it is calledDataPadding
, the link bellow explain how to remove it.https://github.com/beto-rodriguez/LiveCharts2/blob/master/docs/shared/series2.md