-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(create_report): add tabs for correlation and missing
Put Correlations and Missing Values figures into tabs.:
- Loading branch information
Showing
5 changed files
with
115 additions
and
40 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
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,13 +1,20 @@ | ||
<div class="correlation-container"> | ||
{% for div in context.components.correlations[1] %} | ||
{% if div.error %} | ||
{% with error_message = div.error %} | ||
{% include 'error.html' %} | ||
{% endwith %} | ||
{% else %} | ||
<div class="corr-plot"> | ||
{{ div }} | ||
<div class="report-tab"> | ||
<button class="corr-tablinks active" onclick="openTab(event, '{{context.components.correlation_names[0]}}')" >{{context.components.correlation_names[0]}}</button> | ||
<button class="corr-tablinks" onclick="openTab(event, '{{context.components.correlation_names[1]}}')">{{context.components.correlation_names[1]}}</button> | ||
<button class="corr-tablinks" onclick="openTab(event, '{{context.components.correlation_names[2]}}')">{{context.components.correlation_names[2]}}</button> | ||
</div> | ||
|
||
<div id={{context.components.correlation_names[0]}} class="corr-tabcontent"> | ||
{{ context.components.correlations[1][0]}} | ||
</div> | ||
<div id={{context.components.correlation_names[1]}} style="display:none" class="corr-tabcontent"> | ||
{{ context.components.correlations[1][1]}} | ||
</div> | ||
<div id={{context.components.correlation_names[2]}} style="display:none" class="corr-tabcontent"> | ||
{{ context.components.correlations[1][2]}} | ||
</div> | ||
|
||
</div> | ||
{% endif %} | ||
{% endfor %} | ||
</div> |
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,13 +1,24 @@ | ||
<div class="missing-container"> | ||
{% for div in context.components.missing[1] %} | ||
{% if div.error %} | ||
{% with error_message = div.error %} | ||
{% include 'error.html' %} | ||
{% endwith %} | ||
{% else %} | ||
<div class="miss-plot"> | ||
{{ div }} | ||
</div> | ||
{% endif %} | ||
{% endfor %} | ||
<div class="miss-plot"> | ||
<div class="report-tab"> | ||
<button class="missing-tablinks active" onclick="openTab(event, '{{context.components.missing_tabs[0]}}')" >{{context.components.missing_tabs[0]}}</button> | ||
<button class="missing-tablinks" onclick="openTab(event, '{{context.components.missing_tabs[1]}}')">{{context.components.missing_tabs[1]}}</button> | ||
<button class="missing-tablinks" onclick="openTab(event, '{{context.components.missing_tabs[2]}}')">{{context.components.missing_tabs[2]}}</button> | ||
<button class="missing-tablinks" onclick="openTab(event, '{{context.components.missing_tabs[3]}}')">{{context.components.missing_tabs[3]}}</button> | ||
</div> | ||
|
||
<div id="{{context.components.missing_tabs[0]}}" class="missing-tabcontent"> | ||
{{ context.components.missing[1][0]}} | ||
</div> | ||
<div id="{{context.components.missing_tabs[1]}}" style="display:none" class="missing-tabcontent"> | ||
{{ context.components.missing[1][1]}} | ||
</div> | ||
<div id="{{context.components.missing_tabs[2]}}" style="display:none" class="missing-tabcontent"> | ||
{{ context.components.missing[1][2]}} | ||
</div> | ||
<div id="{{context.components.missing_tabs[3]}}" style="display:none" class="missing-tabcontent"> | ||
{{ context.components.missing[1][3]}} | ||
</div> | ||
|
||
</div> | ||
</div> |
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