chore: add additional charts

This commit is contained in:
Kristofers Solo 2024-02-24 22:37:56 +02:00
parent 7619c1fd36
commit bc0621babc
19 changed files with 25 additions and 3 deletions

BIN
export/b.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
export/c.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
export/d.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

BIN
export/e.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
export/f.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
export/h.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
export/i.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
export/k.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
export/l.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
export/m.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
export/o.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
export/q.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
export/s.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
export/u.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
export/v.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
export/w.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

BIN
export/y.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
export/z.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

View File

@ -15,11 +15,33 @@ def read_data(filename: Path) -> pd.DataFrame:
return pd.read_csv(filename) return pd.read_csv(filename)
QUESTIONS = {
"b": "Es plānoju samazināt pārtikas atkritumus mājsaimniecībā",
"c": "Kādā veidā Jūs samaziniet savu atkritumu daudzumu?",
"d": "Ražotu dzērienu vietā (limonādes, ūdens pudelēs, alkoholiskie dzērieni) es dzeršu krāna ūdeni.",
"e": "Kāda ir Jūsu uztura izvēle?",
"f": "Kuras no sekojošām rīcībām Jūs būtu gatavi veikt?",
"h": "Kāda veida transportlīdzekļus Jūs izmantojat?",
"i": "Ja esat automašīnas īpašnieks, kuru no minētajām iespējām Jūs izvēlētos, lai būtu videi draudzīgāks?",
"k": "Kurš no sekojošiem apgalvojumiem Jums ir tuvāks?",
"l": "Kuras no sekojošām darbībām Jūs pārsvarā veicat ar informācijas un komunikācijas tehnoloģiju (IKT) ierīcēm (telefona, datora, televizora u.c.) un to lietošanu?",
"m": "Kādas darbības Jūs mēģinat veikt, lai samazinātu enerģijas patēriņu?",
"o": "Kādā mājokļa tipā Jūs dzīvojat?",
"q": "Vai Jūs atteiktos no liekas mājokļa platības?",
"s": "Vai Jūsu dzīvesvieta ir papildus nosiltināta?",
"u": "Kurš no apgalvojumiem atbilst Jūsu dzīves situācijai?",
"v": "Kurš no šiem apgalvojumiem ir patiess par Jūsu mājdzīvniekiem?",
"w": "Kurš no apgalvojumiem par pārvietošanos brīvdienās un atvaļinājumos Jums ir patiess?",
"y": "Kurš no šiem apgalvojumiem par apģērbu un apavu iegādi attiecas uz Jums?",
"z": "Kurš no apgalvojumiem par Jums ir patiess?",
}
def main() -> None: def main() -> None:
data = read_data(FILE_PATH) data = read_data(FILE_PATH)
checkbox.draw(
data, question="Kādā veidā Jūs samaziniet savu atkritumu daudzumu?", show=True, filename=EXPORT_DIR / "c.png" for column, question in QUESTIONS.items():
) checkbox.draw(data, question=question, filename=EXPORT_DIR / f"{column}.png")
if __name__ == "__main__": if __name__ == "__main__":