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. Image for the cookie policy date

Bad chart performance when using ChartAdornmentInfo

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>

1 Reply

SJ Sumathi Jayaraj Syncfusion Team February 3, 2016 11:57 AM UTC

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

Loader.
Up arrow icon