Bedsore prevention mat

The air mattress that prevents patients from developing pressure ulcers (bedsores), thereby improving their quality of life (QOL), promoting their rehabilitation, and reducing the burden of caregivers when changing a patient’s body position. wiki

  1. Heatmap

Heatmap

  1. How to get started
       > npm install -g bower
       > bower install -g heatmap.js-amd
    
  1. Examples

  2. Coding
    • Javascript
     window.onload = function() {
       function generateRandomData(len) {
         var points = [];
         var max    = 0;
         var width  = 840;
         var height = 400;
         var len    = 200;
    
         while(len--) {
           var val = Math.floor(Math.random()*100);
           max = Math.max(max, val);
           var point = {
             x: Math.floor(Math.random()*width),
             y: Math.floor(Math.random()*height),
             value: val
           };
           points.push(point);
         }
         var data = {max:max, data: points};
         return data;
       }
       var heatmapInstance = h337.create({
         container: document.querySelector('.heatmap')
       });
       var data = generateRandomData(200);
       heatmapInstance.setData(data);
     }
    
    • Result
      heatmap
  3. Demo

© 2018. All rights reserved.

Powered by Hydejack v8.4.0