// set a background to let user see limits of the component
componentPanel.setBackground(new Color(Display.getCurrent(), 255, 175, 175));// PINK as in awt
// the ChartPanel
final Chart theComponent = new Chart(componentPanel, SWT.NONE);
theComponent.setLayoutData(new RowData(400, 400));
// mixed x and y values
Map<String, Object> data = new HashMap<String, Object>();
// double[] t1 = new double[] { -1, 7, 0, -5, 1, 5, 2, 9, 3, 12, 4, -10, 5, 23, 6, 15, 7, 10, 8, 19 };
// double[] t2 = new double[] { 1, 6, 2, -3, 3, 0, 4, 7, 5, 54, 6, 12, 7, 34, 8, 32, 9, 31, 10, 23 };
// data.put("first", t1);
// data.put("second", t2);
theComponent.setData(data);
// ----------
Group testPanel = getTestPanel(mainComposite, theComponent);
GridData testPanelGridData = new GridData();