且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在JFreeChart中结合XYPlot和TimeSeries元素

更新时间:2023-11-21 21:48:46

您需要组合多个元素以获得所需的效果:

You'll need to combine several elements to get the desired effect:

使用 作为域轴,如此处所示.

Use a DateAxis for the domain axis, as shown here.

在域轴上使用setDateFormatOverride()来应用您的SimpleDateFormat.

Use setDateFormatOverride() on the domain axis to apply your SimpleDateFormat.

使用 作为范围轴,以用符号替换整数值,如此处

Use a SymbolAxis for the range axis to replace integer values with your symbols, as shown here and here.