2021-04-13 11:02:41 +02:00
|
|
|
<!--
|
|
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
-->
|
2020-07-06 06:01:49 +02:00
|
|
|
<script lang="typescript">
|
2020-11-01 05:26:58 +01:00
|
|
|
import type { GraphBounds } from "./graph-helpers";
|
2021-10-07 15:31:49 +02:00
|
|
|
import * as tr from "../lib/ftl";
|
|
|
|
|
2020-07-06 06:01:49 +02:00
|
|
|
export let bounds: GraphBounds;
|
2021-10-07 15:31:49 +02:00
|
|
|
|
2021-03-26 11:23:43 +01:00
|
|
|
const noData = tr.statisticsNoData();
|
2020-07-06 06:01:49 +02:00
|
|
|
</script>
|
|
|
|
|
2021-05-26 01:21:33 +02:00
|
|
|
<g class="no-data">
|
|
|
|
<rect x="0" y="0" width={bounds.width} height={bounds.height} />
|
|
|
|
<text x="{bounds.width / 2}," y={bounds.height / 2}>{noData}</text>
|
|
|
|
</g>
|
|
|
|
|
2021-03-21 13:47:52 +01:00
|
|
|
<style lang="scss">
|
|
|
|
.no-data {
|
|
|
|
rect {
|
|
|
|
fill: var(--window-bg);
|
|
|
|
}
|
|
|
|
|
|
|
|
text {
|
|
|
|
text-anchor: middle;
|
|
|
|
fill: grey;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|