Change colors in a livecharts chart with MAUI

107 Views Asked by At

In my MAUI application, I added LiveChart.dev graphs version 2.0.0-RC1. It is working and the code is

<lvc:CartesianChart Series="{Binding Series}" 
                    XAxes="{Binding XAxes}" YAxes="{Binding YAxes}"
                    LegendPosition="{Binding LegendPosition}"
                    HorizontalOptions="FillAndExpand" HeightRequest="250" />

The result is good.

enter image description here

Because this is a mobile app, I also enabled the dark mode. When it is dark, I can't see the label on the axeses or in the legend.

Is there a way to change the color of the labels?

0

There are 0 best solutions below