/**
  * Builds a new PieChart with the given label, datatable and options.
  *
  * @param  \Khill\Lavacharts\Values\Label         $chartLabel Identifying label for the chart.
  * @param  \Khill\Lavacharts\DataTables\DataTable $datatable DataTable used for the chart.
  * @param array                                   $config
  */
 public function __construct(Label $chartLabel, DataTable $datatable, $config = [])
 {
     $options = new Options($this->pieDefaults);
     if (isset($this->donutDefaults)) {
         $options->extend($this->donutDefaults);
         $options->set('pieHole', 0.5);
     }
     parent::__construct($chartLabel, $datatable, $options, $config);
 }
 public function __construct($chartLabel)
 {
     parent::__construct($chartLabel);
     $this->defaults = array_merge($this->defaults, array('areaOpacity', 'axisTitlesPosition', 'focusTarget', 'hAxis', 'isHtml', 'interpolateNulls', 'lineWidth', 'pointSize', 'vAxis'));
 }
Exemple #3
0
 /**
  * Builds a new GeoChart with the given label, datatable and options.
  *
  * @param \Khill\Lavacharts\Values\Label         $chartLabel Identifying label for the chart.
  * @param \Khill\Lavacharts\DataTables\DataTable $datatable DataTable used for the chart.
  * @param array                                  $config
  */
 public function __construct(Label $chartLabel, DataTable $datatable, $config = [])
 {
     $options = new Options($this->geoDefaults);
     parent::__construct($chartLabel, $datatable, $options, $config);
 }
Exemple #4
0
 public function __construct($c)
 {
     parent::__construct($c);
     $this->defaults = array_merge($this->defaults, array('axisTitlesPosition', 'barGroupWidth', 'focusTarget', 'hAxis', 'isHtml', 'series', 'seriesType', 'vAxes', 'vAxis'));
 }
 public function __construct($chartLabel)
 {
     parent::__construct($chartLabel);
     $this->defaults = array('headerColor', 'headerHeight', 'headerHighlightColor', 'maxColor', 'maxDepth', 'maxHighlightColor', 'maxPostDepth', 'maxColorValue', 'midColor', 'midHighlightColor', 'minColor', 'minHighlightColor', 'minColorValue', 'noColor', 'noHighlightColor', 'showScale', 'showTooltips', 'fontColor', 'fontFamily', 'fontSize');
 }
 public function __construct($chartLabel)
 {
     parent::__construct($chartLabel);
     $this->defaults = array_merge($this->defaults, array('annotations', 'axisTitlesPosition', 'barGroupWidth', 'dataOpacity', 'enableInteractivity', 'focusTarget', 'forceIFrame', 'hAxes', 'hAxis', 'isStacked', 'reverseCategories', 'orientation', 'series', 'theme', 'trendlines', 'trendlines.n.color', 'trendlines.n.degree', 'trendlines.n.labelInLegend', 'trendlines.n.lineWidth', 'trendlines.n.opacity', 'trendlines.n.pointSize', 'trendlines.n.showR2', 'trendlines.n.type', 'trendlines.n.visibleInLegend', 'vAxis', 'vAxis'));
 }
 /**
  * Builds a new chart with the given label.
  *
  * @param  \Khill\Lavacharts\Values\Label         $chartLabel Identifying label for the chart.
  * @param  \Khill\Lavacharts\DataTables\DataTable $datatable  DataTable used for the chart.
  * @param array                                   $config
  * @throws \Khill\Lavacharts\Exceptions\InvalidOption
  * @internal param array $options Array of options to set for the chart.
  */
 public function __construct(Label $chartLabel, DataTable $datatable, $config = [])
 {
     $calendarOptions = new Options($this->calendarDefaults);
     $options = new Options($this->extChartDefaults);
     $options->merge($calendarOptions);
     $options->set('calendar', $calendarOptions);
     parent::__construct($chartLabel, $datatable, $options, $config);
 }
 public function __construct($chartLabel)
 {
     parent::__construct($chartLabel);
     $this->defaults = array_merge($this->defaults, array('axisTitlesPosition', 'barGroupWidth', 'focusTarget', 'hAxis', 'isHtml', 'isStacked', 'vAxis'));
 }
Exemple #9
0
 public function __construct($chartLabel)
 {
     parent::__construct($chartLabel);
     $this->defaults = array_merge($this->defaults, array('is3D', 'slices', 'pieSliceBorderColor', 'pieSliceText', 'pieSliceTextStyle', 'pieStartAngle', 'reverseCategories', 'sliceVisibilityThreshold', 'pieResidueSliceColor', 'pieResidueSliceLabel'));
 }
Exemple #10
0
 public function __construct($chartLabel)
 {
     parent::__construct($chartLabel);
     $this->options = array('calendar' => array());
     $this->defaults = array_merge($this->defaults, array('cellColor', 'cellSize', 'dayOfWeekLabel', 'dayOfWeekRightSpace', 'daysOfWeek', 'focusedCellColor', 'monthLabel', 'monthOutlineColor', 'underMonthSpace', 'underYearSpace', 'unusedMonthOutlineColor', 'colorAxis', 'forceIFrame', 'noDataPattern'));
 }
 public function __construct($chartLabel)
 {
     parent::__construct($chartLabel);
     $this->defaults = array('datatable', 'height', 'width', 'forceIFrame', 'greenColor', 'greenFrom', 'greenTo', 'majorTicks', 'max', 'min', 'minorTicks', 'redColor', 'redFrom', 'redTo', 'yellowColor', 'yellowFrom', 'yellowTo');
 }
Exemple #12
0
 public function __construct($chartLabel)
 {
     parent::__construct($chartLabel);
     $this->defaults = array_merge($this->defaults, array('colorAxis', 'datalessRegionColor', 'displayMode', 'enableRegionInteractivity', 'keepAspectRatio', 'region', 'magnifyingGlass', 'markerOpacity', 'resolution', 'sizeAxis'));
 }
Exemple #13
0
 public function __construct($chartLabel)
 {
     parent::__construct($chartLabel);
     $this->defaults = array_merge($this->defaults, array('annotations', 'axisTitlesPosition', 'barGroupWidth', 'dataOpacity', 'enableInteractivity', 'focusTarget', 'forceIFrame', 'hAxes', 'hAxis', 'isStacked', 'reverseCategories', 'orientation', 'series', 'theme', 'vAxes', 'vAxis'));
 }