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

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 87 of file histogram.inc.

Constructor & Destructor Documentation

◆ __construct()

GroupedHistogramSeries::__construct (   $type,
  $title 
)

Definition at line 93 of file histogram.inc.

94  {
95  $this->type = $type;
96  $this->title = $title;
97  }
$bookmark title

Member Function Documentation

◆ addSeries()

GroupedHistogramSeries::addSeries (   $series)

Definition at line 99 of file histogram.inc.

100  {
101  $this->children[] = $series;
102  }
$series

◆ toScript()

GroupedHistogramSeries::toScript ( )

Reimplemented from HistogramSeries.

Definition at line 104 of file histogram.inc.

105  {
106  $options = $this->getOptions();
107  $out = "(new GroupedHistogramSeries('{$this->type}', '". jsSafe($this->title) ."', $options))";
108  foreach($this->children as $child)
109  {
110  $kid = $child->toScript();
111  $out .= ".addSeries({$kid})";
112  }
113 
114  return $out;
115  }
$out
Definition: page.inc:66

Member Data Documentation

◆ $children

GroupedHistogramSeries::$children = array()

Definition at line 91 of file histogram.inc.

◆ $title

GroupedHistogramSeries::$title

Definition at line 90 of file histogram.inc.

◆ $type

GroupedHistogramSeries::$type

Definition at line 89 of file histogram.inc.


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