Page 1 of 1

IndexOutOfRange in new WPF Charts

Posted: Tue Mar 24, 2009 4:12 pm
by 13048566
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:

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

Posted: Wed Mar 25, 2009 10:36 am
by 10050769
Hello T-Mac,


I could reproduce your problem and I have added to the list of Bug Report with number [TW16014019] we will try to fix it for next versions of WPFTeeChart .NET.

Thanks,

Posted: Wed Mar 25, 2009 2:50 pm
by 13048566
If there is no workaround for this issue, I will need to roll back my version to the last version that didn't have the issue until the new dll is released.

Is there a way that I can access older versions of the TChart dlls? If not, can you email me the last version of the TChart.WPF dll that did not have this issue.

Posted: Wed Mar 25, 2009 2:59 pm
by narcis
Hi TMac,

This has already been fixed for the next maintenance release due out this week.