I tried to implemet Charts in Tizen .NET mobile app but it’s not working, Could any one help me out with below code and references,
My Code : C#
using Microcharts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using Entry = Microcharts.Entry;
namespace CrossTemplate1
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class TabPage1 : ContentPage
{
public TabPage1 ()
{
InitializeComponent ();
var entries = new[]
{
new Entry(212)
{
Label = "UWP",
ValueLabel = "212",
Color = SkiaSharp.SKColor.Parse("#2c3e50")
},
new Entry(248)
{
Label = "Android",
ValueLabel = "248",
Color = SkiaSharp.SKColor.Parse("#77d065")
},
new Entry(128)
{
Label = "iOS",
ValueLabel = "128",
Color = SkiaSharp.SKColor.Parse("#b455b6")
},
new Entry(514)
{
Label = "Shared",
ValueLabel = "514",
Color = SkiaSharp.SKColor.Parse("#3498db")
}
};
chartView.Chart = new RadarChart() { Entries = entries };
}
}
}
How to use Microcharts in Tizen
Hi Folks,
I tried to implemet Charts in Tizen .NET mobile app but it’s not working, Could any one help me out with below code and references,
My Code : C#
using Microcharts; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; using Entry = Microcharts.Entry; namespace CrossTemplate1 { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class TabPage1 : ContentPage { public TabPage1 () { InitializeComponent (); var entries = new[] { new Entry(212) { Label = "UWP", ValueLabel = "212", Color = SkiaSharp.SKColor.Parse("#2c3e50") }, new Entry(248) { Label = "Android", ValueLabel = "248", Color = SkiaSharp.SKColor.Parse("#77d065") }, new Entry(128) { Label = "iOS", ValueLabel = "128", Color = SkiaSharp.SKColor.Parse("#b455b6") }, new Entry(514) { Label = "Shared", ValueLabel = "514", Color = SkiaSharp.SKColor.Parse("#3498db") } }; chartView.Chart = new RadarChart() { Entries = entries }; } } }View : XAML
<?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="CrossTemplate1.TabPage1" xmlns:local ="clr-namespace:CrossTemplate1" xmlns:microcharts="clr-namespace:Microcharts.Forms;assembly=Microcharts.Forms" Title="Page 1"> <ContentPage.Content> <StackLayout HeightRequest="400"> <!--<Label Text="Welcome to Xamarin.Forms!" VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand" />--> <microcharts:ChartView x:Name="chartView" /> </StackLayout> </ContentPage.Content> </ContentPage>Followed references:
https://www.youtube.com/watch?v=tmymWdmf1y4
and
https://blog.xamarin.com/microcharts-elegant-cross-platform-charts-for-any-app/
Thanks in advance,
Vamsi K.
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio