chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

Add gauge graph option for dashboard cells

Open jaredscheib opened this issue 9 years ago • 2 comments

For presentations of dashboards, a gauge graph and other such visualization types are powerful and would be a great addition to Chronograf.

screen shot 2017-09-19 at 11 33 19 am

This was requested offline by a customer recently for use in presentations to upper management, for instance.

jaredscheib avatar Sep 19 '17 18:09 jaredscheib

This will need settings for min and max and three levels of thresholds.

nhaugo avatar Nov 17 '17 23:11 nhaugo

@goller added the backend for storing what we are calling cell "colors" via #2397

Here's my to-do list:

  • [x] Add component for gauge options (separate from axes options)
  • [x] Add Gauge option to visualization types
  • [x] Redesign visualization types to not distort on window resize and be scrollable on small screens #2053
  • [x] Show appropriate options based on cell visualization type
  • [x] Store colors as state in CellEditorOverlay
  • [x] Create add threshold function
    • [x] New threshold value does not already exist
  • [x] Create delete threshold function
  • [x] Create choose threshold color function
  • [x] Create change threshold value function
  • [x] Enforce max number of thresholds
  • [x] Sort thresholds from lowest to largest before rendering
  • [x] Refactor gauge canvas code to accept multiple thresholds
  • [x] Pass resizer top height into gauge cell to ensure sharp rendering
  • [x] Wire up saving and loading of cell colors
  • [x] Prevent user from entering erroneous gauge values
    • [x] min is always the lowest number
    • [x] max is always the highest number
    • [x] thresholds must be between min & max
    • [x] thresholds must have unique values
  • [x] Gauge can handle floats

Icing on cake:

  • [ ] Animate position of gauge ticker
  • [ ] Make gauge responsive to super wide or super tall cell dimensions

alexpaxton avatar Nov 21 '17 19:11 alexpaxton