summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/js/mv/chart.js2
-rw-r--r--public/js/util/trellis-chart.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/public/js/mv/chart.js b/public/js/mv/chart.js
index d2af480..1d85f2b 100644
--- a/public/js/mv/chart.js
+++ b/public/js/mv/chart.js
@@ -3,7 +3,7 @@ var mv = function(mv) {
mv.charts = {};
var thinWidth = 250;
var medWidth = 400;
- var wideWidth = Math.max(700, document.width - thinWidth - medWidth);
+ var wideWidth = Math.max(700, document.documentElement.clientWidth - thinWidth - medWidth);
mv.charter = function() {
var charter = {};
charter.init = function() {
diff --git a/public/js/util/trellis-chart.js b/public/js/util/trellis-chart.js
index cb7c8f1..31cece6 100644
--- a/public/js/util/trellis-chart.js
+++ b/public/js/util/trellis-chart.js
@@ -30,7 +30,7 @@ function trellisChart(anchor, monoGroups) {
var _chart = function() {
if (g.empty()) {
/* Make stuff! */
- var svg = anchor.append("svg").attr("height", 400).attr("class", "mv-chart");
+ var svg = anchor.append("svg").attr("height", 400).attr("width", 400).attr("class", "mv-chart");
/* Group of dimension labels. */
var dimLabelsG = svg
.append("g")