All Questions
Tagged with d3.js typescript
584
questions
2
votes
0
answers
50
views
Trouble with correctly triangulating a polygon on a sphere in THREE.js
tldr: help I can't correctly triangulate a GeoJSON polygon in 3D space to make it spherical and it has been haunting me for weeks. The question at the end of this novel is "Is this a poly2tri ...
0
votes
0
answers
43
views
D3 scaleTime getting really strange dates
I am working on a timeline in d3. My expectations are that it shows the day of today, and then the user can zoom in/out to see more times and dates. However to start with it gets me a date in 2034 and ...
0
votes
0
answers
24
views
React - Recharts How to prevent active bar to change while still hovering on the tooltip
I am using this chart, the problem is my tooltip contains some links, and it's width extends the other bars, and when i want to click on the link, the tooltip changes to the next bar's tooltip.
Is ...
0
votes
1
answer
35
views
D3 Chart Doesn't work when using viewbox in Angular Project
My SVG just will not show up in my dom when I change it to try and use a viewbox.
I am just realistically just changing this:
.attr("width", this.width + this.margin.left + this....
0
votes
0
answers
20
views
How to Align KDE Plots to the Edges of a Scatterplot in React with TypeScript and D3.js
I am working on creating a component that includes scatterplots for multiple datasets and KDE (Kernel Density Estimation) plots for the x and y-coordinates of those datasets, in React with TypeScript ...
0
votes
0
answers
19
views
d3js graph: no overlapping nodes
I have a graph in d3js which is very dense in the centre, but not dense in the outer areas.
Currently, it looks like this:
My primary goal is that no nodes are overlapping and that the titles of the ...
0
votes
0
answers
37
views
d3 doesn't work in vue3 composition mode in single file component (SFC) written by typescript
here is a vue3 single file component (SFC) in composition mode written by typescript.
I save it as a .vue file which is a vue3 SFC, and integrate it into a vue3 project.
<template>
<div&...
1
vote
0
answers
32
views
d3-shape links are too thick
While charting a tree in d3, some link paths are oddly thicker than others. I would like for the wider paths seen in the image to be the same thickness as the vertical paths. Can anyone help me find ...
1
vote
0
answers
82
views
I keep getting "Uncaught TypeError: d3.create is not a function" when I imported locally installed D3js
I am building a library and I am using D3 in the library as a dependency and I want to use and install D3 locally into the library, and I also want to bundle the minimal version of D3 together with ...
1
vote
1
answer
35
views
Trouble setting fixed nodes in force graph: Fixing nodes break links (D3)
New to D3 and from what I've found on the internet a lot of the questions/examples are rather outdated so I'm having trouble coming up with a solution.
Ultimately I'd like to have a network graph ...
0
votes
0
answers
53
views
ReactJS TSX clustered D3
How can I convert this to ractjs TSX code. I can't find schemeCategory20 / voronoi kind of things when I convert
Reference from How to visualize groups of nodes in a d3 force-directed graph layout
<...
0
votes
0
answers
19
views
d3-geo: Is there a way to not show the division between territories spanning 180/-180 degrees of longitude?
The question from the title. I'm running a code with D3-geo, Miller projection with .rotate([-10, 0]);, so The US would be on the left side of the map, and Russia entirely on the right side. However, ...
0
votes
1
answer
78
views
d3 line chart with transition different line colors
I am using a d3 line chart that is based off this example:
https://codepen.io/louisemoxy/pen/qMvmBM
and am wondering whether I can color this line (also already when the transition is happening) ...
0
votes
0
answers
25
views
d3.js how to merge with transition + add mouse event?
I am trying to create a bar chart like in the following example https://d3-graph-gallery.com/graph/barplot_button_data_hard.html with tooltips on mouseover.
It does not work because there is a ...
0
votes
0
answers
39
views
Position of the Panning and Zoom to be saved in localstorage on d3-org-chart library
I am using "d3-org-chart" library for creating org chart. I have used it inbuilt methods for zooming and panning(i.e. zoomIn and zoomOut). I want to save the zoom/pan position in ...