0

My project is in angualr js which is working in my local with highcharts fine but when I tried to deploy on the server it is giving error highhcarts is not define . whne i searched on the internet i found there is problem with grunt.js which is minify the js so does any one have idea how to get rid of that error (highchart is not define!!! )

sam patel
  • 45
  • 6

1 Answers1

0

Either you have included the highcharts script twice, or you haven't included the highcharts script at all.

When using highcharts-ng you need to include these:

<head>
    <link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js"></script>
    <script src="http://code.highcharts.com/stock/highstock.src.js"></script>
    <script src="../../src/highcharts-ng.js"></script>
    <script src="app.js"></script>
</head>

Here is a DEMO of using "highvcharts-ng". Click on "ExternalResources" to see what scripts are loaded.

M H
  • 2,179
  • 25
  • 50