Skip to content

Commit

Permalink
Eyeballed the graph percentages so that they look decent in this exam…
Browse files Browse the repository at this point in the history
…ple -- will need some work to get it looking good for all inputs."
  • Loading branch information
ashanan committed Jan 29, 2012
1 parent e628990 commit d3c350d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tz-test.html
Expand Up @@ -60,7 +60,11 @@
//$('#DST-pre').append('index: ' + boundaryIndex);
console.log(preDST);
console.log(postDST);


//size the divs appropriately
var preDSTPercentage = preDST.length / times.length * 100;
$('#DST-pre').width(preDSTPercentage + 10 + '%') ;
$('#DST-post').width((90 - preDSTPercentage) + '%');
$.plot($("#DST-pre"), [preDST], {
xaxis: { mode: "time" },
yaxis: { min: 0 }
Expand All @@ -82,6 +86,7 @@
width:76%;
height:120px;
margin: auto;
display:inline-block;
}
</style>
</head>
Expand Down

0 comments on commit d3c350d

Please sign in to comment.