ChartInterface.php in Charts 8.3
Namespace
Drupal\charts\Plugin\chartFile
src/Plugin/chart/ChartInterface.phpView source
<?php
namespace Drupal\charts\Plugin\chart;
use Drupal\Component\Plugin\PluginInspectionInterface;
/**
* Defines an interface for Chart plugins.
*/
interface ChartInterface extends PluginInspectionInterface {
/**
* Creates a JSON Object formatted for the charting library JavaScript.
*
* @param array $options
* Options.
* @param array $categories
* Categories.
* @param array $seriesData
* Series data.
* @param array $attachmentDisplayOptions
* Attachment display options.
* @param array $variables
* Variables.
* @param string $chartId
* Chart ID.
* @param array $customOptions
* Overrides.
*/
public function buildVariables(array $options, array $categories, array $seriesData, array $attachmentDisplayOptions, array &$variables, $chartId, array $customOptions = []);
/**
* Return the name of the chart.
*
* @return string
* Returns the name as a string.
*/
public function getChartName();
}
Interfaces
Name | Description |
---|---|
ChartInterface | Defines an interface for Chart plugins. |