C# Class Phresco.FusionCharts.Utils

Contains several very useful and required methods used to generate charts. Most the methods are statics.
Afficher le fichier Open project: photon-infotech/sharepoint-resource-management

Méthodes publiques

Свойство Type Description
DefaultHeight int
DefaultWidth int
FeaturePath string

Méthodes publiques

Méthode Description
ConvertChartTypeToPath ( ChartType chartType ) : string

Converts a ChartType into a path that can be used with RenderChartHTML function

ConvertChartTypeToPath ( ChartTypeRestricted chartType ) : string

Converts a ChartType into a path that can be used with RenderChartHTML function

GenerateRandomId ( ) : int

Generate a random number that will become the HTML ID of the chart

GetDefaultColors ( ) : string

Returns the default colors in a string. Colors are separated by semi columns (;)

GetXmlDataSample ( ChartType type ) : string

Returns sample XML data to feed and generate charts

IsSSL ( ) : bool

Determines if the current connection is SSL based or not

RenderChart ( string chartSWF, string strURL, string strXML, string chartId, string chartWidth, string chartHeight, bool debugMode, bool registerWithJS ) : string

Generates the Fusion Chart based on script

RenderChartHTML ( ChartType chartType, string strURL, string strXML, string chartId, string chartWidth, string chartHeight, bool debugMode ) : string

Generate the fusion chart based on HTML

RenderChartHTML ( ChartTypeRestricted chartType, string strXML, string chartId, string chartWidth, string chartHeight, bool debugMode ) : string

Generate the fusion chart based on HTML

Private Methods

Méthode Description
boolToNum ( bool value ) : int

Converts a boolean into a numeric value

Method Details

ConvertChartTypeToPath() public static méthode

Converts a ChartType into a path that can be used with RenderChartHTML function
public static ConvertChartTypeToPath ( ChartType chartType ) : string
chartType ChartType The type of the chart
Résultat string

ConvertChartTypeToPath() public static méthode

Converts a ChartType into a path that can be used with RenderChartHTML function
public static ConvertChartTypeToPath ( ChartTypeRestricted chartType ) : string
chartType ChartTypeRestricted The type of the chart
Résultat string

GenerateRandomId() public static méthode

Generate a random number that will become the HTML ID of the chart
public static GenerateRandomId ( ) : int
Résultat int

GetDefaultColors() public static méthode

Returns the default colors in a string. Colors are separated by semi columns (;)
public static GetDefaultColors ( ) : string
Résultat string

GetXmlDataSample() public static méthode

Returns sample XML data to feed and generate charts
public static GetXmlDataSample ( ChartType type ) : string
type ChartType
Résultat string

IsSSL() public static méthode

Determines if the current connection is SSL based or not
public static IsSSL ( ) : bool
Résultat bool

RenderChart() public static méthode

Generates the Fusion Chart based on script
public static RenderChart ( string chartSWF, string strURL, string strXML, string chartId, string chartWidth, string chartHeight, bool debugMode, bool registerWithJS ) : string
chartSWF string
strURL string
strXML string
chartId string
chartWidth string
chartHeight string
debugMode bool
registerWithJS bool
Résultat string

RenderChartHTML() public static méthode

Generate the fusion chart based on HTML
public static RenderChartHTML ( ChartType chartType, string strURL, string strXML, string chartId, string chartWidth, string chartHeight, bool debugMode ) : string
chartType ChartType
strURL string
strXML string
chartId string
chartWidth string
chartHeight string
debugMode bool
Résultat string

RenderChartHTML() public static méthode

Generate the fusion chart based on HTML
public static RenderChartHTML ( ChartTypeRestricted chartType, string strXML, string chartId, string chartWidth, string chartHeight, bool debugMode ) : string
chartType ChartTypeRestricted
strXML string
chartId string
chartWidth string
chartHeight string
debugMode bool
Résultat string

Property Details

DefaultHeight public_oe static_oe property

public static int DefaultHeight
Résultat int

DefaultWidth public_oe static_oe property

public static int DefaultWidth
Résultat int

FeaturePath public_oe static_oe property

public static string FeaturePath
Résultat string