Question

I'm using Pentaho's Community dashboard editor.I'm using barchart.

I need to assign the fixed value for y axis dynamically according to result set.

In pre execution:

function(){
this.chartDefinition.orthoFixedMax = 10;
}

but result set are only shown in post execution. how can I set fixed value for y axis dynamically?

Was it helpful?

Solution

used post fetch:

  function() {        
    var abc = render_LeadTimeLine.query.lastResults().resultset;
    //check result set & use 
    this.chartDefinition.orthoFixedMax = 10;

   }
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top