public ChartSeriesCreator(List <double> arguments, List <double> values)
        {
            var collectionConverter = new CollectionTypeConverter();

            _arguments = collectionConverter.ConvertListToStringListCollection(arguments);
            _values    = collectionConverter.ConvertListToChartValuesCollection(values);
        }
        public CartesianChart FormateTheChart(CartesianChart cartesianChart, List <double> seriesArguments, string AxisXTitle, string AxisYTitle)
        {
            var collectionConverter = new CollectionTypeConverter();
            var arguments           = collectionConverter.ConvertListToStringListCollection(seriesArguments);

            cartesianChart.AxisX.Add(new Axis
            {
                Title          = AxisXTitle,
                LabelFormatter = value => value.ToString("N"),
                Labels         = arguments,
                ShowLabels     = true
            });

            cartesianChart.AxisY.Add(new Axis
            {
                Title          = AxisYTitle,
                LabelFormatter = value => value.ToString("N")
            });

            cartesianChart.LegendLocation = LegendLocation.Right;

            return(cartesianChart);
        }