IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 11, 2025, 12:59:29 PM (10 months ago)
Author:
cclin33
Message:

update czartool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/raw/czartool_labels.php

    r42922 r42923  
    18271827    $start = microtime(true);
    18281828
    1829     echo "<script type=\"text/javascript\" src=\"loader.js\"></script>";
    1830     echo "<br><div class=\"chartWithOverlay\" style=\"position: relative; width: 100%\">";
    1831     echo "  <div id=\"disk_div\" style=\"width:100%; height:5000px\"></div>";
    1832     echo "  <div class=\"overlay\" style=\"position: absolute; width: 100px; top: 50px; right: 20px;\">";
    1833     echo "    <div style=\"font-size: 12px; height: 14px; border: 1px solid; background-color: lightgreen\"><center>Free</div>";
    1834     echo "    <div style=\"font-size: 12px; height: 14px; border: 1px solid; background-color: yellow\"><center>Used</div>";
    1835     echo "    <div style=\"font-size: 12px; height: 14px; border: 1px solid; background-color: pink\"><center>> 97% limit</div>";
    1836     echo "    <div style=\"font-size: 12px; height: 14px; border: 1px solid; background-color: lightgrey\"><center>Down | Repair</div>";
    1837     echo "    <div style=\"font-size: 12px; height: 14px; border: 1px solid; background-color: white\"><center>Offline</div>";
    1838     echo "  </div>";
    1839     echo "</div>";
    18401829
    18411830    // Set environment variables
     
    19431932                    legend: { position: 'none', alignment: 'end', maxLines: 3 },
    19441933                    hAxis: { title: 'Space (TB)', gridlines: {count: 20} },
    1945                     vAxis: { textStyle: {fontSize: 14}, format: 'string',  textPosition: 'in', direction: 1},
     1934                    vAxis: { textStyle: {fontSize: 15}, format: 'string',  textPosition: 'in', direction: 1},
    19461935                    bar: { groupWidth: '95%' },
    19471936                    chartArea: {left:40, top:50, right:20, bottom:40},
     
    19551944            }
    19561945          </script>";
     1946
     1947echo "<script type='text/javascript' src='loader.js'></script>
     1948<br>
     1949<div class='chartWithOverlay' style='position: relative; width: 100%'>
     1950
     1951    <div id='disk_div' style='width:100%; height:5000px'></div>
     1952
     1953    <div class='overlay' style='position: absolute; width:160px; top:50px; right:30px; font-family:Arial, sans-serif;'>
     1954
     1955      <div style='font-size:15px; border:1px solid #888; background-color:lightgreen; color:black; text-align:center; margin-bottom:1px;'>Free</div>
     1956      <div style='font-size:15px; border:1px solid #888; background-color:yellow    ; color:black; text-align:center; margin-bottom:1px;'>Used</div>
     1957      <div style='font-size:15px; border:1px solid #888; background-color:pink      ; color:black; text-align:center; margin-bottom:1px;'>97% Usage</div>
     1958      <div style='font-size:15px; border:1px solid #888; background-color:lightgrey ; color:black; text-align:center; margin-bottom:1px;'>Down/Repair</div>
     1959      <div style='font-size:15px; border:1px solid #888; background-color:white     ; color:black; text-align:center; margin-bottom:1px;'>Offline</div>
     1960      <div style='font-size:15px; border:1px solid #888; background-color:#42a5f5   ; color:white; text-align:center; margin-bottom:1px;'>
     1961        <a href='https://atrcganglia.ifa.hawaii.edu/' target='_blank' style='text-decoration:none; color:white; font-weight:bold;'>ATRC ganglia</a>
     1962      </div>
     1963
     1964    </div>
     1965
     1966</div>";
    19571967
    19581968    $total_time = round(microtime(true) - $start, 3);
Note: See TracChangeset for help on using the changeset viewer.