/
home
/
techb158
/
immovalet.com
/
platform
/
plugins
/
ecommerce
/
src
/
Charts
/
/home/techb158/immovalet.com/platform/plugins/ecommerce/src/Charts
mkdir
upload
Name
Size
Mode
Actions
TimeChart.php
633
0644
edit
dl
rm
Edit:
/home/techb158/immovalet.com/platform/plugins/ecommerce/src/Charts/TimeChart.php
(633B)
<?php namespace Botble\Ecommerce\Charts; use Botble\Chart\LineChart; class TimeChart extends LineChart { /** * @return LineChart */ public function init() { return $this ->setElementId('ecommerce-time-chart') ->xkey(['date']) ->ykeys(['revenue']) ->pointFillColors(['green']) ->pointStrokeColors(['black']) ->lineColors(['blue', 'pink']) ->hoverCallback('function(index, options, content, row) {return "<strong>" + row.formatted_date + "</strong>: " + row.formatted_revenue;}') ->xLabels('day'); } }
Save
cmd:
run