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

Width setting on bar chart with multiple series. #1733

Open
gb312 opened this issue Dec 18, 2024 · 0 comments
Open

Width setting on bar chart with multiple series. #1733

gb312 opened this issue Dec 18, 2024 · 0 comments
Labels
question Further information is requested

Comments

@gb312
Copy link

gb312 commented Dec 18, 2024

I am currently migrating a project which used LiveCharts to LiveCharts2 using WPF. When recreating a chart from LiveCharts in LiveCharts2 I cannot set the width and selectability of the values as could be previously done.
In the previous version I had a chart containing multiple series with each series Values = new ChartValues<ObservableValue> { new ObservableValue(barValue) }. This filled the chart with the series and allowed each series to be selected individually. As shown
image

Having attempted to replicate the code in LiveCharts2 I get a chart where the bars do not fill the chart and when hovered over or selected all series are selected.
image

I have attempted to make the ChartValues ObservablePoints instead of ObservableValues and this fixes the issue of selection but I can still not find a way to adjust the width of the bars to fill the chart.
image

I was happy with the behaviour of the previous LiveCharts and I am just looking to recreate this in the new release. Is there some recommendations that you could provide to allow me to achieve the same appearance and function.

Thanks.

@beto-rodriguez beto-rodriguez added the question Further information is requested label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants