You are here

public function ChartjsData::setDatasets in Charts 8.3

Set an object that specifies the datasets.

Parameters

mixed $datasets: Datasets.

File

modules/charts_chartjs/src/Settings/Chartjs/ChartjsData.php, line 65

Class

ChartjsData
Class ChartjsData.

Namespace

Drupal\charts_chartjs\Settings\Chartjs

Code

public function setDatasets($datasets) {
  $this->datasets = $datasets;
}