Using Diagrams

Documents for the development of and with JVx.

Using Diagrams

Postby Development@SIB » Sat Feb 26, 2011 2:00 pm

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 2399 times
User avatar
Development@SIB
 
Posts: 311
Joined: Mon Sep 28, 2009 1:54 pm

Return to Documentation