時間 (時間) が x 軸にあり、値が y 軸にある時間と値のグラフをプロットしたいと考えています。これを行うライブラリはありますか?achartengine
http://wptrafficanalyzer.in/blog/android-drawing-time-chart-with-timeseries-in-achartengine/を使用してみましたが、あまり役に立ちませんでした。
質問する
7240 次
1 に答える
5
これを行うためにGraphViewを使用できます。
http://www.jjoe64.com/p/graphview-library.html
https://github.com/jjoe64/GraphView
を使用する必要がありますCustom label formatter
。X 値が DateTime として表示される例があります。
GraphView graphView = new LineGraphView(this, "example") {
@Override
protected String formatLabel(double value, boolean isValueX) {
if (isValueX) {
// convert unix time to human time
return dateTimeFormatter.format(new Date((long) value*1000));
} else return super.formatLabel(value, isValueX); // let the y-value be normal-formatted
}
};
これを目的に合わせて簡単に変更できるはずです。
于 2013-06-06T10:19:20.800 に答える