‪TYPO3CMS  11.5
TYPO3\CMS\Dashboard\Widgets\ChartDataProviderInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Dashboard\Widgets\ChartDataProviderInterface:
TYPO3\CMS\Dashboard\Widgets\Provider\SysLogErrorsDataProvider TYPO3\CMS\Dashboard\Widgets\Provider\TypeOfUsersChartDataProvider

Public Member Functions

array getChartData ()
 

Detailed Description

Defines API for provider, used for chart widgets.

Definition at line 23 of file ChartDataProviderInterface.php.

Member Function Documentation

◆ getChartData()

array TYPO3\CMS\Dashboard\Widgets\ChartDataProviderInterface::getChartData ( )

This method should provide the data for the graph. The data and options you have depend on the type of chart. More information can be found in the documentation of the specific type.

https://www.chartjs.org/docs/latest/charts/doughnut.html#data-structure array

Implemented in TYPO3\CMS\Dashboard\Widgets\Provider\SysLogErrorsDataProvider, and TYPO3\CMS\Dashboard\Widgets\Provider\TypeOfUsersChartDataProvider.