Telerik Forums
UI for Xamarin Forum
1 answer
28 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
72 views

Getting following exception while creating TKChart control. This is applicable for all Telerik controls. When i deploy Examples.sln file then its working fine but when i create simple sample with chart getting this issue

Thanks,

Dhanasekar

dhana
Top achievements
Rank 1
 updated question on 13 Dec 2022
2 answers
83 views

Hi,

i am trying to create a graph, as can be seen in picture Chart.png.

But i found no property to set the start value of the logarithmic axis (default start value is 1 but i need 125).

How can i change the display range of the TKChartNumericAxis? And it is possible to invert the y axis (like in the screenshot)?

My current code:
var chart = new TKChart
{
    XAxis = new TKChartLogarithmicAxis
    {
        LogarithmBase = 2
    },
    YAxis = new TKChartNumericAxis(NSObject.FromObject(-10), NSObject.FromObject(120)),
    Frame = StackLayout.Bounds.ToRectangleF()
};

chart.Title.Hidden = true;
chart.Legend.Hidden = true;

var list = new NSObject[]
{
    new TKChartDataPoint(new NSNumber(500), new NSNumber(70)),
    new TKChartDataPoint(new NSNumber(1000), new NSNumber(40)),
    new TKChartDataPoint(new NSNumber(2000), new NSNumber(60)),
    new TKChartDataPoint(new NSNumber(4000), new NSNumber(50))
};

var series = new TKChartLineSeries(list);
chart.AddSeries(series);

Marco
Top achievements
Rank 1
Iron
 answered on 01 Jul 2021
8 answers
85 views

Hello
We use 
  Chart.XAxis.AllowZoom = true;
  Chart.XAxis.AllowPan = true;
   Chart.AllowTrackball = true;
   Chart.AllowPanDeceleration = true;
   Chart.Trackball.SnapMode = TKChartTrackballSnapMode.AllClosestPoints;
   Chart.Trackball.Tooltip.Hidden = true;


When we zoom on the chart and then start trackball
The pan is working instead of the trackball
How can we handle this? 
Best Regards 
Didi
Telerik team
 answered on 06 Apr 2021
3 answers
53 views
When we try to customise the cartesian chart in the iOS for the xamarin forms, then we are allowing the pan in the XAxis and also trying to set the value of Pan, but whenever I try to set the value of Pan then it is raising an exception. Kindly check it and update me asap.
Didi
Telerik team
 answered on 05 Apr 2021
3 answers
71 views

Hello. I am using a RadCartesianChartView with CartesianGridLineAnnotations set on the Y axis. When zooming and panning the chart, the annotations get rendered below the X axis, both the labels and the strokes. I've attached 2 screenshots to demonstrate the effect. Is there a property that we can change to prevent the annotations from going below the X axis? 

 

Thank you.

Deyan
Telerik team
 answered on 03 Apr 2017
3 answers
87 views

Hi,

i am showing a RadCartesianChartView with a DateTimeContinuousAxis for OX and a LinearAxis for OY. The OX is showing shorter or longer spans of time, depending on the user's choice.

1. Zoom

I want to set the chart zoom level from the moment i display the chart, but also allow the user to manually zoom and pan. I tried to use Chart.SetZoom() and also add ChartPanAndZoomBehavior(), but it doesn't work. If i set the Zoom factor, the user cannot manually pan and zoom. I also tried ChartPanAndZoomBehavior.SetZoomToChart() but has no effect.

2. Setting DateTimeContinuousAxis MajorStep

When the user selects a smaller time interval (like 1 month), i want the OX axis to show days, but not all 30 days. So i set the MajorStepUnit to TimeInterval.Day and the MajorStep to 10. However, it doesn't work as expected - i see a tick for every 5 days. Worse, when the user manually zooms on the chart, the tick interval is automatically changed. I can obtain a better result by setting the horizontalAxis.MaximumTicks, but i get other side effects. What can i do to have more control over the labels that are displayed in the OX axis?

 

Thank you!

 

Nikolay
Telerik team
 answered on 30 Mar 2017
5 answers
58 views

Hi Telerik,

I have a problem with binding data to chart

my point inculcated date and int 

but my int can be null

i don't what to display the point but i what the chart to show the empty space  

 

code:

public class DataEntity : NSObject     

{         

        [Export("Date")]         

       public NSDate Date { get; set; }       

      [Export("Value")]     

    public int? Value { get; set; }       

     public SeriesNames SeriesName { get; set; }  

}

 

Deyan
Telerik team
 answered on 21 Mar 2017
1 answer
31 views

Hello 
We use Chart.AllowTrackball = true;
After track on the chart sometimes the application is crush


Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
The app has been terminated.
How to handle this crush?
Best Regards
Deyan
Telerik team
 answered on 14 Mar 2017
1 answer
73 views

 Hello

We have 2 charts in carousel 
  Chart.XAxis.AllowZoom = true;
  Chart.XAxis.AllowPan = true;
  Chart.AllowTrackball = true;
  Chart.AllowPanDeceleration = true;


When we get into selected chart in the carousel 
We add the relevant series and clear the previous chart series 

This is the unhandled exception we get from the chart and the application crush    
ios chart throw
 exceptiFoundation.MonoTouchException: Objective-C exception thrown.  Name: NSInvalidArgumentException Reason: *** -[__NSPlaceholderArray initWithCapacity:]: capacity (2147483646) is ridiculous
Native stack trace:on 

   0x0041dbfc -[TKChartGridRender drawInContext:] + 380


if we turn off the AllowZoom and AllowPan This exception not exists  
  Chart.XAxis.AllowZoom = false;
  Chart.XAxis.AllowPan = false;


How to handle this exception
Best Regards 

Deyan
Telerik team
 answered on 14 Mar 2017
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?