How to include highcharts with bower?

╄→гoц情女王★ 提交于 2019-12-01 15:56:41

I ran into the same problem you can do the following for highcharts

bower install highcharts-release

and to get highstock you can do this

bower install highstock-release

and you would include one of the following

'/bower_components/highcharts-release/highcharts.js'
'/bower_components/highstock-release/highstock.js'

As Erik mentioned, use the release version of Highcharts JS:

https://github.com/highslide-software/highcharts-release

If you're using grunt, simply run grunt bower-install and it will install the dependencies into your project.

Otherwise, include the javascript files that are part of the package:

bower_components/highcharts-release/highcharts.js
bower_components/highcharts-release/highcharts-more.js

and if you plan on exporting:

bower_components/highcharts-release/modules/exporting.src.js

Try the release version: https://github.com/highslide-software/highcharts-release.

This is the official shim repo for Highcharts JS releases including minified files. It is optimized for inclusion by Bower.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!