Skip to content

Commit 473ec35

Browse files
committed
Update config
1 parent 4afb600 commit 473ec35

File tree

8 files changed

+17
-16
lines changed

8 files changed

+17
-16
lines changed

.DS_Store

2 KB
Binary file not shown.

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
<div class="title ">
2929
WordStream: Interactive Tool for Topic Evolution
3030
<!--<span>-->
31-
<a href="index.html" class="button still">Video</a>
32-
<a href="demo.html" class="button active">Demo</a>
31+
<a href="index.html" class="button active">Video</a>
32+
<a href="demo.html" class="button still">Demo</a>
3333
<!--</span>-->
3434
</div>
3535
<center><iframe style="margin-top: 100px" width="95%" height="800" src="media/ws.mp4" frameborder="0"

javascripts/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const initWidth = 1500,
2-
initHeight = 520,
2+
initHeight = 550,
33
initMinFont = 14,
44
initMaxFont = 36,
55
initFlag = "none";// none / fa/ f / a
@@ -91,4 +91,4 @@ let metric2 = d3.select("body").append("svg")
9191
.attr("width",100)
9292
.attr("height", 300)
9393
.attr("class","metricSVG2")
94-
.attr("id","metricSVG2");
94+
.attr("id","metricSVG2");

javascripts/main.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
let svg = d3.select("body").append('svg').attr({
2-
width: globalWidth,
3-
height: globalHeight,
4-
id: "mainsvg"
5-
});
61
// let fileList = ["WikiNews","Huffington","CrooksAndLiars","EmptyWheel","Esquire","FactCheck"
72
// ,"VIS_papers","IMDB","PopCha","Cards_PC","Cards_Fries"]
8-
3+
let svg = d3.select("body").append('svg')
4+
.attr({
5+
id: "mainsvg",
6+
width: 1540,
7+
height: 658
8+
});
99
let fileList = ["WikiNews", "Huffington", "CrooksAndLiars", "EmptyWheel", "Esquire", "FactCheck", "VIS_papers", "IMDB", "PopCha", "Cards_PC", "Cards_Fries", "QuantumComputing"]
1010

1111
let initialDataset = "EmptyWheel";
@@ -101,6 +101,7 @@ function draw(data) {
101101
.minFontSize(initMinFont)
102102
.maxFontSize(initMaxFont)
103103
.data(data)
104+
.flag(globalFlag)
104105
.font(font);
105106
let boxes = ws.boxes();
106107
let minSud = ws.minSud();
@@ -110,10 +111,11 @@ function draw(data) {
110111
//Display data
111112
let legendFontSize = 12;
112113
let legendHeight = boxes.topics.length * legendFontSize;
114+
113115
//set svg data.
114116
svg.attr({
115-
width: width + margins.left + margins.top,
116-
height: height + margins.top + margins.bottom + axisPadding + legendHeight
117+
width: globalWidth + margins.left + margins.top,
118+
height: globalHeight + +margins.top + margins.bottom + axisPadding + legendHeight
117119
});
118120

119121
let area = d3.svg.area()

javascripts/metric.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ function getDisplayRate(allW, maxFreq){
8383
var weightedRate = displayFreq_1 / totalFreq_1;
8484
var averageNormFreq = displayNormFreq_2 / numbers_2;
8585

86-
console.log([weightedRate, averageNormFreq]);
8786
return [weightedRate, averageNormFreq]
8887
}
8988
// path: an SVG <path> element

javascripts/update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function updateData() {
7070
const newboxes = ws.boxes();
7171
let minSud = ws.minSud();
7272
let maxSud = ws.maxSud();
73-
const legendFontSize = 20;
73+
const legendFontSize = 12;
7474
let legendHeight = newboxes.topics.length * legendFontSize;
7575

7676
mainGroup = d3.select("#mainsvg");

styles/d3.slider.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,6 @@ input:checked + .toggle:before {
316316
.computeMetric {
317317
z-index: 100;
318318
position: absolute;
319-
top: 425px;
319+
top: 424px;
320320
left: 200px;
321321
}

styles/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ a.button:hover{
9595

9696
.metricSVG {
9797
position: absolute;
98-
top: 508px;
98+
top: 507px;
9999
background-color: white;
100100
border: 1px solid #cbcbcb;
101101
padding: 10px;

0 commit comments

Comments
 (0)