Skip to content

Commit

Permalink
barheight defined by the amount of bars to show
Browse files Browse the repository at this point in the history
  • Loading branch information
cagabi committed Jul 12, 2018
1 parent ea1a97a commit fb69ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/targetbar-carboncoop.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function targetbarCarboncoop(element, options)
$("#" + element).html("<div style='padding-bottom:5px; font-size:18px; color:rgba(99,86,71,0.8);'>" + options.name + "</div>");
var titleheight = $("#" + element + " div").height();
var barheight = height - titleheight - 5;
var barheight = 90;
var barheight = 25 * options.values.length;
$("#" + element).append('<canvas id="' + element + '-canvas" width="' + width + '" height="' + barheight + '" style="max-width:100%"></canvas>');

var c = document.getElementById(element + "-canvas");
Expand Down

0 comments on commit fb69ad1

Please sign in to comment.