Java tutorial
//package com.java2s; import java.util.ArrayList; public class Main { public static ArrayList<String> getXAxisValues(int dataSize) { ArrayList<String> xAxis = new ArrayList<>(); for (int i = 0; i < dataSize; i++) { xAxis.add(String.valueOf(i + 1)); } return xAxis; } }