Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-1105

Change Target value Tooltip to "X% of target value"

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 2.0.0
    • None
    • frontend
    • None

      Currently, the target value tooltip shows something like "10% above target value" or "20% below target value". Instead, we should show "X% of target value"

      AT:

      • If actual value is below 1% of the target value, show "<1% of target value"
      • Otherwise show "${actual/target * 100}% of target value"
      • Values are rounded to full percentage points

        This is the controller panel for Smart Panels app

            [OPT-1105] Change Target value Tooltip to "X% of target value"

            Currently, <1% is only displayed if the value is actually below 0.5% as it is rounded before. I would suggest not rounding the value when assigning it to the relation variable and then rounding the relation variable when printing it in the template literal instead of performing the same operation again

            Sebastian Stamm added a comment - Currently, <1% is only displayed if the value is actually below 0.5% as it is rounded before. I would suggest not rounding the value when assigning it to the relation variable and then rounding the relation variable when printing it in the template literal instead of performing the same operation again

              Unassigned Unassigned
              sebastian.stamm Sebastian Stamm
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: