lightview
Version:
Small, simple, powerful web UI and micro front end creation ... Great ideas from Svelte, React, Vue and Riot combined.
66 lines (61 loc) • 1.88 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Lightview:Components:Gauge</title>
<link href="../css/tutorial.css" rel="stylesheet">
<link href="../slidein.html" rel="module">
<link href="repl.html" rel="module">
<script src="../javascript/highlightjs.min.js"></script>
<script src="../javascript/marked.min.js"></script>
<script src="../javascript/utils.js"></script>
</head>
<body class="tutorial-body">
<script src="../javascript/lightview.js"></script>
<div class="tutorial-instructions">
<l-slidein src="./contents.html" class="toc"></l-slidein>
<div class="markdown">
## Gauge
</div>
<button class="nav-previous"><a href="timeline-repl.html" target="content">Previous</a></button>
<button class="nav-next"><a href="repl-repl.html" target="content">Next</a></button>
</div>
<div class="repl">
<h2></h2>
<l-repl id="repl" style="min-height:95vh;min-width:600px;" previewpinned path="$location" previewheight="400px">
<div slot="headhtml"></div>
<div slot="bodyhtml"></div>
<div slot="script"></div>
<template slot="src">
<l-head>
<link href="./gauge.html" rel="module">
<script src="../javascript/lightview.js"></script>
</l-head>
<l-body>
<l-gauge id="myChart" style="height:500px;" title="Server" hidden l-unhide>
{
options: {
},
rows: [
['Memory', 80],
['CPU', 55],
['Network', 68]
]
}
</l-gauge>
</l-body>
<script>
const el = document.getElementById("myChart");
el.addEventListener("initialized",() => {
chart = el.chart;
chart.addRow(["Storage",10]);
});
</script>
</template>
</l-repl>
</div>
<script>
processMarkdown();
</script>
</body>
</html>