Super 2d/3d Graph Library

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


Example 31: Line chart with 1000 points

This sampe code will draw a simple line chart with 1000 points demonstrating that the library is capable of drawing charts with hundreds and thousands of data points.

 

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:

 
Form Code
Imports Super2d3dGraphLibrary

Public Class Form1

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

   ' Prepare data for 1000 points
   Dim sf As New SeriesFactory
   For k As Integer = 1 To 1000
      sf.AddValue(Rnd() * 100 + 50)
   Next

   ' Setup chart
   With Super2d3dGraph1
      ' Initial setup
      .Style = STYLE2D3D.STYLE2D_LINE
      .ShowValues = False
      .ShowLegend = False
      .ShowDataTable = False
      .Series = sf.Series
      ' Colors
      .SeriesColor = New Color() {Color.Black} ' Colors for points
      .SeriesLineStyle = New Pen() {New Pen(Color.Green)} ' Line styles
      .BackStyle = STYLEBACKGROUND.STYLEBACKGROUND_GRADIENT
      .WallsBackStyle = STYLEWALLBACKGROUND.STYLEWALLBACKGROUND_CHESS
      ' Scale setup (optional)
      .YAxisScaleMode = SCALEMODE.SCALEMODE_FIXED
      .YAxisScaleMinimum = 0
      .YAxisScaleMaximum = 200
      ' Refresh chart
      .RefreshChart()

   End With

End Sub

End Class

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