Search code examples
activexteechart

Teechart + Multiple Box Plots


I need to plot around 80 Box Plot in Single chart, I have created 80Series with 7 Point eachs, The Issue is the Box plot are plotted properly since I am using Position but the problem is on X axis I am getting only 7 points labels I want that for all the 80 Box Plot.


Solution

  • I have made a simple code that I think you can use to achieve as you want:

    Private Sub Form_Load()
    TChart1.Aspect.View3D = False
    TChart1.Legend.Visible = False
    Dim i As Integer
    For i = 0 To 80
    TChart1.AddSeries scBox
    TChart1.Series(i).FillSampleValues 7
    TChart1.Series(i).asBoxPlot.Position = i + 10
    Next
    TChart1.Axis.Bottom.Labels.Style = talValue
    TChart1.Axis.Bottom.Labels.Angle = 90
    End Sub
    

    Could you tell us if previous code help you? If it doesn't help please, tell us exactly what you want, so, we will try to give you, a good solution.

    Thanks,