![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/job-board.corals.io/vendor/corals/charts/src/Classes/Highcharts/ |
<?php namespace ConsoleTVs\Charts\Classes\Highcharts; use ConsoleTVs\Charts\Classes\BaseChart; use ConsoleTVs\Charts\Features\Highcharts\Chart as ChartFeatures; class Chart extends BaseChart { use ChartFeatures; /** * Chartjs dataset class. * * @var object */ public $dataset = Dataset::class; /** * Initiates the Highcharts Line Chart. * * @return self */ public function __construct() { parent::__construct(); $this->container = 'charts::highcharts.container'; $this->script = 'charts::highcharts.script'; return $this->options([ 'credits' => [ 'enabled' => false, ], 'title' => [ 'text' => null, ], ]); } /** * Format the options for highcharts. * * @return string */ public function formatOptions(bool $strict = false, bool $noBraces = false) { if (count($this->labels) > 0) { $this->options([ 'xAxis' => [ 'categories' => json_decode($this->formatLabels()), ], ]); } return parent::formatOptions($strict, $noBraces); } }