Spamworldpro Mini Shell
Spamworldpro


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/Fusioncharts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/job-board.corals.io/vendor/corals/charts/src/Classes/Fusioncharts/Chart.php
<?php

namespace ConsoleTVs\Charts\Classes\Fusioncharts;

use ConsoleTVs\Charts\Classes\BaseChart;
use ConsoleTVs\Charts\Features\Fusioncharts\Chart as ChartFeatures;
use Illuminate\Support\Collection;

class Chart extends BaseChart
{
    use ChartFeatures;

    /**
     * Chartjs dataset class.
     *
     * @var object
     */
    public $dataset = Dataset::class;

    /**
     * Theese array stores the types that are maintained to fusioncharts.
     *
     * @var array
     */
    public $keepType = ['pie2d', 'doughnut2d'];

    /**
     * Determines the combo type of chart.
     *
     * @var array
     */
    public $comboType = 'mscombi2d';

    /**
     * Initiates the Chartjs Line Chart.
     *
     * @return self
     */
    public function __construct()
    {
        parent::__construct();

        $this->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();
    }
}

Spamworldpro Mini