este el error que me muestra en consola
Código :
XHR finished loading: GET "http://liondesk.it/app/reports/index.php".angular.js:8632 (anonymous function)angular.js:8426 sangular.js:8146 fangular.js:11682 Jangular.js:11682 Jangular.js:11768 (anonymous function)angular.js:12811 h.$evalangular.js:12623 h.$digestangular.js:12915 h.$applyangular.js:1447 (anonymous function)angular.js:3965 dangular.js:1445 cangular.js:1459 dcangular.js:1368 Wcangular.js:22149 (anonymous function)jquery-1.11.1.min.js:2 jjquery-1.11.1.min.js:2 k.fireWithjquery-1.11.1.min.js:2 m.extend.readyjquery-1.11.1.min.js:2 J angular.js:10126 TypeError: Cannot read property 'offsetWidth' of undefined at fb (http://liondesk.it/js/libs/jquery.dataTables.min.js:7:148) at HTMLTableElement.<anonymous> (http://liondesk.it/js/libs/jquery.dataTables.min.js:91:45) at Function.m.extend.each (http://liondesk.it/js/libs/jquery-1.11.1.min.js:2:2973) at m.fn.m.each (http://liondesk.it/js/libs/jquery-1.11.1.min.js:2:835) at p [as dataTable] (http://liondesk.it/js/libs/jquery.dataTables.min.js:82:98) at g.fn.DataTable (http://liondesk.it/js/libs/jquery.dataTables.min.js:157:118) at link (http://liondesk.it/js/app.directives.js:109:42) at https://ajax.googleapis.com/ajax/libs/angularjs/1.2.28/angular.min.js:64:293 at J (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.28/angular.min.js:54:373) at g (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.28/angular.min.js:47:256) <table id="contacts-table" activity-table="" class="ng-isolate-scope dataTable"> angular-animate.js:300 Uncaught TypeError: Cannot read property 'offsetWidth' of null function(linechart) VM1701:762 Uncaught SyntaxError: Unexpected token (VM1701:762 InjectedScript._evaluateOnVM1701:695 InjectedScript._evaluateAndWrapVM1701:609 InjectedScript.evaluate
este es mi codigo lo probe en un server online como codio y ahi si funciona aca mi codigo
Código :
<!-- To change this template use Tools | Templates. --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title></title> </head> <body> <div id="chart"></div> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(linechart); function linechart() { var data = new google.visualization.DataTable(); data.addColumn('string', ''); data.addColumn('number', 'OPENS'); data.addRows([ ['1', 500], ['2', 320], ['3', 230], ['4', 318], ['5', 426], ['6', 118], ['7', 810], ]); var options = {'title': 'ACTIONS', 'width':500, 'height':300}; var graphic = new google.visualization.LineChart(document.getElementById('chart')); graphic.draw(data, options); } </script> </body> </html>
anado imagenes como si funciona en un servidor y en otro no