beto-rodriguez / LiveCharts2

Simple, flexible, interactive & powerful charts, maps and gauges for .Net, LiveCharts2 can now practically run everywhere Maui, Uno Platform, Blazor-wasm, WPF, WinForms, Xamarin, Avalonia, WinUI, UWP.
https://livecharts.dev
MIT License
4.38k stars 572 forks source link

Chart with multiple x axes with nested hierarchy possible? #1702

Open acurrens opened 5 days ago

acurrens commented 5 days ago

Hello, I've reviewed the docs and issues but haven't been able to get a scenario working with multiple x axes that are nested / related. The data I have has dates with several data points for each day with a sequential number.

The example I'm trying to build in Live Charts2 looks like this:

SampleChart

Is something like this possible?

I've got close with adding two axes - one for the date and the other for the bar number but they don't appear to be related as when I scroll left and right the dates move as expected but the bar numbers stay stationary.

See below for example of what I have working in live charts: https://github.com/user-attachments/assets/5b2c5290-0a9e-4a64-8d91-7a67a1bdc1e5

Thanks, Andrew