article_text stringlengths 10 100k | tags stringlengths 6 263 |
|---|---|
A few months ago, I learned D3.js for the first time. My goal was to use it to create charts for a React dashboard built by the company I work for, Elevate Security. However, I quickly realized that learning the D3 library was probably the easiest part of my task. The more challenging undertaking was deciding how to in... | ['React', 'Data Visualization', 'JavaScript', 'Reactjs', 'D3js'] |
After writing this data story, I realized that it may be helpful to write a piece outlining the power of creating web visualizations for audiences. As a data science graduate student (and data engineer by profession), I’m often disappointed by the lack of follow-through (me included) on how we communicate conclusions o... | ['Data Visualization', 'Climate Change', 'D3js', 'Data Science', 'Angular'] |
How to create D3js v6 Timeline Chart
D3js is a Javascript library for doing graphical magic on data. In the year 2020, it was upgraded to version 6.
And this brings us a little problem. Official examples gallery doesn’t use Javascript, instead it uses special Observable Notebook language. It is not easy, nowadays, to... | ['Programming', 'D3js', 'Tutorial', 'Go', 'Golang'] |
Photo by Carlos Muza on Unsplash
Have you ever seen a data visualization and thought it would be great to use it in a Jupyter Notebook? I know I have, many times. Notebooks are the perfect place to experiment with data visualization, because they can contain all the data wrangling, preprocessing, pictures, and documen... | ['Jupyter Notebook', 'Python', 'JavaScript', 'Visualization', 'D3js'] |
Experience Learning D3 Javascript Library: Things I picked up on Perezchristian Apr 13·3 min read
Photo by Campaign Creators on Unsplash
I came across D3 when I was applying to a position at a media company and was asked in a code challenge to submit a bar chart with data that is within a csv file. Unfortunately I wa... | ['JavaScript', 'D3js'] |
Svelte: Communication between components through the Store
Implement communication between unrelated components using Svelte's built in store CertosinoLab Sep 2·3 min read
Photo by Jess Bailey on Unsplash
Svelte’s store: A short Introduction
In Svelte, state management is simplified by the presence of an internal s... | ['Web Components', 'Svelte 3', 'JavaScript', 'Sveltejs', 'D3js'] |
I’ll be the first to say that I’m not an expert in paid and unpaid labor, or global gender equality. This project calls attention to all of those, and uses a dataset on the same from the OECD as its jumping off point. But the project arose because I am fascinated by the forms of truth we can authentically capture and r... | ['Data Feminism', 'Data Visualization', 'SVG', 'Data Humanism', 'D3js'] |
Photo by Sime Basioli on Unsplash
Overview
The objective of this project was create an online dashboard for school administrators and researchers to view reports based on survey data from their schools. These data were aggregated, analyzed, and exported to be fed into various visualizations, and these visualizations ... | ['React', 'Project Development', 'Education', 'D3js', 'Software Development'] |
Part three: Enough doors knocked
An international student pays about 3 times the tuition for in-state students. We are aware of this and still enroll to the best US universities because of the quality of education and the opportunities offered. (I feel the need to thank our president Mr. Mitch Daniels for his remarkab... | ['Data Visualization', 'Funding', 'Education', 'D3js', 'Research'] |
Clients often want to embed icons in d3 which is not a built in feature.
Here’s my solution for 2 great icon providers.
Linear Icons
a) choose your icon
When you go to the website and click on an icon you get the properties page:
You need to store the number in the Entity field (in this case 800).
You will be usi... | ['Icons', 'JavaScript', 'D3js', 'Font Awesome'] |
This is the sixth (and final) in a series of recaps I’ll be posting for the final season of Game of Thrones based on work I’ve described in “The Ultimate Game of Thrones Dataset”, “32 Game of Thrones Data Visualizations”, and “19 More Game of Thrones Data Visualizations.”
Well, it’s all over now. Unlike the vast major... | ['Data Visualization', 'Data', 'HBO', 'Game of Thrones', 'D3js'] |
D3.js is a JavaScript library that enables you to create dynamic data visualizations in web browsers. It specializes in visualizing large data sets in an understandable and interactive way. The D3.js library stands out as one of the best data visualization tools for front-end developers because of its core features, su... | ['Data Visualization', 'Programming', 'Web Development', 'JavaScript', 'D3js'] |
Getting to know D3 js.
Data-driven document
This article aims to give you an overview of D3(Data-Driven Documents). It is an open-source JavaScript library that can be used to create data visualizations on the web by using HTML, CSS, and SVG.
What do we use D3 JS for:
Create different styles of visual representatio... | ['JavaScript', 'HTML', 'SVG', 'Js', 'D3js'] |
Thesis
The results will change in a way that more teams would lose matches at home, because the away team does not have to fight against both: 11 players in the home team and the cheering fans.
Setup
For better comparison, we decided to display data from two seasons before Corona changed our way of living until now.... | ['Soccer', 'Data Visualization', 'JavaScript', 'Corona', 'D3js'] |
Step 1: how do I add React to an existing application?
I had built small React apps for tutorials, online classes, etc., but they were all standalone. I had to figure out a way to keep the React workflow I was used to but somehow hook it into my existing web app. The React docs have a very nice section on how to add R... | ['React Router', 'React', 'Legacy App Modernization', 'Legacy Application', 'D3js'] |
Step 4: Build the back end
The server function is the best part of every Shiny app. This is where you get to do data science. This is also where you paste code from stack overflow and hope it works. Now that I think about it, those two things are the same.
Before we get started building the server function, lets look... | ['R', 'Data Visualization', 'JavaScript', 'Data Science', 'D3js'] |
Making a Skill-Tree With D3 and Vue
What I got out of it at the end
Motivation
I have a portfolio website that I use basically as a dynamic resume, to showcase my technical abilities and accomplishments. I built it using Gridsome which is written in Vue, and using Buefy as the main component library simply because I... | ['Vuejs', 'Programming', 'SVG', 'Skills', 'D3js'] |
Over the past few months I’ve been using Google Data Studio in my role at the Data Science Campus, Office for National Statistics. Having used data visualisation tools like Shiny, D3 and Dash to create bespoke dashboards in other projects I did groan when asked to use Google’s late entry into the dashboard market. Thin... | ['Data Visualization', 'Data Studio', 'Google', 'D3js', 'Choropleth Map'] |
Appending Text to the Screen
Before we start, I’ll like to mention that I am using the D3 JavaScript Library. So if anyone plans on using my code, please take a look at that library and import the library in your own project.
I am also using a mono space font, which is a type of font that the letters/characters each ... | ['JavaScript', 'D3js', 'Scalable Vector Graphics'] |
An Introduction to Making Dynamic and Interactive Plots with D3
Photo by chuttersnap on Unsplash
I’ve always been hesitant to learn how to use D3.js. It has always seemed much less intuitive than other libraries such as matplotlib , which I have written extensively about. However, here I find myself writing a tutoria... | ['Data Visualization', 'Programming', 'JavaScript', 'Data Science', 'D3js'] |
Version 0.2.1 of the modelStudio package reached CRAN this week. Let me shortly overview coolest new features (list of all changes).
Short reminder: The modelStudio package creates an interactive serverless D3.js dashboard for exploration of predictive models, which is based on principles of Explanatory Model Analysis... | ['Machine Learning', 'Model Visualisation', 'D3js', 'Model Exploration', 'Xai'] |
Binding Data
First and foremost D3 allows you to bind data (arrays) to DOM element selections for later dynamic rendering. What does that mean exactly?
To start, you would make a selection of elements from the DOM. This is where some of D3’s streamlined traversal comes in handy. D3 provides an example of a messy trav... | ['Coding', 'Programming', 'JavaScript', 'D3js', 'Software Development'] |
D3, which stands for data driven documents, has been the industry standard for creating custom data visualizations on the web since it’s creation in 2011. I like to think about D3 as a library that loads data and attaches it to the DOM. React is a Facebook technology which makes it painless to create interactive UIs. I... | ['Front End Development', 'React', 'Data Visualization', 'JavaScript', 'D3js'] |
On a recent vacation my husband and I happened upon an entertainment shop that was well stocked with board games, dice, playing cards, etc. We quickly found an item that both of us, absolute nerds that we are, deemed an essential purchase: a book by Boris A. Kordemsky called The Moscow Puzzles: 359 Mathematical Recreat... | ['Math Puzzles', 'Data Visualization', 'D3js', 'Puzzle'] |
In this article, I will go over my transition from React to Angular and point out some of the nuances I found; in case you want to simply check out the code it is available on Github.
As a User Experience/Data Visualization Engineer at Kabbage I’m tasked with helping our product teams create rapid prototypes of upcomi... | ['React', 'Data Visualization', 'JavaScript', 'D3js', 'Angular'] |
D3.js…meet Lightning Web Components
4 things I learned creating an interactive timeline component for the Salesforce platform using third party JS libraries Dave Norris Jan 5, 2020·4 min read
It’s been 10 weeks since my first article. In that time we’ve discussed taking an idea for an interactive timeline through to ... | ['Salesforce', 'Lightning Web Components', 'Lwc', 'D3js'] |
Hi Fellow UI-Devs,
This time with full javascript module explanation with React.
Being a UI-Dev, obviously at-least once we would have come across a requirement where we have to build a graph (say bar-chart) to show maybe a summary as a part of dashboard. Some might have used D3.js — raw js plugin dealing with svg wh... | ['React', 'Vx', 'JavaScript', 'Virtualization', 'D3js'] |
Making hierarchy layouts with D3.js
D3 Hierarchy Layouts (https://codepen.io/stopyransky/pen/EXdrOo)
In order to make hierarchical layouts, as above, we need to create a specific hierarchical structure from our tabular data. This requires several data preprocessing steps. Particularly important is aggregating tabular... | ['Array Methods', 'JavaScript', 'D3js', 'Data Visualisation'] |
I’ve had the idea to use a Venn diagram on the landing page of my personal site for awhile now. My life is and always will be best represented by a Venn diagram. I am happiest when my core talents (verbal, expressed in both writing and teaching; technical; visual) intersect in interesting ways — teaching math to fashio... | ['Geometry', 'JavaScript', 'D3js'] |
增強 D3.js 的視覺化功能
在這篇會討論的內容有增加篩選資料功能、增加動畫效果,使你的資料看起來和緩自然,最後,我們增加一些 tooltips,讓使用者 hover 到某個地方時,會顯示該資料的內容。
在 D3.js 基礎繪圖中,有提到我為 scatter plot 製作了一個特殊的功能:只顯示 min/max 的點,我今天打算為他來製作新功能:使用者可以透過下拉選單選擇顯示全部點的數字、只顯示 min/max、以及不顯示。
為了完成這個目的,我們要先做到兩件事:調整 showMinMax 函式(這個命名不是很好)
還有在下拉選單的挑選時,讓 js 知道前端 select 元素更改的事件。
雖然我們有 jQuery 可... | ['Visualization', 'D3js', 'Interaction Design'] |
Converting D3.js to PDF to PowerPoint
After creating a beautiful visualization in D3.js I often get the same question from my colleagues in marketing: «Could you send me a PowerPoint of this?». I usually explain that this a programmed chart, similar to a website, and that it is unfortunately not possible to put this o... | ['JavaScript', 'Pdf', 'PowerPoint', 'Emf', 'D3js'] |
Making Treemaps
First, we want to define the root of the treemap and get the SVG from the DOM. This is where we will place everything.
This can be done with d3.select . It works just like a jQuery selector. We can also manipulate attributes with the attr method. Since each d3 call returns the same object, we can chai... | ['Data Visualization', 'Web Development', 'Programming', 'JavaScript', 'D3js'] |
10 things I learned from Covid-19 with D3.js
Global Timeline of Covid19 by Stacy S. Cho
Overview
Global Covid19 Timeline has earned a lot of 💌 👏 😍from many people. I really appreciate for everyone’s support
As of now April 16, 2020, Global Covid19 Timeline has earned - 9K+ User Traffic - 58 Likes & 15 Comments f... | ['Technology', 'Programming', 'Web Development', 'JavaScript', 'D3js'] |
Tableau is powerful visualization tool used in Business Intelligence Industry. It offers a lot of visualizations which can be used to transform raw data to a visual format which is much easier to understand. But sometimes the built-in visualizations are not enough when we have some special type of data which require a ... | ['Frontend Development', 'Tableau', 'Business Intelligence', 'Visualization', 'D3js'] |
Introduction:
We aim to create a dashboard that will help visualize the data from FIFA 20 and help FIFA players make better decision about which players to purchase with the help of statistics. FIFA 20 is a simulation football (soccer) game where real-life players and teams are simulated. The game is known for its rea... | ['FIFA', 'Soccer', 'Football', 'Visualization', 'D3js'] |
Creating The Example App
We’ll start by creating a new React app using create-react-app bootstraper. If you have Node.js installed on your machine, just run the following command:
npx create-react-app react-d3-force
This command will generate a new React project. After the project was created, get into the app folde... | ['Web Development', 'D3js', 'React', 'Font Awesome'] |
Loading and accessing the data
Download the data set to follow along.
If you’re not familiar with asynchronous programming, these next parts might feel a bit confusing to you. We’re going to have to work on the honor system though, as I’m not about to explain it in this post.
Alright — so first thing is first: we ne... | ['Beginner', 'D3js', 'JavaScript'] |
X Axis & D3 Scaleband
Let’s take a moment to talk about the xAxis.js , and specifically, scaleBand which we have imported from d3-scale here.
The main concept around constructing graphs with D3 is the idea of drawing an SVG. We need a way to take a set of data and determine its x,y position on the SVG. The way to do ... | ['Tutorial', 'Graph', 'D3js', 'React Native'] |
The Training Log
The new Training Log.
The new Training Log is built in React utilizing the NextJS framework. NextJS offers library-specific benefits like plugins for internationalization and bundle analysis for server-side rendering. While it’s not a requirement for every frontend app to use NextJS, and there are pa... | ['React', 'Nextjs', 'Frontend', 'Strava', 'D3js'] |
Let’s make a chart
First things first — the data. We’ll store some dummy data in the JSON format. I’ve named mine sales.json and it looks like this:
[
{“Period”: “Q1–2020”, “Amount”: 1000000},
{“Period”: “Q2–2020”, “Amount”: 875000},
{“Period”: “Q3–2020”, “Amount”: 920000},
{“Period”: “Q4–2020”, “Amount”: 400000}... | ['Towards Data Science', 'Data Visualization', 'JavaScript', 'Data Science', 'D3js'] |
After 3 years of development, 2.5 years of production use at Airbnb, and a rewrite in TypeScript we are excited to announce the official 1.0 release of visx (formerly vx). You can find the project on GitHub and browse documentation and examples on airbnb.io.
At Airbnb, we made it a goal to unify our visualization stac... | ['React', 'Typescript', 'Visualization', 'Open Source', 'D3js'] |
by Ellie Frymire, Data Visualization Developer, Two-N
Note: In this article, we present an argument for using contour maps to represent graphically continuous data, and follow up with a technical how-to on implementation using d3.js. Although the first section is written towards for all audiences as a discussion of vi... | ['Data Visualization', 'JavaScript', 'Maps', 'Visualization', 'D3js'] |
When creating a topology builder (or any type of graph/layout that is based on a group of nodes that are drawn on one canvas), one of the most common operations will be to drag a node from a list of building blocks and drop it onto that canvas.
We can drop a node on to the canvas itself and it will be drawn based on t... | ['React', 'JavaScript', 'SVG', 'Drag And Drop', 'D3js'] |
D3 Selections In Depth
Care to understand how things work under the hood? if so I assume you already reached out the following Mike Bostock’s (the creator of d3) post from 2013.
The post explains the selections implementation. Tough 2013 seems like a lifetime ago in Javascript, the general concepts are the same.The p... | ['Data Visualization', 'JavaScript', 'In Depth', 'Frontend', 'D3js'] |
Why interactive visualization is important
We perceive most of the information visually. We have the capability to instantly recognize and localize objects. We group them in the same category regardless of their shape, size, color, distance, cluttered or not. Most of the time, in order to understand some concepts it i... | ['Data Journalism', 'Data Visualization', 'JavaScript', 'Data Science', 'D3js'] |
From .txt file to d3.js visualization
Photo by Randy Fath on Unsplash
It was noted a few years ago by IBM that working as a Data Scientist means that you’ll likely have to abide by the “80/20 rule” quite often— 80 percent of your time will be spent simply finding, cleaning, and organizing data, leaving only 20 percen... | ['Data Visualization', 'Regular Expressions', 'JavaScript', 'Data Science', 'D3js'] |
Quickly Visualize Snowflake’s Roles, Grants, and Privileges
by Venkatesh Sekar
A few months ago, I published a blog post as a guide to capturing Snowflake users, roles, and grants into a table. Things have changed, however, and Snowflake now provides views that deliver better functionality. In this post, I’m going to... | ['Cloud Computing', 'Snowflake', 'Data', 'Snowflake Computing', 'D3js'] |
So all of us some or other time come across the designs where we have to integrate a bar chart or a density chart in our UI. D3.js and highcharts are few of the coolest libraries where your work can be done on the fly.
Its super easy lets have a look on how can integrate with D3.js first in Angular and then with SAP U... | ['Sapui5', 'Highcharts', 'Third Party Library', 'Angularjs', 'D3js'] |
“Numbers have an important story to tell. They rely on you to give them a clear and convincing voice.”- Stephen Few
Often data is analyzed using spreadsheets or dashboards which gives an understanding of what the data is all about, but sometimes these methods fail to provide a relevant context as to why the data is th... | ['Data Vizualisation', 'Muze', 'D3js', 'Data Analysis', 'Data Stories'] |
With the fluent syntactic sugar, it can be combined in one liner. Now D3.js can draw SVG paths for all US counties using the GeoJSON features collection.
D3.js teams up rather well with TopoJSON to simplify Map visualizations. All the data magic happens by calling topojson.feature(us, us.objects.counties).features() f... | ['Cartography', 'Geojson', 'Datamap', 'D3js', 'Topojson'] |
實作學習筆記
在實作過程中,遇到大大小小的困難。有的稍微上網查一下便迎刃而解,有的嘗試了好幾個小時只有一點進展。不論問題點是大是小,都從中獲得許多,以下將依開發的順序,記錄這些學習。
(1) 引用 Tailwind CSS 至專案
最初參考這支 Youtube 教學影片 Set up a New Project with Vue.js and tailwind.css。後來發現只要在創建好專案時,加上: vue add tailwind 指令,即自動配置好原本需手動修改的部分。
(2) 季度切換之樣式改變
若在一般 js 檔案開發,會使用querySelectAll 將所有按鈕做選取,先將所有 button 的 activ... | ['Firebase', 'Vuejs', 'JavaScript', 'Frontend', 'D3js'] |
Is D3.js as hard as it looks? Creating a Data Exploration App from Scratch
Photo by Myke Simon on Unsplash
D3 library of JavaScript is known for its flexibility and power for creating interactive and/or animated visualizations and also its steep learning curve.
This library is developed by Mike Bostock who also prov... | ['Data Visualization', 'Web Development', 'Movies', 'Data Exploration', 'D3js'] |
Data visualization with D3.js for beginners
Have you ever walked into a packed stadium or a musical show and tried to guess how many people were surrounding you? Were you way off? Analyzing high-volume data can be overwhelming. But, when you take abstract data points and convert them into an accurate, sizable visual, ... | ['Data Visualization', 'JavaScript', 'Data Analysis', 'Data Science', 'D3js'] |
Let’s build a simple page with SvelteKit! Just recently I stumbled across slate and its design system while reading about filecoin. Today I will use their design system and Tailwind CSS JIT to create a little page in SvelteKit.
Step 1 — Setup Project
Setting up the project I basically followed the “Getting Started” s... | ['Sveltekit', 'Data Visualization', 'Tailwind Css', 'D3js', 'Svelte'] |
Based on the requirements, lets get started with building a QS extension using Nebula.js.
Prerequisites:
Node.js(version 10 or newer) A terminal(for example, Git Bash on Windows or Terminal on Mac) An IDE of your choice, for example, VS Code. An existing web integration, or possibility to get one created in your tena... | ['Visual Analytics', 'D3js', 'Qlik Sense'] |
Before starting this blog post, let’s learn a bit more about data visualization. If you’re familiar with data analysis, then you must have encountered data visualization. It is a key part of data analysis. In simple terms, Data visualization is when you take raw data and present it visually using graphs, charts, and ma... | ['Data Visualization', 'JavaScript', 'Data', 'Data Science', 'D3js'] |
We can build very powerful network graphs using D3 Force Simulation library. I have already written how we can build such graph in Angular in my previous blog.
In this blog, I have done same exercise but with React.js and TypeScript. Before we start, checkout the running application to see what we are trying to build.... | ['React', 'Graph', 'Reactjs', 'Typescript', 'D3js'] |
Have you ever heard the belief that data drives the best decision-making, and been slightly confused at what this widely held assumption means in practice? How exactly do teams turn complex and sometimes dense data into insights and actionable decisions? The answer: by means of some sort of graphical representation or ... | ['Data Visualization', 'D3js'] |
Photo by Lukas Blazek on Unsplash
I’ve been learning much about D3 and its usefulness this past week. In the course so far I was able to do week 1 with no problem since it was just a JavaScript refresher course. For the week 2 curriculum, I learned about writing the code to create bar charts and label the x and y axis... | ['JavaScript', 'D3js'] |
React Function Components with Hooks gives us a nice way to integrate D3 with React. There are many related articles that describe this already but they get in the weeds and complicated quickly. This article is just the basics on where to put things to get started correctly. You can expand from there.
In the past it w... | ['React', 'JavaScript', 'Hooks', 'Typescript', 'D3js'] |
I have to disagree -vehemently- with this article on several points. I raise this particularly because it appears unwarrantedly high in Google’s search results.
My first and foremost issue is that (as your article brings all too clearly home) libraries such as React and Vue are essentially treating effects (resource l... | ['Music Visualization', 'D3js', 'Data Driven'] |
Practicing around D3.js over Appdynamics
Trying out novel visualization models to increase the insights over your infrastructure CrashLaker Apr 21, 2019·5 min read
GIF extracted from https://www.youtube.com/watch?v=nXXyWLft1zc
Disclaimer: Some contents written were based solely from my experience uppon using the App... | ['https://solucaoprimeitapmappdynamics.wordpress.com/tag/appdynamics/', 'JavaScript', 'D3js', 'Appdynamics'] |
In this tutorial, we’ll be showing you how to use Chart.js and D3’s color scales to create a series of pie charts whose colors are computed automatically.
Generating colors automatically can be tremendously useful for the following cases:
You might have
A ton of data points — Manually selecting colors for this data ... | ['Front End Development', 'Data Visualization', 'JavaScript', 'D3js', 'Charts'] |
Set up your work space.
Set up your files in a directory:
index.html
main.js
main.css
Install d3.js
Download d3.js and unzip to your project folder, or alternatively you can link to the script at the bottom of your html file:
<script src="https://d3js.org/d3.v5.min.js"></script>
Install d3-simple-slider via Ter... | ['Prototyping', 'Programming', 'JavaScript', 'D3js', 'Tutorial'] |
Everyone knows that devs love trees. In fact, it might be the most common way to start a tech blog post. This time we used a Dragon blood tree. We like the way it branches; it is like the organic physical representation of our node_modules folder….
Hey! It’s been a while and we wanted to let you know that the web team... | ['Jest', 'Web Development', 'JavaScript', 'Webpack', 'D3js'] |
Wordcount
After having a play with extracting data from streaming shows for a different series, I became curious about what else could be done using closed caption (.srt) data. At the time, some text scripts for Game of Thrones could be found online (at sites like genius.com and Springfield! Springfield!) and you coul... | ['Data Visualization', 'Data', 'HBO', 'Game of Thrones', 'D3js'] |
TL;DR
Use React as container for D3 which manage SVG and everything inside it, application level management should be done by React. See code listing at the bottom of article for minimum viable example.
The approach
There has been already a lot of articles written about how world of React and D3 can(‘t) work togethe... | ['React', 'Data Visualization', 'JavaScript', 'SVG', 'D3js'] |
The Fibonacci sequence has been fascinating mathematicians since immemorial times: a simple formation with many amazing properties.
This sequence begins with 1 and 1. The other numbers are the sum of the previous two. Hence, the following numbers are:
1 + 1 = 2
3 = 1 + 2
5 = 3 + 2
8 + 5 = 3
and so on.
There is a... | ['Vba', 'Visual Math', 'Forgotten Math', 'Fibonacci', 'D3js'] |
As you may understand, we update the svg dimension, then the chart config (arcs for pie/donut, axis scales for bars) and finally, we repaint all the chart which means slices for pie/donut or bars and axis for bar chart.
Interactivity
It may be interesting to add some cool stuff like a tooltip which will follow the mo... | ['Data Visualization', 'Web Development', 'JavaScript', 'D3js', 'Angular'] |
You’ve made it to a point with your data project that you’d like to add mouse over effects. First of all- congrats! You’ve made a graph! If you haven’t made a graph yet, I suggest following my donut chart tutorial. I’ll be building off of it here, so it may be a helpful reference.
Where should mouse-over code go?
To ... | ['Data Visualization', 'JavaScript', 'Data', 'Donut Chart', 'D3js'] |
Getting started
This tutorial uses d3 v4.6. The CDN is hosted on Cloudflare, so you can start by adding this script tag to your html file:
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.6.0/d3.min.js"></script>
While still in your html file, add a div with an ID (I’m using #scatter in this tutorial) where ... | ['Data Visualization', 'JavaScript', 'D3js', 'Data', 'Scatter Plots'] |
React-Vis is an incredibly configurable charting library open sourced from the folks at Uber. It’s main premise is that it provides D3 functionality while still using React component and props. This is great given the fact that React is a widely popular view framework used by many frontend developers. D3, on its own ho... | ['Charts', 'React', 'JavaScript', 'React Vis', 'D3js'] |
Making a donut chart with d3.js is not as difficult as it may seem. We’ll start by making a simple donut chart, then add buttons to switch between data sets with a smooth, animated transition. See an example of my donut chart in action here.
First things first, this tutorial uses d3.js version 4.6.0. I’m using the CDN... | ['Data Visualization', 'JavaScript', 'Data', 'Donut Chart', 'D3js'] |
A reference area or highlighted area in a chart, as the name suggests, can be used to highlight some important information in the chart. This can, for example, be used to mark a period of decline in sales of a commodity, and provide extra context on hover or other interactions.
Recharts provides an implementation of R... | ['React', 'JavaScript', 'D3js', 'Charts', 'Recharts'] |
How to build a sitemap with a node.js crawler and D3.js (Part 2/2)
In this second part of the series we’re going to use the crawler output from part 1 and end up having a tree sitemap in our browser, in an index.html. Babette Landmesser Follow Jun 1, 2020 · 6 min read
This tutorial is based on this d3.js example.
Pr... | ['Generator', 'Sitemap', 'JavaScript', 'Nodejs', 'D3js'] |
Blockbuster superhero movies are increasingly dominating the movie release calendar each year. While Marvel is clearly leading the way with an ever growing fan base, how far behind is DC ?
While box office is the most talked about measure of success, profits earned and ratings from critics will also have an influence ... | ['Visualization', 'Dc', 'D3js', 'Marvel'] |
D3.js is javascript library used to make interactive data driven charts. It can be used to make the coolest charts. It has a very steep learning curve. But once you understand the basics of D3.js, you can make the coolest charts work for you.
In my last article I wrote how to make plot of covid19 cases in India using ... | ['Covid 19', 'D3js', 'JavaScript'] |
Tablet with Charts
So you want to display a Sparkline? There’s no need to use bulky libraries, especially those built on top of D3 (don’t get me wrong, many of them are great), or pay for a commercial component here. We can make one fairly easily in order to bring otherwise boring numbers alive!
To tackle this, we ar... | ['Charts', 'Covid 19', 'D3js', 'Sparklines', 'Angular'] |
D3 基本用法
開始學習前,先引用好 d3 library,並在 js 檔案中輸入 console.log(d3)
點擊瀏覽器開發者工具,查看一下:
d3 (object) helper methods
上方密密麻麻都是 d3 object 內建提供的 helper methods!
✨ D3 — 選擇 ( D3 Selection )
把 D3 library 引用到 HTML 頁面中,即定義了一個全局 JavaScript 對象 d3。而操作之前,需要先做選擇動作。
d3.select('css-selector')
根據指定的 css-selector 返回 HTML 文檔中第一個匹配的元素
d3.selec... | ['JavaScript', 'D3js', 'Frontend'] |
Data Visualisation
Getting Started with D3.js Maps
Image by Author
Many Javascript libraries exist to build and animate maps, such as Leaflet.js and Highcharts. In this article I exploit the very famous Data Driven Documents (D3) library (version 5), which is more than a simple graph library.
D3 is a Javascript lib... | ['Data Visualisation', 'JavaScript', 'Dataviz', 'Data Science', 'D3js'] |
Data Visualisation
How to Insert an Observablehq Graph into a HTML Page
Image by Author
Observablehq is a very popular notebook to write code exploiting the D3.js library. Thanks to the many examples and tutorials available on the Web, you can fork already built notebooks and customise them for your needs.
However,... | ['Observablehq', 'Data Visualization', 'HTML', 'Data Science', 'D3js'] |
Data Visualisation
How to build a Dynamic Bar Chart in Observablehq through sqlite3
Photo by Luke Chesser on Unsplash
Recently, the Observablehq team has released a new feature, which permits to import sqlite3 databases into a notebook. This features is very powerful, since it permits to dynamically query the datase... | ['Data Visualisation', 'D3js', 'Sqlite3', 'Data Science', 'Tutorial'] |
Packing circles
Circlepacker Visualisation of all US counties (by population) — Image by author
Have you ever worked with hierarchical data and struggled to visualise it properly? Then this article is for you! I recently stumbled across the handy circlepackeR package in R that enables you to create interactive charts... | ['R', 'Visualisation', 'CSS', 'HTML', 'D3js'] |
1° = 1 * (π/ 180)
30° = 30 * (π/ 180)
Turning that around for getting our angle we calculate:
α = DEGREEVALUE * π / 180
To get the x- and y-coordinates in our system, sinus and cosine come into play.
x = cos(α) while y = sin(α)
Hence, for all dot calculation we can combine the radius with sinus and cosine to get ... | ['Diagrams', 'Radar', 'Data Visualization', 'JavaScript', 'D3js'] |
How to create D3js v6 calendar heat map
D3js is a Javascript library for doing graphical magic on data. In the year 2020, it was upgraded to version 6.
And this brings us a little problem. Official examples gallery doesn’t use Javascript, instead it uses special Observable Notebook language. It is not easy, nowadays,... | ['JavaScript', 'D3js', 'Calendar', 'Tutorial', 'Go'] |
As of late, all my attention has been focused on working through a full refactor of Streetball Mecca from the original D3 only version to the newer React & D3 version. In the process, I’ve come across quite a few articles that discuss how to incorporate D3 into React, one of which included a custom useD3 hook and so I ... | ['React', 'Data Visualization', 'Refactoring', 'React Hook', 'D3js'] |
What’s different about this map?
Four years ago, I built a tool called Redraw the States to ask a simple question: How few counties would you need to move from one state to a neighboring state to change the outcome of the Presidential election. The answer turned out to be three. But in exploring these quirks of Americ... | ['D3js', 'Electoral College', 'Election 2020'] |
Supplying new data to the plot
As it stands, the data used for the plot has been uploaded to the ObservableHQ servers. Instead, we may wish to use our own data within the visualisation. In the following example, we have download the airports.csv file locally (see the points cell for the URL) and will read it in and ed... | ['Observablehq', 'Towards Data Science', 'JavaScript', 'Visualization', 'D3js'] |
THREEjs is a cross-over JavaScript library that allows us to unleash the potential of GPU driven graphics within the web browser. Although it provides both a orbitalControls and dragControls functions for object or scene manipulation, but what if we want a more personalised response on drag events? — this is what we sh... | ['JavaScript', 'Webgl', 'Drag', 'D3js', 'Threejs'] |
Image by author
During the refactor of Streetball Mecca from a version using only D3 to a version that leverages D3 for it’s helper functions and React for everything else, I replaced d3.transition with React-Spring in order to animate the fadein/fadeout of the circles on the map. You can read more about how I impleme... | ['Front End Development', 'React', 'Data Visualization', 'D3js', 'React Spring'] |
Ever since I discovered D3 I was immediately fascinated with all its capabilities. It was built as a low level JavaScript data visualization library which meant you were only limited by your imagination as to what you could build, render, and interact with on the screen. It’s also one of the most widely used JavaScript... | ['Data Visualization', 'Dashboard', 'D3js', 'React'] |
In this post I’m going to show you how to integrate D3.js into your Angular application and how to create a simple styled line chart. Also, we’re covering changes of the chart data and on responsiveness.
I assume you already have an Angular app running on your local machine.
Pre-requisites
Install D3.js as a depende... | ['Data Visualization', 'Linechart', 'JavaScript', 'D3js', 'Angular'] |
Image by author
In my last article React & D3: Rendering A Map I walked through the code to render a map using both the D3 within React and D3(math)/React(DOM) approaches. It’s a great entry point for anyone with D3 expertise but relatively new to the React.
In this article I will perform one last refactor to render ... | ['Data Visualization', 'D3js', 'React', 'React Spring'] |
The Backstory
I’ve recently started working on refactoring a D3 project that I built earlier this year called Streetball Mecca. The project itself is a rebuild of a Tableau dashboard created by David Siegel but with a few small design changes. I’ve always struggled with dashboard design so I often seek out existing pr... | ['React', 'JavaScript', 'D3js', 'React Hook', 'Usereducer'] |
Note: This is part 1 in a 3-part series. The second part of this tutorial can be found here, and part 3 can be found here.
Interactive transitions in our visualizations add context to changing elements across different data states (see Mike Bostock’s article on object constancy). This can be especially powerful for ch... | ['Data Visualization', 'React Hook', 'D3js', 'Visualization Transitions'] |
Draw Function
In the beginning of this function, you will see dataSetDescendingOrder , it is just for order the dataSet in descending order. But you can also sort your data before giving to draw function. In the following line, the current date is just set in year format, which is shown in lower-right side of the char... | ['Bar Chart Race', 'Stop Resume Animation', 'Bar Chart', 'JavaScript', 'D3js'] |
The Problem
There are so many ways to initialise a chart in D3 with Angular, so it can be a problem. Surely, if you did more than three D3 visual components in Angular, you’ve done them in a different way each time.
Let me explain a good way to adjust your charts.
But for the very first step, I’m going to present th... | ['JavaScript', 'D3js', 'CSS', 'Typescript', 'Angular'] |
Follow along and we’ll build something like this:
A chart with three buttons to add, modify, and remove data points. (random data is used here)
To get started, let’s make a tiny page with some bare-bones HTML and an <svg> element. Make sure the <svg> has an id .
<!doctype html>
<html lang="en">
<head>
<meta chars... | ['Data Visualization', 'Vuejs', 'Web Development', 'JavaScript', 'D3js'] |
At ChartIQ, we take users to the next level with charts that defy their expectations. Our HTLM5 charting library is world-renowned for its stellar performance, customization, and easy deployment. You’ll find our charts on millions of desktops around the world (check out Yahoo! Finance, for example). We’re always explor... | ['Data Visualization', 'Javascript Library', 'Charting Library', 'D3js'] |
my logo
While building my portfolio to showcase my projects, I wanted to animate my logo so it would swirl, like an eddy. My first thought was to have it roll from right to left, and then stop to where it would always live on the page.
Then I thought maybe it would bounce upon load — just a simple animation.
I built... | ['JavaScript', 'D3js', 'React'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.