Implementation of issue #5. Chart items now depend on the size of display.