feat: Add uplot histogram, implemented in userview

- For testing
- add conversion function to utils
This commit is contained in:
Christoph Kluge
2023-07-26 13:44:06 +02:00
parent 2655bda644
commit 742c2e399e
5 changed files with 205 additions and 45 deletions

View File

@@ -323,8 +323,9 @@
{#if series[0].data.length > 0}
<div bind:this={plotWrapper} class="cc-plot"></div>
{:else}
<Card style="margin-left: 2rem;margin-right: 2rem;" body color="warning">Cannot render plot: No series data returned for <code>{metric}</code></Card>
<Card class="mx-4" body color="warning">Cannot render plot: No series data returned for <code>{metric}</code></Card>
{/if}
<style>
.cc-plot {
border-radius: 5px;