JSFiddle - React, Tailwind, and code Playground
by Chris Hughes
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/series-label.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<div id="current_conditions" class="big_circle">
<h1>
Newark Ag Farm
</h1>
<h3>
11:25AM 10/31/2018
</h3>
<br>
<div id="left_parameters">
Wind
<br><br> <span style="font-size:90px;">↗</span>
<br> 8 mph SW<br>
<br><i>gust to 25 mph</i>
<br>
<br>
</div>
<div id="temperature_div">
<div class="circle">
<span id="temperature">85</span>
<span id="temperature_unit">℉</span>
<br>
<i>Heat Index: 87℉</i>
</div>
</div>
<div id="right_parameters">
Dew Point: 51℉
<br><br> Relative Humidity: 42%
<br><br> Pressure: 1016 mb <span style="position:relative;top:-2px;">↓</span>
<br>
<br> Solar Radiation: 780 w/m^2
<br><br> Rainfall (1hr/24hr) <br> 0.01 in / 0.54 in
<br>
<br><a href="www.yahoo.com"><small><i>view more parameters</i></small></a>
</div>
</div>
<br><br>
<div id="container"></div>
<br><br>
<div id="meta_info" style="width:500px;height:425px; display: inline-block;text-align:center;vertical-align: top;background-color:#f2f2f2;">
<br><br>
Station Metadata<br><br>
Climatology<br><br>
Maintenance History<br><br>
Map?<br><br>
Forecast Information?
</div>
<img src="http://deos.udel.edu/images/DGLW.jpg" style="width:500px;height:425px; display: inline-block;position:relative;" alt="Test">
CSS
html {
font-family: Arial
}
#current_conditions {}
#left_parameters {
display: inline-block;
font-size: 18px;
margin:50px;
margin-left:150px;
}
#right_parameters {
display: inline-block;
font-size: 18px;
margin:50px;
}
#temperature_div {
display: inline-block;
}
#temperature {
font-size: 120px;
}
#temperature_unit {
position: relative;
font-size: 35px;
top: -60px;
}
.circle {
position: relative;
width: 250px;
height: 250px;
border-radius: 20%;
background: radial-gradient(#ff9999, #ff1a1a);
opacity: 0.9;
text-align: center;
display: table-cell;
overflow: hidden;
vertical-align: middle;
z-index: 10;
}
.big_circle {
position: relative;
width: 1000px;
height: 445px;
border-radius: 0%;
background: radial-gradient(white, #ff9999);
opacity: 0.9;
text-align: center;
display: table-cell;
overflow: hidden;
vertical-align: middle;
}
#container {
width: 1000px;
height: 400px;
}
JavaScript
Highcharts.chart('container', {
title: {
text: '24 Hour Conditions for Newark Ag Farm'
},
subtitle: {
text: 'Updated 11:25AM 10/31/2018'
},
yAxis: {
title: {
text: 'Number of Employees'
}
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle'
},
plotOptions: {
series: {
label: {
connectorAllowed: false
},
pointStart: 2010
}
},
series: [{
name: 'Installation',
data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
}, {
name: 'Manufacturing',
data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434]
}, {
name: 'Sales & Distribution',
data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387]
}, {
name: 'Project Development',
data: [null, null, 7988, 12169, 15112, 22452, 34400, 34227]
}, {
name: 'Other',
data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111]
}],
responsive: {
rules: [{
condition: {
maxWidth: 500
},
chartOptions: {
legend: {
layout: 'horizontal',
align: 'center',
verticalAlign: 'bottom'
}
}
}]
}
});