Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: CCC Bullet Chart Click Action?

  1. #1
    Join Date
    Jul 2009
    Posts
    20

    Default CCC Bullet Chart Click Action?

    Is the click action implemented in CCC Bullet Charts? Has anyone used it? How?

  2. #2
    Join Date
    Mar 2012
    Posts
    645

    Default

    The click action property of the bullet chart, as well as other related ones, aren't exposed in CDE.
    To use them you have to specify them in JavaScript, in the post fetch event:

    // Activate clicking
    this.chartDefinition.clickable = true;

    // Specify the action handler for clicks (anywhere in the ranges and bullet box)
    this.chartDefinition.clickAction = function(title, subtitle, measures, ev){
    alert("title: " + title + " subtitle: " + subtitle + " measure: " + measures[0]);
    };

    // Specify the action handler for double-clicks in the title and subTitle labels
    this.chartDefinition.axisDoubleClickAction = function(d, ev){
    alert("title: " + d.title + " subtitle: " + d.subtitle + " measure: " + d.measures[0]);
    };

  3. #3
    Join Date
    Jul 2009
    Posts
    20

    Default

    Oh, so that's how you expose them. Thanks!

Tags for this Thread

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.