interface ChartsInterface in Charts 8.3
Provides an interface defining Charts constants.
Hierarchy
- interface \Drupal\charts\Theme\ChartsInterface
Expanded class hierarchy of ChartsInterface
All classes that implement ChartsInterface
2 files declare their use of ChartsInterface
- ChartsPluginStyleChart.php in src/
Plugin/ views/ style/ ChartsPluginStyleChart.php - ChartsTypeInfo.php in src/
Settings/ ChartsTypeInfo.php
File
- src/
Theme/ ChartsInterface.php, line 8
Namespace
Drupal\charts\ThemeView source
interface ChartsInterface {
/**
* 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 CHARTS_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 CHARTS_DUAL_AXIS = 'xy';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ChartsInterface:: |
constant | Used to define a dual axis. | ||
ChartsInterface:: |
constant | Used to define a single axis. |