0

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?

mzy
  • 1,754
  • 2
  • 20
  • 36
ANonmous Change
  • 798
  • 3
  • 10
  • 32

1 Answers1

1

used post fetch:

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

   }
ANonmous Change
  • 798
  • 3
  • 10
  • 32