- Home
- Forum
- Xamarin.Forms
- LiveUpdate with SfChart, poor performance in UWP
LiveUpdate with SfChart, poor performance in UWP
Hello, I'm using "SfChart" in LiveUpdate mode and the performance is not really good and have a very high RAM consume.
I'm trying to enable and disable many properties and the result is always the same, only one thing change the result, you have to set the axis property "IsVisible = false".
I need this Axis, because is imposible read a graph without axis.
I attach a video where show this bad performance with axis and how is better without axis.
The example of this video is compilated with the examples from your github repository: https://github.com/syncfusion/xamarin-demos
I hope you help me as soon as posible.
Thanks.
Attachment: chart_performance_53f3d0e2.7z
SIGN IN To post a reply.
22 Replies
DD
Devakumar Dhanapoosanam
Syncfusion Team
May 27, 2020 02:10 PM UTC
Hi Salva Rondan,
Greetings from Syncfusion.
We have analyzed your query and we would like to suggest that the chart performance can be improved by setting the null value for the chart axis LabelStyle as per in the below code snippet,
XAML:
|
<chart:SfChart.PrimaryAxis>
<chart:NumericalAxis x:Name="primayAxis" ShowMajorGridLines="false" />
</chart:SfChart.PrimaryAxis>
<chart:SfChart.SecondaryAxis>
<chart:NumericalAxis x:Name="secondaryAxis" ShowMajorGridLines="false" />
</chart:SfChart.SecondaryAxis> |
C#:
|
..
public LiveUpdate()
{
InitializeComponent();
viewModel = Chart.BindingContext as LiveUpdateViewModel;
viewModel.UpdateLiveData();
(Chart.SecondaryAxis as NumericalAxis).Maximum = 1.5;
(Chart.SecondaryAxis as NumericalAxis).Minimum = -1.5;
primayAxis.LabelStyle = null;
secondaryAxis.LabelStyle = null;
viewModel.StartTimer();
} |
Please check the above solution helps for your requirement or not?
Please let us know if you need any further assistance on this.
Regards,
Devakumar D
SR
Salva Rondan
May 29, 2020 11:36 AM UTC
Thanks for this solution, but it is not enough.
The background color of my Chart is dark, and when "LabelStyle = null" the axis text color is black, how can I change this color and font size without performance being affected?
Thank you.
DD
Devakumar Dhanapoosanam
Syncfusion Team
June 1, 2020 12:08 PM UTC
Hi Salva Rondan,
Thanks for your update.
Currently we are analyzing the feasible solution for customizing the axis LabelStyle with better chart performance and we will update you the details on June 4, 2020.
Regards,
Devakumar D
SR
Salva Rondan
June 1, 2020 01:11 PM UTC
Thanks, I eagerly await your response.
DD
Devakumar Dhanapoosanam
Syncfusion Team
June 2, 2020 10:58 AM UTC
Hi Salva Rondan,
As said earlier we will update you the solution on June 4, 2020.
Thanks,
Devakumar D
DD
Devakumar Dhanapoosanam
Syncfusion Team
June 4, 2020 01:49 PM UTC
Hi Salva Rondan,
We were facing some complexity at our end. We need some more time for providing a feasible solution for optimizing the chart performance and we will update you the solution on June 9, 2020.
We appreciate your patience until then.
Regards,
Devakumar D
DD
Devakumar Dhanapoosanam
Syncfusion Team
June 9, 2020 10:53 AM UTC
Hi Salva Rondan,
Thanks for your patience.
We can improve the chart performance by using the axis RangeStyles LabelStyle property instead of the axis LabelStyle and we would like to request updating the SfChart version to 18.1.0.56 for optimizing the chart.
Also, we would like to let you know that we can set the range for the axis RangeStyle Start property by using the axis VisibleMinimum or axis Minimum and the range will be applied for the entirely from the Start value as per in the below code snippet for the live update,
XAML:
|
<chart:SfChart.PrimaryAxis>
<chart:NumericalAxis x:Name="primaryAxis" ShowMajorGridLines="false">
<chart:NumericalAxis.RangeStyles>
<chart:ChartAxisRangeStyleCollection>
<chart:ChartAxisRangeStyle Start="{Binding Source={x:Reference primaryAxis},
Path = VisibleMinimum}">
<chart:ChartAxisRangeStyle.LabelStyle>
<chart:ChartAxisLabelStyle TextColor="Blue" FontSize="13"/>
</chart:ChartAxisRangeStyle.LabelStyle>
</chart:ChartAxisRangeStyle>
</chart:ChartAxisRangeStyleCollection>
</chart:NumericalAxis.RangeStyles>
</chart:NumericalAxis>
</chart:SfChart.PrimaryAxis>
<chart:SfChart.SecondaryAxis>
<chart:NumericalAxis x:Name="secondaryAxis" ShowMajorGridLines="false">
<chart:NumericalAxis.RangeStyles>
<chart:ChartAxisRangeStyleCollection>
<chart:ChartAxisRangeStyle Start="-1.5" End="1.5">
<chart:ChartAxisRangeStyle.LabelStyle>
<chart:ChartAxisLabelStyle TextColor="Red" FontSize="14"/>
</chart:ChartAxisRangeStyle.LabelStyle>
</chart:ChartAxisRangeStyle>
</chart:ChartAxisRangeStyleCollection>
</chart:NumericalAxis.RangeStyles>
</chart:NumericalAxis>
</chart:SfChart.SecondaryAxis> |
C#:
|
public LiveUpdate()
{
InitializeComponent();
viewModel = Chart.BindingContext as LiveUpdateViewModel;
viewModel.UpdateLiveData();
(Chart.SecondaryAxis as NumericalAxis).Maximum = 1.5;
(Chart.SecondaryAxis as NumericalAxis).Minimum = -1.5;
primayAxis.LabelStyle = null;
secondaryAxis.LabelStyle = null;
viewModel.StartTimer();
} |
Sample: https://www.syncfusion.com/downloads/support/forum/154613/ze/154613_liveSample1798116798.zip
Please refer the below UG link for more details,
Please let us know if you need any further assistance on this.
Regards,
Devakumar D
SR
Salva Rondan
June 11, 2020 09:30 AM UTC
Thank you very much, this solution is enough.
Will there be any solution for "LabelStyle" problem in the next version?
SJ
Suyamburaja Jayakumar
Syncfusion Team
June 12, 2020 02:28 PM UTC
Hi Salva Rondan,
Thanks for your update.
We would like to let you know that we have planned to improve the axis LabelStyle performance in our upcoming Volume 2 2020 release which is expected to be rolled out by end June 2020.
Please let us know if you need any further assistance on this.
Regards,
Suyamburaja J.
SR
Salva Rondan
June 15, 2020 06:18 AM UTC
Thank you very much for your help.
Regards.
HM
Hemalatha Marikumar
Syncfusion Team
June 16, 2020 11:14 AM UTC
Hi Salva Rondan,
Thanks for your update.
Please wait until Volume 2 release will be rolled out.
Regards,
Hemalatha M.
Hemalatha M.
SJ
Suyamburaja Jayakumar
Syncfusion Team
August 6, 2020 02:42 PM UTC
Hi Salva Rondan,
Sorry for the delay.
Since we have some pending test cases along with the fix, we were unable to move this fix into the release of Volume 2 2020. We are currently ensuring that and surely will move this into our upcoming Volume 3 2020 release, which is expected to be rolled out by the end of September 2020 week.
Regards,
Suyamburaja J.
SR
Salva Rondan
August 10, 2020 08:30 AM UTC
Ok, I'll wait until then.
Thank you.
RS
Ramya Soundar Rajan
Syncfusion Team
August 11, 2020 01:31 PM UTC
Hi Salvador Rondan,
As we informed earlier, we will include this fix in our upcoming Volume 3 2020 release, which is expected to be rolled out by the end of September 2020. We appreciate your patience until then.
Regards,
Ramya S
SR
Salva Rondan
August 12, 2020 05:23 AM UTC
OK, thank you.
HM
Hemalatha Marikumar
Syncfusion Team
October 5, 2020 11:55 AM UTC
Hi Salvador Rondan,
We deeply regret for this convenience.
Due to getting the breaking on the existing test cases at last time, we were unable to move this into Volume 3, 2020 release. Hence, we are working on that with high priority and we have planned to move this on October 27,2020 rolled out Weekly NuGet release.
Regards,
Hemalatha M.
Hemalatha M.
SR
Salva Rondan
October 5, 2020 12:02 PM UTC
OK, thanks!
YP
Yuvaraj Palanisamy
Syncfusion Team
October 6, 2020 07:56 AM UTC
Hi Salvador Rondan,
Thanks for patience.
Regards,
Yuvaraj
HM
Hemalatha Marikumar
Syncfusion Team
October 28, 2020 01:57 PM UTC
Hi Salvador Rondan,
We are sorry to inform you that we are experiencing a delay in including the fix and have adjusted the timeline to the next weekly.
Due to pending on ensuring the testing cases after resolving the technical hurdles, this has been delayed.
Our new estimated deadline (phase of testing completion) is Volume 4,2020 which is expected to be rolled out by end of December,2020. We are confident that once this delay has been solved and properly analyzed, we will be able to include this fix quickly and efficiently.
We appreciate your flexibility and understanding as we tackle this unforeseen issue.
Regards,
Hemalatha M.
Hemalatha M.
HM
Hemalatha Marikumar
Syncfusion Team
December 23, 2020 12:03 PM UTC
Hi Salvador Rondan,
Sorry for the delay.
Our development team is desired to move this fix in our upcoming Volume
4 SP1 release which is expected to be rolled out by end of January 2021. This delay is because of facing some technical hurdles and having pending in ensuring the test cases.
Regards,
Hemalatha M.
SR
Salva Rondan
December 23, 2020 01:12 PM UTC
Ok, thanks.
YP
Yuvaraj Palanisamy
Syncfusion Team
December 24, 2020 08:04 AM UTC
Hi Salvador Rondan,
As we informed earlier, the fix will be included in our Volume 4 SP1 release which is expected to publish on or before end of January 2021. We will appreciate your patience until then.
Regards,
Yuvaraj
SIGN IN To post a reply.
- 22 Replies
- 6 Participants
-
SR Salva Rondan
- May 26, 2020 03:53 PM UTC
- Dec 24, 2020 08:04 AM UTC