Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 693 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 693 Bytes

D3 Chart widgets for RAP

Experimental chart widgets for RAP using the d3 library.

You can see the demo online.

Synopsis

There's an abstract base class Chart with subtypes for different chart types like PieChart, BarChart etc. Data is added as separate ChartItems, each with its value, color, text, etc.

Example:

PieChart pieChart = new PieChart( composite, SWT.NONE );
pieChart.setInnerRadius( 0.6f );

ChartItem item1 = new ChartItem( pieChart );
item1.setText( "Firefox" );
item1.setColor( colors.get( 0 ) );
item1.setValue( 23 );