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

Specifies the subtitle of a chart (displayed on top of a chart, below the title).

Visual Basic

    Public Property Subtitle As String

C#

    public string Subtitle { get; set; }

#### Property Value

A string that specifies the subtitle.

#### Remarks

By default, a new chart has no subtitle.

#### Sample Code

The following code illustrates use of the Subtitle property.

Visual Basic

    ' Create the chart series
    Dim values_1(2) As Integer
    Dim values_2(2) As Integer

    values_1(0) = 10
    values_1(1) = 20
    values_1(2) = 30

    values_2(0) = 100
    values_2(1) = 200
    values_2(2) = 300

    chart.SetSeriesValuesFromArray(0, values_1)
    chart.SetSeriesValuesFromArray(1, values_2)

    ' Set the chart title
    chart.Title = "My Chart"

    ' Set the chart subtitle
    chart.Subtitle = "values in my unit"

    ' Set the graphics settings from a style file
    chart.LoadStyle("C:\\myStyle.scs")

C#

    // Create the chart series
    int[] values_1= new int[3];
    int[] values_2= new int[3];

    values_1[0] = 10;
    values_1[1] = 20;
    values_1[2] = 30;

    values_2[0] = 100;
    values_2[1] = 200;
    values_2[2] = 300;

    chart.SetSeriesValuesFromArray(0, values_1);
    chart.SetSeriesValuesFromArray(1, values_2);

    // Set the chart title
    chart.Title= "My Chart";

    // Set the chart subtitle
    chart.Subtitle= "values in my unit";

    // Set the graphics settings from a style file
    chart.LoadStyle("C:\\myStyle.scs");

#### See Also

Title Property | Width Property | Height Property | FrameRate Property

Applies To: Chart Object