how can I implement a XYLine jfreechart in java

 ̄綄美尐妖づ 提交于 2019-11-29 16:25:48

You might look at JDBCXYDataset, which can detect a time series based on metadata. As noted in the API, "The first column will be the x-axis and remaining columns y-axis values." Click on the class name to see the corresponding source, for example.

Addendum: If you don't want to use JDBCXYDataset directly with a JDBC query, it may be a useful outline of how to extend AbstractXYDataset to create a dataset based on a corresponding JPA query.

class JpaXYDtaset extends AbstractXYDataset {
    // implement required methods using JPA query results
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!