实际上,我已经尝试在我的应用程序中显示图表,我在jjoe64 developer博客中看到了图形视图,但是我不能understand.Any,请转发如何使用图形视图显示图表。
GraphViewSeries exampleSeries = new GraphViewSeries(new GraphViewData[] {
new GraphViewData(1, 2.0d)
, new GraphViewData(2, 1.5d)
, new GraphViewData(3, 2.5d)
, new GraphViewData(4, 1.0d)
});
GraphView graphView = new LineGraphView(
this // context
, "GraphViewDemo" // heading
);
graphView.addSeries(exampleSeries); // data
LinearLayout layout = (LinearLayout) findViewById(R.id.layout);
layout.addView(graphView); 发布于 2013-10-25 13:23:32
我最近在AndroidPlot库中为安卓系统的图形工作,必须说它非常有用。你可以检查一下这里
你会在那里找到解释如何绘制图表的例子。
发布于 2014-02-27 04:02:15
看起来您使用的是Android图形视图库。
首先,您应该阅读图形视图-演示中的代码。
https://stackoverflow.com/questions/19591055
复制相似问题