Page 1 of 1

[Box] Changing InnerFence would not affect outlier detection

Posted: Wed Aug 27, 2008 1:37 am
by 14048132
Greetings,

Is there any way to change the default outlier detection algorithm of box?
Thanks for your help in advance.

Code: Select all

    Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim box As New Steema.TeeChart.Styles.Box()
        TChart1.Aspect.View3D = False
        TChart1.Series.Add(box)

        Dim arr As Double() = {1, 2, 4, 7, 8, 9, 10, 12, 25, 50}

        box.Add(arr)
        ' After ReconstructFromData(), box.InnerFence3 = 24
        box.ReconstructFromData()

        ' I manually change value of InnerFence3
        ' and wish the point 25 would not be treated as outlier point
        ' but failed.
        box.InnerFence3 = 30
    End Sub

Posted: Wed Aug 27, 2008 7:49 am
by narcis
Hi Chris.CHWU,

The only solution I can think of is that you create your own box plot series derived from CustomBox class and override necessary methods like DrawValue.

For more details on CustomBox implementation you may want to use Lutz Roeder's .NET reflectorr with TeeChart.dll.