You are here

interface ChartsInterface in Charts 8.3

Provides an interface defining Charts constants.

Hierarchy

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\Theme
View 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

Namesort descending Modifiers Type Description Overrides
ChartsInterface::CHARTS_DUAL_AXIS constant Used to define a dual axis.
ChartsInterface::CHARTS_SINGLE_AXIS constant Used to define a single axis.