我从我的数据库(PostgreSQL)获取日期:
LineAndPointFormatter formatter = new LineAndPointFormatter();
formatter.setPointLabeler(new PointLabeler() {
@Override
public String getLabel(XYSeries series, int index) {
// your code here
}
});
但是当我使用它们时,它们没有被分类:
mapping{
"logged_at.hour": {"column":"logged_at", "extract":"hour"},
"logged_at.month": {"column":"logged_at", "extract":"month"},
"logged_at.day": {"column":"logged_at", "extract":"day"},
}