RandomFractals / chicago-crimes

Exploring Chicago crimes dataset with Jupyter notebooks, DuckDB, Malloy and new Panel/PyScript data and dashboard tools.
GNU Affero General Public License v3.0
38 stars 4 forks source link

Create simple PyScript page showing 2022 crimes data #30

Closed RandomFractals closed 1 year ago

RandomFractals commented 1 year ago

https://github.com/RandomFractals/ChicagoCrimes/blob/master/notebooks/all-chicago-crime-charts.ipynb

RandomFractals commented 1 year ago

Basic 2022 csv data loading is done. However, matplotlib charts look rather boring. Might add some Altair charts instead.

Starter page for now: https://github.com/RandomFractals/chicago-crimes/blob/main/apps/pyscript/index.html

crimes-by-type-chart-matplotlib-pyscript

RandomFractals commented 1 year ago

Altair bar chart with tooltips example:

crimes-by-type-altair-chart-pyscript-page-view

RandomFractals commented 1 year ago

Added a few more Altair charts:

chicago-crimes-altair-charts-pyscript

RandomFractals commented 1 year ago

Final cut with more charts:

chicago-crimes-pyscript-page-3

RandomFractals commented 1 year ago

see new With PyScript section in docs: https://github.com/RandomFractals/chicago-crimes#with-pyscript