public static EnumerableDataSource <double> AsXDataSource(this IEnumerable <double> collection, double scale)
        {
            EnumerableXDataSource <double> ds = new EnumerableXDataSource <double>(collection);

            ds.SetXMapping(x => x * scale);
            return(ds);
        }
        public static EnumerableDataSource <float> AsXDataSource(this IEnumerable <float> collection)
        {
            EnumerableXDataSource <float> ds = new EnumerableXDataSource <float>(collection);

            ds.SetXMapping(f => (double)f);
            return(ds);
        }