when defining a data point label for a stacked bar using dataPointLabelCreating binding, I'd like to access the height of current bar segment, to decide if I should set data.text to value or to empty string. Empty string would avoid overwritten numbers in case the stacked bar elements are not high enough:
[img]http://imgur.com/TASNWt4[/img]
$(document).bind('dataPointLabelCreating', function (event, data) {
console.log(JSON.stringify(data));
});
issues strings on javascript console like:
"type:'textBlock',x:46,y:608.5,width:7.7861328125,height:14,text:'5',font:'14px sans-serif',textBaseline:'middle',textAlign:'center',lineWidth:1,fillStyle:'white',shadowColor:'#cccccc',shadowBlur:8,shadowOffsetX:2,shadowOffsetY:2"
So I can only access height of text block, but not height of bar segment on which the number will be printed. How to hide data point label based on height of bar segment?