C# Class Phresco.FusionCharts.Utils

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

Public Properties

Property Type Description
DefaultHeight int
DefaultWidth int
FeaturePath string

Public Methods

Method 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

Method Description
boolToNum ( bool value ) : int

Converts a boolean into a numeric value

Method Details

ConvertChartTypeToPath() public static method

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
return string

ConvertChartTypeToPath() public static method

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
return string

GenerateRandomId() public static method

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

GetDefaultColors() public static method

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

GetXmlDataSample() public static method

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

IsSSL() public static method

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

RenderChart() public static method

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
return string

RenderChartHTML() public static method

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
return string

RenderChartHTML() public static method

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
return string

Property Details

DefaultHeight public_oe static_oe property

public static int DefaultHeight
return int

DefaultWidth public_oe static_oe property

public static int DefaultWidth
return int

FeaturePath public_oe static_oe property

public static string FeaturePath
return string