You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have a chart with a row series as illustrated below and want to change the direction of the x-axis (horizontal) to mirror it, i.e. the x-axis starts on the right at 0 and the rows are drawn to the left.
However, if I set the x-axis to inverted (and remove the MinLimit of 0) a strange effect occurs and the bars behave totally unpredictable:
public List<ISeries> Series
{
get
{
... [calculations]...
List<ISeries> rowSeries =
[
new RowSeries<int>
{
Values = myValues,
Fill = new SolidColorPaint(ChartColors.DodgerBlue),
DataLabelsPaint = new SolidColorPaint { ... },
DataLabelsSize = 20,
DataLabelsPosition = DataLabelsPosition.End,
DataLabelsFormatter = (chartPoint) => $"{chartPoint.Coordinate.PrimaryValue}",
XToolTipLabelFormatter = (chartPoint) => $"..."
}
];
return rowSeries;
}
}
public static Axis[] XAxesValues =>
[
new Axis
{
MinLimit = 0,
LabelsPaint = Configuration.StandardLabelsPaint
}
];
public Axis[] YAxesValues =>
[
new Axis
{
Labels = myLabels,
LabelsPaint = Configuration.StandardLabelsPaint,
ShowSeparatorLines = false,
ForceStepToMin = true,
Padding = new Padding(0, 0, 25, 0)
}
];
To Reproduce
Steps to reproduce the behavior:
Create a row series as explained above
Set the x-axis to inverted
public static Axis[] XAxesValues =>
[
new Axis
{
IsInverted = true,
LabelsPaint = Configuration.StandardLabelsPaint
}
];
Expected behavior
Something similar to this:
Desktop (please complete the following information):
OS: Windows 10, Version 22H2
Browser --> Not applicable; WPF app
Version: LiveChartsCore 2.0.0-rc2, LiveChartsCore.SkiaSharpView.WPF 2.0.0-rc2
Framework: .NET 8.0
The text was updated successfully, but these errors were encountered:
Describe the bug
I have a chart with a row series as illustrated below and want to change the direction of the x-axis (horizontal) to mirror it, i.e. the x-axis starts on the right at 0 and the rows are drawn to the left.
However, if I set the x-axis to inverted (and remove the MinLimit of 0) a strange effect occurs and the bars behave totally unpredictable:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Something similar to this:
Desktop (please complete the following information):
OS: Windows 10, Version 22H2
Browser --> Not applicable; WPF app
Version: LiveChartsCore 2.0.0-rc2, LiveChartsCore.SkiaSharpView.WPF 2.0.0-rc2
Framework: .NET 8.0
The text was updated successfully, but these errors were encountered: