ChartDataItem.php in Charts 8.4
Same filename and directory in other branches
Namespace
Drupal\charts\ElementFile
src/Element/ChartDataItem.phpView source
<?php
namespace Drupal\charts\Element;
use Drupal\Core\Render\Element\RenderElement;
/**
* Provides a chart data item render element.
*
* @RenderElement("chart_data_item")
*/
class ChartDataItem extends RenderElement {
/**
* {@inheritdoc}
*/
public function getInfo() {
return [
'#data' => NULL,
'#color' => NULL,
// Often used as content of the tooltip.
'#title' => NULL,
];
}
}
Classes
Name![]() |
Description |
---|---|
ChartDataItem | Provides a chart data item render element. |