]> ToastFreeware Gitweb - chrisu/seepark.git/blobdiff - web/static/seepark_web.js
add temperature regions with colour coding
[chrisu/seepark.git] / web / static / seepark_web.js
index 149d659b637b4c85d53fbebecf2a091c795a6666..93f5d4967cd0526b2bb364d81852e31b6160e51b 100644 (file)
@@ -60,6 +60,12 @@ var chart = c3.generate({
                y: {
                        show: true
                }
-       }
+       },
+       regions: [
+               {axis: 'y', start: -999, end:   0, class: 'region-frozen'},
+               {axis: 'y', start:    1, end:  25, class: 'region-ok'},
+               {axis: 'y', start:   26, end:  99, class: 'region-warm'},
+               {axis: 'y', start:   99, end: 999, class: 'region-boiling'}
+       ]
 });