Hey there,
I hope you can help me, I've posted this question on github, bun got no answer for 4 weeks or so.
My plan is to build my own 3D/4D visualization, 3 dimensions to be choosen as the space koordinates and a fourth one for colouring. My basis is the area3D_vis visualization from github (https://github.com/JuanCarniglia/area3d_vis) and I want to set the colour dimension by myself.
What I did is: Extend the buckets by the z dimension:
{
group: 'buckets',
name: 'split',
title: 'Z Dimension',
aggFilter: ['terms',
'significant_terms',
'filters',
'date_range',
'histogram',
'date_histogram',
'range'
]
}
just like the dimensions where defined - this works, I can choose it in kibana.
And the metric can be choosen separately.
The response table looks fine, too.
The js code for handling the response is
_.map(resp.aggregations, function (xElementRoot) {
if (xElementRoot !== null) {
_.map(xElementRoot.buckets, function (xElement) {
if (xElement !== null) {
x = parseInt(xElement.key);
fiberX++;
_.map(xElement[3].buckets, function (yElementBucket) {
y = parseInt(yElementBucket.key);
fiberY++;
_.map(xElement[4].buckets, function (zElementBucket) {
z = parseInt(zElementBucket.key);
fiberZ++;
if (zElementBucket.hasOwnProperty('1')) {
z = parseInt(zElementBucket[1].value);
} else {
z = zElementBucket.doc_count;
}
data.add({
id: counter++,
x: x,
y: parseInt(yElementBucket.key),
z: z,
style: z
});
});
});
}
});
}
});
And there's the rub I think: the _.map() function provided by vis.js
Has anyone experience with vis.js or even the area3d_vis visualization?
Thanks so far,
Markus
There was a Kibana issue/feature request on github a few... few more days ago:
Anyone?
Kind regards,
Markus