小编Kel*_*nda的帖子

Highchart Vue-如何包含momentjs?

我想用vue-highchartsmoment.js

<template>
    <highcharts :constructor-type="'stockChart'" :options="stockOptions" :updateArgs="[true, false]"></highcharts>
</template>

<script>
...
    stockOptions: {
       series: [{
          data: ''
       }],
       plotOptions: {
          series: {
                turboThreshold: 0
          }
       },
       chart: {
            type: 'area'
       },
       time: {
            timezone: 'America/Sao_paulo'
       }
    }
...
</script>
Run Code Online (Sandbox Code Playgroud)

但我收到此错误:

Highcharts Error #25
Can't find Moment.js library
Using the global.timezone option requires the Moment.js library to be loaded.
Run Code Online (Sandbox Code Playgroud)

我该怎么做才能解决此问题?

javascript highcharts momentjs vue.js

0
推荐指数
1
解决办法
659
查看次数

标签 统计

highcharts ×1

javascript ×1

momentjs ×1

vue.js ×1