In a previous post, I shared an example of Box and Whisker plot with a small sample dataset. In this post, I’m using a larger dataset from Seaborn library of Python and go a little deeper with more examples using Python. We have a dataset in the Seaborn library called ‘tips’ that’s perfect for exemplifying […]
Author: tony R.
Box and Whisker Plot Example
Here’s a scenario: We have data on gas tank sizes (gallons) for different types of vehicles for Japan and USA. Our objective is to create an informative plot to depict the gas tank sizes of both countries by vehicle type categories. One great solution is the box-and-whisker plot. This type of visualization effectively compares the […]
Top Lobby Spenders 2023-2024
Companies, labor unions, trade associations and other influential organizations spend billions of dollars each year to lobby Congress and federal agencies. 2023 was a year of the largest spending since 2014 from 12,900+ lobbyists spending $4.3 Billion (not adjusted for inflation). In 2024 YTD, $3.3 Billion have been spent by 12,500+ lobbyists. Not surprisingly, real […]
Interactive Word-tree and Column chart
This post presents examples of a Word-tree chart, and a Column chart that are created using Google Chart engine that are interactive and can be embedded in a HTML page. We have a sample dataset of 250 college students’ favorite drink brand names in a raw format (fictitous dataset): Coca-ColaPepsiStarbucksRedBullMonsterGatoradeCoca-ColaPepsiDrPepperDrPepperStarbucksRedBullMonsterGatoradeCoca-ColaArizonaDrPepperArizonaRockstarCoca-ColaSprite7UpPepsiNestlé-Iced-TeaSprite…etc. Now I want to accomplish […]
Combo Scatter Plots, Normalization
In this article, I am presenting two key concepts: combining multiple scatter plots into a single plot for easy comparisons, and bringing data on different scales to a common one via normalization so that they can be accurately compared. To illustrate those concepts, let’s start with two datasets: 1) Data on a class of students […]
Interactive Gauge (Google Charts)
In this post, I demonstrate an interactive gauge using Google Charts library. It can be embedded into a web page as shown here, and connected to user-interface controls such as buttons with some javascript code. You can also just use it without interactivity to showcase metrics on a dashboard as a visualization. Go ahead and […]
Plotting movements, connections, routes with weights (interactive)
In the domain of data visualization, few charts are as captivating and informative as Sankey diagrams. These diagrams beautifully showcase the flow of something quantifiable from one point to another. Understanding and using Sankey diagrams can elevate our storytelling and provide profound insights into data. In this blog post, we’ll dive into the fascinating world […]
Python teaser/puzzle 45588-1346
This is a quick Python coding puzzle or brain teaser for educational and/or entertainment purposes. The challenge is quite simple but is useful for learning or refreshing your coding skills while exercising some logical thinking. Objective Write a Python function that returns the top n (highest) values from a list of numbers. For example, given […]
Python teaser/puzzle 45588-1338
This is a quick Python coding puzzle or brain teaser for educational and/or entertainment purposes. The challenge is quite simple but is useful for learning or refreshing your coding skills while exercising some logical thinking. Objective Write a function that returns the maximum difference between any two elements from a list of numbers. If the […]
Python teaser/puzzle 45588-1312
This is a quick Python coding puzzle or brain teaser for educational and/or entertainment purposes. The challenge is quite simple but is useful for learning or refreshing your coding skills while exercising some logical thinking. Objective Write a Python function that takes a list of integers as input and returns the 2 numbers that add […]