1

在我的项目中,我使用了 achartengine 的散点图,但我无法点击点,所以现在我想使用 AndroidPlot 的散点图,我们如何实现 AndroidPlot 库的散点图?

我在下面使用过,但我没有得到散点图样本的样本。 http://androidplot.com/ http://homepages.ius.edu/RWISMAN/C490/html/Android-Plot.htm

谢谢

4

1 回答 1

1

散点图基本上只是一个 XY 图表,其中的点不是由线连接的。AndroidPlot 使用格式化程序来存储有关如何显示系列的信息。在这种情况下,您将使用不绘制线段的 LineAndPointFormatter。例如,您将如何实例化一个仅绘制红点的实例:

// passing null as the line color disables lines    
LineAndPointFormatter lpf = new LineAndPointFormatter(null, Color.RED, null, null)
于 2014-04-17T18:45:54.117 回答