This is a migrated thread and some comments may be shown as answers.

Linechart different color per point of x-axis

4 Answers 66 Views
Chart
This is a migrated thread and some comments may be shown as answers.
maria
Top achievements
Rank 1
maria asked on 03 Mar 2021, 08:29 AM
Hi, we are integrating some of our feature from web to mobile using telerik. We have done this multicolor per x-axis value on web. But i'am struggling to do this functionality to xamarin mobile ios and android.

Here's an example of what i accomplished on web using kendo linechart. Please see attached file.

We want the same implementation on xamarin forms for both android and ios. Thanks! 

4 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 03 Mar 2021, 09:50 AM

Hello Maria,

Thank you for sending the image. 

I am afraid that our Xamarin Chart control does not provide the ability to use separate colors in a single line series.  For the time being, such an option is available for our BarSeries only.  This would be a valuable addition to the control's feature-set, so I logged a feature request on your behalf in our feedback portal, you can check it here:

Chart: Provide the option to apply different colors to the LineSeries per point

We're going to keep an eye on the demand and will plan it accordingly.

I've updated your points as a small sign of gratitude for your involvement on this.

Regards,
Yana
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
maria
Top achievements
Rank 1
answered on 03 Mar 2021, 02:48 PM
I see, I hope this will be added soon in the future for others that needed it. Thank you
0
maria
Top achievements
Rank 1
answered on 03 Mar 2021, 06:02 PM

I have an idea but i don't think it is included on line series property. But it is possible to add a data trigger to lineSeries? so that i can add a setter for my specific x-axis value to change its stroke color if meet some required data from x-axis value.

Something like in the attached image...

If it's not possible i will give up this for now and look for other options in the market. 

0
Yana
Telerik team
answered on 04 Mar 2021, 08:46 AM

Hello Maria,

This wouldn't help as setting the stroke color will affect the whole line. The functionality is just not considered in the current implementation of the LineSeries, that's why I cannot suggest a feasible workaround.

I am sorry our Chart does not meet the described requirement.

Regards,
Yana
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Chart
Asked by
maria
Top achievements
Rank 1
Answers by
Yana
Telerik team
maria
Top achievements
Rank 1
Share this question
or