Xamarin Telerik LineSeries Charts view error on IPhone

1 Answer 28 Views
Chart Chart - Xamarin.iOS
Ferdinánd
Top achievements
Rank 1
Ferdinánd asked on 14 Feb 2024, 03:08 PM

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
commented on 16 Feb 2024, 07:32 AM

Hi Sandor,

Could you please send me an image of the exact behavior, what is not applied?

We have the following issues related to LineSeries on iOS: 

The StrokeThickness does not apply https://feedback.telerik.com/xamarin/1366053-chart-ios-lineseries-strokethickness-ignored 
The StrokeColor and Thickness do not apply when Palette is set https://feedback.telerik.com/xamarin/1366102-chart-ios-lineseries-stroke-and-strokethickness-are-not-applied-when-palette-is-set - Based on the attached code, I do not see a palette. 

Regarding to the chart visibility: You have the collection of Chart.Series, and the visibility is on Chart level, not Series level. You can use the collection to add/remove series:

this.dataChart.Series.RemoveAt(2);
Ferdinánd
Top achievements
Rank 1
commented on 16 Feb 2024, 10:48 AM

Hi Didi,

I maked new review my xaml file.
I inserted rows series palette. Hier can't using Binding the telerikChart:PaletteEntry FillColor="Transparent" StrokeColor="Transparent"  or <telerikChart:PaletteEntry FillColor="#CD1818" StrokeColor="#CD1818" />
Only can using an static property setting the color.
This is don' good for me. I loading every the ObservableCollection. Doing  show, of the charts if switch is on state. This is require! 
I using MVVM technology and not xaml .cs class codebehind.

I attach the screenshots.

1. state wrong, this is first view loading.

2. state is good, hier switch on actual chart values:

Hier doing after an Back action, and new page loading

I can't what do IOS system.

Best regards,

Sandor Sapi

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 19 Feb 2024, 12:47 PM

Hi Sandor Sapi,

The Stroke and StrokeThickness, do not apply when palette is set. This is the issue I shared in my previous comment. There isn't a workaround for this behavior. 

Regarding to the palette colors and static colors, If I understood correctly, you want to use bindings, so in such case you can try with an attached property. I have attached the xaml and cs files I used. Use the approach as a base and extend it further to match your scenario. If you need help with the implementation, you can contact the Professional services team

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Ferdinánd
Top achievements
Rank 1
commented on 20 Feb 2024, 09:03 AM

Hi Didi,

 

I targeting more chart show (three chart one time maximum)
You're suggestion is only one chart color set. (local:ChartUtils.ColorsSource="{Binding Data1, Mode=OneWay}")

 

Best regards,

Sandor Sapi

Didi
Telerik team
commented on 20 Feb 2024, 09:47 AM

Hi,

You can use the example as a base and extend it further, if you need help with the implementation you can contact the Professional Services Team.

Another option is to create a separate chart for each series and in this way you can hide the chart and display the other chart with line series. For overlapping the charts, they must be define in a grid with same row and column, and their BackgroundColor should be set to Transparent.

Ferdinánd
Top achievements
Rank 1
commented on 20 Feb 2024, 01:10 PM

Hi Didi,

 

Your'e suggestion is working, but this is an didn't expert code. More issue is was.
1. Zoom possible on only top layer.
2. Trigger mode possible on only top layer.
3. To much xaml rows and ViewModel property

ThisTelerik charts don't professional solution.

 

Thank you the helps.

 

Best regards,

Sandor Sapi

Didi
Telerik team
commented on 21 Feb 2024, 02:35 PM

Correct - the zoom, pan behaviors will work only for the top applied chart. Still you can set the same zoom level to the other chart controls. 

Another option is to contact the professional services team and describe the binding behavior you want for the chart palette. This is a custom solution and such are outside of the Telerik support scope. More details can be found here: https://www.telerik.com/account/support/scope 

Tags
Chart Chart - Xamarin.iOS
Asked by
Ferdinánd
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or