Pentaho

 View Only

 Waterfall Customisation

  • Pentaho
  • Ctools
  • Pentaho
Andy Rathbone's profile image
Andy Rathbone posted 05-11-2018 08:08

I have a waterfall chart in my dashboard but I am stuck on a couple of things.  I'm sure they could be done, I just need pointing in the right direction.

  1. Is there a way to edit the value text so it only shows for one bar and hidden for all the rest?
  1. Is there a way to set the fill-opacity to 1 so the colours are not faded?

Thanks

Andy


#Pentaho
#Ctools
Duarte Cunha Leao's profile image
Duarte Cunha Leao

Hi Andy,

To only display a specific label you can use the following, in preExecution:

function() {   this.chartDefinition.label_visible = function(scene) {     return scene.getCategory() === "VisibleLabelCategoryValue";   }; }

To prevent that hovering bars makes then change opacity, you can do:

function() {   this.chartDefinition.bar_ibits = 0;   this.chartDefinition.bar_imask = "Hoverable"; }

Try it out!