JFreeChart: X Axis contains time stamps

后端 未结 1 1977
Happy的楠姐
Happy的楠姐 2020-11-29 13:36

I need to change this code in such a way that X Axis contains time stamps in the format \"H:M\", e.g. 10:00.

private static XYDataset createCategoryDataset(M         


        
相关标签:
1条回答
  • 2020-11-29 14:19

    Use setDateFormatOverride() on the axis with a suitable DateFormat:

    axis.setDateFormatOverride(new SimpleDateFormat("HH:mm"));
    
    0 讨论(0)
提交回复
热议问题