**********************************************************
I have used below code it works in local server,
but when i upload it to live server it shows me the pie chart and suddenly goes to invisible.
Please help me to resolve this issue.
*********************************************************
// Load the Visualization API and the piechart package.
google.load('visualization', '1', {'packages':['corechart']});
// Set a callback to run when the Google Visualization API is loaded.
google.setOnLoadCallback(drawChart);
function drawChart() {
// Create our data table out of JSON data loaded from server.
var data = new google.visualization.DataTable(<?php echo $jsonTable?>);
var options = {
title: 'ProjectType',
is3D: 'true',
width: 350,
backgroundColor: '#A3D1D1',
height: 200,
};
// Instantiate and draw our chart, passing in some options.
// Do not forget to check your div ID
var chart = new google.visualization.PieChart(document.getElementById('div_pie1'));
chart.draw(data, options);