Error using Microcharts:

Hi every one,

I´m using the microcharts library in order to show a chart, but currently I´m getting the following error and I not able to show the chart. Iam using Xamarin Live application on my Android phone. The library that I am using is "microcharts-elegant-cross-platform-charts-for-any-app"

And the error is: Unable to cast object of type 'System.RuntimeType' to type 'Mono.Debugger.Soft.TypeMirror'. I getting the error in the line "var entries= new[]...."

public Chart LastRidesChart
{
get
{
var entries = new[] {
new Entry(212)
{
Label = "UWP",
ValueLabel = "212",
Color = SKColor.Parse("#2c3e50")
},
new Entry(248)
{
Label = "Android",
ValueLabel = "248",
Color = SKColor.Parse("#77d065")
},
new Entry(128)
{
Label = "iOS",
ValueLabel = "128",
Color = SKColor.Parse("#b455b6")
},
new Entry(514)
{
Label = "Shared",
ValueLabel = "514",
Color = SKColor.Parse("#3498db")
} };

            return new PointChart()
            {
                Entries = entries,

            };
        }
    }

Answers

Sign In or Register to comment.