0

我正在传递这个网址

String urlForLineChart ="http://chart.apis.google.com/chart?" +
                "cht=lc&" +
                "chs=200x125&" +
                "chxl=0%3a|1|2|3|4|5|6|7|8|9|10&"+
                "chd=t:10,3,5,8,15,20&"+                                
                "chxt=x,y&"+
                "chds=0,50&"+
                "chxr=0,0,16%7C1,0,50&"+
                "chm=s,FF0000,1,0,5";

制作图表但不代表预期的结果,请帮助我。我不知道如何传递参数。我搜索了很多。


我正在做如下

WebView mCharView = (WebView) findViewById(R.id.char_view);
mCharView.loadUrl(urlForLineChart);
4

1 回答 1

1

您必须在 webview 中启用 Javascript:

 webview = (WebView) findViewById(R.id.webview);
 webview.getSettings().setJavaScriptEnabled(true);
于 2012-11-08T13:47:23.503 回答