chartConfig.getTitle().setText("Atmosphere Temperature by Altitude");
chartConfig.getSubtitle().setText(
"According to the Standard Atmosphere Model");
NumberXAxis xAxis = new NumberXAxis();
xAxis.setReversed(false);
xAxis.setTitle(new AxisTitle("Altitude"));
xAxis.setLabel(new XAxisDataLabel());
xAxis.getLabel().setFormatterJsFunc(
"function() {" + " return this.value +'km';" + "}");
xAxis.setMaxPadding(0.05);
xAxis.setShowLastLabel(true);
LinkedHashSet<XAxis> xAxesSet = new LinkedHashSet<InvientChartsConfig.XAxis>();
xAxesSet.add(xAxis);
chartConfig.setXAxes(xAxesSet);
NumberYAxis yAxis = new NumberYAxis();