如何解决如何在49英寸LED电视中显示更大的Google图表
<!DOCTYPE html>
<html lang="en-US">
<body>
<h1>My Web Page</h1>
<div id="piechart"></div>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
// Load google charts
google.charts.load('current',{'packages':['corechart']});
google.charts.setOnLoadCallback(drawChart);
// Draw the chart and set the chart values
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Task','Hours per Day'],['Work',8],['Eat',2],['TV',4],['Gym',['Sleep',8]
]);
// Optional; add a title and set the width and height of the chart
var options = {'title':'My Average Day','width':550,'height':400};
// Display the chart inside the <div> element with id="piechart"
var chart = new google.visualization.PieChart(document.getElementById('piechart'));
chart.draw(data,options);
}
</script>
</body>
</html>
- 我想以49英寸电视显示此饼图
- 我加载饼图时看起来很小
- 我们如何显示更大的饼图
- 它应该出现在中央
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。