code: public function setDataValues($dataValues)
      {
          $this->dataValues = Functions::flattenArray($dataValues);
          $this->pointCount = count($dataValues);
  
          return $this;
      }
docs: Set Series Data Values.
  
  @param array $dataValues
  
  @return DataSeriesValues