JFreeChart:我想显示一些类别值..不是全部
我英语写得不好,因为我不是母语人士。
我的问题是这样的:我正在努力将时间序列显示为条形图。我想要一个像 XYBarChartDemo1.java
这样的图表,它结合了 BarChart
和 XYPlot
的各个方面。特别是,我希望图表的_x_轴使用
小时而不是
年显示时间。例如,图表的类别必须显示该值,例如 13:00、14:00、15:00(以 1 小时为间隔)。我怎样才能做到这一点?
I cannot write English very well, because I'm not a native.
My problem is this: I'm working to display a time series as a bar chart. I want a chart like the XYBarChartDemo1.java
that combines aspects of BarChart
and XYPlot
. Especially, I want that the charts _x_-axis shows time using
Hour, not
Year. For example, the chart
s category has to show that value like 13:00, 14:00, 15:00 (at 1 hour intervals). How can I make that work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来你想要
ChartFactory.createXYBarChart()
。对于每小时数据,请使用Hour
作为RegularTimePeriod
,如此处 使用Day
。It sounds like you want
ChartFactory.createXYBarChart()
. For hourly data, useHour
for yourRegularTimePeriod
, as shown here usingDay
.