JFree TimeSeries图表跨越纳秒 [英] JFree TimeSeries Chart Spanning Nanoseconds

查看:160
本文介绍了JFree TimeSeries图表跨越纳秒的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须绘制TimeSeries图表,其中数据以纳秒为单位。但是,在我当前的实现中,我们的日期轴范围是毫秒。

I have to plot TimeSeries chart where the data is coming in nanoseconds. But, In my current implementation our date axis range is in Milliseconds.

所以我如何将日期轴范围从毫秒更改为纳秒。

谢谢。 :)

推荐答案

这是我在您的帖子在JFreeChart论坛中:

This is the answer I gave on your post in the JFreeChart forum:


DateAxis不会为您提供毫秒以下的精度,因为
的底线是与java.util.Date一起使用的(仅提供
毫秒精度)。我认为创建一个可以处理纳秒级的ValueAxis子类不会有任何障碍
,但是
目前没有实现它。

The DateAxis won't give you precision below milliseconds, because under the covers it is working with java.util.Date (which provides only millisecond precision). I don't think there would be any obstacle to creating a ValueAxis subclass that could handle nano-seconds, but there is no implementation of that at present.

这篇关于JFree TimeSeries图表跨越纳秒的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆