Overview

Classes

  • Ws_logged_inModel
  • Ws_permissionsModel
  • Ws_role_permModel
  • Ws_rolesModel
  • Ws_user_roleModel
  • Ws_userModel
  • WsAuth
  • WsauthController
  • WsChart
  • WsConfig
  • WsController
  • WsDatabase
  • WsForm
  • WsImage
  • WsLocalize
  • WsModel
  • WsModelForm
  • WsModelGridView
  • WsUrl

Functions

  • __autoload
  • callHook
  • WsErrorHandler
  • Overview
  • Class

Class WsChart

WsChart Is class for drawing animated and interactive charts. It uses Chart.js in the background.

Var: integer $width Chart width
Var: integer $height Chart height
Var: array $options Global Chart.js options
Var: array $attributes HTML Canvas attributes
Located at WsChart.class.php
Methods summary
public
# __construct( $width = '', $height = '', $options = array(), $attributes = array() )
public
# __toString( )
public
# show( )

show chart

show chart

public
# addLabels( $label, $reset = false )

add labels for chart

add labels for chart

Var

array/string $labels List of labels or single label to add
boolean $reset Create new list of labels or append to existing
public
# addDataset( $dataset, $reset = null )

add datasets to chart

add datasets to chart

Var

array $dataset Dataset to add
public
# setType( $type )

set chart type

set chart type

Var

string $type Chart type
Properties summary
protected array $_labels

$_labels Chart labels

$_labels Chart labels

# array()
protected array $_datasets

$_datasets Chart datasets

$_datasets Chart datasets

# array()
protected array $_options

$_options Global Chart.js options

$_options Global Chart.js options

# array()
protected array $_attributes

$_attributes HTML canvas attributes

$_attributes HTML canvas attributes

# array()
protected string $_id

$_id ID of canvas where chart will be drawn

$_id ID of canvas where chart will be drawn

# ''
protected string $_chart

$_chart Chart object

$_chart Chart object

# ''
protected integer $_width

$_width Chart width

$_width Chart width

#
protected integer $_height

$_height Chart height

$_height Chart height

#
protected string $_type

_type Chart type

_type Chart type

# 'Line'
API documentation generated by ApiGen