CMS  Version 3.9
StackedHistogramSeries Class Reference
+ Inheritance diagram for StackedHistogramSeries:
+ Collaboration diagram for StackedHistogramSeries:

Public Member Functions

 __construct ($type, $title)
 
 addSeries ($series)
 
 toScript ()
 
- Public Member Functions inherited from HistogramSeries
 __construct ($type, $title, $values)
 
 set ($attr, $val)
 
 getOptions ()
 
 showTooltips ($tooltips=null)
 

Public Attributes

 $type
 
 $title
 
 $children = array()
 
- Public Attributes inherited from HistogramSeries
 $type
 
 $title
 
 $values
 
 $options = array()
 
 $onClick
 
 $tooltips = array()
 

Detailed Description

Definition at line 118 of file histogram.inc.

Constructor & Destructor Documentation

◆ __construct()

StackedHistogramSeries::__construct (   $type,
  $title 
)

Definition at line 124 of file histogram.inc.

125  {
126  $this->type = $type;
127  $this->title = $title;
128  }
$bookmark title

Member Function Documentation

◆ addSeries()

StackedHistogramSeries::addSeries (   $series)

Definition at line 130 of file histogram.inc.

131  {
132  $this->children[] = $series;
133  }
$series

◆ toScript()

StackedHistogramSeries::toScript ( )

Reimplemented from HistogramSeries.

Definition at line 135 of file histogram.inc.

136  {
137  $options = $this->getOptions();
138  $out = "(new StackedHistogramSeries('{$this->type}', '". jsSafe($this->title) ."', $options))";
139  foreach($this->children as $child)
140  {
141  $kid = $child->toScript();
142  $out .= ".addSeries({$kid})";
143  }
144 
145  return $out;
146  }
$out
Definition: page.inc:66

Member Data Documentation

◆ $children

StackedHistogramSeries::$children = array()

Definition at line 122 of file histogram.inc.

◆ $title

StackedHistogramSeries::$title

Definition at line 121 of file histogram.inc.

◆ $type

StackedHistogramSeries::$type

Definition at line 120 of file histogram.inc.


The documentation for this class was generated from the following file: