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.
Unfortunately, activation email could not send to your email. Please try again.

Bad chart performance when using ChartAdornmentInfo

Thread ID:

Created:

Updated:

Platform:

Replies:

121877 Feb 2,2016 07:01 PM Feb 3,2016 06:57 AM UWP 1
loading
Tags: SfChart
James Newton King
Asked On February 2, 2016 07:01 PM

I have a chart with 500 items in it and it has significant performance issues. It takes about 10 seconds to render the series data to the screen. Resizing or scrolling the chart also causes a 10 second delay.

I've tracked it down to ChartAdornmentInfo. When I remove the ChartAdornmentInfo from the line series the chart becomes significantly faster.

XAML below:

<charts:SfChart Grid.Column="0" Grid.Row="1"
                AreaBorderThickness="0">
    <charts:SfChart.Behaviors>
        <charts:ChartZoomPanBehavior
            ResetOnDoubleTap="False"
            EnableMouseWheelZooming="False"
            EnableSelectionZooming="False"
            EnablePinchZooming="False"
            EnableZoomingToolBar="False"
            ZoomMode="X"
            EnablePanning="True" />
    </charts:SfChart.Behaviors>
    <charts:SfChart.PrimaryAxis>
        <charts:DateTimeCategoryAxis
            ShowGridLines="False"
            ZoomPosition="1"
            ZoomFactor="{Binding ZoomFactor}"
            LabelFormat="dd/MM/yy HH:mm"
            Interval="1"
            Style="{StaticResource ChartAxisXTextStyle}"
            LabelRotationAngle="-30"
            TickLineSize="0"
            AxisLineStyle="{StaticResource ChartAxisLineStyle}"
            FontSize="10"
            EdgeLabelsDrawingMode="Shift" />
    </charts:SfChart.PrimaryAxis>
    <charts:SfChart.SecondaryAxis>
        <charts:NumericalAxis
            ShowGridLines="False"
            Interval="1"
            Style="{StaticResource ChartAxisYTextStyle}"
            Minimum="{Binding MinYValue}"
            Maximum="{Binding MaxYValue}"
            TickLineSize="0"
            AxisLineStyle="{StaticResource ChartAxisLineStyle}">
            <charts:NumericalAxis.StripLines>
                <charts:ChartStripLine
                    Opacity="0.3"
                    Background="{StaticResource AppGreenMediumBrush}"
                    Start="{Binding StripStart}" Width="{Binding StripWidth}" />
            </charts:NumericalAxis.StripLines>
        </charts:NumericalAxis>
    </charts:SfChart.SecondaryAxis>
    <charts:AreaSeries
        ItemsSource="{Binding Observations}"
        XBindingPath="ItemDate"
        YBindingPath="Value"
        Interior="{StaticResource AppBlueMediumLightBrush}" BorderThickness="0" />
    <charts:LineSeries
        ItemsSource="{Binding Observations}"
        XBindingPath="ItemDate"
        YBindingPath="Value"
        Interior="{StaticResource AppPurpleBrush}"
        StrokeThickness="1" BorderThickness="0">
        <charts:LineSeries.AdornmentsInfo>
            <charts:ChartAdornmentInfo
                ShowMarker="True"
                Symbol="Ellipse"
                SymbolInterior="{StaticResource AppBlueMediumBrush}"
                SymbolStroke="{StaticResource AppWhiteBrush}"
                SymbolHeight="10"
                SymbolWidth="10" />
        </charts:LineSeries.AdornmentsInfo>
    </charts:LineSeries>
</charts:SfChart>

Sumathi Jayaraj [Syncfusion]
Replied On February 3, 2016 06:57 AM

Hi James,

Thanks for contacting Syncfusion support.

We have created a support incident under your account to track the status of this requirement. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents

Regards,
Sumathi J

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.

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.

;