PHP Class WhSparkLines

Author: Antonio Ramirez ([email protected])
Inheritance: extends CWidget
Show file Open project: 2amigos/yiiwheels

Public Properties

Property Type Description
$data the data to show on the chart
$debugMode Debug mode Used to publish full js file instead of min version
$htmlOptions additional HTML attributes to the tag
$pluginOptions plugin options
$tagName the tag name to render the sparkline to NOTE: span type of tag may have issues.

Public Methods

Method Description
init ( ) Widget's initialization method
registerClientScript ( ) Registers required client script for sparklines
run ( ) Widget's run method

Method Details

init() public method

Widget's initialization method
public init ( )

registerClientScript() public method

Registers required client script for sparklines

run() public method

Widget's run method
public run ( )

Property Details

$data public property

the data to show on the chart
See also: http://omnipotent.net/jquery.sparkline/#s-about
public $data

$debugMode public property

Debug mode Used to publish full js file instead of min version
public $debugMode

$htmlOptions public property

additional HTML attributes to the tag
public $htmlOptions

$pluginOptions public property

plugin options
public $pluginOptions

$tagName public property

the tag name to render the sparkline to NOTE: span type of tag may have issues.
public $tagName