English 中文(简体)
JFree图表时间序列
原标题:JFreeChart Time Series

我试图生成一个我拥有的价格数据集的时间序列。 所有的时间都以 po 6 时间保存, 所以在 1970 年之后 毫秒, 所以它们需要即时转换一个可以传递到 TimeSeries 的适当对象。 是否有任何特定对象可以用作构建参数 毫秒, 并且仍然提供诸如 day/ mon/ year 等信息, 有点像 Java. util. Date 类?

最佳回答

当您重新弹出您的 TimeSeries 时,您可以使用 adadd(RegularTimePeriod,number) 方法。

RegularTimePeriod 有几处实施,包括 Day Milliicon ,视数据结构而定。

这些都是jfreechart课程。

然而,我们发现,在我们的一些应用中,创建 TimeSeries of RegularTimePeriod TimeSeries 是内存效率低下的,因为你随后必须为您系列中的每个时间点创建一个新对象。 因此,我发现最好的方法是写出我们自己对 AbstrictXYDataset 的实施,我们可以添加我们自己的时间序列对象。我应补充的是,我们然后使用 chartFactory.CreateTimeSerieschart(...) ,在我们执行 AbstripXYDataset 的过程中通过。 这样做的优点是,为 x轴使用 dateAxexis

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签