Skip to content

Commit

Permalink
Add code for visualizing population data in ASEAN countries
Browse files Browse the repository at this point in the history
  • Loading branch information
PeaceAntoHim committed Sep 15, 2024
1 parent b419540 commit e288859
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions public/assets/SEM6/DS/TP1/visual-data-penduduk.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import matplotlib.pyplot as plt

# Data Negara dan Jumlah Penduduk (dalam juta)
negara = ['Indonesia', 'Brunei Darussalam', 'Malaysia', 'Thailand', 'Vietnam']
jumlah_penduduk = [267, 5.63, 327, 126, 69.4]

# Membuat visualisasi line chart
plt.plot(negara, jumlah_penduduk, marker='o')
plt.title('Jumlah Penduduk di Beberapa Negara ASEAN')
plt.xlabel('Negara')
plt.ylabel('Jumlah Penduduk (dalam juta)')
plt.grid(True)
plt.show()

0 comments on commit e288859

Please sign in to comment.