Published
Edited
Jun 28, 2022
Insert cell
# Datafield: GUMD_pre_commit_sector
Insert cell
#### Category: ${tableName}
#### Level: Daily
#### Unit: ${chartUnit}
Insert cell
Insert cell
import {GetApiUrl} from "@starboard/system-config"
Insert cell
data_res = fetch(GetApiUrl(tableName) + 'api/v1/observable/'+ tableName.replaceAll('_','-') + "/" + columnName , {
method: 'GET',
redirect: 'follow'
}).then(response => {
return response.json();
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
chartUnit = "Gas Units"
Insert cell
tableName = "gas_usage_msg_d"
Insert cell
tableAbbr = tableName.split('_').map(x=>(x[0].toUpperCase())).join('')
Insert cell
columnName = "pre_commit_sector"
Insert cell
serieName = "PreCommitSector Gas Usage"
Insert cell
xAxisColumn = "stat_date"
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more