Size: a a a

D3.js — русскоговорящее сообщество

2019 March 06

MG

Moe Green in D3.js — русскоговорящее сообщество
угу )
источник

MG

Moe Green in D3.js — русскоговорящее сообщество
const data = [12, 23, 34, 56, 67, 89, 90, 09, 87, 65, 43, 21,]

const params = {
 width: 800,
 height: 400,
 barWidth: 20,
 barPadding: 2,
 barColor: 'forestgreen',
 margin: 20,
 duration: 800
}

const scaleX = d3.scaleLinear().domain([0, d3.max(data)]).range([0, data.length]);

const graph = d3.select('body')
 .append('svg')
 .attr('width', params.width)
 .attr('height', params.height)
 .attr('class', 'graph');

graph.selectAll('.bar')
 .data(data)
 .enter()
 .append('rect')
 .attr('fill', params.barColor)
 .attr('x', (d, i) => (params.barWidth + params.barPadding) * i + params.margin)
 .attr('y', (d, i) => params.height - d - params.margin)
 .attr('width', params.barWidth);

graph
 .transition()
 .duration(params.duration)
 .attr('height', d => d);


why I got nothing instead of height?
источник

CA

Carlos Aguni in D3.js — русскоговорящее сообщество
U r selecting all .bar and appending rect with no .bar class
источник

MG

Moe Green in D3.js — русскоговорящее сообщество
I think I solved my problem
источник
2019 March 10

MG

Moe Green in D3.js — русскоговорящее сообщество
How can I wrap SVG-text in D3.js?
источник

MG

Moe Green in D3.js — русскоговорящее сообщество
источник

MG

Moe Green in D3.js — русскоговорящее сообщество
But it's not D3.js
источник
2019 March 22

B

Bug_23¶ in D3.js — русскоговорящее сообщество
Hello. Anyone with resources on how to move text along a link
источник

MG

Moe Green in D3.js — русскоговорящее сообщество
Bug_23¶
Hello. Anyone with resources on how to move text along a link
move text along a link? what do you mean? )
источник
2019 March 24

R

Rawabi in D3.js — русскоговорящее сообщество
Hello 👋
I’m student from KSA , i have project that using d3.js to represent some data set and I don’t have any idea where i’m gonna start or how to use it !! 💔 can anybody help me please ?
источник

CA

Carlos Aguni in D3.js — русскоговорящее сообщество
Rawabi
Hello 👋
I’m student from KSA , i have project that using d3.js to represent some data set and I don’t have any idea where i’m gonna start or how to use it !! 💔 can anybody help me please ?
1. learn javascript
2. https://observablehq.com/ grab a visulization that might suit ur needs
3. hack it
источник
2019 March 29

R

Rawabi in D3.js — русскоговорящее сообщество
How can i add tooltip to my BarChar ?
источник

CA

Carlos Aguni in D3.js — русскоговорящее сообщество
D3 mouse position + mouse over function.
https://codepen.io/billdwhite/pen/rgEbc + mouse over
источник
2019 April 02

B

Bug_23¶ in D3.js — русскоговорящее сообщество
i need to move a message from the server node to all nodes and then after all nodes have received the message i need to send a message from the rogue node to any other node.Any help would be appreciated
источник

CA

Carlos Aguni in D3.js — русскоговорящее сообщество
Bug_23¶
i need to move a message from the server node to all nodes and then after all nodes have received the message i need to send a message from the rogue node to any other node.Any help would be appreciated
U mean animate the message sends? Is it svg? U could use the translate attribute.
источник

MG

Moe Green in D3.js — русскоговорящее сообщество
@carlosaguni why you use letter u instead of you? )
источник

CA

Carlos Aguni in D3.js — русскоговорящее сообщество
Moe Green
@carlosaguni why you use letter u instead of you? )
Faster to type
источник

CA

Carlos Aguni in D3.js — русскоговорящее сообщество
Carlos Aguni
U mean animate the message sends? Is it svg? U could use the translate attribute.
Not translate. It's transform
источник

MG

Moe Green in D3.js — русскоговорящее сообщество
Carlos Aguni
Not translate. It's transform
transform: translate
источник

MG

Moe Green in D3.js — русскоговорящее сообщество
Carlos Aguni
Faster to type
bit it's not correct? )
источник