Currently to use Arquero, you say:
Plot.plot({
marks: [
Plot.tickX(table.indices(), {y: table.column("age"), x: table.column("percent")})
]
})
But with a little magic, we could support shorthand for Arquero, treating it like an array of objects:
Plot.plot({
marks: [
Plot.tickX(table, {y: "age", x: "percent"})
]
})
Specifically:
- If data is an Arquero table, then data is data.indices().
- If data is an Arquero table, then field names are interpreted as data.column(field).
Currently to use Arquero, you say:
But with a little magic, we could support shorthand for Arquero, treating it like an array of objects:
Specifically: