\ChartDataset
Synopsis
class ChartDataset
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $has_many = ;
- private static string $background_color = '2196f3';
- public static array $summary_fields = ;
- public static string $default_sort = 'SortOrder';
- // methods
- public void getCMSFields()
- public void getCMSValidator()
- public void getTitle()
- protected void onBeforeWrite()
- protected void onAfterDelete()
- public array getChartLabels()
- public array getChartDataset()
Hierarchy
Extends
- DataObject
Members
private
- $background_color
- $db
- $has_many
- $has_one
public
- $default_sort
- $summary_fields
Methods
protected
public
- getCMSFields()
- getCMSValidator()
- getChartDataset() — Transform the dataset to an array which can be used by Chart.js.
- getChartLabels() — Get a list of labels which can be used by Chart.js.
- getTitle()