Namespace: GlobFX.SwiffChartGenerator
Assembly: GlobFX.SwiffChartGenerator (in GlobFX.SwiffChartGenerator.dll)
Retrieves the title of a given axis.
Public Function GetAxisTitle( axis As AxisType ) As String
public string GetAxisTitle( AxisType axis );
The GetAxisTitle method returns a string value that contains the title of the axis specified by axis.
The axis is defined by an AxisType enum value (the axis parameter) which is interpreted as follows:
Enum Value | Definition |
---|---|
AxisType.Horizontal | Horizontal Axis |
AxisType.Vertical | Vertical Axis |
AxisType.HorizontalSecondary | Secondary Horizontal Axis |
AxisType.VerticalSecondary | Secondary Vertical Axis |
The following code illustrates use of the GetAxisTitle method.
chart.SetDataFromTxtFile("C:\\myData.txt") ' We want a title for the horizontal axis (add one if it is not yet available) Dim htitle As String = chart.GetAxisTitle( AxisType.Horizontal ) If String.IsNullOrEmpty(htitle) Then chart.SetAxisTitle( AxisType.Horizontal, "my horizontal axis title" ) End If
chart.SetDataFromTxtFile("C:\\myData.txt"); // We want a title for the horizontal axis (add one if it is not yet available) string htitle= chart.GetAxisTitle( AxisType.Horizontal ); if( String.IsNullOrEmpty(htitle) ) chart.SetAxisTitle( AxisType.Horizontal, "my horizontal axis title" );
Applies To: Chart Object