Super 2d/3d Graph Library

Enhance your .NET application adding nice charts within minutes! Save time and money!


Example 15: X/Y scatter with spline chart and error margin indicators

For each point of the spline, a bracket is drawn to indicate the error margin for each point.

 

Steps:

1. Create a new Windows application project (VB.NET)

2. Add Super 2d/3d Graph Library to the toolbox pallete and drag it to Form1.

3. Copy and paste de following code:

Note: the code in the Form1_Load event could be used in ASP.NET applications as well.

 

Form Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

   Dim seriesFactory As New SeriesFactory

   With oGraph
      .AutoRefresh = False
      .LicenseeIdentifier = "STAND"
      .Title = "y"
      .Style = STYLE2D3D.STYLE2D_XY_SPLINE_DEV
      .WallsBackColorPrincipal = Color.LightGray
      .WallsBackColorSecondary = Color.LightGray
      .ShowLegend = True
      .SeriesLegend = New String() {"y"}
      .SeriesLineStyle = New Pen() {New Pen(Color.Purple)}
      .SeriesColor = New Color() {Color.Purple}
      .ShowValues = False
      .ShowDataTable = False
      .LegendText = ""
      .PointSize = 2
      .XAxisNumericFormat = "0"
      .YAxisNumericFormat = "0"
      .YAxisScaleMaximum = 35
      .YAxisScaleMinimum = 0
      .YAxisScaleMode = SCALEMODE.SCALEMODE_FIXED
      .YAxisDividersCount = 7
      .YAxisValuesFont = New Font("Arial", 16, FontStyle.Bold)
      .XAxisScaleMaximum = 25
      .XAxisScaleMinimum = 0
      .XAxisScaleMode = SCALEMODE.SCALEMODE_FIXED
      .XAxisDividersCount = 5
      .XAxisValuesFont = New Font("Arial", 16, FontStyle.Bold)
      .ShowXAxis = True
  
End With

   With seriesFactory
      .AddPoint(1, 4, 0.5)
      .AddPoint(2, 6, 0.2)
      .AddPoint(3, 29, 0.7)
      .AddPoint(4, 5, 1.3)
      .AddPoint(6, 4, 1.3)
      .AddPoint(7, 23, 0.8)
      .AddPoint(10, 22, 2.2)
      .AddPoint(20, 18, 5.6)
      .ApplyTo(oGraph)
   End With

   oGraph.RefreshChart()

End Sub

Result:


 

License & Purchase Info


Current version: 14

Super 2d/3d Graph Library is available as:
-Standard License (99€)
-Premium License (149€)
-Enterprise License (299€)

Click here for more details & purchase

Contact Info


Feel free to contact us
for questions related to any of our products or custom .Net development. We usually respond in the same labor day.

Software Siglo XXI

Main support service: support@softwaresigloxxi.com

Sales and other enquiries: contact@softwaresigloxxi.com