[ 'legend' => [ 'display' => false, ], ], 'interaction' => [ 'intersect' => false, ], ]; public function getDescription(): ?string { return 'Events Moving Average'; } protected function getData(): array { $this->heading = HelperStatisticType::get($this->filters); $data = LoadEvents::load($this->filters); if ($data) { HelperMoveingAverage::get($data); } return $data; } protected function getType(): string { return 'line'; } // protected function getOptions(): array|RawJs|null // { // return [ // 'plugins' => [ // 'legend' => [ // 'display' => display, // ], // 'tooltip' => [ // 'callbacks' => [ // 'label' => RawJs::make(<<<'JS' // function(context) { // let label = context.dataset.label || ''; // if (label) { // label += ': '; // } // return label; // } // JS), // ], // ], // ], // 'interaction' => [ // 'intersect' => false, // ], // ]; // } }