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 […]
Tag: coding
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 […]
Circle and Star charts in Python
In this post, I share the code on how to create a circle and a star chart using the very flexible XY scatter chart type and the very versatile matplotlib Python library. The number of lines of code needed are very small but the key here is to understand the parametric equations needed to generate […]
Path Navigation Gamification
In an earlier post, I shared a couple of fundamental search and navigation algorithms. You can read it here. In this blog post, I’ll share a fun implementation, a gamification using one of the algorithms. The premise is simple: We have a seeker (depicted by a bandit) whose objective is to find a target (a […]
Stack and Queue Real-time Demo
In this post, I present the concepts of stack and queue which are fundamental in computer science. Furthermore, I demonstrate them with an interactive application below to clearly and visually present what goes on as new elements are added or removed from each and their differences in behavior. The implementation of a stack and queue […]
Pangram Verifier (Python)
Objective Write a script that takes a user-input and checks if it’s a pangram. A pangram is a sentence/phrase/string that contains all letters of the alphabet (in this case, English) at least once. However, technically, a pangram doesn’t necessarily have to be a grammatically correct sentence. The goal of a pangram is to include every […]