JFreeChart axis label in Hours
问题 I have data e.g. (1,3600), (2,4400), ... (33,15000) Where in (1,3000) -> 1 is a number -> 3600 is seconds If put in chart, the axis would show the "second" as number. I have set a code to show axis label in 1 hour interval. // Create an NumberAxis NumberAxis xAxis = new NumberAxis(); xAxis.setTickUnit(new NumberTickUnit(3600)); // Assign it to the chart xyPlot.setDomainAxis(xAxis); So now the axis labels are: 0 ... 3600 ... 7200 ... 10.800 ... How to make the axis labels show in hours? (0 ...