小编Otá*_*ira的帖子

Vue2-Highcharts setOptions Lang

我正在尝试使用 Vue2 对 highcharts 进行标准翻译,但我遇到了困难,因为我无法访问 setOptions 选项。我没有找到太多关于 vue2 和 Highcharts 的文档,所以我在使用它时遇到了一些困难,如果有人也可以向我提供这些内容,谢谢。

\n\n
import VueHighcharts from \'vue2-highcharts\'\nexport default{\n    components: {\n        VueHighcharts\n    },\n    props: [\'title\', \'subtitle\', \'initoptions\'],\n    data(){\n        let initOptions = JSON.parse(this.initoptions);\n        let tmpSeries = [];\n        let count = 0;\n\n        $.each(initOptions, function(key, value) {\n            let data = [];\n            $.each(value, function(key2, value2){\n                let date = key2.split(\'-\');\n                data.push([Date.UTC(date[2], date[1], date[0]), value2]);\n            });\n\n            tmpSeries.push({\'name\': key, \'data\': data});\n            count++;\n        });\n\n        return{\n            options: {\n                /* ***\n                  I can not set this setOptions property to lang\n                *** */\n …
Run Code Online (Sandbox Code Playgroud)

highcharts vue.js vuejs2 vue2-highcharts

2
推荐指数
1
解决办法
1426
查看次数

标签 统计

highcharts ×1

vue.js ×1

vue2-highcharts ×1

vuejs2 ×1