implements title, legend widgets