You are here

function charts_get_type in Charts 8

Retrieve a specific chart type.

Parameters

string $chart_type: The type of chart selected for display.

Return value

mixed If not false, returns an array of values from charts_charts_type_info.

4 calls to charts_get_type()
ChartsPluginStyleChart::render in src/Plugin/views/style/ChartsPluginStyleChart.php
Render the display in this style.
_charts_google_populate_chart_axes in modules/charts_google/charts_google.inc
Utility to populate chart axes.
_charts_google_populate_chart_data in modules/charts_google/charts_google.inc
Utility to populate chart data.
_charts_highcharts_populate_chart_axes in modules/charts_highcharts/charts_highcharts.inc
Utility to populate chart axes.

File

includes/charts.pages.inc, line 99
Menu callbacks for Charts module.

Code

function charts_get_type($chart_type) {
  $types = charts_type_info();
  return $types[$chart_type] ? $types[$chart_type] : FALSE;
}