interface ChartInterface in Charts 8.4
Same name and namespace in other branches
- 5.0.x src/Plugin/chart/Library/ChartInterface.php \Drupal\charts\Plugin\chart\Library\ChartInterface
Defines an interface for Chart plugins.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Core\Plugin\PluginFormInterface; interface \Drupal\Component\Plugin\ConfigurableInterface
- interface \Drupal\charts\Plugin\chart\Library\ChartInterface
Expanded class hierarchy of ChartInterface
All classes that implement ChartInterface
4 files declare their use of ChartInterface
- Chart.php in src/
Element/ Chart.php - ChartDataCollectorTable.php in src/
Element/ ChartDataCollectorTable.php - ChartsPluginStyleChart.php in src/
Plugin/ views/ style/ ChartsPluginStyleChart.php - TypeManager.php in src/
TypeManager.php
File
- src/
Plugin/ chart/ Library/ ChartInterface.php, line 12
Namespace
Drupal\charts\Plugin\chart\LibraryView source
interface ChartInterface extends PluginInspectionInterface, PluginFormInterface, ConfigurableInterface {
/**
* Used to define a single axis.
*
* Constant used in chartsTypeInfo() to declare chart types with a
* single axis. For example a pie chart only has a single dimension.
*/
const SINGLE_AXIS = 'y_only';
/**
* Used to define a dual axis.
*
* Constant used in chartsTypeInfo() to declare chart types with a dual
* axes. Most charts use this type of data, meaning multiple categories each
* have multiple values. This type of data is usually represented as a table.
*/
const DUAL_AXIS = 'xy';
/**
* Pre render.
*
* @param array $element
* The element.
*
* @return array
* The chart element.
*/
public function preRender(array $element);
/**
* Return the name of the chart.
*
* @return string
* Returns the name as a string.
*/
public function getChartName();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ChartInterface:: |
constant | Used to define a dual axis. | ||
ChartInterface:: |
public | function | Return the name of the chart. | 1 |
ChartInterface:: |
public | function | Pre render. | 5 |
ChartInterface:: |
constant | Used to define a single axis. | ||
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 11 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 12 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 12 |
PluginFormInterface:: |
public | function | Form constructor. | 36 |
PluginFormInterface:: |
public | function | Form submission handler. | 32 |
PluginFormInterface:: |
public | function | Form validation handler. | 18 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |