chartspentahodashboardpentaho-design-studiopentaho-ctools

CCC BarChart - how to set a fixed value for Y axis dynamically?


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?


Solution

  • used post fetch:

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