Skip to content

Instantly share code, notes, and snippets.

@AleksueiR
Last active November 17, 2017 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AleksueiR/a24e3e0f1dab7250979a9da15cd699df to your computer and use it in GitHub Desktop.
Save AleksueiR/a24e3e0f1dab7250979a9da15cd699df to your computer and use it in GitHub Desktop.
cesi temp
{
"HTML_content":
"<dv-section dv-data=\"templateData\"> <h1 id=\"wb-cont\" property=\"name\">{{ companyName }}</h1> <section> <div class=\"meta-container\"> <div class=\"meta\"> <p> <a href=\"\">{{ companyName }}</a> </p> <p> <span>NPRI Number:</span> {{ npriNumber }} </p> <p class=\"address\"> <span v-for=\"line in address\">{{ line }}</span> </p> </div> <div class=\"meta2\"> North American Industry Classification System (NAICS) <br> <a href=\"\">Particle board and fibreboard mills CAN</a> </div> </div> <dv-chart dv-config=\"chartConfig\" id=\"chart1\"><details><summary>View data for this chart</summary><div class=\"summary\"><dv-chart-table dv-auto-render dv-table-class=\"wb-tables table table-striped\"></dv-chart-table></div></details></dv-chart> <details> <summary>Facility Air Pollutant Emissions Indicator Summary for 2015</summary> <div class=\"summary\"> <p v-for=\"pair in summary2015\"> <span class=\"name\">{{ pair.name }}:</span> <span class=\"value\">{{ pair.value }} <span class=\"unit\">tonnes</span> </span> </p> </div> </details> <br> <p>{{ description }}</p> <p>For more information, see the <a href=\"\">Greenhouse Gas Emissions from Large Facilities</a> indicator and its <a href=\"\">Data Sources and Methods</a>. </p> </section> </dv-section>",
"styles": "<style> .meta-container { display: flex; } .meta { flex: 1; } .meta2 { text-align: right; } .meta, .meta2 { margin-top: 16px; margin-bottom: 16px; } .meta p { margin: 0; } .address span { display: block; } #chart1 { width: 100%; margin: auto; } .summary { width: 100%; } .summary p { display: flex; margin: 0; } .summary .name { flex: 1; text-align: right; } .summary .value { flex: 2; padding-left: 16px; font-weight: bold; } .summary .unit { font-weight: normal; } dv-section { display: none; } </style>",
"TemplateData": {
"data": {
"companyName": "Alberta-Pacific Forest Industries Inc.",
"npriNumber": "1",
"address": ["", "County of Athabasca, Alberta", "T0A0M0"],
"description":
"The graph represents the annual respirable particulate matter emissions from 2006 to 2015 as reported to Environment and Climate Change Canada for this facility.",
"summary2015": [
{ "name": "Nitrogen oxides (NOX)", "value": "1107.44" },
{ "name": "Sulphur oxides (SOX)", "value": "438.03" },
{
"name": "Volatile organic compounds (VOC)",
"value": "292.27"
},
{ "name": "Carbon monoxide (CO)", "value": "2740.21" },
{ "name": "Ammonia (NH3)", "value": "87.19" },
{
"name": "Fine particulate matter (PM2.5)",
"value": "237.23"
},
{
"name": "Respirable particulate matter (PM10)",
"value": "340.59"
},
{ "name": "Total particulate matter (TPM)", "value": "498.25" }
]
},
"charts": {
"chart1": {
"credits": { "enabled": false },
"title": { "text": "Total matter emissions, 2006 to 2015" },
"subtitle": {
"text":
"West Fraser Mills Ltd., Ranger Board, Blue Ridge Alberta"
},
"yAxis": { "title": { "text": "Tonnes" } },
"xAxis": {
"categories": [
2005,
2006,
2007,
2008,
2009,
2010,
2011,
2012,
2013,
2014
],
"title": { "text": "Year" }
},
"legend": {
"align": "right",
"verticalAlign": "top",
"layout": "vertical",
"x": -10,
"y": 20
},
"series": [
{
"name": "Nitrogen oxides (NOX)",
"data": [
0.0,
1504.4,
1448.6,
1063.6,
1482.1,
1469.7,
1573.5,
1432.4,
1579.8,
1388.3
],
"type": "column"
},
{
"name": "Sulphur oxides (SOX)",
"visible": false,
"data": [
0.0,
752.6,
1309.9,
762.9,
315.3,
292.6,
398.0,
1191.0,
1601.4,
1358.0
],
"type": "column"
},
{
"name": "Volatile organic compounds (VOC)",
"data": [
0.0,
137.6,
280.8,
282.2,
286.6,
276.6,
292.6,
291.1,
284.3,
284.3
],
"type": "column"
},
{
"name": "Carbon monoxide (CO)",
"data": [
0.0,
2415.2,
2097.8,
2018.4,
1217.0,
2362.1,
2573.5,
2360.5,
2367.1,
1552.0
],
"type": "column"
},
{
"name": "Ammonia (NH3)",
"data": [
0.0,
81.3,
78.4,
85.8,
82.7,
79.2,
86.7,
82.6,
85.5,
83.2
],
"visible": false,
"type": "column"
},
{
"name": "Fine particulate matter (PM2.5)",
"data": [
0.0,
140.5,
101.0,
135.6,
194.3,
46.5,
193.0,
179.2,
354.2,
268.5
],
"type": "column"
},
{
"name": "Respirable particulate matter (PM10)",
"data": [
0.0,
248.0,
140.8,
190.6,
275.3,
63.6,
274.5,
252.7,
501.8,
377.4
],
"type": "column"
},
{
"name": "Total particulate matter (TPM)",
"data": [],
"visible": false,
"type": "column"
}
],
"exporting": {
"menuItemDefinitions": {
"viewData": null
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment