This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

--Using Diagrams

Documents for the development of and with JVx.

--Using Diagrams

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



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

Return to Documentation