Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Inverse Stoplights?

  1. #1
    Join Date
    Apr 2008
    Posts
    4,690

    Default Inverse Stoplights?

    I've been using the CDF-DD and have been impressed so far, but I want to do something different with the stoplights...

    The stoplights as included allow Red <= X < Yellow < Y <= Green
    Ie. If the value pulled in the query is <= X, it gives a red stoplight.
    . . If the value pulled in the query is between X and Y it gives a yellow stoplight.
    . . If the value pulled in the query is >= Y, it gives a green stoplight.

    What I want to do is:
    allow Green <= X < Yellow < Y <= Red
    Ie. If the value pulled in the query is <= X, it gives a green stoplight.
    . . If the value pulled in the query is between X and Y it gives a yellow stoplight.
    . . If the value pulled in the query is >= Y, it gives a red stoplight.

    Why would I want that?
    Think in terms of load-average or ping response times.
    Lower is better....

    Yes, I could multiply by -1 to get this working, **BUT** the value shows when you hover. How do you explain a -5ms ping response? or a -3.0 load average?

    Is it possible to get the CDF TrafficLight to do Inverse Stoplights?

  2. #2
    Join Date
    Jul 2007
    Posts
    2,498

    Default

    Yes, it is; It's actually quite simple, since you can pass an array of colors to it. Check the component reference.
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  3. #3
    Join Date
    Aug 2007
    Posts
    198

    Default

    Hi,
    even I am trying to explore cdf-dd, but I am facing lots of issues.

    When I am trying to save the template i am getting
    Saving File:sesdsd.cdfde
    01:10:18,687 ERROR [DashboardDesignerContentGenerator] java.lang.reflect.InvocationTargetException -
    null,

    Even save as Gui is not proper it is not showing me OK or Cancel button.

    Dont Know what I am missing. Please help me.

    Please help me
    Parveen

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.