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

zooming and scrolling.

1 Answer 39 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 02 Sep 2010, 06:07 AM
Hi,
  Is zooming and scrolling is available only if series mapping is used? I am not able to get it working. Here is my code.

Thank you
        ChartArea3.DefaultView.ChartArea.DataSeries.Clear()


        For Each itm As ItemSumm In itemsList
            Dim series As New DataSeries()
            series.Definition = New LineSeriesDefinition()
            series.Definition.ShowItemLabels = True
            series.Definition.ShowItemToolTips = True
            series.Add(New DataPoint() With {.YValue = Math.Abs(itm.Amount), .XCategory = Format(itm.aptDate, "dd-MMM"), .LegendLabel = itm.aptCode})
            series.LegendLabel = itm.aptCode
            series.Definition.ItemLabelFormat = "#Y{C2}"
            series.Definition.ItemToolTipFormat = "#LEGENDLABEL" & Chr(13) & "#Y{C2}" & Chr(13) & "#XCAT"
            ChartArea3.DefaultView.ChartArea.DataSeries.Add(series)
        Next
        Dim zoomSettings As New ZoomScrollSettings()
        ChartArea3.SamplingSettings.SamplingThreshold = 10
        zoomSettings.MinZoomRange = 10
        zoomSettings.RangeEnd = 30
        zoomSettings.RangeStart = 20
        zoomSettings.ScrollMode = ScrollMode.ScrollAndZoom
        ChartArea3.DefaultView.ChartArea.ZoomScrollSettingsX = zoomSettings

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 07 Sep 2010, 03:26 PM
Hi Nick,

Zooming and scrolling feature is available only in data bound scenarios. In order to take advantage of it you should set ItemsSource. Defining SeriesMappings is not mandatory, but you would probably need to create them in order to achieve correct presentation in RadChart with zooming and scrolling. You can find more details about series mappings in this help topic.
 
Kind regards,
Evgenia
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
Nick
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or