int id = getUniqueId(direction);
Axis axis = new Axis(id, direction, chart);
getAxisMap(direction).put(id, axis);
chart.updateLayout();
SeriesSet series = (SeriesSet) chart.getSeriesSet();
if (series != null) {
series.compressAllSeries();
}
return id;
}