Skip to content

Commit

Permalink
Table output underneath
Browse files Browse the repository at this point in the history
  • Loading branch information
xiety committed Mar 11, 2024
1 parent 3f84e30 commit 92045ef
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@
</div>
</div>
</div>
<table class="table-dataset">
<tr v-for="dataset in data.datasets">
<td>{{ dataset.label }}</td>
<td v-for="item in dataset.data">
{{ item.y.toFixed(2) }}
</td>
</tr>
</table>
<a href="https://github.com/xiety/anki_fsrs_visualizer" style="font-size: 75%;">Github</a>
</template>
<style>
Expand Down Expand Up @@ -125,6 +133,19 @@ textarea {
column-gap: 3px;
flex-wrap: wrap;
}
.table-dataset {
border-collapse: collapse;
}
.table-dataset tr:nth-child(even) {
background-color: #f2f2f2;
}
.table-dataset td {
border: 1px solid #ddd;
text-align: right;
}
</style>

<script lang="ts" setup>
Expand Down

0 comments on commit 92045ef

Please sign in to comment.