Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
53 views

I've been experimenting with using d3.select versus de.selectAll, and I came across some unexpected behavior. In the jsfiddle example, I'm creating div elements of class classA, and then creating a ...
Eric's user avatar
  • 1,685
-1 votes
1 answer
63 views

I’m working on a feature similar to Figma or Lucidchart where an ellipse (or circle) is placed inside a reference box (a square) with four corner handles for resizing. Screen recording expectation ...
yashwanth's user avatar
0 votes
0 answers
44 views

Reference: screen recording link I’m working on a feature similar to Figma or Lucidchart where an ellipse (or circle) is placed inside a reference box (a square) with four corner handles for resizing. ...
yashwanth's user avatar
3 votes
1 answer
119 views

I'm trying to implement a D3.js chart where I can both zoom/pan and manually rescale the axes via draggable SVG handles on the axis themselves. After rescaling the X axis with the draggable axis ...
Tom's user avatar
  • 1,344
1 vote
1 answer
78 views

I'm working on creating a tooltip in a D3 line chart. A tutorial I was following (https://www.youtube.com/watch?v=uyPYxx-WGxc) gave me some code, but the tutorial handled data differently than I have....
LauraNMS's user avatar
  • 2,936
1 vote
1 answer
43 views

I am confused of the concept of syncing d3 transitions. Consider this code: const t = d3.transition() .duration(3000) .ease(d3.easeLinear); let width = 500; let mySVG1 = d3....
Issac Howard's user avatar
0 votes
2 answers
81 views

I'm trying to just get a simple line on a D3 chart without using an array of data (that will be the next step). The x-axis is years from 2007 to 2023. The y-axis is numbers from 0.00 to 0.50. I assume ...
LauraNMS's user avatar
  • 2,936
1 vote
1 answer
49 views

I want to vertically center the y-axis label on a d3 graph. Right now, I have the label at the top of the y-axis. When I try to adjust the y or dy attributes, the label moves horizontally, not ...
LauraNMS's user avatar
  • 2,936
0 votes
0 answers
56 views

The offending image I have made a d3.geoOrthographic projection of a globe and have imported json data for the ovation of the northern lights which also contains data for the southern lights, the ...
4500 X-RAY's user avatar
0 votes
1 answer
49 views

I have a react.js web application where I display d3 graph. Currently I can append image file (as icons) to the graph nodes in the following way: node.append("image") ....
Viktor's user avatar
  • 1,519
0 votes
1 answer
105 views

Note: This question is a cross-post from the D3 GitHub Discussions page: link I'm interested in making a matrix of 'pixels' that when one is clicked, other elements can be updated accordingly. Ideally ...
Kai's user avatar
  • 445
0 votes
0 answers
68 views

I have made a graph using d3 in JavaScript. The code allows the user to scale the x and y axes separately using pinch gestures within a certain degree from the desired axis. This works well. ...
Tim CP's user avatar
  • 1
3 votes
1 answer
72 views

I have a basic diagram in D3.js, containing objects and relations between objects initialized in these arrays: let objectsData = [ { id: 1, x: 150, y: 150, type: "circle", color: "#...
Olivier Campo's user avatar
0 votes
0 answers
79 views

const ELEMENTS = ['electric', 'fire', 'leaf', 'metal', 'rock', 'water', 'wind']; const MORAL_TYPES = ['order'];//'chaos', 'equipoise' const createNodes = () => { const ...
nuccio's user avatar
  • 373
0 votes
1 answer
44 views

I am trying to build a status tracker using react and d3 chart library , I am able to draw but the the connectors are not coming curved , here is my code import React, { useState } from 'react'; ...
Sumit047's user avatar
0 votes
1 answer
91 views

I'm currently trying to make a stacked bar chart in D3. I've found the following links with examples: https://d3js.org/d3-shape/stack#_stack , https://observablehq.com/@d3/stacked-bar-chart/2 , https:/...
user30651122's user avatar
0 votes
0 answers
59 views

I'm an absolute beginner when it comes to d3 + svelte and I'm trying to render a map of Indian districts in d3 in svelte framework. The json I'm accessing is from here. I'm trying to render the ...
proy's user avatar
  • 3
2 votes
1 answer
65 views

I have some regularly-updated CSV files on Box that I would like to display on a website. My plan was to create the table with html, then read the CSV file with d3 and update the contents of the table....
Michael Erb's user avatar
1 vote
1 answer
66 views

I tried to recreate the example in the page while using Typescript. The tree is created, however whenever I click to collapse/expand it the transition seems to recreate the entire tree instead of only ...
Luiz Suzuki's user avatar
0 votes
0 answers
184 views

I need to draw a graph whose nodes' positions and sizes are predetermined (from an external source) and cannot be changed. It is straightforward to draw the nodes using a library like d3. The ...
Sachin Hosmani's user avatar
0 votes
1 answer
62 views

I am trying something simple in D3, which is to draw a block on a time interval, but the output does not align with the right time ticks on the time axis. Below is the code I am using, and then the ...
mydoghasworms's user avatar
3 votes
1 answer
252 views

I found this diagram that I like from a research paper: https://www.researchgate.net/figure/Sankey-diagram-visualization-of-the-flow-of-data-from-coding-through-to-interpretation_fig1_338907991 I ...
stats_noob's user avatar
  • 6,855
2 votes
0 answers
36 views

I’m doing a d3 bar graph in CodePen, but the d3 isn’t playing. It just shows me the title(which is from the HTML) and the rest of the screen is blank. I’ve already checked the settings and added d3 to ...
Tami Landsberg's user avatar
2 votes
1 answer
40 views

In d3, I have an app that allows users to show and hide elements. When hiding elements, I have it animate out for a few seconds. However, during this time, the user could instead hit show again, and ...
rb612's user avatar
  • 5,643
1 vote
0 answers
115 views

I've been trying to localize default number formatting in Apache Superset charts, specifically the SI suffixes used in formats like .2s. Out of the box, Superset uses D3 defaults — k, M, B — but I ...
Данил Басов's user avatar
1 vote
0 answers
43 views

My goal is simple, I want to add direction markers on a path (like so). The code that I've implemented gives the result on the initial load. lineCoords.forEach(coords => { for (let i = 1; i &...
harShu's user avatar
  • 11
0 votes
0 answers
43 views

I'm using the D3.js "data join" pattern to display an array of 200 numbers as a curve. I came up with the following code: this.svg .selectAll('line') .data(this.buffer) .join('line') ...
Jean Roch's user avatar
  • 305
2 votes
1 answer
37 views

I have this d3 snippet here: https://jsfiddle.net/h8b6gq7d/ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Order Book ...
Rory McDonald's user avatar
2 votes
0 answers
112 views

Angular version 16; D3 version 7.9.0; D3-org-chart version 3.1.1... I created a chart of organization. But I would want to provide the organizational chart a zoom-in and zoom-out function. I added the ...
Ashkaran's user avatar
0 votes
0 answers
40 views

I'm building a topology visualization using d3.js where nodes are connected by multiple edges. I implemented a feature to toggle an "expanded" state on a group of edges by double-clicking, ...
Edin Whitecrow's user avatar
0 votes
0 answers
50 views

Im not very familiar with the d3 library, but I've been playing around with this family tree repo on react which utilizes the tree visualization and customizes it to work with family trees, and it ...
Khaled Azem's user avatar
1 vote
0 answers
50 views

I am working with some pie charts and trying to draw an outline around two pieces of a pie. I've been able to extract the coordinates from each piece and append them to the svg. The first set of ...
jotamon's user avatar
  • 1,623
1 vote
1 answer
40 views

I'm trying to create a pie chart using d3js. When you click on a slice, an ajax is sent to the server and retrieve the children of the slice. The children always have a value which the sum is the ...
BFlat's user avatar
  • 196
2 votes
0 answers
54 views

I am diagnosing performance issues with my website and I have noticed a specific issue with a CSS selector that slowly matches against many elements. Use dev tools to analyse my site's performance, &...
BurkusCat's user avatar
  • 186
1 vote
1 answer
53 views

I'm trying to use Matter.js for it's physics engine while using D3.js for rendering the Matter physics bodies as SVG elements. This demo is just a box dropping onto the ground. Everything works as ...
Ethan.S's user avatar
  • 63
0 votes
0 answers
40 views

I am in the process of writing a resize function for my chart. So far everything works quite well. However, I noticed the following bug when using the resize function. After I have rendered the chart ...
Jegor Wieler's user avatar
0 votes
0 answers
77 views

I have a map made with Leaflet which includes a polygonal boundary: the area enclosed by the boundary is non-convex, but simply-connected: there are no holes. Within this boundary there are various ...
Alasdair's user avatar
  • 1,414
2 votes
1 answer
214 views

I am trying to visualize the organization chart of our company, but there is a part that I have difficulty with and that is grouping. Since Reactflow sells this feature for a fee, I need to develop it ...
Avora's user avatar
  • 372
2 votes
0 answers
43 views

Can't find the issue why the polygon is not drawn with the following code in d3: <script type="module"> import * as d3 from "https://cdn.jsdelivr.net/npm/d3@7/+esm&...
Hidde Ploysiri's user avatar
0 votes
1 answer
51 views

I am trying to render inside a PDF an SVG that displays LaTeX. The SVG has been generated using MathJax. The issue is that the rendered PDF has the Path elements from the SVG malformed. It changes the ...
Romen Medina Beltrán's user avatar
0 votes
0 answers
33 views

I am using the below code but I need the hierarchies to be top and bottom instead of left and right. Is there an easy way to change this? I want to create a simple multiple parent and multiple ...
user84162's user avatar
1 vote
1 answer
32 views

I've made a map of a number of survey sites using GeoJSON data, it all looks fine. I have also set a mouseover command that highlights the site when the mouse is over it. However, I'm trying to create ...
thepeatles's user avatar
0 votes
0 answers
66 views

I have the following function: export async function drawTechTree(techData, svgElement) { let graphDef = "digraph TechTree {\n"; graphDef += 'node [style="filled", color=&...
Leigh Hobson's user avatar
0 votes
0 answers
48 views

I'm relatively new to using d3 - though I'm currently trying to work with d3 v7 if that helps. What would be the best way to draw a graph like this? (With many more nodes) I'm currently planning on ...
Kevin Yao's user avatar
  • 139
0 votes
1 answer
169 views

I'm working with a D3 pie chart in a React component where I have a maximum of 8 labels. However, I'm experiencing overlapping between the polylines and the labels when the values are very close to ...
Ta Abd's user avatar
  • 39
0 votes
0 answers
61 views

cola is exactly what I need for a few things - mainly it does forced based graph layouts supporting grouping and constraints. I'm using it with d3. However, I've noticed cola seems to tap out at d3 ...
Darren Oakey's user avatar
  • 3,724
0 votes
0 answers
34 views

I'm trying to create a simpler version of the D3 Tidy Tree (https://observablehq.com/@d3/tree/2). Here is the full JS file: const width = 800; const height = 600; const svg = d3 .select('svg') ....
Kadiem Alqazzaz's user avatar
0 votes
0 answers
42 views

As per the pictures below the g element is rendered outside the svg (above the svg) so many nodes are covered by other HTML elements. The svg element's position: The g element's position: I'd expect ...
Viktor's user avatar
  • 1,519
0 votes
1 answer
45 views

It is an old topic and read many questions regarding this issue but I still can't figure it out what the error can be. My only excuse is that I am pretty new with d3. So I'd like a custom image or svg ...
Viktor's user avatar
  • 1,519
1 vote
1 answer
200 views

I have created a d3 network graph which is working fine, issue is if there is a connection between (A -> B and B -> A) i want separate links for that. How can i do that? This is what i have done ...
Faizan Ahmad's user avatar

1
2 3 4 5
784