Normally you're passing an array of objects but I've been thinking about alternate setups where maybe you want to keep your data as separate typed arrays for x and y. You'd have something like
const xVector = new Uint32Array(data.map(d => d[xKey]));
const yVector = new Uint8Array(data.map(d => d[yKey]));
This is kind of a weird setup but I could see it possibly being useful for high-performance cases. Either way, seems potentially helpful to have the index in the accessory anway...
Normally you're passing an array of objects but I've been thinking about alternate setups where maybe you want to keep your data as separate typed arrays for x and y. You'd have something like
and then...
This is kind of a weird setup but I could see it possibly being useful for high-performance cases. Either way, seems potentially helpful to have the index in the accessory anway...