Namespace: GlobFX.SwiffChartGenerator
Assembly: GlobFX.SwiffChartGenerator (in GlobFX.SwiffChartGenerator.dll)
Loads the graphical parameters of a chart object from a Swiff Chart style file (.scs).
Public Sub LoadStyle( filename As String )
public void LoadStyle( string filename );
If the system fails to open the file identified by filename, the LoadStyle method raises an error.
Style files (.scs) can be easily created with the Swiff Chart Editor. Learn more about Swiff Chart Editor.
The filename can be an absolute path or a simple name. If a simple filename is specified, the style will be searched in the standard styles directory. This directory depends on your installation. As an example, it could be "C:\Program Files\GlobFX\Swiff Chart Generator 4\styles".
If no extension is given in the filename string, the standard ".scs" extension
will be added.
Loading chart graphical settings from a style file via the method LoadStyle sets all the chart parameters but the data.
The following code illustrates use of the LoadStyle method.
chart.SetDataFromTxtFile("C:\\myData.txt") ' Load the style file "C:\myStyle.scs" chart.LoadStyle("C:\\myStyle.scs")
chart.SetDataFromTxtFile("C:\\myData.txt"); // Load the style file "C:\myStyle.scs" chart.LoadStyle("C:\\myStyle.scs");
The following code illustrates how to simply use a standard style. (taking into account that Swiff Chart Generator has been installed in the directory C:\Program Files\GlobFX\Swiff Chart Generator 4)
chart.SetDataFromTxtFile("C:\\myData.txt") ' Load the standard style file "C:\Program Files\GlobFX\Swiff Chart Generator 4\styles\column\SanFrancisco.scs" chart.LoadStyle("column\\SanFrancisco")
chart.SetDataFromTxtFile("C:\\myData.txt"); // Load the standard style file "C:\Program Files\GlobFX\Swiff Chart Generator 4\styles\column\SanFrancisco.scs" chart.LoadStyle("column\\SanFrancisco");
OutputFormat Property | Width Property | Height Property
Applies To: Chart Object