WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions meridian/templates/chart.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@ limitations under the License.

<script type="text/javascript">
(() => {
const opt = {
mode: 'vega-lite',
width: 'container',
autosize: { type: 'fit', contains: 'padding' }
};
const spec = JSON.parse({{ chart_json|tojson }});
const chartDiv = document.getElementById('{{ id }}');
vegaEmbed('#{{ id }}', spec).catch(console.error);
})();
</script>
24 changes: 22 additions & 2 deletions meridian/templates/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ charts {

chart {
@include chart-style;
flex: 1 1 auto;
min-width: 0;
max-width: 100%;
overflow-x: auto;

padding: 10px 5px 20px 2px;

> chart-description {
color: $text_grey;
Expand All @@ -162,8 +168,20 @@ charts {
}
}

chart-embed {
display: block;
width: 100%;
min-width: max-content;
}

chart-table {
@include chart-style;
flex: 1 1 auto;
min-width: 0;
max-width: 100%;
overflow-x: auto;

padding: 10px 5px 20px 2px;

.chart-table-title {
color: $text_grey;
Expand Down Expand Up @@ -221,13 +239,15 @@ charts {

stats-section {
display: flex;
flex-direction: row;
justify-content: space-around;
flex-flow: row wrap;
justify-content: flex-start;
gap: 40px;
padding: 32px;

stats {
display: flex;
flex-direction: column;
flex: 0 0 auto;

> stats-title {
color: $title_dark_grey;
Expand Down
Loading