public static EnumerableDataSource <double> AsXDataSource(this IEnumerable <double> collection) { EnumerableXDataSource <double> ds = new EnumerableXDataSource <double>(collection); ds.SetXMapping(x => x); 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); }