Super 2d/3d Graph Library

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


Example 14: DateTime Scatter Chart type

Hi again!

In previous example, we learnt how to use a DateTime range on the X-axis but there was no relationship between the X-axis position and the date represented by each value.

The good news are that beginning version 9.1, there's a new chart type specially designed for DateTime in the X-axis scale and a numeric value on the Y-axis. It's called DateTime Scatter Chart.

Use this chart type when you need something like "add a point on 13/12/2006 with a value of 75.12".

 

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

    Dim x As New Super2d3dGraphLibrary.SeriesFactory
    Dim k As Long
    Dim d As DateTime = DateTime.Now

    For k = 1 To 15
      x.AddDateTimeValue(d, k * 5)
      d = d.Add(New TimeSpan(Rnd() * 10, Rnd() + 10, Rnd() * 10))
    Next

    With Super2D3dGraph1
      .LicenseeIdentifier = "STAND" ' This is the demo license
      .Style = STYLE2D3D.STYLE2D_XY_DATETIME
      .XAxisScaleMode = SCALEMODE.SCALEMODE_AUTOMATIC
      .ShowValues = False
      .Calculation = CALCULATION.CALCULATION_AVERAGE
      .ShowXAxis = True
      .XAxisLabelsRotated = True
      .HotSpotsEnabled = True
      .ShowLegend = False
      .ShowDataTable = False
      .WallsBackStyle =
                   STYLEWALLBACKGROUND.STYLEWALLBACKGROUND_GRADIENT_INVERTED
      .WallsBackColorPrincipal = Color.Goldenrod
    End With
   
x.ApplyTo(Super2D3dGraph1)

   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