src/app/pages/marvin/gaugeDetail/gaugeDetail.js
// Generate random values for the gauge
Generate random values for the gauge
Generate random values for the gauge
function random() {
                            let value = Math.floor(Math.random() * maxValue * 0.4) + maxValue * 0.8;
                            chart.arrows[0].setValue(value);
                            chart.axes[0].setTopText(Math.round(value).toLocaleString('en-us') + " kW/h");
                        }
function random ( ) { let value = Math . floor ( Math . random ( ) * maxValue * 0.4 ) + maxValue * 0.8 ; chart . arrows [ 0 ] . setValue ( value ) ; chart . axes [ 0 ] . setTopText ( Math . round ( value ) . toLocaleString ( 'en-us' ) + " kW/h" ) ; }
Generate random values for the gauge
Generate random values for the gauge