0
我正在使用phonegap构建我的app.I使用flot创建图表。 这里是我的javascript代码如何在android中设置条形图的设备高度和宽度
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="flot/jquery.js"></script>
<script type="text/javascript" src="flot/jquery.flot.js"></script>
<script type="text/javascript" src="flot/jquery.flot.stack.js"></script>
<script type="text/javascript" src="flot/jquery.flot.pie.js"></script>
</head>
<body>
<div id="pie-example" style="width:300px;height:200px;"></div>
<script type="text/javascript" src="pie_chart.js"></script>
</body>
</html>
在这段代码我给graph.I想给设备的高度和width.How做到这一点的酒吧的宽度和高度?
你能更具体吗?你想给条形图提供与设备相同的尺寸吗?我现在有同样的问题http://stackoverflow.com/questions/9895663/flot-on-android-how-to-fit-the-screen-size – Yang 2012-03-28 00:22:44