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

Generates the chart in the requested format and returns the HTML tag as a string.

Visual Basic
Public Function GetHTMLTag As String
C#
public string GetHTMLTag();

Remarks

The method actually:

The format of the generated content can be specified by the OutputFormat property.

Return Value



Sample Code

The following code illustrates use of the GetHTMLTag method.

Visual Basic
' Create the chart series
chart.SetDataFromTxtFile("C:\\myData.txt")
chart.LoadStyle("C:\\myStyle.scs")

' Generate the chart and print the HTML tag referencing it
this.Response.Write( chart.GetHTMLTag() )
C#
// Create the chart series
chart.SetDataFromTxtFile("C:\\myData.txt");
chart.LoadStyle("C:\\myStyle.scs");

// Generate the chart and print the HTML tag referencing it
Me.Response.Write( chart.GetHTMLTag() );

See Also

OutputFormat Property | GetOutputLocation Method | SetCacheName Method | SetPrivateCacheDir Method | SetMaxCacheSize Method | ClearCache Method | UseCache Method

Applies To: Chart Object