public function useLegend(LegendInterface $legend)
    {
        if ($this->legend) {
            $this->finishLegend();
        }

        $event = new UseLegendEvent($legend, $this);
        $this->dispatchEvent($event);
        $this->legend = $legend;

        return $this;
    }