I am plotting points in three dimensional space and they appear just fine. However, when I try and apply labels to the points, only the first ~16 show.
It does not appear to be a problem with the information in my arrays as the data seems fine by inspection in debug, and I've also replaced the labels[i] look up with just using the index i that is given as the label.
I've loaded the "labels" examples and they appear to work just fine and there are far more labels being rendered there, so I am unsure as to why it doesn't work.
Ideas?
var points = []; //each concept will be listed here once
var labels = []; //each label will be listed here once.
/* Not shown here - Data is populated into the arrays for the points and their locations*/
// draw the points
view.array({
width: points.length,
items: 1,
channels: 3,
data: points,
live: false
}).point({
color: 0xff4444,
size: 20
})
.text({
font: 'Helvetica',
style: 'bold',
width: 20,
height: 5,
expr: function (emit, i) {
emit(
labels[i]
);
}
})
.label({
snap: false,
outline: 2,
size: 12,
offset: [0, -32],
depth: 0.5,
zIndex: 1
});