1
2
submitted 10 months ago by munkkey to c/dataviz

Northern pins zoomed in below. 🐘 indicates parked water containers nicknamed "elephants" with a capacity of 24000 L. Emoji not shown in header image and first image below.

Pins indicate static water tanks with at least 2500 L capacity, with ⁑ symbol meaning two of these water tanks in close proximity. Coordinates supplied here.

I must say the mapping service I use (Bing Maps) don't display the pin labels well relative to other labels on the map. OSM and Here might be better. Not using Google on purpose.

2
1
submitted 10 months ago by munkkey to c/dataviz

A continuation of this post on GTFS Static.

The files involved in GTFS Static are basically plain text. In GTFS Realtime though, if you attempt to load the protobuf file, you'll get something like the snapshot picture attached to this post.

Took me a while, but I finally got a Python IDE, fixed some code bugs and got the output I wanted. There may or may not be a Part 3 to this, depending on how much free time I have.

If you don't already have a general-purpose or Python-specific IDE, you can install PyCharm Community Edition. Set up a new project, then install and update the following packages: gtfs-realtime-bindings, pandas, requests. That should be sufficient for your IDE to recognize the code header given in their sample code.

from google.transit import gtfs_realtime_pb2
from google.protobuf.json_format import MessageToDict
import pandas as pd
from requests import get

The rest of the code is actually fine, although at first I wondered why print(df) produced a truncated table, as shown below.

Later I found out pandas (that did the work converting JSON into a flat table) has options to set how you want the table displayed. Full documentation available here, but the ones relevant to this code are pd.set_option('display.max_rows', ###), display.max_cols and display.width. Once the correct values are entered, I got the console to display what I wanted.

Yeah, I'm being very succinct on purpose. If you tried the above steps yourself and got stuck anywhere, feel free to ask me in the comment section. The next step for me would be to visualize this data. I've seen snapshots around but not a web interface to load the protobuf or GTFS-R (and static info) source to easily digest the live transport data. This looks like another free-time project for me queued up.

3
1
submitted 1 year ago by munkkey to c/dataviz
4
1
submitted 1 year ago by munkkey to c/dataviz

As is the case with everything published by Malaysiakini, the BM/Malay version is not paywalled and that's what I linked to. If you have an active subscription with them, you can view their full articles in English and Chinese. That said, they left the quiz and poll sections open for everyone to interact with. Check that out to find out what's in store for you this budget and vote up or down selected policies listed by the News Lab team.

Given how little coverage this community has on this year's budget (at the moment), and how little info the government has provided in the few days after Anwar tabled the budget, the infographics that I linked provide much-needed context. In it, these points are addressed:

  • How the government plans to handle the burgeoning subsidies and make them more targeted
  • How the debt-to-GDP ratio look like for next year, and plans to bring it down to 60% in stages
  • How the government increase revenue when contribution from petroleum is expected to drop next year
  • How allocations to various ministries differ between Budget 2023 and 2024
  • How expenditures across various sectors differ between five administrations (Najib to Anwar)

There may be more sections added to this news feature as the new week starts. I'll update the points above if needed. What do you think about Budget 2024? Share your thoughts below.

5
1
submitted 1 year ago* (last edited 1 year ago) by stormy001 to c/dataviz

6
7
submitted 1 year ago* (last edited 1 year ago) by munkkey to c/dataviz

If you have seen MoH's latest Covid dashboards before, then these dashboards apply the same UX on data from other govt agencies.

Previously these data are made public but with rather antiquated ways of displaying and utilizing the numbers. I felt the current design is more appealing to a broader audience, although some quotes and quips they pepper throughout the dashboard prefaces might be overdone.

There are a few upcoming dashboards like:

  • 9 November 2023 (Thursday), Baby Name Popularity lets you explore the popularity of any Malaysian name. Yeah they pushed the ETA by another four weeks wtf.
  • Available since 22 September 2023 (Friday), explore ridership from any origin to any destination on Rapid Bus and Rail services, at daily frequency.
  • Also available the same day, explore ridership from any origin to any destination on KTMB-operated services at daily frequency, based on data from KTM Integrated Ticketing System (KITS).
  • "On 14th Sep, look out for the release of daily births data, daily rainfall and temperature data, as well as granular income tax data!" As far as I know these dashboards were live a day before, if not earlier. EDIT: Daily births here, placed under "Data Catalogue" which is a separate category to the dashboard page I linked for this post.

Hope you have fun exploring these dashboards. Do share any interesting insights or bugs you encounter (not a dev, don't @ me).

7
3
submitted 1 year ago* (last edited 1 year ago) by munkkey to c/dataviz

Video of Aegean Paradise track starting 19 August 2023 morning, 160 seconds

Related to my Doulos Hope post recently, there's another ship parked at Swettenham Pier, which was this one.

It apparently does two trips a day to "nowhere", but when I check today it is heading to Satun.

Edit: was trying out better ways to format the post.

8
2
submitted 1 year ago by munkkey to c/dataviz

What would you like to see posted under this community?

Dataviz and Infographics

20 readers
1 users here now

Logo adapted from VectorStock / Razzan99

Welcome! This is where information gets condensed and presented in an easily digestable manner. We encourage all forms of statistics, including text/tables for the visually challenged.

Unless you made the graphics yourself (preface title with [OC]), please credit the author(s). Cite your sources whenever possible. I will occasionally update and tidy-up the sidebar. Thanks for reading!

founded 1 year ago
MODERATORS