RadMap Information layer very slow

4 posts, 0 answers
  1. Shaun Fraser
    Shaun Fraser avatar
    3 posts
    Member since:
    Dec 2009

    Posted 01 Sep 2011 Link to this post

    We have a RadMap with an information layer containing Pie RadCharts. They work fine untill you plot many of them.

    We are trying 100 and it seems to take 7 second to plot the items.  When we replace them with Component Ones C1Chart, the performance is much improved, this is disapointing.

    Below is the code, are we creating the chart in the best manner?

    Thanks,

    Shaun

    <Telerik:RadMap x:Name="VisualisationMap"

                                                   Grid.ColumnSpan="3"

                                                   Grid.RowSpan="3"

                                                   MinZoomLevel="10"

                                                   MaxZoomLevel="15"

                                                   NavigationVisibility="Collapsed"

                                                   ZoomBarVisibility="Collapsed"

                                                   CommandBarVisibility="Collapsed"

                                                   Background="Transparent"

                                                   UseSpringAnimations="True"

                                                   MouseClickMode="None"

                                                   MouseDragMode="Drag"

                                                   MouseLocationIndicatorVisibility="Collapsed"

                                                   ScaleVisibility="Collapsed                                            
                                                   Provider
    ="{Binding SelectedVisualisationLayer.Map, Mode=TwoWay, Converter={StaticResource MapToProviderConverter}}"

                                                   Utilities1:RadMapHelper.BestView="{Binding Path=BestView, Mode=TwoWay}">

     

                        <Telerik:InformationLayer Name="ItemsLayer" ItemsSource="{Binding Path=SelectedVisualisationLayer.MapItems}">

                       

                            <Telerik:InformationLayer.ItemTemplate>

                                <DataTemplate>

     

                                    <Telerik:RadChart Background="Transparent" BorderThickness="0" Height="100" Width="100" IsHitTestVisible="False" Telerik:MapLayer.Location="{Binding Path=Well.Location, Mode=TwoWay, Converter={StaticResource LocationConverter}}" >

                                                <Telerik:RadChart.SeriesMappings>

                                               

                                                <Telerik:SeriesMapping>

                                                    

                                                    <Telerik:SeriesMapping.SeriesDefinition>

                                                        <Telerik:PieSeriesDefinition ShowItemLabels="False" ItemStyle="{StaticResource PointChartSlice}">

                                                            <Telerik:PieSeriesDefinition.InteractivitySettings>

                                                                <Telerik:InteractivitySettings HoverScope="Item" SelectionScope="Item" SelectionMode="Single" />

                                                            </Telerik:PieSeriesDefinition.InteractivitySettings>

     

                                                        </Telerik:PieSeriesDefinition>

                                                    </Telerik:SeriesMapping.SeriesDefinition>

     

                                                    <Telerik:ItemMapping FieldName="SelectedPointChart.Value" DataPointMember="YValue" />

                                                   

                                                </Telerik:SeriesMapping>

                                               

                                            </Telerik:RadChart.SeriesMappings>

                                                <Telerik:RadChart.DefaultView>

                                                    <Telerik:ChartDefaultView >

                                                        <Telerik:ChartDefaultView.ChartArea>

                                                            <Telerik:ChartArea Margin="0" Padding="0" Background="Transparent"/>

                                                        </Telerik:ChartDefaultView.ChartArea>

                                                        <Telerik:ChartDefaultView.ChartLegend>

                                                            <Telerik:ChartLegend Visibility="Collapsed"/>

                                                        </Telerik:ChartDefaultView.ChartLegend>

                                                        <Telerik:ChartDefaultView.ChartTitle>

                                                            <Telerik:ChartTitle Visibility="Collapsed"/>

                                                        </Telerik:ChartDefaultView.ChartTitle>

                                                    </Telerik:ChartDefaultView>

                                                </Telerik:RadChart.DefaultView>

                                            </Telerik:RadChart>

                                </DataTemplate>

                            </Telerik:InformationLayer.ItemTemplate>

                        </Telerik:InformationLayer>

     

                    </Telerik:RadMap>

     


  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 06 Sep 2011 Link to this post

    Hello Shaun,

    I have provided my reply to this question in the support tickets you have started. Let me know if further questions arise.

    Best regards,
    Ves
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. DevCraft banner
  4. Patrick
    Patrick avatar
    55 posts
    Member since:
    Jun 2008

    Posted 27 Apr 2012 Link to this post

    Can you provide the information in this forum also. I am curious what you said in the ticket.
  5. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 27 Apr 2012 Link to this post

    Hi Patrick,

    Basically, it is the Silverlight framework that limits the number of visuals that can be displayed simultaneously. On the other hand, RadChart has been designed for lots of features and fancy looks and this comes at a price. Each chart requires a certain number of visuals rendered and multiplying this by  100 starts to challenge the framework.

    Now, that we have shipped RadChartView, I would suggest giving it a try in this situation. It is much lighter and you should be able to see a significant performance boost for the same number of charts. You can find an extensive comparison between RadChart and RadChartView here: RadChart vs RadChartView.

    Best regards,
    Ves
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top