Chart Constructor

Namespace: GlobFX.SwiffChartGenerator
Assembly: GlobFX.SwiffChartGenerator (in GlobFX.SwiffChartGenerator.dll)

Initializes a new instance of the Chart class with default settings.

Visual Basic (Declaration)

    Public Sub New

Visual Basic (Usage)

    Dim instance As New Chart

C#

    public Chart()

#### Sample Code

The following code illustrates use of the constructor.

Visual Basic

    Dim chart As New Chart
    chart.SetDataFromTxtFile("C:\\myData.txt")
    chart.LoadStyle("C:\\myStyle.scs")
    chart.ExportAsFile("C:\\myChart.swf")

C#

    Chart chart= new Chart();
    chart.SetDataFromTxtFile("C:\\myData.txt");
    chart.LoadStyle("C:\\myStyle.scs");
    chart.ExportAsFile("C:\\myChart.swf");

Applies To: Chart Object