First you need to add the image that you want on the baseAxisLabel, then you control its visibility by using visible attribute.
d.baseAxisLabel_add = function(event){
return new pv.Image()
.width(30).height(30) // comment for "stretch" effect .fillStyle("#def") .visible(function(event){ var str = event.atoms.category.label;console.log(str); if(str === 'Email'){ return true;} return false;}) .url("
http://vis.stanford.edu/protovis/ex/stanford.png"); }
Afterwards, you need to control the text displayed on the baseAxisLabel
d.baseAxisLabel_text = function(a){
var str = a.atoms.category.label;
if(str == 'Email'){
return '';}
return str;
};
I hope that this helps.
Thanks,
Joana