extracting a SwingChart to ease the use of CanvasSwing (although deprecated)