C# Класс Phresco.FusionCharts.Utils

Contains several very useful and required methods used to generate charts. Most the methods are statics.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
DefaultHeight int
DefaultWidth int
FeaturePath string

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
boolToNum ( bool value ) : int

Converts a boolean into a numeric value

Описание методов

ConvertChartTypeToPath() публичный статический Метод

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
Результат string

ConvertChartTypeToPath() публичный статический Метод

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
Результат string

GenerateRandomId() публичный статический Метод

Generate a random number that will become the HTML ID of the chart
public static GenerateRandomId ( ) : int
Результат int

GetDefaultColors() публичный статический Метод

Returns the default colors in a string. Colors are separated by semi columns (;)
public static GetDefaultColors ( ) : string
Результат string

GetXmlDataSample() публичный статический Метод

Returns sample XML data to feed and generate charts
public static GetXmlDataSample ( ChartType type ) : string
type ChartType
Результат string

IsSSL() публичный статический Метод

Determines if the current connection is SSL based or not
public static IsSSL ( ) : bool
Результат bool

RenderChart() публичный статический Метод

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
Результат string

RenderChartHTML() публичный статический Метод

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
Результат string

RenderChartHTML() публичный статический Метод

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
Результат string

Описание свойств

DefaultHeight публичное статическое свойство

public static int DefaultHeight
Результат int

DefaultWidth публичное статическое свойство

public static int DefaultWidth
Результат int

FeaturePath публичное статическое свойство

public static string FeaturePath
Результат string