{"absolute_url": "https://alexjosesilva.snipt.net/dois-graficos-google-charts-na-mesma-pagina/", "blog_post": true, "code": "\n \n \n \n \n \n \n\n\n\n
\n\n
\n \n", "created": "2016-06-15T23:24:34.556147", "description": "", "description_rendered": "", "embed_url": "https://snipt.net/embed/6276ec56547de0993c51673e40de736e/", "full_absolute_url": "https://alexjosesilva.snipt.net/dois-graficos-google-charts-na-mesma-pagina/", "id": 147206, "lexer": "html", "line_count": 55, "log_entries": [{"code": "\n \n \n \n \n \n \n\n\n\n
\n\n
\n \n", "created": "2016-06-15T23:24:34.576417", "diff": "--- \n+++ \n@@ -0,0 +1,55 @@\n+\n+ \n+ \n+ \n+ \n+ \n+ \n+\n+\n+\n+
\n+\n+
\n+ \n+", "user": "alexjosesilva"}], "meta": "", "modified": "2019-02-02T18:41:56.983536", "publish_date": "2016-06-15T23:25:31.688296", "raw_url": "/raw/6276ec56547de0993c51673e40de736e/", "resource_uri": "/api/public/snipt/147206/", "slug": "dois-graficos-google-charts-na-mesma-pagina", "stylized": "
 1\n 2\n 3\n 4\n 5\n 6\n 7\n 8\n 9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n31\n32\n33\n34\n35\n36\n37\n38\n39\n40\n41\n42\n43\n44\n45\n46\n47\n48\n49\n50\n51\n52\n53\n54\n55
<html>\n  <head>\n    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>\n    \n  </head>\n  <body>\n    \n<script type="text/javascript">\n      google.charts.load("current", {packages:["corechart"]});\n      google.charts.setOnLoadCallback(drawChart);\n      function drawChart() {\n        \n        var data1 = google.visualization.arrayToDataTable([\n          ['Task', 'Hours per Day'],\n          ['Work',     11],\n          ['Eat',      2],\n          ['Commute',  2],\n          ['Watch TV', 2],\n          ['Sleep',    7]\n        ]);\n\n         var data = google.visualization.arrayToDataTable([\n          ['Task', 'Hours per Day'],\n          ['Work',     11],\n          ['Eat',      2],\n          ['Commute',  2],\n          ['Watch TV', 2],\n          ['Sleep',    7]\n        ]);\n\n\n        var options1 = {\n          title: 'teste 1',\n          is3D: true,\n        };\n\n        var options = {\n          title: 'teste 2',\n          is3D: true,\n        };\n\n        var chart1 = new google.visualization.PieChart(document.getElementById('teste1'));\n        chart1.draw(data1, options1);\n\n        var chart1 = new google.visualization.PieChart(document.getElementById('teste'));\n        chart1.draw(data, options);\n      }\n    </script>\n\n\n   <div id="teste1" style="width: 600px; height: 300px;"></div>\n\n    <div id="teste" style="width: 600px; height: 300px;"></div>\n  </body>\n</html>\n
\n
", "tags": [{"absolute_url": "/public/tag/html/", "id": 67, "name": "html", "resource_uri": "/api/public/tag/67/", "snipts": "/api/public/snipt/?tag=67"}, {"absolute_url": "/public/tag/google-charts_1/", "id": 76405, "name": "google Charts", "resource_uri": "/api/public/tag/76405/", "snipts": "/api/public/snipt/?tag=76405"}], "title": "Dois gráficos Google Charts na mesma página", "user": {"absolute_url": "/alexjosesilva/", "email_md5": "aeee1adb46d99d6d54bb7b0d325a259f", "id": 18522, "resource_uri": "/api/public/user/18522/", "snipts": "/api/public/snipt/?user=18522", "snipts_count": 6, "username": "alexjosesilva"}}