container = 'charts::fusioncharts.container'; $this->script = 'charts::fusioncharts.script'; return $this->options([ 'bgColor' => '#ffffff', 'borderAlpha' => 0, 'canvasBorderAlpha' => 0, 'usePlotGradientColor' => false, 'plotBorderAlpha' => 0, 'divlineColor' => '#22292F', 'divLineIsDashed' => true, 'showAlternateHGridColor' => false, 'captionFontBold' => true, 'captionFontSize' => 14, 'subcaptionFontBold' => false, 'subcaptionFontSize' => 14, 'legendBorderAlpha' => 0, 'legendShadow' => 0, 'hoverfillcolor' => '#CCCCCC', 'piebordercolor' => '#FFFFFF', 'hoverfillcolor' => '#CCCCCC', 'use3DLighting' => false, 'showShadow' => false, ]); } /** * Formats the labels for fusioncharts. * * @return string */ public function formatLabels() { return Collection::make($this->labels) ->map(function ($label) { return ['label' => $label]; }) ->toJson(); } }