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.
Describe the bug
The first different is the black background. I would have expected white like Windows or Linux. The bug is the rendering is not working as expected when Catalyst output is used. It works with MacOS/Skia. See screenshot below:
To Reproduce
1- Create a new Uno Project using the latest version (Single Project).
I have seen this issue on Uno, I am afraid that this issue belongs there, but I am not completely sure, I need tome to to investigate this, and determine where this issue exactly is.
Describe the bug The first different is the black background. I would have expected white like Windows or Linux. The bug is the rendering is not working as expected when Catalyst output is used. It works with MacOS/Skia. See screenshot below:
To Reproduce 1- Create a new Uno Project using the latest version (Single Project).
2- Add the control
<winUi:CartesianChart Grid.Row="2" Series="{Binding Series}" XAxes="{Binding XAxes}" YAxes="{Binding YAxes}" />
3- Create the data
public ISeries[] Series { get; set; } = { new LineSeries
{
Values = new ObservableCollection
{
new DateTimePoint(new DateTime(2021, 1, 1), 300),
new DateTimePoint(new DateTime(2021, 2, 1), 600),
new DateTimePoint(new DateTime(2021, 3, 1), 500),
new DateTimePoint(new DateTime(2021, 4, 1), 300),
new DateTimePoint(new DateTime(2021, 5, 1), 500),
new DateTimePoint(new DateTime(2021, 6, 1), 600),
new DateTimePoint(new DateTime(2021, 7, 1), 800),
new DateTimePoint(new DateTime(2021, 8, 1), 700),
new DateTimePoint(new DateTime(2021, 9, 1), 900),
new DateTimePoint(new DateTime(2021, 10, 1), 600),
new DateTimePoint(new DateTime(2021, 11, 1), 800),
new DateTimePoint(new DateTime(2021, 12, 1), 750)
}
}
};
public Axis[] XAxes { get; set; } = { new DateTimeAxis(TimeSpan.FromDays(1), date => date.ToString("MMM dd")) };
public Axis[] YAxes { get; set; } = { new Axis { Name = "kW", TextSize = 20, } };
Expected behavior This should be like Windows or Linux output:
Screenshot
Desktop (please complete the following information):