public XElement Serialize(ScatterPlot scatterPlot)
        {
            var xScatterPlot = new XElement(ScatterPlotTag);

            AddProperty(xScatterPlot, ExtentTag, scatterPlot.GetViewExtent());

            var xLayout = _layoutSerializer.Serialize(scatterPlot.GetLayout());

            xScatterPlot.Add(xLayout);

            return(xScatterPlot);
        }