You are here

public function WebformAnalysisChart::createChart in Webform Analysis 8

Create Chart.

Parameters

string $id: Id.

Return value

array Renderable.

Overrides WebformAnalysisChartInterface::createChart

1 call to WebformAnalysisChart::createChart()
WebformAnalysisChart::build in src/WebformAnalysisChart.php
Build.

File

src/WebformAnalysisChart.php, line 123

Class

WebformAnalysisChart
Webform Analysis Chart.

Namespace

Drupal\webform_analysis

Code

public function createChart($id) {
  return [
    'type' => $this->chartType,
    'options' => [],
    'selector' => '#' . $id,
    'data' => [],
  ];
}