JVx supports the integration of diagrams platform-independently.
Inserting a diagram into an existing layout:
UIChart chart = new UIChart(); chart.setTitle("Chart Test"); chart.setXAxisTitle("Values"); chart.setYAxisTitle("Count"); chart.setChartStyle(UIChart.STYLE_LINES); chart.setDataBook(rdbContacts); chart.setXColumnName("ID"); chart.setYColumnNames(new String[] {"ID", "SALU_ID"}); add(chart);
The chart component can be used just like a simple UIPanel.
For example, the results could look as follows: