E
E
Evgeny Frankov2021-02-14 16:47:22
Highcharts
Evgeny Frankov, 2021-02-14 16:47:22

Why is the data not showing up in the highcharts navigator?

But they come in navigator.series.data.

data() {
        return {
            chartOptions: {
                rangeSelector: {
                    verticalAlign: 'bottom',
                    x: 0,
                    y: 0,
                    inputDateFormat: false,
                    inputPosition: {
                        align: 'right',
                        enable: false
                },

                    buttons: [
                        {
                        type: 'month',
                        count: 1,
                        text: '1',},

                        {
                        type: 'month',
                        count: 3,
                        text: '3'
                        }, 
                        {
                        type: 'month',
                        count: 6,
                        text: '6'
                        }, 
                        {
                        type: 'month',
                        count: 12,
                        text: '12'
                        },  
                        {
                        type: 'all',
                        text: 'All'
                        }
                    ]
                
            },


            legend: {
                enabled: true,
                align: 'left',
                verticalAlign: 'top'
            },
            
        

            title: {
                text: 'Statistic'
            },
            series: [
                {
                data: [],
                name: 'queries',
                color: '#176de6',
                tooltip: {
                valueDecimals: 2
            }
                },

                {
                data: [],
                name: 'groups',
                color: '#e3e317'
                },

                {
                data: [],
                name: 'documents',
                color: '#3de617'
                },

                {
                data: [],
                name: 'categories',
                color: '#e31717'
                },

            ],

            navigator: {
                series: {
                    data: []
                },
                
                    
                
            },
    }
  }
},

computed: {
        ...mapGetters([
            'DATA'
    ]),

  },
        methods : {
        ...mapActions([
            'GET_DATA'
        ]),

        setDatas(){
            return setTimeout(()=>{
               for(let i=0; i<this.request_data.length; i++){
                    this.chartOptions.series[0].data = Object.values(this.request_data[0])[1].map(e=>e.value)
                    this.chartOptions.series[1].data = Object.values(this.request_data[1])[1].map(e=>e.value)
                    this.chartOptions.series[2].data = Object.values(this.request_data[2])[1].map(e=>e.value)
                    this.chartOptions.series[3].data = Object.values(this.request_data[3])[1].map(e=>e.value)
                    this.chartOptions.navigator.series.data = Object.values(this.request_data[0])[1].map(e=>new Date(e.date))
               }
            }, 1000)
        },

        
            
           
        }

        

    
  },
 created() {
        this.GET_DATA()
        this.setDatas()   
  }

Answer the question

In order to leave comments, you need to log in

11 answer(s)
A
Alexander Alexandrovich, 2017-09-24
@tatu

laracast.com is a great resource

V
Vladimir Borutkin, 2017-09-24
@Atanvar

"php yii web developer" learn as you taught yii

S
Sergey Zhukov, 2017-09-25
@Adobe

It is best to start with English. In general, everything is excellently stated on laracast.com.

A
ajaxtelamonid, 2017-09-26
@ajaxtelamonid

Start by reading the entire documentation - laravel.su/docs/5.4

R
Rukis, 2017-09-24
@rukis

Start with the official documentation. Then laracast and practice.

A
Anton, 2017-09-24
Reytarovsky @Antonchik

Here is a great resource

S
Sergey Vushnyakov, 2017-09-29
@leto2015

Hey!
Before you start learning Laravel, I advise you to watch https://www.youtube.com/watch?v=e6GW8LIPxB0&list=P... . The author manages to show the construction of systems in a very intelligible and understandable way.
From these videos, you can understand the essence of not only Laravel, but perhaps the essence of other frameworks.
--------------------------------------
But if you need it very quickly, then you make up a website in 5 pages (or landing) + admin panel. "Planting"
it on Laravel. With all authorizations, with sending mail, admin panels, forms, validations. You work with two Russian-language sites, there is a lot of information there. On one, almost official translated documentation, and on the other, ready-made solutions in the form of small articles. Well, plus vidos in the search format for a specific task. If it is completely incomprehensible, ask questions on various resources. With some perseverance, it will take a week. Of course, it will be far from perfection, but the realization "... how I lived all these years without Laravel ..." will come.
All the best to you and good luck!

P
Pavel, 2017-10-02
@MrSPV

According to this site it is not bad to start cccp-blog.com/category/laravel .

D
Denis, 2017-09-24
@zontonax

https://www.youtube.com/watch?v=DUw3aKYL-wk&t=601s

D
Dmitry Yakovlev, 2017-09-28
@almassar

Read the documentation, try to implement them practically. There is a lot of information on Habré. See the code on github for popular packages. And look at the framework code itself. In Laravel, the hardest part is Container and DI.

S
Sergey Kirilenko, 2017-09-29
@sergeykir

A little outdated: https://www.youtube.com/playlist?list=PL9ogRqeIEMz...
But it is very detailed, there is a detailed analysis of each functionality of the framework

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question