Sorting X Axis in Chart by the dates - JavaFX
问题 How to sort my LineChart X Axis by dates ? Now my LineChart looks like that I was trying to cut the dates and convert it to int, but now I don't know what to do with this... datesToCompare.addAll(LastHoursAndDates.keySet()); // dates in String eg. 2015-12-25 List<Integer> year = new ArrayList<Integer>(); // list for year after split List<Integer> month = new ArrayList<Integer>();// list for month after split List<Integer> days = new ArrayList<Integer>(); // list for days after split for(int i