You are here

public function PHPExcel_Chart_DataSeriesValues::setDataType in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/DataSeriesValues.php \PHPExcel_Chart_DataSeriesValues::setDataType()

* Set Series Data Type * *

Parameters

string $dataType Datatype of this data series: * Typical values are: * PHPExcel_Chart_DataSeriesValues::DATASERIES_TYPE_STRING * Normally used for axis point values * PHPExcel_Chart_DataSeriesValues::DATASERIES_TYPE_NUMBER * Normally used for chart data values * @return PHPExcel_Chart_DataSeriesValues

1 call to PHPExcel_Chart_DataSeriesValues::setDataType()
PHPExcel_Chart_DataSeriesValues::__construct in vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/DataSeriesValues.php
* Create a new PHPExcel_Chart_DataSeriesValues object

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/DataSeriesValues.php, line 122

Class

PHPExcel_Chart_DataSeriesValues
PHPExcel_Chart_DataSeriesValues

Code

public function setDataType($dataType = self::DATASERIES_TYPE_NUMBER) {
  if (!in_array($dataType, self::$_dataTypeValues)) {
    throw new PHPExcel_Chart_Exception('Invalid datatype for chart data series values');
  }
  $this->_dataType = $dataType;
  return $this;
}