Add initial support for legends, gradients.