This is a migrated thread and some comments may be shown as answers.

RadMap Information layer very slow

3 Answers 122 Views
Map
This is a migrated thread and some comments may be shown as answers.
Shaun Fraser
Top achievements
Rank 1
Shaun Fraser asked on 01 Sep 2011, 01:51 PM
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>

 


3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 06 Sep 2011, 07:55 AM
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 >>

0
Datafyer
Top achievements
Rank 1
answered on 27 Apr 2012, 05:51 AM
Can you provide the information in this forum also. I am curious what you said in the ticket.
0
Ves
Telerik team
answered on 27 Apr 2012, 02:54 PM
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 >>

Tags
Map
Asked by
Shaun Fraser
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Datafyer
Top achievements
Rank 1
Ves
Telerik team
Share this question
or