Making cca legend resize, respond to color and variable events.