Questions tagged as 'd3.js'

1
answer

Perform JOIN operations on two data arrays with D3.js

I'm preparing the data for viewing and viewing operations. I use the library D3.js . The data collection is: { "autores" : [ { "id":1, "nome": "Fulano" }, { "id":2, "nome": "Ciclano" } ], "livros" : [ {"id": 1, "autor": 1, "tit...
asked by 12.11.2014 / 15:03
1
answer

how to send parameters in d3.json to php

Good is there any way to send parameters in d3 to make a request to php. I have a search form that will send data to php in the form of post wanted me and return the result in json d3.json("../querys/querys.php", function(error, graph) {...
asked by 19.05.2016 / 00:53
1
answer

NaN 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 barras...
asked by 04.01.2019 / 21:29
1
answer

Executing action on an unselected 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" data-ref-id-map="Layer_1" data-ref-g-id="yyy"&...
asked by 20.01.2017 / 15:31
1
answer

C3js - Show circle only in the last point of the graph

My chart currently has all the hidden points (the points I'm referring to are "balls" circles), but I need them to show the ball only at the last point. Look at this image to see exactly what I need. Asyoucansee,all"Polka Dots" dots are hidd...
asked by 15.10.2018 / 21:39
1
answer

How do I break the line in the nodeEnter.append of D3

This is the code that generates the text tag in svg from using the D3 library: nodeEnter.append("text") .attr("x", rectW / 2) .attr("y", rectH/3) .attr("dy", ".35em") .attr("text-anchor", "middle") .text...
asked by 04.05.2018 / 20:13
1
answer

How to place event click on graph DonutChart NVD3?

I have a Donut Chart that I need to put a click function and I have read a lot, but nothing has helped yet. Any help is welcome. var nvd3Charts = function() { var myColors = ["#06A705", "#F7A818", "#00BFDD", "#FF702A", "#DA3610", "#80CD...
asked by 28.08.2017 / 20:01
1
answer

D3.js shows nothing on the screen

I'm trying to use D3.js but I can not. I have the code below, but it does not print the map of Brazil. The screen does not show any errors, what could it be? my file "meso.json" is in topojSON format but it transforms the topojSON into GeoJson a...
asked by 30.11.2016 / 18:32
1
answer

Is it possible to create a chord diagram using the d3 library? [duplicate]

Is it possible to create a graph in chord using the d3 library? Follows the data structure of the graph in % format with% : {"links": [ { "id": "11", "color": "#d96500\r\n\r\n", "source": "Norte ",...
asked by 08.09.2016 / 19:03
1
answer

sankey diagram d3.js problem with large data

Anyone can tell me why I can not read this json and display it on sankey I have to use d3.js if you put less data it works    json's list link     
asked by 27.05.2016 / 19:53