我正在使用Chart.js v2绘制一个简单的折线图.一切都很好,除了有我不想要的网格线:
折线图的文档在这里:https://nnnick.github.io/Chart.js/docs-v2/#line-chart,但我找不到任何关于隐藏这些"网格线"的信息.
如何删除网格线?
我需要控制器中的一些代码每十分钟运行一次.用Scheduler和容易Commands.但.我创建了一个Command,用Laravel Scheduler(in Kernel.php)注册它,现在我无法实例化Controller.我知道这是解决这个问题的错误方法,但我只需要快速测试.为了达到这个目的,有没有办法,请注意一个黑客的方式?谢谢.
更新#1:
的Command:
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Http\Controllers\StatsController;
class UpdateProfiles extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'update-profiles';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Updates profiles in database.';
/**
* Create a new command instance.
*
* @return void
*/
public …Run Code Online (Sandbox Code Playgroud)