Demo de utilização de Gráficos em aplicações Xamarin.Forms http://julianocustodio.com/graficos-xamarin-forms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using SkiaSharp; | |
using Xamarin.Forms; | |
using Xamarin.Forms.Xaml; | |
... | |
List<Microcharts.Entry> entries = new List<Microcharts.Entry> | |
{ | |
new Microcharts.Entry(200) | |
{ | |
Label = "Janeiro", | |
ValueLabel = "200", | |
Color = SKColor.Parse("#266489") | |
}, | |
new Microcharts.Entry(250) | |
{ | |
Label = "Fevereiro", | |
ValueLabel = "250", | |
Color = SKColor.Parse("#68B9C0") | |
}, | |
new Microcharts.Entry(100) | |
{ | |
Label = "Março", | |
ValueLabel = "100", | |
Color = SKColor.Parse("#90D585") | |
}, | |
new Microcharts.Entry(150) | |
{ | |
Label = "Abril", | |
ValueLabel = "150", | |
Color = SKColor.Parse("#e77e23") | |
} | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment