Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Changing Chart Color On Clicking Another Chart In Dashbaord

  1. #1
    Join Date
    Oct 2009
    Posts
    156

    Default Changing Chart Color On Clicking Another Chart In Dashbaord

    Hello,

    I am stuck, the issue i am facing is i just installed CDA, CDF, CDE in Penatho 4.5 EE. I am not able to run CDE. I has successfully installed CDF,CDA,CDE but the editor is not visible.
    The other issue is i am creating a dashboard with a pie chart and bar chart. I have four regions on my pie chart with different colors. If user clicks on one region with blue color, the bar chart should display all bars in blue color.

    Thanks

  2. #2
    Join Date
    Nov 2005
    Posts
    164

    Default

    Not sure what the installation issue is. I just ran the latest installer.sh, and it worked fine for me. I also just figured out the charting issue with the help of a couple of posts, so I'll put it all together here:

    1. Configure a generic parameter, PARAMNAME.

    2. Configure the first chart with a Click Action:

    function(a,b,c){
    Dashboards.fireChange('PARAMNAME',b);
    }

    3. Assuming the second chart's query is listening for PARAMNAME, add a Post Execution function:

    function f(){
    var bar = this.chart.barChartPanel.pvBar;
    switch (PARAMNAME) {
    case "CASE1" :
    bar.fillStyle("red");
    break;
    case "CASE2" :
    bar.fillStyle("blue");
    break;
    }
    bar.root.render();
    }

  3. #3
    Join Date
    Oct 2009
    Posts
    156

    Default

    Thanks Bhagan,

    I will try your way.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.