Evolution #1516
closed
Indicator - do not allow gauge viz if max value == threshold value
Added by Simon about 1 year ago.
Updated about 1 year ago.
Description
do not allow gauge viz if max value == threshold value because :
- it will generate DivisionByZeroError
- because visually it can be at the middle / end of the gauge
[06-Oct-2023 09:14:44 Europe/Madrid] PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in /homepages/1/d148916023/htdocs/linea21-pcpf/dashboard/common.php:180
Stack trace:
#0 /homepages/1/xxx/htdocs/linea21-/dashboard/common.php(257): getPositionfromValue()
#1 /homepages/1/xxx/htdocs/linea21-/dashboard/common.php(497): getGaugeViz()
#2 /homepages/1/xxx/htdocs/linea21-/dashboard/display.php(87): getViz()
#3 /homepages/1/xxx/htdocs/linea21-/public/dist/tpl_dashboard.php(88): DisplayListValuesByLevelsAlt()
#4 /homepages/1/xxx/htdocs/linea21-/lib/lib_common.php(1179): include_once('/homepages/1/d1...')
#5 /homepages/1/xxx/htdocs/linea21-/lib/items.php(167): distInclude()
#6 /homepages/1/xxx/htdocs/linea21-/templates/public/PCPF-2022/index.php(75): DisplayTemplate()
#7 /homepages/1/xxx/htdocs/linea21-/public/index.php(89): include_once('/homepages/1/d1...')
#8 {main}
thrown in /homepages/1/xxx/htdocs/linea21/dashboard/common.php on line 180
- Related to Evolution #1523: Indicators - eventually, implement javascript validation on min / max / threshold values added
- Status changed from Nouveau to Fermé
- % Done changed from 0 to 100
Also available in: Atom
PDF