Handsontable example
by Aleksandra Maria Budnik
HTML
<div>
<button onClick="onClick()">
Shut In
</button>
</div>
<div id="example1" class="hot1 hot handsontable"></div>
CSS
.make-me-red-only {
color: #f00;
}
.make-me-red-with-yellow {
background-color: yellow;
color: #f00;
}
.make-me-yellow-only {
background-color: yellow;
}
</style><script src="https://cdn.jsdelivr.net/npm/handsontable@7.4.2/dist/handsontable.full.min.js"></script><link type="text/css"rel="stylesheet"href="https://cdn.jsdelivr.net/npm/handsontable@7.4.2/dist/handsontable.full.min.css">
JavaScript
var data = [
{
"wellName": "SAND TANK 18 FED COM #2H",
"entityId": 1529670,
"eventNumber": 0,
"stream": "ADJ_NET_OIL_SALES",
"entity_id": 1529670,
"event_nb": 0,
"entity_name": "SAND TANK 18 FED COM #2H",
"basin": "SAND TANK",
"eco_status": "UnEconomic",
"eco_producing_status": "Producing",
"eco_producing_reason": "Producing",
"division_id": 10,
"division_code": "MID",
"id": 10,
"JanIsShutIn": "N",
"FebIsShutIn": "N",
"MarIsShutIn": "N",
"AprIsShutIn": "Y",
"MayIsShutIn": "N",
"JunIsShutIn": "N",
"JulIsShutIn": "N",
"AugIsShutIn": "N",
"SepIsShutIn": "N",
"OctIsShutIn": "N",
"NovIsShutIn": "N",
"DecIsShutIn": "N",
"Jan": 5.74,
"Feb": 6.03,
"Mar": 5.96,
"Apr": 4.85,
"May": 2.78,
"Jun": 2.55,
"Jul": 4.12,
"Aug": 4.77,
"Sep": 4.64,
"Oct": 4.6,
"Nov": 4.62,
"Dec": 4.54,
"selectedColumn": "Apr"
},
{
"wellName": "WEST CORBIN FEDERAL #25",
"entityId": 1003218,
"eventNumber": 0,
"stream": "ADJ_NET_OIL_SALES",
"entity_id": 1003218,
"event_nb": 0,
"entity_name": "WEST CORBIN FEDERAL #25",
"basin": "CORBIN",
"eco_status": "UnEconomic",
"eco_producing_status": "Producing",
"eco_producing_reason": "Producing",
"division_id": 10,
"division_code": "MID",
"id": 15,
"JanIsShutIn": "N",
"FebIsShutIn": "N",
"MarIsShutIn": "N",
"AprIsShutIn": "N",
"MayIsShutIn": "N",
"JunIsShutIn": "N",
"JulIsShutIn": "N",
"AugIsShutIn": "N",
"SepIsShutIn": "N",
"OctIsShutIn": "N",
"NovIsShutIn": "N",
"DecIsShutIn": "N",
"Jan": 3.45,
"Feb": 3.22,
...