A chart size and position can be dynamically adjusted by using mouse to drag or resize. The following applet
displays two line series, and dragging is enabled. The same parameter is used to enable dragging and chart
resizing. To drag chart, move mouse cursor to any location within the chart area, click left button and drag.
A blue outlined rectangle is displayed to help select the new area the chart will be dropped on. After
moving the blue rectangle to the desired area, release mouse button, and the chart is repainted at the new
location.
To resize chart, it is necessary to toggle between dragging and resizing states. To toggle chart state,
double click mouse button at any location within the chart area, then proceed as explained above. While
in resizing state, the lower left corner of the outlined rectangle remains fixed, whereas its vertical and
horizontal dimensions changes.