Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#heatmapCon input").keypress(function(e) {
- //Enter pressed
- if(e.which == 13) {
- var value = $(this).val();
- var heatmapOptions = {
- height: years*140+30,
- width: Math.max($('#heatmapCon').width(),900),
- fontName: 'Roboto',
- titleTextStyle: titleTextStyle,
- colorAxis: {
- minValue: 0,
- colors: ['#ffffff', '#0027ff', '#00127d'],
- maxValue: value
- },
- calendar: {
- cellSize: 15,
- }
- };
- heatmap.draw(heatmapData,heatmapOptions);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement