![]() Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : fdshops ( 1003) PHP Version : 8.2.21 Disable Function : NONE Directory : /home/fdshops/public_html/vendor/consoletvs/charts/src/Features/Frappe/ |
<?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, ], ]); } }