// Total expected panel size
leftPanel.setPreferredSize(new Dimension(140, 270));
// Chart Viewer
chartViewer1 = new ChartViewer();
chartViewer1.setBackground(new Color(255, 255, 255));
chartViewer1.setOpaque(true);
chartViewer1.setPreferredSize(new Dimension(616, 286));
chartViewer1.setHorizontalAlignment(SwingConstants.CENTER);
chartViewer1.addViewPortListener(new ViewPortAdapter() {