Namespace: GlobFX.SwiffChartGenerator
Assembly: GlobFX.SwiffChartGenerator (in GlobFX.SwiffChartGenerator.dll)
Specifies the output format of the generated chart.
Public Property OutputFormat As OutputFormat
public OutputFormat OutputFormat { get; set; }
An OutputFormat enum value that specifies the format of the generated chart.
The methods GetOutputLocation, ExportAsFile, ExportAsBinary, GetHTMLTag and GetOutputLocation generate the final chart as an image or a Flash movie. The output format of the generated chart is specified by the OutputFormat property.
If not specified, the default output format is OutputFormat.Swf (i.e. Adobe Flash movie)
The output format is defined by the OutputFormat enumeration defined as follows:
Enum Value | Definition |
---|---|
OutputFormat.Svg | SVG Image (Scalable Vector Graphics) |
OutputFormat.Jpeg | JPEG Image |
OutputFormat.Png | PNG Image (Portable Network Graphics) |
OutputFormat.Flash | Flash Movie (Adobe Flash) |
OutputFormat.Pdf | PDF Document (Adobe Acrobat) |
The following code illustrates use of the OutputFormat property.
' Create the chart series Dim categories(2) As String Dim values(2) As Integer categories(0) = "Jan" categories(1) = "Feb" categories(2) = "Mar" values(0) = 10 values(1) = 20 values(2) = 30 chart.SetCategoriesFromArray( categories ) chart.SetSeriesValuesFromArray( 0, values ) ' Set the chart title chart.Title= "My Chart" ' Set the graphics settings from a style file chart.LoadStyle( "C:\\myStyle.scs" ) ' The chart is complete, we can now generate the chart as a JPEG image chart.OutputFormat= OutputFormat.Jpeg
// Create the chart series string[] categories= new string[3]; int[] values= new int[3]; categories[0] = "Jan"; categories[1] = "Feb"; categories[2] = "Mar"; values[0] = 10; values[1] = 20; values[2] = 30; chart.SetCategoriesFromArray( categories ); chart.SetSeriesValuesFromArray( 0, values ); // Set the chart title chart.Title= "My Chart"; // Set the graphics settings from a style file chart.LoadStyle( "C:\\myStyle.scs" ); // The chart is complete, we can now generate the chart as a JPEG image chart.OutputFormat= OutputFormat.Jpeg;
ExportAsFile Method | ExportAsBinary Method | GetHTMLTag | GetOutputLocation Method
Applies To: Chart Object