We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfChart Axis Flicker

Thread ID:

Created:

Updated:

Platform:

Replies:

146691 Aug 14,2019 09:41 AM UTC Aug 19,2019 10:22 AM UTC WPF 6
loading
Tags: SfChart
Daniel
Asked On August 14, 2019 09:41 AM UTC

Hello, I am using Syncfusion for WPF 17.2460.0.34.

I am working on a cpu/gpu demanding application which shows hundred thousands datapoints at once, refreshing every 500 ms.
The performance of the SfChart control is sufficient, however, since the current version, everytime I assign a new ItemsSource to the Series bound to the SfChart,
the both axis begin to flicker on every update.
In version 17.1460.0.47 everything was fine, and I have indeed confirmed that the bug is occuring only in the newest version.

It seems I am not able to reproduce the bug as well using a sample project, since I have found out that the flicker is more visible when the app runs slowly.
It would be the best to test this on a slower machine.
I have prepared a GIF.

Thank you.

Muneesh Kumar G [Syncfusion]
Replied On August 14, 2019 10:04 AM UTC

Hi Daniel, 
 
Greetings from Syncfusion.  
 
We have analyzed your query and we unable to get the series type used in your application. We suggest you to use our FastLineBitmapSeries to improve the performance. Please refer below user documentation for details about this series type.  
 
 
If still face the problem, please update us your application files which are used Syncfusion controls and calculation. This would be helpful for us to give better solution in this.  
 
Thanks,  
Muneesh Kumar G.  


Daniel
Replied On August 14, 2019 01:46 PM UTC

I am already using FastLineBitmapSeries with thickness 1. 
As I said, the performance is not the problem. Flickering numeric axis' as shown in the GIF are.
I am having problems replicating it on a sample so that it occurs all the time.
When I maximize the window it disappears and when I resize it down it appears again.
Were there any changes on SfChart axis updating mechanism? Again, it wasn't happening on older version.

Daniel
Replied On August 15, 2019 08:11 AM UTC

Okey, it seems that the problem is being caused by a theme from older WPF theme studio. I will try to update it and tell you how it went.

Muneesh Kumar G [Syncfusion]
Replied On August 15, 2019 09:04 AM UTC

Hi Daniel,  
 
Thanks for your update and we will wait to hear from you. 
 
Thanks,   
Muneesh Kumar G.  
 


Daniel
Replied On August 15, 2019 09:38 AM UTC

Hi Daniel,  
 
Thanks for your update and we will wait to hear from you. 
 
Thanks,   
Muneesh Kumar G.  
 


I can confirm it is an issue with custom style template on the newest SfChart library update. Updated template did not help.
I have prepared a sample project that shows the issue. 
It is required to have a debugger attached on the executable, otherwise the bug is not shown due to optimizations.
I have included the older SfChart library in the project, so you can see that it works on that version without bugs.

Attachment: SfChartFlickerBug1_86fdf932.zip

Muneesh Kumar G [Syncfusion]
Replied On August 19, 2019 10:22 AM UTC

Hi Daniel,   
 
Thanks for your update,  
 
We have analyzed the provided sample and we found that the reported issue occurs due to custom LabelStyle for axis. In our latest version we have done label instant measuring for every moment. So that the axis label style reflects each update in axis.  
 
You can resolve this by setting label style properties directly in axis instead of using LabelStyle as per the below code snippet.  
 
Code snippet 
 
      <Style TargetType="charts:ChartAxisBase2D"> 
.. 
        <Setter Property="CrosshairLabelTemplate" Value="{StaticResource axisCrosshairLabel}"></Setter> 
        <Setter Property="Foreground" Value="{StaticResource ContentForegroundBrush}"/> 
        <Setter Property="FontFamily" Value="{StaticResource AxisLabelFontFamily}"/> 
        <Setter Property="FontSize" Value="{StaticResource AxisLabelFontSize}"/>       
            <Setter Property="Template"> 
            <Setter.Value> 
                <ControlTemplate TargetType="charts:ChartAxisBase2D"> 
                    .. 
                </ControlTemplate> 
            </Setter.Value> 
        </Setter> 
 
We have attached modified theme file in below location, please find it.  
 
 
Please let us know if you have any other queries.  
  
Thanks,   
Muneesh Kumar G.  
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon