IndexOutOfRange in new WPF Charts
Posted: Tue Mar 24, 2009 4:12 pm
I am having an issue with an IndexOutOfRange error with the newest WPF build. This occurs when I scroll the chart to the left of the maximum data point, so that the current view has no points displaying.
Here is a small example to reproduce this, the XAML is just a window with a Grid on it:
To recreate the error in the sample, just scroll the chart to the right after it loads. Keep scrolling till there are no more points on screen and it will error.
Let me know if there is a workaround for this issue, I need to get this fixed as soon as possible.
Thanks,
T-Mac
Here is a small example to reproduce this, the XAML is just a window with a Grid on it:
Code: Select all
Imports Steema.TeeChart.WPF
Class Window1
Private _chart As TChart
Public Sub New()
InitializeComponent()
_chart = New TChart
chartHolder.Children.Add(_chart)
_chart.Legend.Visible = False
_chart.Walls.View3D = False
_chart.Aspect.View3D = False
Dim series As New Styles.Line()
series.FillSampleValues(100)
_chart.Series.Add(series)
End Sub
End Class
Let me know if there is a workaround for this issue, I need to get this fixed as soon as possible.
Thanks,
T-Mac