Commit a8fffb34 authored by Hannes Warnestad's avatar Hannes Warnestad
Browse files

Probably last update

parent 47f420df
<!doctype html><html lang="sv"><head><meta charset="UTF-8"><title>Kategori: H&aringllbara transporter</title><header><script src="form2.bundle.js"></script><div style="height: 200px;width: 600px; position: absolute; border-radius: 5px; background-color: #f64c4f;"><h1 style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">H&aringllbara transporter 2</h1></div></header></head><body><form-2></form-2><script src="form2.bundle.js"></script></body></html>
\ No newline at end of file
<!doctype html><html lang="sv"><head><meta charset="UTF-8"><title>Kategori: H&aringllbara transporter</title><header><script src="form2.bundle.js"></script><div style="height: 100px;width: 100%; position: relative; border-radius: 5px; background-color: #f64c4f;"><h1 style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">H&aringllbara transporter 2</h1></div></header></head><body><form-2></form-2><script src="form2.bundle.js"></script></body></html>
\ No newline at end of file
This diff is collapsed.
<!doctype html><html lang="sv"><head><meta charset="UTF-8"><title>Resultat: H&aringllbara transporter</title><header><script src="form7.bundle.js"></script><div style="height: 100px;width: 100%; position: relative; border-radius: 5px; background-color: #f64c4f;"><h1 style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">Resultat: H&aringllbara transporter</h1></div></header></head><body><result-transport></result-transport><script src="form7.bundle.js"></script></body></html>
\ No newline at end of file
<!doctype html><html lang="sv"><head><meta charset="UTF-8"><title>Resultat: H&aringllbara transporter</title><header><script src="form7.bundle.js"></script><div style="height: 200px;width: 600px; position: absolute; border-radius: 5px; background-color: #f64c4f;"><h1 style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">Resultat: H&aringllbara transporter</h1></div></header></head><body><result-transport></result-transport><script src="form7.bundle.js"></script></body></html>
\ No newline at end of file
This diff is collapsed.
<!doctype html><html lang="sv"><head><meta charset="UTF-8"><title>Resultat: H&aumllsomedvetenhet</title><header><script src="form8.bundle.js"></script><div style="height: 100px;width: 100%; position: relative; border-radius: 5px; background-color: #f64c4f;"><h1 style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">Resultat: H&aumllsomedvetenhet</h1></div></header></head><body><result-health></result-health><script src="form8.bundle.js"></script></body></html>
\ No newline at end of file
<!doctype html><html lang="sv"><head><meta charset="UTF-8"><title>Resultat: H&aumllsomedvetenhet</title><header><script src="form8.bundle.js"></script><div style="height: 200px;width: 600px; position: absolute; border-radius: 5px; background-color: #f64c4f;"><h1 style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">Resultat: H&aumllsomedvetenhet</h1></div></header></head><body><result-health></result-health><script src="form8.bundle.js"></script></body></html>
\ No newline at end of file
This diff is collapsed.
<html lang="sv"><head><meta http-equiv="content-type" content="text/html" charset="ISO-8859-1"/><title>Resultat: H&aringllbar konsumtion</title><header><script src="form9.bundle.js"></script><div style="height: 100px;width: 100%; position: relative; border-radius: 5px; background-color: #f64c4f;"><h1 style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">Resultat: H&aringllbar konsumtion</h1></div></header></head><body><result-consumption></result-consumption><script src="form9.bundle.js"></script></body></html>
\ No newline at end of file
<html lang="sv"><head><meta http-equiv="content-type" content="text/html" charset="ISO-8859-1"/><title>Resultat: H&aringllbar konsumtion</title><header><script src="form9.bundle.js"></script><div style="height: 200px;width: 600px; position: absolute; border-radius: 5px; background-color: #f64c4f;"><h1 style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">Resultat: H&aringllbar konsumtion</h1></div></header></head><body><result-consumption></result-consumption><script src="form9.bundle.js"></script></body></html>
\ No newline at end of file
......@@ -6,7 +6,7 @@
<title>Kategori: H&aringllbara transporter</title>
<header>
<script src="form2.bundle.js"></script>
<div style="height: 200px;width: 600px; position: absolute; border-radius: 5px; background-color: #f64c4f;">
<div style="height: 100px;width: 100%; position: relative; border-radius: 5px; background-color: #f64c4f;">
<h1
style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">
H&aringllbara transporter 2
......
......@@ -6,7 +6,7 @@
<title>Resultat: H&aringllbara transporter</title>
<header>
<script src="form7.bundle.js"></script>
<div style="height: 100px;width: 100%; position: relative; border-radius: 5px; background-color: #f64c4f;">
<div style="height: 200px;width: 600px; position: absolute; border-radius: 5px; background-color: #f64c4f;">
<h1
style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">
Resultat: H&aringllbara transporter
......
......@@ -7,7 +7,7 @@
<header>
<script src="form8.bundle.js"></script>
<div style="height: 100px;width: 100%; position: relative; border-radius: 5px; background-color: #f64c4f;">
<div style="height: 200px;width: 600px; position: absolute; border-radius: 5px; background-color: #f64c4f;">
<h1
style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">
Resultat: H&aumllsomedvetenhet
......
......@@ -5,7 +5,7 @@
<title>Resultat: H&aringllbar konsumtion</title>
<header>
<script src="form9.bundle.js"></script>
<div style="height: 100px;width: 100%; position: relative; border-radius: 5px; background-color: #f64c4f;">
<div style="height: 200px;width: 600px; position: absolute; border-radius: 5px; background-color: #f64c4f;">
<h1
style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">
Resultat: H&aringllbar konsumtion
......
......@@ -18,28 +18,32 @@ class resultBase extends WC {
template.appendChild(tempDiv);
allCharts[i] = Highcharts.chart(tempDiv, {
chart: {
type: "column",
events: {
render: function () {
allChartsInfo[i].dataMethod.then(res => {
for (let i = 0; i < res.xNames.length; i++) {
readFromServer(res.data, i).then(res2 => {
this.addSeries({
data: [{
x: i,
y: parseFloat(res2.count)
}]
})
});
}
});
}
}
type: "column"
// events: {
// load: function () {
// allChartsInfo[i].dataMethod.then(res => {
// for (let i = 0; i < res.xNames.length; i++) {
// readFromServer(res.data, i).then(res2 => {
// this.addSeries({
// data: [{
// x: i,
// y: parseFloat(res2.count)
// }]
// })
// });
// }
// });
// }
// }
},
xAxis: {
categories: allChartsInfo[i].dataMethod.then(res => { return res.xNames })
},
// xAxis: {
// categories: []
// },
series: [{
name: allChartsInfo[i].title,
data: []
}],
tooltip: {
formatter: function () {
return '<b>' + this.x + ':</b> ' + this.y;
......@@ -68,6 +72,20 @@ class resultBase extends WC {
});
}
let i = 0;
allCharts.forEach(chart => {
allChartsInfo[i].dataMethod.then(res => {
chart.xAxis[0].setCategories(res.xNames);
for (let j = 0; j < res.xNames.length; j++) {
readFromServer(res.data, j).then(res2 => {
var y = parseInt(res2.Count);
chart.series[0].addPoint(y);
});
}
})
i++;
})
}
}
export default resultBase;
\ No newline at end of file
No preview for this file type
#Generated by Maven
#Tue Nov 24 09:17:29 CET 2020
#Tue Nov 24 10:06:09 CET 2020
groupId=com.rplp.forms
artifactId=rplp-forms
version=1.0.0
<!doctype html><html lang="sv"><head><meta charset="UTF-8"><title>Kategori: H&aringllbara transporter</title><header><script src="form2.bundle.js"></script><div style="height: 200px;width: 600px; position: absolute; border-radius: 5px; background-color: #f64c4f;"><h1 style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">H&aringllbara transporter 2</h1></div></header></head><body><form-2></form-2><script src="form2.bundle.js"></script></body></html>
\ No newline at end of file
<!doctype html><html lang="sv"><head><meta charset="UTF-8"><title>Kategori: H&aringllbara transporter</title><header><script src="form2.bundle.js"></script><div style="height: 100px;width: 100%; position: relative; border-radius: 5px; background-color: #f64c4f;"><h1 style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">H&aringllbara transporter 2</h1></div></header></head><body><form-2></form-2><script src="form2.bundle.js"></script></body></html>
\ No newline at end of file
This diff is collapsed.
<!doctype html><html lang="sv"><head><meta charset="UTF-8"><title>Resultat: H&aringllbara transporter</title><header><script src="form7.bundle.js"></script><div style="height: 100px;width: 100%; position: relative; border-radius: 5px; background-color: #f64c4f;"><h1 style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">Resultat: H&aringllbara transporter</h1></div></header></head><body><result-transport></result-transport><script src="form7.bundle.js"></script></body></html>
\ No newline at end of file
<!doctype html><html lang="sv"><head><meta charset="UTF-8"><title>Resultat: H&aringllbara transporter</title><header><script src="form7.bundle.js"></script><div style="height: 200px;width: 600px; position: absolute; border-radius: 5px; background-color: #f64c4f;"><h1 style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">Resultat: H&aringllbara transporter</h1></div></header></head><body><result-transport></result-transport><script src="form7.bundle.js"></script></body></html>
\ No newline at end of file
This diff is collapsed.
<!doctype html><html lang="sv"><head><meta charset="UTF-8"><title>Resultat: H&aumllsomedvetenhet</title><header><script src="form8.bundle.js"></script><div style="height: 100px;width: 100%; position: relative; border-radius: 5px; background-color: #f64c4f;"><h1 style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">Resultat: H&aumllsomedvetenhet</h1></div></header></head><body><result-health></result-health><script src="form8.bundle.js"></script></body></html>
\ No newline at end of file
<!doctype html><html lang="sv"><head><meta charset="UTF-8"><title>Resultat: H&aumllsomedvetenhet</title><header><script src="form8.bundle.js"></script><div style="height: 200px;width: 600px; position: absolute; border-radius: 5px; background-color: #f64c4f;"><h1 style="text-align: center; color: white; vertical-align: middle;font-family:'Times New Roman';line-height: 100px;height: 100px;">Resultat: H&aumllsomedvetenhet</h1></div></header></head><body><result-health></result-health><script src="form8.bundle.js"></script></body></html>
\ No newline at end of file
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment