You are here

public function ChartInterface::buildVariables in Charts 8.3

Creates a JSON Object formatted for the charting library JavaScript.

Parameters

array $options: Options.

array $categories: Categories.

array $seriesData: Series data.

array $attachmentDisplayOptions: Attachment display options.

array $variables: Variables.

string $chartId: Chart ID.

array $customOptions: Overrides.

5 methods override ChartInterface::buildVariables()
Billboard::buildVariables in modules/charts_billboard/src/Plugin/chart/Billboard.php
Creates a JSON Object formatted for Billboard.js Charts JavaScript to use.
C3::buildVariables in modules/charts_c3/src/Plugin/chart/C3.php
Creates a JSON Object formatted for C3 Charts JavaScript to use.
Chartjs::buildVariables in modules/charts_chartjs/src/Plugin/chart/Chartjs.php
Creates a JSON Object formatted for C3 Charts JavaScript to use.
Google::buildVariables in modules/charts_google/src/Plugin/chart/Google.php
Creates a JSON Object formatted for Google Charts JavaScript to use.
Highcharts::buildVariables in modules/charts_highcharts/src/Plugin/chart/Highcharts.php
Creates a JSON Object formatted for Highcharts JavaScript to use.

File

src/Plugin/chart/ChartInterface.php, line 30

Class

ChartInterface
Defines an interface for Chart plugins.

Namespace

Drupal\charts\Plugin\chart

Code

public function buildVariables(array $options, array $categories, array $seriesData, array $attachmentDisplayOptions, array &$variables, $chartId, array $customOptions = []);