I ma using jfreechart 1.0.19. I have create XYLineChart and added into SWT composite using below code:
Code: Select all
Composite chartComposite = new Composite(parent, SWT.EMBEDDED);
GridData gd_chartComposite = new GridData(SWT.FILL, SWT.FILL, true, true);
chartComposite.setLayoutData(gd_chartComposite);
Frame frame = SWT_AWT.new_Frame(chartComposite);
ChartPanel chartPanel = new ChartPanel(XYLineChart ,false);
frame.add(chartPanel);