public function withViews(callable $viewsDefinitionCallback)
    {
        $definition = new ChartViewDefinition($this->dataSource);
        $viewsDefinitionCallback($definition);
        $views = $definition->finalize();

        call_user_func($this->callback, new ChartDisplay($this->name, $this->dataSource, $views));
    }