Reduce uplot example code to common

denominator
This commit is contained in:
Christoph Kluge
2023-09-04 10:37:20 +02:00
parent f5c43d60d3
commit c1b5134627
2 changed files with 151 additions and 92 deletions

View File

@@ -33,7 +33,8 @@
let plotWidths = [],
colWidth1 = 0,
colWidth2;
colWidth2 = 0,
colWidth3 = 0;
let from = new Date(Date.now() - 5 * 60 * 1000),
to = new Date(Date.now());
const topOptions = [
@@ -668,7 +669,10 @@
</Row>
<Row>
<Col>
<Rooflineuplot/>
<div bind:clientWidth={colWidth3}>
<Rooflineuplot
width={colWidth3 - 25}
/>
</Col>
</Row>
{/if}