Tutorial 43: Empty values
« on: February 05, 2016, 01:22:22 AM »
Crossing Charts for .NET allows empty values, so the item/bar/sector/line corresponding to that item will not be shown. Empty values are indicated by a Nothing value in Series collection or use AddValueEmpty of SeriesFactory class.

It's easy to understand looking at this sample:

1. Create a new Windows application project (VB.NET)
2. Add Crossing Charts Library to the toolbox pallete and drag it to Form1
3. Copy and paste de following code:
 
Code: [Select]
Imports CrossingChartsLibrary
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  Dim sf As New SeriesFactory
  sf.AddValue(5)
  sf.AddValueEmpty()
  sf.AddValue(3)
  sf.AddValue(7)
  sf.AddValueEmpty()
  sf.AddValue(3)
  sf.AddValue(12)
  sf.AddValue(9)
  sf.ApplyTo(CrossingCharts1)
End Sub
End Class

Results:

« Last Edit: February 16, 2016, 11:14:24 AM by CrossingCharts »