auto aes = Aes!(double[], "x", double[], "y", string[], "colour")([1.0, 2.0, 1.1, 3.0], [3.0, 1.5, 1.1, 1.8], ["a", "b", "a", "b"]); auto gl = geomLine(aes); import std.range : empty; assertEqual(gl.front.xStore.min(), 1.0); assertEqual(gl.front.xStore.max(), 1.1); gl.popFront; assertEqual(gl.front.xStore.max(), 3.0); gl.popFront; assert(gl.empty);
Create lines from data