Tutorial 1: "Hello World" (or simple chart)
« on: February 04, 2016, 12:15:42 PM »
In this example, I will show how easy is to create a standard 2D vertical bar (also known as column chart). I use SeriesFactory helper class included in Crossing Charts for .NET to quickly create the series values (5 values to first serie and another 5 values to the second serie).

See how easy and quick you can create a nice chart:

1. Create a new Windows application project (VB.NET)
2. Add Crossing Charts to the toolbox pallete and drag it to Form1
3. Copy and paste de following code:

Code: [Select]
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
   Dim seriesFactory As New CrossingChartsLibrary.SeriesFactory
   ' Set the name of each serie
   CrossingCharts1.SeriesLegend = New String() {"Product 1", "Product 2"}
   With seriesFactory
      .AddValue(15)      ' Add one value
      .AddValue(70)      ' Another...
      .NewSerie()        ' Begin a new serie...
      .AddValue(23)      ' Add a value to the new serie
      .AddValue(45)      ' Another...
      .ApplyTo(CrossingCharts1)   ' Apply values to chart
   End With
End Sub


« Last Edit: February 16, 2016, 09:07:10 AM by CrossingCharts »