在Highchart中启用/禁用“导航器”窗格

时间:2018-01-05 14:01:33

标签: javascript jquery highcharts highstock

我希望通过某些<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Auth\Authenticatable; use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Foundation\Auth\Access\Authorizable; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract; use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; class User extends \Jenssegers\Mongodb\Eloquent\Model implements AuthenticatableContract, AuthorizableContract, CanResetPasswordContract { use Authenticatable, Authorizable, CanResetPassword, Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'name', 'email', 'password', ]; /** * The attributes that should be hidden for arrays. * * @var array */ protected $fillable = [ 'name', 'email', 'password','phone','photo','first_name', 'contact_name', 'address', 'phone_number', 'fiscal_number', 'about_us', ]; /** * The attributes that should be hidden for arrays. * * @var array */ protected $hidden = [ 'password', 'remember_token', ]; public function subscription() { return $this->hasMany('App\Models\EmployerSubscription','employer_id','_id'); } public function jobseekers() { return $this->hasOne('App\Models\JobSeekers'); } public function experience() { return $this->hasMany('App\Models\Experience')->where('status',true); } } 代码启用/禁用高级图的Navigator pane,但找不到任何合适的代码或线索。

请帮帮我。

我为某些样本创建了Javascript/Jquery来实现

JsFiddle

-Neeraj

1 个答案:

答案 0 :(得分:1)

您只需将点击功能更改为:

$('#Navigator').click(function () {

    chart.update({
        navigator: {
            enabled: false
        }
    });

});

导航器启用设置需要在更新中添加。