22 lines
699 B
Vue
22 lines
699 B
Vue
<template>
|
|
<div class=simple-details>
|
|
<apex-chart type="line" :options=chartOptions :series=measurementChartData />
|
|
<v-table :data=measurementTableData>
|
|
<thead slot=head >
|
|
<tr>
|
|
<v-th sortKey=tsSort defaultSort=asc >Timestamp</v-th>
|
|
<v-th sortKey=value >{{measure.name}}</v-th>
|
|
</tr>
|
|
</thead>
|
|
<tbody slot=body slot-scope={displayData} >
|
|
<tr v-for="row in displayData" :key="row.id">
|
|
<td>{{row.tsDisplay}}</td>
|
|
<td>{{row.value}}</td>
|
|
</tr>
|
|
</tbody>
|
|
</v-table>
|
|
</div>
|
|
</template>
|
|
<script lang="ts" src="./simple-details.ts"></script>
|
|
<style lang="scss" src="./simple-details.scss"></style>
|