-
Notifications
You must be signed in to change notification settings - Fork 604
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
Visual Element not working (gauge not visible) #1794
Comments
I don't think the ambiguous reference error is related to your gauge not showing.
using LiveChartsCore.SkiaSharpView.VisualElements;
using Microsoft.Maui.Controls.VisualElement; If you need Maui's VisualElement class in this file, resolving the LiveCharts error by using the fully qualified name |
HI and thanks for the issue. I understand the confusion, some LiveCharts objects share the same name as Maui objects, I will keep this in mind to improve this in future versions. As a general rule, use LiveCharts objects if you are building a chart, this library does not use Maui to draw, everything is drawn by SkiaSharp. |
So i'm trying to show the angluar gauge in my .net maui app. But it is not really working out.
I figured this has something to do with the VisualElement from the beginnen because when i paste the ViewModel code into my project it instantly gives this error:
This error can be fixed by changing this line:
public IEnumerable<VisualElement> VisualElements { get; set; }
To this:
public IEnumerable<LiveChartsCore.VisualElements.VisualElement> VisualElements { get; set; }
But the gauge isn't visible when i debug.
When i remove the line
VisualElements="{Binding VisualElements}"
in the MainPage.xaml The blue, red and green zones are shown.Someone any ideas?
The text was updated successfully, but these errors were encountered: