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 […]
Tag: programming
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 […]
Search Algorithms and Path Navigation
In this post, I introduce two fundamental search algorithms used to traverse or search through graphs or tree data structures: breadth-first search (BFS), and depth-first search (DFS). I also present an overview of a path/search navigation scripts for both algorithms and compare their metrics. This post builds on my earlier post about 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 […]
Creating a Pangram Phrase with Python
Introduction A pangram is a sentence that contains every letter of the alphabet at least once. The most famous example in English is “The quick brown fox jumps over the lazy dog.” Pangrams are not only fun to create but also useful in various applications, such as testing fonts and keyboards. Technically, a pangram doesn’t […]