ChartIQ не отображается на мобильных устройствах - PullRequest
0 голосов
/ 21 декабря 2018

График ChartIQ не отображается на мобильных устройствах.В консоли отображается ошибка.

Ошибка в консоли:

Unhandled rejection TypeError: Cannot read property 'maxTicks' of undefined    
at CIQ.ChartEngine.N.(anonymous function).(anonymous function).(anonymous function) [as createDataSet](http://192.168.0.139:8080/static/chartiq/js/chartiq.js:40674:117802)    
at CIQ.ChartEngine.setPeriodicity (http://192.168.0.139:8080/static/chartiq/js/chartiq.js:29657:9)    
at VueComponent.showChart (http://192.168.0.139:8080/7.js:1869:17)    
at VueComponent.boundFn [as showChart ](http://192.168.0.139:8080/app.js:108489:12)

Попытался параметр maxTicks, но он бесполезен, все работает на настольной версии.

 showChart: function () {
    var myQuoteFeed = {}
    var self = this
    myQuoteFeed.fetchInitialData = function (symbol, startDate, endDate, 
         params, cb) { 
      console.log('Asking for initial data...')
      specificMarket(self.currentMarket, self.period, self.limit).then(res => {
        cb({
          quotes: self.getModifyData(res)
        })
      })
    }

    var behavior = {
      refreshInterval: 5
    }
    this.stxx = new CIQ.ChartEngine({
      container: $$$('.chartContainer')
    })
    this.stxx.setPeriodicity({period: 1, timeUnit: 'minute', interval: 5})
    this.stxx.attachQuoteFeed(myQuoteFeed, behavior)
    this.stxx.layout.crosshair = true
    this.stxx.newChart('market')
   },
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...