this._labels = [];
this._xaxes = [];
this._yaxes = [];
+
+ this._setDefaults();
}
Base.prototype._series = null;
Base.prototype._labels = null;
return this.__getAxis('y', index, createIfNotExists);
};
+ Base.prototype._setDefaults = function() {
+ // For the children to extend.
+ };
+
Base.prototype.setLabels = function(labels) {
if (labels.length && this._series.length && this._series[0].length != labels.length) {
throw new Error('Series must match label values.');
protected $yaxes = [];
public function __construct() {
+ $this->set_defaults();
}
public function add_series(chart_series $serie) {
return $this->get_axis('y', $index, $createifnotexists);
}
+ protected function set_defaults() {
+ // For the child classes to extend.
+ }
+
public function set_labels(array $labels) {
$this->labels = $labels;
}