open_flash_chart_api_render

string open_flash_chart_api_render ( mixed $chart = 'open_flash_chart_api_sample', mixed $width = 400, mixed $height = 250, array $params )

Returns a string to render the chart.

Parameters

$chart
The chart data to be rendered. Can be string containing function name, or string containing JSON formatted data, or object containing chart data.
$width
The width of the chart. Can be integer or string. e.g. 400 or '80%'
$height
The height of the chart. Can be integer or string. e.g. 250 or '50%'
$params
The additional Flash parameter to be added when rendering chart. Must be an associative array of the form array('name' => 'value').

Return values

Returns a string containing XHTML code ready to be printed out to render the content of $chart.

 

open_flash_chart_api_color_theme

array open_flash_chart_api_color_theme ( string $name )

Returns an array of color theme.

Parameters

$name
The name of the theme. Most of the theme are generated from http://kuler.adobe.com. Available values are:
  • blue
  • green
  • brown
  • dark-blue
  • bright
  • desert
  • zen-and-tea
  • gentle-honey
  • u23d
  • retro-spanky
  • sushi-maki
  • aged-paper
  • suspicion
  • baden

Return values

Returns an array containing the string to represent HTML code for each color in the theme.

 

open_flash_chart_api_chart

object open_flash_chart_api_chart ( )

Returns an ofc2_chart object.

Return values

Returns an object of type "ofc2_chart".

 

open_flash_chart_api_element

object open_flash_chart_api_element ( string $type = '' )

Returns an ofc2_element object.

Parameters

$type
String representing the type of the element.

Return values

Returns an object of type "ofc2_element" with its "type" attribute set to $type. The "type" attribute will not be set if $type is empty.

 

set (method)

$chart->set ( string $name, mixed $data )
$element->set ( string $name, mixed $data )

Creates an attribute named $name and set its value to $data.

Attributes

$name
String containing the name of the attribute.
$data
The value of the attribute. Can be string or array.

 

add (method)

$chart->add ( string $name, mixed $data )
$element->add ( string $name, mixed $data )

Adds $data to an attribute of type array named "$name"s.

Attributes

$name
String containing the singular form of the attribute name.
$data
The value of the attribute. Can be string or array.