如何在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>

  1. 我想以49英寸电视显示此饼图
  2. 我加载饼图时看起来很小
  3. 我们如何显示更大的饼图
  4. 它应该出现在中央

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)