Skip to content

Commit

Permalink
Merge pull request #983 from aholachek/networks-to-svg
Browse files Browse the repository at this point in the history
changes to facilitate downloading network svgs
  • Loading branch information
aholachek authored Jun 24, 2016
2 parents 4dd9979 + d931297 commit 5c60aee
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/js/widgets/network_vis/network_widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@ define([
var svg = d3.select(this.$("svg")[0])
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom)
//for svg copying by svg crowbar
.attr("style", "font-family:helvetica,arial,san-serif")
.attr("id", "network-viz-time-series")
.append("g")
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h3><span class="s-light-font">Author Network</span></h3>

<h5>Group Activity Over Time (measured in papers published)</h5>
<div class="time-series-container">
<svg viewBox="0 0 960 500"></svg>
<svg viewBox="0 0 960 500" id="network-viz-time-series"></svg>
</div>

<br/>
Expand Down Expand Up @@ -46,7 +46,7 @@ <h3><span class="s-light-font">Paper Network for Query</span> {{currentQuery}}</

<h5>Group Activity Over Time (measured in papers published)</h5>
<div class="time-series-container">
<svg viewBox="0 0 960 500"></svg>
<svg id="network-chart-main-visualization" viewBox="0 0 960 500"></svg>
</div>

<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ <h4 style="display:inline-block">Size wedges based on:</h4>
</div>

<div class="s-network-graph-div">
<svg class="network-chart s-network-chart" viewBox="0 0 900 900">
<svg id="network-viz-main-chart"
class="network-chart s-network-chart"
viewBox="0 0 900 900"
style="font-family:helvetica,arial,san-serif"
>
</svg>

</div>
Expand Down
6 changes: 5 additions & 1 deletion src/js/wraps/templates/paper-network-container.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ <h4 style="display:inline-block">Size wedges based on:</h4>
</div>
</div>

<svg class="network-chart s-network-chart" width="400" height="400" viewBox="0 0 300 300">
<svg class="network-chart s-network-chart" width="400"
height="400" viewBox="0 0 300 300"
id="network-viz-main-chart"
style="font-family:helvetica,arial,san-serif"
>
</svg>
</div>

0 comments on commit 5c60aee

Please sign in to comment.