chronograf
chronograf copied to clipboard
Add gauge graph option for dashboard cells
For presentations of dashboards, a gauge graph and other such visualization types are powerful and would be a great addition to Chronograf.
This was requested offline by a customer recently for use in presentations to upper management, for instance.
This will need settings for min and max and three levels of thresholds.
@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
Gaugeoption 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
colorsas state inCellEditorOverlay - [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]
minis always the lowest number - [x]
maxis always the highest number - [x] thresholds must be between
min&max - [x] thresholds must have unique values
- [x]
- [x] Gauge can handle floats
Icing on cake:
- [ ] Animate position of gauge ticker
- [ ] Make gauge responsive to super wide or super tall cell dimensions