container = 'charts::echarts.container'; $this->script = 'charts::echarts.script'; return $this->options([ 'legend' => [ 'show' => true, ], 'tooltip' => [ 'show' => true, ], 'xAxis' => [ 'show' => true, ], 'yAxis' => [ 'show' => true, ], ]); } /** * Formats the options. * * @return self */ public function formatOptions(bool $strict = false, bool $noBraces = false) { $this->options([ 'xAxis' => [ 'data' => json_decode($this->formatLabels()), ], ]); return parent::formatOptions($strict, $noBraces); } }