From 2ab18b74b3fc5404a633517b885d3a51bfd87416 Mon Sep 17 00:00:00 2001 From: Angelos Chatzimparmpas Date: Mon, 15 Jun 2020 12:34:40 +0200 Subject: [PATCH] responsiveness Former-commit-id: 6a4fd403db55ecde1b7185dcc16028249c232119 --- README.md | 2 +- css/style.css | 102 ++++++++++------ index.html | 324 +++++++++++++++++++++++-------------------------- js/tsne_vis.js | 260 ++++++++++++++++++++------------------- 4 files changed, 355 insertions(+), 333 deletions(-) diff --git a/README.md b/README.md index a1c916e..47556de 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This Git repository contains the code that accompanies the research paper "t-viSNE: Interactive Assessment and Interpretation of t-SNE Projections". The details of the experiments and the research outcome are described in [the paper](https://doi.org/10.1109/TVCG.2020.2986996). -**Note:** t-viSNE is optimized to work better for the 2560x1440 resolution (1440p/QHD (Quad High Definition)). Any other resolution might need manual adjustment of your browser's zoom level to work properly. +**Note:** t-viSNE is optimized to work better for standard resolutions (such as 1440p/QHD (Quad High Definition) and 1080p). Any other resolution might need manual adjustment of your browser's zoom level to work properly. **Note:** The tag `paper-version` matches the implementation at the time of the paper's publication. The current version might look significantly different depending on how much time has passed since then. diff --git a/css/style.css b/css/style.css index 8c47af1..41fa888 100755 --- a/css/style.css +++ b/css/style.css @@ -2,8 +2,9 @@ html, body { max-width: 100% !important; + margin-top: -5px !important; font-family: sans-serif !important; - font-size: calc(0.35em + 1vmin) !important; + font-size: calc(0.32em + 1vmin) !important; } h2 { @@ -29,8 +30,19 @@ button { table td { vertical-align: middle !important; + padding: 2 !important; + margin: 0 !important; +} + +.centerTable { + text-align: center; } +.centerTable td { + padding: 8 !important; +} + + input[type='file'] { color: transparent; /* Hides your "No File Selected" */ width: 95px; @@ -63,6 +75,14 @@ input[type='file'] { text-align: left; } +#param-corlim { + width: 55% !important; +} + +#param-costlim { + width: 85% !important; +} + #param-correlation > .param > select { flex: 0 0 45%; width: 100%; @@ -86,11 +106,7 @@ cursor: default; .right-side-hist { margin-left:-2px; - margin-top: 1px; -} - -.right-side-PCP { - margin-top: -57px; + margin-top: -0.5vh; } #left-side-visual{ @@ -101,7 +117,7 @@ cursor: default; /* Styling of the main canvas */ #modtSNEcanvas { width: 50vw !important; - height: 42.8vw !important; + height: 66vh !important; border: 1px solid black; position: absolute; margin-left: -15px; @@ -112,6 +128,10 @@ cursor: default; fill: steelblue; } +.panel-body { + padding: 5px !important; +} + .bounding-rect { stroke: red; stroke-width: 1; @@ -121,7 +141,7 @@ cursor: default; #overviewRect { border: 1px solid black; width: 11vw; - height: 11vw; + height: 13vh; position: absolute; z-index: 1; } @@ -129,46 +149,48 @@ cursor: default; /* A little styling for knn's bar chart */ #knnBarChart { width: 48.7vw !important; - height: 2.8vw; position: absolute !important; z-index: 1; } #hider { - width: 48.7vw !important; - height: 3vw; background-color: white; position: absolute !important; z-index: 2; } -.med-bottom { - margin-top: 6.7vw; +.med-bottom-neigh { margin-left: -16px; + margin-top: 67vh; + position: absolute; width: 50.1vw !important; - height: 5.4vw !important; + height: 14.5vh !important; } .med-bottomProv { - margin-top: 6.7vw; margin-left: -16px; width: 50.1vw !important; - height: 6.4vw !important; + height: 16vh !important; +} + +#comment { + width: 8vw !important; + height: 2.5vh !important; } /* Styling of the main SVG behind canvas */ #modtSNEcanvas_svg { width: 50vw ; - height: 42.8vw ; + margin-top: 17.5vh; + height: 66vh !important; opacity: 1.0; - margin-top: 178px; position:absolute; z-index: 2; } #modtSNEcanvas_svg_Schema { width: 50vw; - height: 42.8vw; + height: 66vh !important; opacity: 1.0; position:absolute; margin-left: -15px; @@ -181,50 +203,52 @@ circle.swatch{ /* Legend of the Overview t-SNE canvas */ #legend2 { - height: 9vw; - width: 11vw; + height: 11vh; + width: 10.5vw; text-align: left; overflow: auto; margin-left: -6px; + margin-top: 2px; } /* Legend of the Overview t-SNE canvas */ #legend1 { - height: 7vw; - width: 5vw; - margin-top: -5px; + height: 19vh; + margin-top: -0.5vh; + width: 5.5vw; text-align: left; } /* Legend of the Overview t-SNE canvas */ #legend4 { -height: 7vw; +height: 13.5vh; width: 7vw; -margin-left: -20px; -margin-top: -10px; +margin-top: -1.5vh; text-align: left; } /* Styling of the ShepardHeatmap */ #sheparheat { - width: 11vw; - height: 11vw; + width: 10.65vw; + height: 10.65vw; position: absolute; } /* Number of Points font-size */ text.legendtitle { - font-size: 15px; + font-size: calc(0.35em + 0.8vmin) !important; } /* Number of Points font-size */ text.label { - font-size: 15px; + font-size: calc(0.35em + 0.8vmin) !important; } /* Styling of the ShepardHeatmap */ svg#legend3 { - height: 8vw; - width: 11vw; + height: 19.2vh; + width: 10.65vw; + margin-top: 2px; + font-size: calc(0.35em + 1vmin) !important; text-align: left; overflow: auto; } @@ -326,8 +350,7 @@ svg#legend3 { /* This is for the Correlation bar chart */ #correlation{ - margin-left: -20px; - margin-top: -20px; + margin-left: -0.5vw; } .y.axis line { @@ -382,14 +405,13 @@ svg#legend3 { #selectionLabel{ border: 1px solid black; - padding: 5px 5px 5px 5px; + padding: 1px 1px 1px 1px; } #PCP{ - margin-left:-15px; margin-top:0px; - width: 23.2vw; - height: 11.6vw; + width: 22.6vw; + height: 17vh; } .parent-row{ @@ -469,7 +491,7 @@ ul { #costHist { width: 6vw; - height: 9.55vw; + height: 16.5vh; } #loader { diff --git a/index.html b/index.html index a3ec7ac..655b36a 100755 --- a/index.html +++ b/index.html @@ -49,8 +49,8 @@
-

t-SNE Grid Search Resulting Diverse Projections

- [Sorting Projections According to Metric: +

t-SNE Grid Search

+ [Sorting: @@ -87,7 +87,7 @@
- +
@@ -118,39 +118,39 @@ - + - - + - - - +
500
+
- + - + +
-
-
+
+
-

Projections Provenance

-
[Sorting Projections According to Metric:
+

Projections Provenance

+
[Sorting:
+ + + + + + ] +
+
+
+
+
+
+
+
@@ -176,34 +194,92 @@
-
+
-
-

Interaction Modes

-
-
-
- - - -
- +
+

Visual Mapping

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +
+ + + + + + + 50 + +
3
+ + Disable annotator +
+ +
+
-
-
-
+
+
-

Overview

+

Overview

-
+
-
+
@@ -211,114 +287,48 @@
-
-
-
-

Visual Mapping

-
-
-
-
-
-
-
- - -
-
- - - -
-
- - -
-
-
-
- - -
-
- - -
-
- 50 - -
-
-
-
-
-
- -
-
- -
-
- 3 -
-
-
-
-
- -
-
- -
-
-
- -
- Annotation: -
-
-
-
-
- -
-
-
-
-
-
+
+
+
+

Interaction Modes (M)

+
+
+ + + + + + + + + + + +
+
+
-
-
+
+
-

Shepard Heatmap

+

Shepard Heatmap

[Visualization: ]
-
+
-
+
@@ -326,10 +336,10 @@
-
-
+
+
-

Dimension Correlation

+

Dimension Correlation

@@ -340,16 +350,16 @@
-
+
-
+
-

Density and Remaining Cost Distributions

-
-
-
- +

Density and Remaining Cost

+
+
+
+
@@ -359,43 +369,19 @@
- -
-
-
-
-

Neighborhood Preservation

- [Visualization: - - ] -
-
-
-
-
-
-
-
- -
-
+
+
-

Adaptive Parallel Coordinates Plot

+

Adaptive Parallel Coordinates Plot

- -->
-