SimpleNumberSeries<Double> l2 = new SimpleNumberSeries<Double>(25d, 12.5d, 6.25d, 3.125d);
@SuppressWarnings("unchecked")
JQPlot chart4 = new JQPlot("chart4", new ListModel(Arrays.asList(l1, l2)));
PlotOptions chart4O = chart4.getOptions();
chart4O.getLegend().setShow(true);
chart4O.setTitle("Customized Axes Ticks");
chart4O.getGrid().setBackground("#f3f3f3").setGridLineColor("#accf9b");
PlotSeries chart4series1 = chart4O.addNewSeries();
chart4series1.setLabel("Rising line");
chart4series1.getMarkerOptions().setStyle(PlotMarkerStyle.square);
chart4O.addNewSeries().setLabel("Declining line");
PlotAxes chart4axes = chart4O.getAxes();
chart4axes.getXaxis().setTicks(
Arrays.asList(new PlotTick(0, "zero"), new PlotTick(1, "one"), new PlotTick(2, "two"),
new PlotTick(3, "three"), new PlotTick(4, "four"), new PlotTick(5, "five")));
chart4axes.getYaxis().setTicks(-5, 0, 5, 10, 15, 20, 25, 30).getTickOptions()