Add screen on bar openness %
This commit is contained in:
parent
534525096b
commit
e34c0b6690
4 changed files with 59 additions and 0 deletions
58
bar-history/index.html
Normal file
58
bar-history/index.html
Normal file
|
@ -0,0 +1,58 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>c-base bar stats</title>
|
||||
<script src="../node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
|
||||
<script src="../node_modules/plotly.js/dist/plotly.min.js"></script>
|
||||
<script src="../dist/infoscreens.js"></script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet">
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: "ceva";
|
||||
src: url("../fonts/ceva-c2.woff") format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: "ceva";
|
||||
src: url("../fonts/ceva-c2.ttf") format('ttf');
|
||||
}
|
||||
body {
|
||||
background-color: rgba(0, 0, 0, 0.98);
|
||||
color: #fff;
|
||||
padding: 0px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
main {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
h1 {
|
||||
font-family: "ceva", sans-serif;
|
||||
}
|
||||
p {
|
||||
font-family: 'Source Code Pro', sans-serif;
|
||||
font-size: 20px;
|
||||
color: #a0a0a0;
|
||||
margin-top: -10vh;
|
||||
}
|
||||
cbase-polar {
|
||||
height: 80vh;
|
||||
width: 80vh;
|
||||
margin-left: 80px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<h1>bar historical data</h1>
|
||||
<cbase-polar timeseries="bar.open" days="90" percentage></cbase-polar>
|
||||
<p>
|
||||
Likelihood of bar being open at a given hour. Based on last 90 days of data.
|
||||
</p>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -56,6 +56,7 @@ class Polar extends Component {
|
|||
},
|
||||
showlegend: false,
|
||||
paper_bgcolor: 'transparent',
|
||||
autosize: true,
|
||||
};
|
||||
let data = [];
|
||||
const dayLabels = ts.getDayLabels();
|
||||
|
|
BIN
fonts/ceva-c2.ttf
Normal file
BIN
fonts/ceva-c2.ttf
Normal file
Binary file not shown.
BIN
fonts/ceva-c2.woff
Normal file
BIN
fonts/ceva-c2.woff
Normal file
Binary file not shown.
Loading…
Reference in a new issue