Skip to content

Commit

Permalink
Adjust sizing and responsiveness of the plot and grid:
Browse files Browse the repository at this point in the history
+ Plot responsive to window size.
+ list of metrics almost the same size as the plot window
+ Allow the graph to take up full width.
  • Loading branch information
dougthor42 committed May 14, 2019
1 parent 66cd4dd commit b96957c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/trendlines/static/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function makePlot(data) {
};

trace = [ trace1 ];
Plotly.plot(TESTER, trace, layout);
Plotly.plot(TESTER, trace, layout, {responsive: true});

$(document).ready(
function() {
Expand Down
4 changes: 2 additions & 2 deletions src/trendlines/templates/trendlines/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h4>v{{ version }}</h4>
</div>

<div class="row">
<div id="tree" class="col-sm-3 order-1 border border-primary" style="height: 150px; overflow-y: scroll;">
<div id="tree" class="col-sm-3 order-1 border border-primary" style="height: 500px; overflow-y: scroll;">
<!-- This div holds the left side: primarily the JS tree -->
<div id="jstree-div">
</div>
Expand All @@ -44,7 +44,7 @@ <h4>v{{ version }}</h4>
</label>
</div>

<div id="graph" style="width:90%; height:500px;"></div>
<div id="graph" style="height: 500px;"></div>

</div>
</div>
Expand Down

0 comments on commit b96957c

Please sign in to comment.