Telerik Forums
UI for Xamarin Forum
0 answers
16 views

Hello,

Is there any way to change the position of Series Label ? And font size ?

Here is an exemple where i would like to put labels at the end for the green serie, and in the middle for the purple serie.

 

Thanks !

Sébastien
Top achievements
Rank 1
 asked on 20 Feb 2024
1 answer
22 views

Hi Support Team,

 

I have an Xamarin application, and I using LineSeries chart.

One chart field contain more chart.

My issue, that on  IPhone the charts don' work good, the stroks colors don't realy colors, I setting other colors.
If I switch off the chart, I set color is transparent, don' other possible.

I can't switch off my chart, there is non "IsVisible" property!

In Android system chart all right working.

Wat is solution?

 

Best Regards,

Sandor Sapi

Didi
Telerik team
 answered on 19 Feb 2024
0 answers
11 views

Hi Team,

 

I have an Issue. I build an application with Telerik Chart component, but in case of release version (aapt bound) the chart x and y axis data label lost.
Please help if anyone konw solutions.

 

Best Regards,

Sandor Sapi from Hungary

Ferdinánd
Top achievements
Rank 1
 asked on 08 Feb 2024
1 answer
91 views

Hi, I am Implementing the Bar series, I am able to draw the Bars, But I need to apply different colors to each bar. I've tried like below but no use.

        ChartPalette customPalette = chartView.Palette.ClonePalette();
            PaletteEntry barEntry = customPalette.GetEntry(ChartPalette.BarFamily);
            barEntry = customPalette.GetEntry(ChartPalette.BarFamily);
            barEntry.Fill = Color.Black;

            PaletteEntry barEntry1 = customPalette.GetEntry(ChartPalette.BarFamily);
            barEntry1= customPalette.GetEntry(ChartPalette.BarFamily);
            barEntry1.Fill = Color.Red;

            PaletteEntry barEntry2 = customPalette.GetEntry(ChartPalette.BarFamily);
            barEntry2  = customPalette.GetEntry(ChartPalette.BarFamily);
            barEntry2 .Fill = Color.Yellow;

            barSeries.CategoryBinding = new MonthResultDataBinding("Index");
            barSeries.ValueBinding = new MonthResultDataBinding("BarValue");
            barSeries.Data = (Java.Lang.IIterable)this.monthResults;
            chartView.Series.Add(barSeries);
            chartView.Palette = customPalette;

Any help on adding different color for each data point.

Lance | Manager Technical Support
Telerik team
 answered on 05 Jul 2023
0 answers
51 views


Hi,

I'm trying to read the value of selectedPoint.DataItem in RadCartesianChartView when selecting the bar. 

DataPoint selectedPoint = e.P0.SelectedDataPoint();
var dataItem = selectedPoint.DataItem;
Casting the dataItem to C# object like
public class CastJavaObject
    {
        public static T Cast<T>(Java.Lang.Object? obj) where T : class
        {
            var propInfo = obj.GetType().GetProperty("Instance");
            return propInfo == null ? null : propInfo.GetValue(obj, null) as T;
        }
    }
and using the CastJavaObject like
var poco = CastJavaObject.Cast<Result>(dataItem);
The problem is Casting the dataItem always null. Any help on reading the dataItem values.

Thanks.
HV
Top achievements
Rank 1
 updated question on 13 Jun 2023
1 answer
66 views

Hi,

I've added 3 different bar series to RadCartesianChartView and added ChartSelectionBehavior like

 RadCartesianChartView chartView = new RadCartesianChartView(this);
 BarSeries barSeries = new BarSeries();
 BarSeries barSeries1 = new BarSeries();
 BarSeries barSeries2 = new BarSeries();

barSeries.CombineMode = ChartSeriesCombineMode.Stack;
barSeries.CategoryBinding = new MonthResultDataBinding("Month");
barSeries.ValueBinding = new MonthResultDataBinding("Result");
barSeries.SelectedFillColor = Color.Green;
barSeries.SelectedStrokeColor = Color.Red;
barSeries.SelectedStrokeWidth = 5;
barSeries.Data = (Java.Lang.IIterable)this.monthResults;
chartView.Series.Add(barSeries);

barSeries1.CombineMode = ChartSeriesCombineMode.Stack;
barSeries1.CategoryBinding = new MonthResultDataBinding("Month");
barSeries1.ValueBinding = new MonthResultDataBinding("Result1");
barSeries1.SelectedFillColor = Color.Blue;
barSeries1.SelectedStrokeColor = Color.Red;
barSeries1.SelectedStrokeWidth = 5;
barSeries1.Data = (Java.Lang.IIterable)this.monthResults;
chartView.Series.Add(barSeries1); barSeries2.CombineMode = ChartSeriesCombineMode.Stack; barSeries2.CategoryBinding = new MonthResultDataBinding("Month"); barSeries2.ValueBinding = new MonthResultDataBinding("Result2"); barSeries2.SelectedFillColor = Color.Orange; barSeries2.SelectedStrokeColor = Color.Red; barSeries2.SelectedStrokeWidth = 5; barSeries2.Data = (Java.Lang.IIterable)this.monthResults; chartView.Series.Add(barSeries2); ChartSelectionBehavior selectionBehavior = new ChartSelectionBehavior(); selectionBehavior.DataPointsSelectionMode = ChartSelectionMode.Single; chartView.Behaviors.Add(selectionBehavior);

While selecting the bar it selects only one barseries value. How can I select the 3 barseries values on single click.

 

Didi
Telerik team
 answered on 07 Jun 2023
1 answer
51 views

Hi Team,

Could you please help me how to scroll the RadCartesianChartView horizontally in Xamarin.Android.

Thank you! 

Didi
Telerik team
 answered on 30 May 2023
1 answer
79 views
how can I give label positions at outside in piechatseries
Didi
Telerik team
 answered on 06 Apr 2023
2 answers
59 views
Can I render my gauge chart ranges from c# code to UI?I have to bind my ranges based on specific conditions. Finally the ranges colors should be given in xaml. How can I achieve this? 
Lance | Manager Technical Support
Telerik team
 answered on 29 Mar 2023
1 answer
57 views
how can I give area border for linechart?
Didi
Telerik team
 answered on 28 Mar 2023
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?