grafana/docs/sources/panels-visualizations
Drew Slobodnjak b166bdc3fc
Stat: Add Percent Change Option (#78250)
* Stat: Add Percent Change Option

* Ensure div style only applied for percent change

* Add metrics section to gdev

* Apply new style and fix nan truthy

* Handle no text case properly

* Only display percent change with value

* Improve styling

* Remove VizOrientation dep and improve styling

* Display percent change for text mode name

* Add check for undefined percentChange

* Don't show percent change option for all values

* Make metric alignment more robust

* Make percent change column case tighter

Check undefined directly to avoid truthy issues

* Simplify percentChange calculation

* Add documentation for show percent change

* Add tests for percent change

* Refactor big value and pull out percent change

* minor changes

* initial approach at addressing setting % change colors to be conventional (not super happy with handling of contrast)

* Clean up initial color change approach (no need to handle 0 case as is handled as NaN currently

* Update shadow styling and include icon

* Update docs/sources/panels-visualizations/visualizations/stat/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Stat: Add Percent Change Option (refactor and color exploration)  (#79504)

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>

* some missed cleanup :D

* update percent change to show to not be tied to text value; update docs accordingly

* initial start for fixing scaling of % change for no text mode

* Fix styling for case where textmode is none

* Tweak styling a bit for icon and minimum padding

* Apply flex wrap to container styles

* Update gdev for stat panel tests

* attempt at fixing horizontal percent change styling / placement

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-12-15 16:15:31 -08:00
..
configure-data-links Docs: add/update frontmatter descriptions for panel config pages (#79412) 2023-12-13 16:24:26 -05:00
configure-legend Docs: add/update frontmatter descriptions for panel config pages (#79412) 2023-12-13 16:24:26 -05:00
configure-overrides Docs: add/update frontmatter descriptions for panel config pages (#79412) 2023-12-13 16:24:26 -05:00
configure-panel-options Docs: add/update frontmatter descriptions for panel config pages (#79412) 2023-12-13 16:24:26 -05:00
configure-standard-options Docs: add/update frontmatter descriptions for panel config pages (#79412) 2023-12-13 16:24:26 -05:00
configure-thresholds Docs: add/update frontmatter descriptions for panel config pages (#79412) 2023-12-13 16:24:26 -05:00
configure-value-mappings Docs: add/update frontmatter descriptions for panel config pages (#79412) 2023-12-13 16:24:26 -05:00
panel-editor-overview Docs: add/update frontmatter descriptions for panel config pages (#79412) 2023-12-13 16:24:26 -05:00
panel-inspector Docs: add/update frontmatter descriptions for panel config pages (#79412) 2023-12-13 16:24:26 -05:00
query-transform-data Transformations: Move formatString transformation to private preview (#79498) 2023-12-15 11:27:01 +01:00
visualizations Stat: Add Percent Change Option (#78250) 2023-12-15 16:15:31 -08:00
_index.md Docs: add/update frontmatter descriptions for panel config pages (#79412) 2023-12-13 16:24:26 -05:00