text: var w = document.getElementById('chart').offsetWidth,
      h = window.innerHeight -70;
  var colorscale = d3.scale.category10();
  var data = [
  [
  {axis:"SECURE RANDOM (256B)",value:0.996,title:"1.28 ms"},
  {axis:"SHA-1 hash (256B)",value:0.917,title:"5.73 ms"},
  {axis:"SHA2-256 hash (256B)",value:0.933,title:"8.54 ms"},
  {axis:"AES128 encrypt (256B)",value:0.981,title:"1.95 ms"},
  {axis:"AES256 encrypt (256B)",value:0.985,title:"2.01 ms"},
  {axis:"3DES encrypt (256B)",value:0.990,title:"1.98 ms"},
  {axis:"3DES setKey(192b)",value:0.929,title:"3.51 ms"},
  {axis:"AES setKey(128b)",value:0.929,title:"3.48 ms"},
  {axis:"AES setKey(256b)",value:0.929,title:"3.52 ms"},
  {axis:"SWAES oneblock (16B)",value:0.927,title:"173.22 ms"},
  {axis:" arrayCopy nonAtomic RAM2RAM (256B)",value:0.973,title:"0.17 ms"},
  {axis:" arrayCopy nonAtomic EEPROM2EEPROM (256B)",value:0.861,title:"5.86 ms"},
  {axis:"ECC 256b genKeyPair",value:0.972,title:"26.25 ms"},
  {axis:"ECDSA 256b sign",value:0.796,title:"33.06 ms"},
  {axis:"ECDSA 256b verify",value:0.867,title:"31.28 ms"},
  {axis:"ECDH 256b",value:0.896,title:"21.58 ms"},
  {axis:"RSA1024 CRT decrypt",value:0.963,title:"16.34 ms"},
  {axis:"RSA1024 CRT encrypt",value:0.929,title:"2.83 ms"},
  {axis:"RSA2048 CRT decrypt",value:0.969,title:"54.8 ms"},
  {axis:"RSA2048 CRT encrypt",value:0.947,title:"4.33 ms"},
  {axis:"RSA1024 decrypt",value:0.941,title:"28.1 ms"},
  {axis:"RSA1024 encrypt",value:0.929,title:"2.84 ms"},
  {axis:"RSA2048 decrypt",value:0.955,title:"146.53 ms"},
  {axis:"RSA2048 encrypt",value:0.947,title:"4.32 ms"},
  ],
  [
  {axis:"SECURE RANDOM (256B)",value:0.948,title:"18.71 ms"},
  {axis:"SHA-1 hash (256B)",value:0.349,title:"45.1 ms"},
  {axis:"SHA2-256 hash (256B)",value:0.460,title:"68.5 ms"},
  {axis:"AES128 encrypt (256B)",value:0.930,title:"7.13 ms"},
  {axis:"AES256 encrypt (256B)",value:0.938,title:"8.07 ms"},
  {axis:"3DES encrypt (256B)",value:0.971,title:"5.88 ms"},
  {axis:"3DES setKey(192b)",value:0.334,title:"33.07 ms"},
  {axis:"AES setKey(128b)",value:0.362,title:"31.21 ms"},
  {axis:"AES setKey(256b)",value:0.307,title:"34.31 ms"},
  {axis:"SWAES oneblock (16B)",value:0.710,title:"688.85 ms"},
  {axis:" arrayCopy nonAtomic RAM2RAM (256B)",value:0.908,title:"0.59 ms"},
  {axis:" arrayCopy nonAtomic EEPROM2EEPROM (256B)",value:0.986,title:"0.58 ms"},
  {axis:"ECC 256b genKeyPair",value:1.768,title:"-732.8 ms"},
  {axis:"ECDSA 256b sign",value:0.637,title:"58.84 ms"},
  {axis:"ECDSA 256b verify",value:0.725,title:"64.66 ms"},
  {axis:"ECDH 256b",value:0.967,title:"6.84 ms"},
  {axis:"RSA1024 CRT decrypt",value:0.807,title:"85.1 ms"},
  {axis:"RSA1024 CRT encrypt",value:1.450,title:"-18.05 ms"},
  {axis:"RSA2048 CRT decrypt",value:0.885,title:"200.2 ms"},
  {axis:"RSA2048 CRT encrypt",value:1.201,title:"-16.56 ms"},
  {axis:"RSA1024 decrypt",value:0.507,title:"236.4 ms"},
  {axis:"RSA1024 encrypt",value:1.327,title:"-13.09 ms"},
  {axis:"RSA2048 decrypt",value:0.828,title:"557.93 ms"},
  {axis:"RSA2048 encrypt",value:1.119,title:"-9.82 ms"},
  ],
  ];
  
  var config = { w: w-175,
   h: h-175,
   maxValue: 1.0,
   levels: 10,
   }
  
  RadarChart.draw("#chart", data, config);