Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stacked bar chart becomes a line when using the Axis IsInverted property #769

Closed
kojima-imamura opened this issue Nov 23, 2022 · 2 comments

Comments

@kojima-imamura
Copy link

kojima-imamura commented Nov 23, 2022

When I use StackedRowSeries and set [IsInverted = true] on the axis labels, the display is strange.

image

image

Setting [Padding = 0] and [MaxBarWidth = double.PositiveInfinity] has no effect.

@kojima-imamura
Copy link
Author

WPF Default Sample
image

Using the IsInverted option.

image

.\LiveCharts2-master\samples\WPFSample\StackedBars\Basic\View.xaml
Edit Code
<lvc:CartesianChart Series="{Binding Series}">
--><lvc:CartesianChart Series="{Binding Series}" XAxes="{Binding XAxis}">

.\LiveCharts2-master\samples\ViewModelsSamples\StackedBars\Basic\ViewModel.cs
Add Code
public Axis[] XAxis { get; set; } = { new Axis { IsInverted = true } };

beto-rodriguez added a commit that referenced this issue Dec 18, 2022
@beto-rodriguez
Copy link
Owner

Thanks for the report, fixed with the referenced commit and will be included since beta 700.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants