Closed skokenes closed 6 years ago
ah, thanks for noticing!
the key
property in this particular case is there primarily for the sake of consistency with when sending multiple hypercubes to a chart instance. It is used when identifying the origin of a field.
Use case: find the first measure with qMax > 100 :
const field = ds.field(f => f.type() === 'measure' && f.raw().qMax > 100);
console.log(field.id()); // qHyperCube/qMeasureInfo/2
Working through the q plugin docs at https://picassojs.com/docs/plugin-q.html and noticing some issues:
should say .use(picassoQ), not .use(pluginQ):
has qHyperCube misspelled. should say:
Also, the "key" string doesn't seem to matter, so not sure why it's needed at this point in time.