you I will copy here, watch it, thank Daniel
<!DOCTYPE html>
<html lang="es">
<head>
<title>Ejemplo Dialogos Emergentes</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" href="jquery-ui.css" />
<script type="text/javascript">
// 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([
['Estudia', 5],
['Trabaja', 3],
['Servicio Militar', 2],
['Ninguna', 2],
]);
// Set chart options
var options = {'title':'Actividad actual',
'width':400,
'height':300};
// Instantiate and draw our chart, passing in some options.
var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script>
</head>
<style type="text/css">
html {
background: url(paisajes-playas-palmeras.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
body {
font-family:Tahoma, Geneva, sans-serif;
}
.contenido {
width:460px;
margin:0 auto;
}
.boton {
float:left;
margin-right:10px;
margin-top:200px;
width:130px;
height:40px;
background:#222;
color:#fff;
padding:16px 6px 0 6px;
cursor:pointer;
text-align:center;
}
.boton:hover{color:#01DF01}
.ventana{
display:none; <!-- -------------------------> es importante ocultar las ventanas previamente -->
font-family:Arial, Helvetica, sans-serif;
color:#808080;
line-height:28px;
font-size:15px;
text-align:justify;
}
</style>
<body>
<div class="contenido">
<div id="b1" class="boton">Dialogo modal</div>
<div id="b2" class="boton">Dialogo no modal</div>
<div id="b3" class="boton">Otra animación</div>
<div id="dialogo" class="ventana" title="Dialogo Modal">
<div id="chart_div"></div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){ <!-- --------> ejecuta el script jquery cuando el documento ha terminado de cargarse -->
$("#b1").click(function() { <!-- ------> al pulsar (.click) el boton 1 (#b1) -->
$("#dialogo").dialog({ <!-- ------> muestra la ventana -->
width: 590, <!-- -------------> ancho de la ventana -->
height: 350,<!-- -------------> altura de la ventana -->
show: "scale", <!-- -----------> animación de la ventana al aparecer -->
hide: "scale", <!-- -----------> animación al cerrar la ventana -->
resizable: "false", <!-- ------> fija o redimensionable si ponemos este valor a "true" -->
position: "center",<!-- ------> posicion de la ventana en la pantalla (left, top, right...) -->
modal: "true" <!-- ------------> si esta en true bloquea el contenido de la web mientras la ventana esta activa (muy elegante) -->
});
});
$("#b2").click(function() {
$("#dialogo2").dialog({
width: 590,
height: 350,
show: "scale",
hide: "scale",
resizable: "false",
position: "center"
});
});
$("#b3").click(function() {
$("#dialogo3").dialog({
width: 590,
height: 350,
show: "blind",
hide: "shake",
resizable: "false",
position: "center"
});
});
});
</script>
</body>
</html>