Advertisement
Guest User

Untitled

a guest
Apr 5th, 2017
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $("#heatmapCon input").keypress(function(e) {
  2.   //Enter pressed
  3.   if(e.which == 13) {
  4.     var value = $(this).val();
  5.     var heatmapOptions = {
  6.       height: years*140+30,
  7.       width: Math.max($('#heatmapCon').width(),900),
  8.       fontName: 'Roboto',
  9.       titleTextStyle: titleTextStyle,
  10.       colorAxis: {
  11.         minValue: 0,
  12.         colors: ['#ffffff', '#0027ff',  '#00127d'],
  13.         maxValue: value
  14.        },
  15.        calendar: {
  16.           cellSize: 15,
  17.         }
  18.       };
  19.     heatmap.draw(heatmapData,heatmapOptions);
  20.   }
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement