<https://lh3.googleusercontent.com/-ZRZbSPHz7Tw/W2gKmFDLEOI/AAAAAAAAAY0/BxVZS0x--x4_ZLnx_5bTsvlYbqjywV2FgCLcBGAs/s1600/Presentation1.png>
Want to show dual google chart with different data and different dashboard
in one page, but just only one can show in one page?
<https://lh3.googleusercontent.com/-ZRZbSPHz7Tw/W2gKmFDLEOI/AAAAAAAAAY0/BxVZS0x--x4_ZLnx_5bTsvlYbqjywV2FgCLcBGAs/s1600/Presentation1.png>
First Dashboard :
<html>
<head>
<title>Google Charts Tutorial</title>
<script type = "text/javascript" src =
"https://www.gstatic.com/charts/loader.js">
</script>
<script type = "text/javascript">
google.charts.load('current', {packages: ['corechart']});
</script>
</head>
<body>
<div id = "container" style = "width: auto; height: 450px;
margin: 0 auto">
</div>
<script language = "JavaScript">
function drawChart() {
// Define the chart to be drawn.
var data = google.visualization.arrayToDataTable([
['Fruit', 'Mount', { role: 'annotation'} ,'weight', {
role: 'annotation'}],
['Apple', 1000,'1000', 245, '245'],
['Mango', 1234,'1234', 234,'234'],
['Watermelon', 12345,'12345', 342,'342'],
['Pineapple', 7321,'7321', 545,'545'],
['Grape', 46723,'46723', 2345,'2345'],
['Banana', 9643,'9643', 462,'462'],
['Orange', 4684,'4684', 235,'235']
]);
var options = {title: 'About Fruit', isStacked:true};
// Instantiate and draw the chart.
var chart = new
google.visualization.BarChart(document.getElementById('container'));
chart.draw(data, options);
}
google.charts.setOnLoadCallback(drawChart);
</script>
</body>
</html>
Second Dashboard :
<html>
<head>
<title>Google Charts Tutorial</title>
<script type = "text/javascript" src =
"https://www.gstatic.com/charts/loader.js">
</script>
<script type = "text/javascript">
google.charts.load('current', {packages: ['corechart']});
</script>
</head>
<body>
<div id = "container" style = "width: auto; height: 450px;
margin: 0 auto">
</div>
<script language = "JavaScript">
function drawChart() {
// Define the chart to be drawn.
var data = google.visualization.arrayToDataTable([
['Vegetables', 'Mount', { role: 'annotation'} ,'Weight',
{ role: 'annotation'}],
['Cabbage', 117021,'117021', 134, '134'],
['Celery ', 1673407,'1673407', 194,'194'],
['Asparagus', 152139,'152139', 192,'192'],
['Cucumber', 180718,'180718', 216,'216'],
['Onion', 14214,'14214', 168,'168'],
['Pumpkin', 183667,'183667', 215,'215'],
['Sprout ', 15956,'15956', 118,'118']
]);
var options = {title: 'About Vegetables', isStacked:true,
is3D: true,};
// Instantiate and draw the chart.
var chart = new
google.visualization.BarChart(document.getElementById('container'));
chart.draw(data, options);
}
google.charts.setOnLoadCallback(drawChart);
</script>
</body>
</html>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/7e1c2dce-8ee3-47b1-a54c-f5cf8663bbf1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.