We are building a new interface with AngularJS and at least one of the modules will have charts. So far I have been trying out Google Charts and it works good for me both on the local NodeJS server (through WebStorm) and on our Continuous Development Server, but for everybody else in the team, the charts are not showing up on any of them.
Pie chart
// Load the Visualization API and the piechart package.
google.load('visualization', '1.0', {'packages':['corechart']});
// Set a callback to run when the Google Visualization API is loaded.
google.setOnLoadCallback(drawChart);
// Callback that creates and populates a data table,
// instantiates the pie chart, passes in the data and draws it.
function drawChart() {
// Create the data table.
var data = new google.visualization.DataTable();
data.addColumn('string', 'Topping');
data.addColumn('number', 'Slices');
data.addRows([
['Pears', 10.5],
['Apples', 16.5],
['Bananas', 5]
]);
// Set chart options
var options = {'title':'Fruits',
'width':420,
'height':300};
// Instantiate and draw our chart, passing in some options.
var chart = new google.visualization.PieChart(document.getElementById('chart_1'));
chart.draw(data, options);
}
As you can see in the code, I already have the google.setOnLoadCallback(drawchart); as suggested in Google Visualization chart not showing up thanks to CSS.
I have tried to download Google's JSAPI and other stuff and include it in the project but no difference for the others.
All of us are using Google Chrome. I am logged in with my gmail and I think the others are as well. So it must be something that I have in my Google Chrome browser that they don't have.
Any idea what this could be?
EDIT
Here's my JSFiddle which has the exact solution but I have changed some content, like variables and data due to integrity...