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/Features/Frappe/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

namespace ConsoleTVs\Charts\Features\Frappe;

trait Chart
{
    /**
     * Add a title to the Chart.
     *
     * @param string $title
     *
     * @return void
     */
    public function title(string $title)
    {
        return $this->options([
            'title' => $title,
        ]);
    }

    /**
     * Determines the spaceRatio of the bars.
     *
     * @param float $space
     *
     * @return self
     */
    public function spaceRatio(float $space = 0.75)
    {
        return $this->options([
            'barOptions' => [
                'spaceRatio' => $space,
            ],
        ]);
    }

    /**
     * Determines if the bars are stacked.
     *
     * @param bool $stacked
     *
     * @return self
     */
    public function stacked(bool $stacked)
    {
        return $this->options([
            'barOptions' => [
                'stacked' => $stacked,
            ],
        ]);
    }

    /**
     * Makes the chart interactive with arrow keys and highlights the current active data point.
     *
     * @param bool $stacked
     *
     * @return self
     */
    public function isNavigable(bool $value)
    {
        return $this->options([
            'isNavigable' => $value,
        ]);
    }

    /**
     * To display data values over bars or dots in an axis graph.
     *
     * @param bool $stacked
     *
     * @return self
     */
    public function valuesOverPoints(bool $value)
    {
        return $this->options([
            'valuesOverPoints' => $value,
        ]);
    }

    /**
     * Determines if the lines will show a dot.
     *
     * @param bool $value
     *
     * @return self
     */
    public function hideDots(bool $value)
    {
        return $this->options([
            'lineOptions' => [
                'hideDots' => $value,
            ],
        ]);
    }

    /**
     * Determines if the line will be hidden.
     *
     * @param bool $value
     *
     * @return self
     */
    public function hideLine(bool $value)
    {
        return $this->options([
            'lineOptions' => [
                'hideDots' => $value,
            ],
        ]);
    }

    /**
     * Determines if the line will be a heatline.
     *
     * @param bool $value
     *
     * @return self
     */
    public function heatline(bool $value)
    {
        return $this->options([
            'lineOptions' => [
                'heatline' => $value,
            ],
        ]);
    }
}

Spamworldpro Mini