如何设置设备的高度和宽度在android系统的柱状图 [英] How to set device height and width for a bar chart in android

查看:424
本文介绍了如何设置设备的高度和宽度在android系统的柱状图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用PhoneGap的建立我app.I我使用海军报创建图表。
这里是我的javascript code

I am using phonegap to build my app.I am using flot to create charts. here is my javascript code

<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>

在此code我给graph.I想给设备的高度和width.How做到这一点的酒吧的宽度和高度?

In this code i am giving the width and height of the bar graph.I want to give device height and width.How to do that?

推荐答案

我知道了。我们必须这样设置视

I got it. We have to set the viewport like this

<meta name="viewport" content="width=default-width; user-scalable=no" />

这篇关于如何设置设备的高度和宽度在android系统的柱状图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆