Page 1 of 1

--Using Diagrams

PostPosted: Sat Feb 26, 2011 2:00 pm
by Development@SIB


This article is outdated - please use our new system at

https://doc.sibvisions.com




JVx supports the integration of diagrams platform-independently.


Example

Inserting a diagram into an existing layout.

Code: Select all
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:

chart.png
chart.png (84.03 KiB) Viewed 9110 times