Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manuelmeisen/SimpleXarts
Live update Xamarin.Forms charts. Customizable, bindable, easy to use.
https://github.com/manuelmeisen/SimpleXarts
charts live-charts xamarin xamarin-forms
Last synced: 29 days ago
JSON representation
Live update Xamarin.Forms charts. Customizable, bindable, easy to use.
- Host: GitHub
- URL: https://github.com/manuelmeisen/SimpleXarts
- Owner: manuelmeisen
- License: mit
- Created: 2019-06-15T14:33:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-19T09:42:36.000Z (over 5 years ago)
- Last Synced: 2024-08-03T23:24:16.653Z (4 months ago)
- Topics: charts, live-charts, xamarin, xamarin-forms
- Language: C#
- Size: 1010 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-xamarin-forms - SimpleXarts ★6
README
# SimpleXarts
SimpleXarts is a live update Xamarin.Forms charting library, designed to be used with MVVM.
## Getting started
### Install
Not yet on NuGet, because the structure of the charts is still subject to change,
to support a wider range of platforms.Its not recommended to be used in its current state.
### Display a chart
#### 1) Create the data to bind to a chart.
```csharp
public ObservableCollection Data { get; set; } = new ObservableCollection()
{
new Figure(20)
{
Describtion = "Fruit",
Color = Xamarin.Forms.Color.FromRgb(240, 125, 100)
},
new Figure(5)
{
Describtion = "Fish",
Color = Xamarin.Forms.Color.FromRgb(100, 188, 194)
},
new Figure(12)
{
Describtion = "Sweets",
Color = Xamarin.Forms.Color.FromRgb(242, 194, 84)
},
new Figure(20)
{
Describtion = "Vegetable",
Color = Xamarin.Forms.Color.FromRgb(142, 215, 131)
}
};
```
###### References:
* [Figure](Source/ChartBase/Figure.cs)
* [ObservableCollection](https://docs.microsoft.com/de-de/dotnet/api/system.collections.objectmodel.observablecollection-1?view=netframework-4.8)
* [Xamarin.Forms.Color](https://docs.microsoft.com/de-de/dotnet/api/xamarin.forms.color?view=xamarin-forms)
#### 2) Bind the data to a chart.
```xaml
](https://docs.microsoft.com/de-de/dotnet/api/system.collections.objectmodel.observablecollection-1?view=netframework-4.8)
* [Xamarin.Forms.Color](https://docs.microsoft.com/de-de/dotnet/api/xamarin.forms.color?view=xamarin-forms)![gallery](Documentation/Gallery/DonutChartUpdate.gif)