Hi,
Im creating a Dashboard using StoryBoard and Telerik Chart within Xamarin. I was able to create my chart and populate but I'm lost when I try to set the format. I want to set the current Label + Value as the second image.
Here is my code and I have attached 2 images, the first one is the current behavior of my code, and second is what I'm trying to create.
TKChart revenueView = new TKChart();
revenueView.BackgroundColor = UIColor.FromRGB (238, 238, 238);
revenueView.AllowAnimations = true;
revenueView.Legend.Hidden = false;
revenueView.Legend.Style.Position = TKChartLegendPosition.Right;
revenueView.AutoresizingMask = ~UIViewAutoresizing.None;
TKChartDonutSeries series =
new
TKChartDonutSeries (revData.GetCurrentData (time, comparision));
series.Title =
"Series Title"
;
series.SelectionMode = TKChartSeriesSelectionMode.DataPoint;
series.InnerRadius = 0.6f;
series.ExpandRadius = 1.1f;
series.LabelDisplayMode = TKChartPieSeriesLabelDisplayMode.Outside;
series.Style.PointLabelStyle.TextHidden =
false
;
series.Style.PointLabelStyle.LabelOffset =
new
UIOffset (0, -25);
revenueView.AddSeries (series);