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
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