-
Notifications
You must be signed in to change notification settings - Fork 426
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recreate the Experiments Parallel Coordinates Graph (#1974)
* UI: Import echarts and ngx-echarts (#1879) * Import echarts module and ngx-echarts directive for Echarts. Signed-off-by: Elena Zioga <elena@arrikto.com> * UI: Remove trials graph component (#1879) * Remove trials graph component. Signed-off-by: Elena Zioga <elena@arrikto.com> * UI: Introduce graph's component (#1879) * Create a new component that uses Echarts Parallel Graph. Signed-off-by: Elena Zioga <elena@arrikto.com> * UI: Modify graph's wrapper component (#1879) * Make the wrapper component use the new graph. * Show the graph when at least one trial is completed. Signed-off-by: Elena Zioga <elena@arrikto.com> * UI: Parallel Graph unit test (#1879) * Create unit test for Parallel Graph. Signed-off-by: Elena Zioga <elena@arrikto.com> Signed-off-by: Elena Zioga <elena@arrikto.com>
- Loading branch information
Showing
17 changed files
with
599 additions
and
3,209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...src/app/pages/experiment-details/trials-graph-echarts/trials-graph-echarts.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="graph-wrapper"> | ||
<div echarts [initOpts]="initOpts" [options]="options" [merge]="options" class="graph"></div> | ||
</div> |
76 changes: 33 additions & 43 deletions
76
.../trials-graph/trials-graph.component.scss → ...harts/trials-graph-echarts.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,33 @@ | ||
:host { | ||
display: block; | ||
} | ||
|
||
.graph-wrapper { | ||
position: relative; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
flex-direction: column; | ||
} | ||
|
||
.d3-graph { | ||
width: 400px; | ||
|
||
@media (min-width: 768px) { | ||
width: 700px; | ||
} | ||
|
||
@media (min-width: 1024px) { | ||
width: 1000px; | ||
} | ||
|
||
@media (min-width: 1400px) { | ||
width: 1300px; | ||
} | ||
|
||
@media (min-width: 1650px) { | ||
width: 1600px; | ||
} | ||
|
||
@media (min-width: 2000px) { | ||
width: 1900px; | ||
} | ||
|
||
height: 600px; | ||
} | ||
|
||
.spinner { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
.graph-wrapper { | ||
position: relative; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
flex-direction: column; | ||
} | ||
|
||
.graph { | ||
width: 400px; | ||
|
||
@media (min-width: 768px) { | ||
width: 700px; | ||
} | ||
|
||
@media (min-width: 1024px) { | ||
width: 1000px; | ||
} | ||
|
||
@media (min-width: 1400px) { | ||
width: 1300px; | ||
} | ||
|
||
@media (min-width: 1650px) { | ||
width: 1600px; | ||
} | ||
|
||
@media (min-width: 2000px) { | ||
width: 1900px; | ||
} | ||
|
||
height: 600px; | ||
} |
Oops, something went wrong.