Hi There,
We've got a problem with Xamarin.Forms version of TeeCharts. There seems to be some discrepancy in the way series marks font color is rendered. It seems to set the series marks colors randomly.
I've attached a sample project and a screenshot.
According to the code, whenever a pie chart is rendered, its Marks.Font.Color should be Green, and when a bar chart is rendered, its Marks.Font.Color should be White. But it seems to randomly generate the color of the marks.
Do you know what we might be doing wrong?
Thanks.
[Xamarin.Forms] Series.Marks.Font.Color issue
-
- Newbie
- Posts: 9
- Joined: Mon Jan 12, 2015 12:00 am
[Xamarin.Forms] Series.Marks.Font.Color issue
- Attachments
-
- TeeChartsSample.zip
- Sample project
- (284.81 KiB) Downloaded 586 times
-
- Font color issue screenshot
- Nexus 4 (KitKat) Screentshot 8.png (77.43 KiB) Viewed 8506 times
-
- Newbie
- Posts: 9
- Joined: Mon Jan 12, 2015 12:00 am
Re: [Xamarin.Forms] Series.Marks.Font.Color issue
I suspect this is somehow related to the font size may be TeeCharts is caching font objects of the same size (or something) and thus caching their colors too. But I am not sure. This is just a hunch.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: [Xamarin.Forms] Series.Marks.Font.Color issue
Hello,
Does setting:
makes any change at your end? That being the case it would be a caching bug. The problem is in Android only or it affects other platforms as well?
Thanks in advance.
Does setting:
Code: Select all
Steema.TeeChart.Utils.UseCaches = false;
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 9
- Joined: Mon Jan 12, 2015 12:00 am
Re: [Xamarin.Forms] Series.Marks.Font.Color issue
Hi Narcis,
The issue appears to be affect Android only. And the code you provided seems to fix the issue. So it may really be a caching issue.
We're using it as a workaround for now but I guess you wouldn't recommend that in the long run. Correct?
Thanks you so much for the prompt response.
The issue appears to be affect Android only. And the code you provided seems to fix the issue. So it may really be a caching issue.
We're using it as a workaround for now but I guess you wouldn't recommend that in the long run. Correct?
Thanks you so much for the prompt response.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: [Xamarin.Forms] Series.Marks.Font.Color issue
Hello MiracleTek,
Yes, it is. We have enhanced the problem as font color was not being considered when caching the font object. However, this will still fail under some circumstances due to a Xamarin.Forms bug (26455), which I just submitted to Xamarin's bugzilla.MiracleTek wrote: So it may really be a caching issue.
It only affects Android because caching is done in different ways across each platform.MiracleTek wrote:The issue appears to be affect Android only.
The purpose of object caching is speeding up the chart rendering and its responsiveness, specially in Android. If performance is not a problem with the nature of your application then you can safely disable caching.MiracleTek wrote: We're using it as a workaround for now but I guess you wouldn't recommend that in the long run. Correct?
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |