You are here

public function C3::processChartType in Charts 8.3

Parameters

$type:

Return value

string

1 call to C3::processChartType()
C3::buildVariables in modules/charts_c3/src/Plugin/chart/C3.php
Creates a JSON Object formatted for C3 Charts JavaScript to use.

File

modules/charts_c3/src/Plugin/chart/C3.php, line 31

Class

C3
Define a concrete class for a Chart.

Namespace

Drupal\charts_c3\Plugin\chart

Code

public function processChartType($type) {
  if ($type == 'column') {
    $type = 'bar';
  }
  return $type;
}