Most voted "d3.js" questions
D3.js is a small open-source data visualization library written in Javascript. D3.js handles data-based HTML, SVG and CSS documents.
Learn more…31 questions
Sort by count of
-
3
votes1
answer82
viewsPerform JOIN operations on two data arrays with D3.js
I am preparing the data for visualization and visualization operations. I use the library D3.js. The collection of data is: { "autores" : [ { "id":1, "nome": "Fulano" }, { "id":2, "nome": "Ciclano"…
-
2
votes1
answer68
viewshow to send parameters in D3.json to php
good there is some way to send D3 parameters to make a request to php. I have a search form that will send data to php in post form I wanted and return the result in json…
d3.jsasked 9 years, 9 months ago usersantos 765 -
1
votes3
answers1682
viewsGantt chart using C3.js: How to use Axis Y Category or Y timeseries?
I am looking for a solution within the javascript library C3.JS (Based on D3.JS) where I can create a graph that shows over a period the types of certain thing being used and intercalated. A small…
-
1
votes1
answer46
viewsSankey D3.js problem diagram with large data
someone can tell me why I can’t read this json and show on Sankey I have to use D3.js if you put in less data it works json list http://pastebin.com/p3mzVb2m…
d3.jsasked 9 years, 8 months ago usersantos 765 -
1
votes1
answer58
viewsIs it possible to create a Chord Diagram chart using the D3 library?
It is possible to create a chart in Chord using the library d3? Follows graph data structure in format JSON: {"links": [ { "id": "11", "color": "#d96500\r\n\r\n", "source": "Norte ", "target":…
-
1
votes0
answers224
viewsChange "Fill" of each path according to the color in an array
I am doing some tests and I am generating a map of Brazil with all municipalities and I am creating an array that will have the following structure: var arr = []; arr['São Paulo'] = 'red';…
-
1
votes0
answers32
viewsDisplay another value in a D3 chart tooltip
I was making a preview and needed to display a different value on tooltip that it displays. The visualization is entirely based on this model: http://bl.ocks.org/mstanaland/6100713, and displays the…
-
1
votes1
answer189
viewsD3.js shows nothing on the screen
I’m trying to use D3.js but I’m not getting it. I have the code below, but it doesn’t print the map of Brazil. The screen shows no error, what could it be? my file "meso.json" is in topojSON format…
-
1
votes1
answer59
viewsExecuting action on a non-clicked ID
I have several links: <a href="javascript:void(0);" id="ZoomPath" data-ref-id-map="Layer_1" data-ref-g-id="xxx">São Paulo - São Paulo</a> <a href="javascript:void(0);" id="ZoomPath"…
-
1
votes1
answer44
viewsHow to place event click on Donutchart NVD3 chart?
I have a Donut Chart that I need to put click function and I’ve read a lot, but nothing has helped yet. Any help is welcome. var nvd3Charts = function() { var myColors = ["#06A705", "#F7A818",…
-
1
votes1
answer30
viewsD3.JS: Variable with getElementById default value
I am creating a visualization in D3.js, in which I am importing the date through a dynamic string that requires a variable, which I named honeystring. Variable var honeyyear =…
-
1
votes1
answer38
viewsD3.js: Change imported file through a slider
I’m creating a slider for a view, a choropleth map on D3.js. To do this, I added it to the app.js file: function update(year){ slider.property("value", year); d3.select(".year").text(year); //…
-
1
votes0
answers79
viewsD3.js Caption does not display text/label
I’m creating a caption for a Choropleth map, inspired by the caption of this visualization. To that end, where the date is being loaded, I added the following: const g = svg.append("g") .attr(…
-
1
votes1
answer148
viewsD3.js include external image on the third button
this is an excerpt from an index.html of D3.js that I have been doing, my idea is to include an external image and make it appear by clicking on the 'btn3' button. On button 1 and 2 I have two…
-
1
votes0
answers17
viewshow to access a shadowDom element using D3.js and Polymer
Good afternoon, I’m trying to make a program for denhar a graphic, but I need to delete the graphics and draw it again whenever I update. I’m using D3.js to manipulate svg and Polymer because I’m…
-
1
votes1
answer53
viewsLike I do to Quebar the line in the D3 node.append
This is the code that generates the text tag in the svg of using the D3 library: nodeEnter.append("text") .attr("x", rectW / 2) .attr("y", rectH/3) .attr("dy", ".35em") .attr("text-anchor",…
-
1
votes0
answers28
viewsHow to repeat equal data using data.map
I am using the D3.js library and wanted to, when reading equal data, not overwrite when drawing scales. Follow the code snippet that does this and an example of my file . json: const months =…
-
1
votes1
answer46
viewsC3js - Show circle only at the last point of the chart
My chart currently has all the dots hidden ( the dots I refer to are the "dots" circles), but I need it to show the dots only at the last dot. Look at this picture to see exactly what I need. As you…
-
1
votes1
answer47
viewsNan of a csv file in D3.js
var margin = {top: 20, right: 10, bottom: 100, left: 40}; var width = 700 - margin.right - margin.left; var height = 500 - margin.top - margin.bottom; // o g para agrupar objetos juntos, agrupar as…
-
0
votes1
answer74
viewsHow to put only the minimum and maximum on the D3 Scale scale?
Creating the scale: headers.forEach(function(d) { // Coerce values to numbers. jsonObj.forEach(function(p) { y[d] = d3.scale.linear().domain( d3.extent(jsonObj, function(p) { return +p[d] || 0;…
-
0
votes0
answers70
viewsHow do I implement a horizontal and vertical Linhaguia using NVD3.js?
The NVD3 library does not support a horizontal guide line, and the vertical cannot be controlled and does not return values it intercepts in the graph. What is the best solution to use it in my…
-
0
votes2
answers99
viewswith using D3.js offline
is it possible to use D3.js offline? I usually use the normal script to use online. but I am in need of a way to work with D3 offline
-
0
votes0
answers50
viewsNo reading of csv file on D3
I’m trying to make a file. Md that houses three views. When it arrives at the second view (graphic) it gives the error below in the browser console. I am trying to load a csv file that is in the…
-
0
votes1
answer150
viewsProblem in AJAX query in a loop
I have a view that has several pie charts using the D3 plugin. Each chart should display different data. With PHP I do a foreach on the screen, creating the div where the chart will be displayed,…
-
0
votes0
answers135
viewsEnlarge a path map with D3.js
I am creating a map of a state using D3.js and the code takes the data from a Geojson file I can show the map of the screen but with very small size. I cannot use the . Scale() and . Translate([])…
-
0
votes0
answers60
viewshow to update a graph by using the $.load() method
I have a graph that is created from the id div "#Chart", the problem is that I have a modal that registers more information on the graph and when clicking "back" I want to update it with this new…
-
0
votes0
answers24
viewsHow should I put the maximum on the y scale on D3.js
Good afternoon, I am trying several times and I cannot put in y.Omain the highest automatic value, which in the example, should return to currentHegith(5) in c.y.Omain([0, D3.max(date... and not 2…
-
0
votes0
answers7
viewsIs there a Force-Directed Graph term in English?
What do I call this kind of graph representation in English? Or should I use the term in English anyway? with the library D3 the code would be that to create the "Force" var simulation =…
-
0
votes0
answers25
viewsHow to assign different colors to each node in a Sunburst?
I am creating Sunburst that has a lot of data, to have a more readable reading I want to assign to each node a color. I am using the D3.js library, I found in the documentation the following code.…
-
-1
votes1
answer16
viewsIn D3.geo, how to obtain the data of a projection?
I am using only D3.geo, not the full D3 library, but only D3.geo. Configure projection and upload Geojson Multipolygon data. I get back the data as follows projectionVale = d3.geo.stereographic()…
-
-1
votes0
answers9
viewsWhen I select one of the drop-down checkbox options created from D3.js instead of returning the correct value, it delivers Undefined
The code below is totally usual and was created via Visual Studio Code (https://codevisualstudio.com/) and the test page is created via Live Server Extension…