SkiaChart.Forms
1.2.60
dotnet add package SkiaChart.Forms --version 1.2.60
NuGet\Install-Package SkiaChart.Forms -Version 1.2.60
<PackageReference Include="SkiaChart.Forms" Version="1.2.60" />
<PackageVersion Include="SkiaChart.Forms" Version="1.2.60" />
<PackageReference Include="SkiaChart.Forms" />
paket add SkiaChart.Forms --version 1.2.60
#r "nuget: SkiaChart.Forms, 1.2.60"
#:package SkiaChart.Forms@1.2.60
#addin nuget:?package=SkiaChart.Forms&version=1.2.60
#tool nuget:?package=SkiaChart.Forms&version=1.2.60
by Ndubuisi Jr Chukuigwe
skia-chart
A simple xamarin.Forms chart library, built on top of the skiasharp.views.forms library. This library is developed with engineering and statistics in mind. It might not be the prettiest but it will visualize your data appropriately.
Supported Charts
- Line Chart.
- Bar Chart.
- Scatter Chart.
- Area Chart.
- Radial Chart.
- Donut Chart.
Features
- Horizontal axis title.
- Vertical axis title.
- Legend
- Point markers for line and area charts.
- Plots multiple line chart on the same axis.
- Plots multiple bars on the same axis.
- Plots multiple scatter points on the same axis.
- Plots multiple area charts on the same axis.
Supported Platforms
- Android
- IOS
- UWP
- macOS
- GTK
- WPF
Getting Started
- Open Nuget package manager for solution
- Search for SkiaChart.Forms
- Install on all the projects
Code Example
Line Chart
XAML-page
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:chartview="clr-namespace:SkiaChart.Views;assembly=SkiaChart"
xmlns:chart="clr-namespace:SkiaChart.Charts;assembly=SkiaChart"
xmlns:viewModels="clr-namespace:TestApp.ViewModels"
x:Class="TestApp.Views.LineChartView"
>
<ContentPage.BindingContext>
<viewModels:LineChartViewModel/>
</ContentPage.BindingContext>
<chartview:ChartCanvas x:TypeArguments="chart:LineChart" x:Name="chartView"
Chart="{Binding Chart}" GridLines="10" />
</ContentPage>
see <a href="https://github.com/NdubuisiJr/skia-chart/tree/master/TestApp/TestApp">Test App<a/> for typical bindings.
<p> <img src="https://github.com/NdubuisiJr/skia-chart/blob/master/ProjectFiles/Screenshot_1585258837.png" width="175" title="Line Chart"> </p>
Bar Chart
XAML-page
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:chartview="clr-namespace:SkiaChart.Views;assembly=SkiaChart"
xmlns:chart="clr-namespace:SkiaChart.Charts;assembly=SkiaChart"
xmlns:viewModels="clr-namespace:TestApp.ViewModels"
x:Class="TestApp.Views.BarChartPage">
<ContentPage.BindingContext>
<viewModels:BarChartViewModel/>
</ContentPage.BindingContext>
<chartview:ChartCanvas x:TypeArguments="chart:BarChart" x:Name="chartView" Chart="{Binding Chart}"
GridLines="10" GridColor="{Binding GridColor}" />
</ContentPage>
see <a href="https://github.com/NdubuisiJr/skia-chart/tree/master/TestApp/TestApp">Test App<a/> for typical bindings. <p> <img src="https://github.com/NdubuisiJr/skia-chart/blob/master/ProjectFiles/Screenshot_1585492508.png" width="175" title="Bar chart"> </p>
Scatter Chart
XAML-page
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:chartview="clr-namespace:SkiaChart.Views;assembly=SkiaChart"
xmlns:chart="clr-namespace:SkiaChart.Charts;assembly=SkiaChart"
xmlns:viewModels="clr-namespace:TestApp.ViewModels"
x:Class="TestApp.Views.BarChartPage">
<ContentPage.BindingContext>
<viewModels:ScatterChartViewModel/>
</ContentPage.BindingContext>
<chartview:ChartCanvas x:TypeArguments="chart:ScatterChart" x:Name="chartView" Chart="{Binding Chart}"
GridLines="10" GridColor="{Binding GridColor}" />
</ContentPage>
see <a href="https://github.com/NdubuisiJr/skia-chart/tree/master/TestApp/TestApp">Test App<a/> for typical bindings. <p> <img src="https://github.com/NdubuisiJr/skia-chart/blob/master/ProjectFiles/Screenshot_1585603936.png" width="175" title="Scatter chart"> </p>
Tutorials - Watch the YouTube video below:
<br/> Full tutorial series
Contributing
- Create a Fork from this repository.
- Clone your fork into your work station.
- Switch to the development branch.
- Make your changes on the development branch.
- Push your changes to your fork.
- Create a pull request back to the main repository.
- Add a new remote called upstream to point to the main repository.
License
This project is licensed under the MIT License - see the LICENSE file for details
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- SkiaSharp.Views.Forms (>= 1.68.1.1)
- Xamarin.Forms (>= 4.4.0.991477)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
1. New Chart Type was added - Donut/Ring Type
2. Bug fixes on GridLine bindable property
4. Added bindadble property called ChartColor to control the appearance of the Chart Canvas