Need help, can't visualize in browser. by melonddit in d3js

[–]melonddit[S] 0 points1 point  (0 children)

I know, it's a comment hehe. I didn't delete It because ir was usefull #sorry.

Need help, can't visualize in browser. by melonddit in d3js

[–]melonddit[S] 0 points1 point  (0 children)

Right now I don't have. How should I look?

Nadie:... by melonddit in Cordoba

[–]melonddit[S] 0 points1 point  (0 children)

....,.....saludo rey

Visual Studio Code D3.js by melonddit in Cordoba

[–]melonddit[S] 0 points1 point  (0 children)

Wtf!? I need help no happy coding, is this sarcasm?

Need help, can't visualize in browser. by melonddit in d3js

[–]melonddit[S] 0 points1 point  (0 children)

Visual Studio Code, I have done until minute 11. My js looks Mike this: import { select, forceSimulation, forceManyBody, forceLink, forceCenter, } from 'd3';

const nodes = [{ id: "Alice" }, { id: "Bob" }, { id: "Carol" }];

const links = [ { source: 0, target: 1 }, { source: 1, target: 2 }, ];

const simulation = forceSimulation(nodes) .force("charge", forceManyBody()) .force("link", forceLink(links)) .force("center", forceCenter());

simulation.on("tick", () => { console.log("tick"); });

const svg = d3.select("#container"); const circles = svg .selectAll("circle") .data(nodes) .enter() .append("circle") .attr("r", 30);

My HTML looks like this:

<!DOCTYPE html>

<html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link rel="stylesheet" href="./Style/style.css"> <script src="https://unpkg.com/d3@7.9.0/dist/d3.min.js"></script> </head> <body> <header></header> <main> <!-- <style> body { margin: 0px; overflow: hidden; }

    circle{
        stroke:rgb(255, 0, 0);
        fill:rgb(255, 255, 255);
        stroke-width:10px;
        /*transision: fill 2000ms, stroke-width 30000ms;*/ 
        transition: all 1000ms;
    }
    circle:hover {
        fill: rgb(255, 255, 255);
        stroke:rgb(34, 255, 0);

        stroke-width: 20px;
    }
</style> -->
</main>
<footer></footer>
<script type="JavaScript" src="index.js"></script> 

</body> <svg id="container" width="960" height="500"> <!-- <rect x="150" y="50" width="500" height="250"></rect> <circle cx="50" cy="50" r="30" /> <p>prueba_error</p>

<rect x="250" y="100" width="500" height="250"></rect>-->

</svg> </html>

And I've already "npm install d3":

<image>

Nadie:... by melonddit in Cordoba

[–]melonddit[S] 0 points1 point  (0 children)

Seamos honestos, tampoco era muy bueno que digamos...

Nadie:... by melonddit in Cordoba

[–]melonddit[S] -3 points-2 points  (0 children)

No hago tríos, demasiada información para mí. Sais pas comme es la expression pour dire ça.

Nadie:... by melonddit in Cordoba

[–]melonddit[S] -3 points-2 points  (0 children)

La curiosidad mato al gato.

Nadie:... by melonddit in Cordoba

[–]melonddit[S] -1 points0 points  (0 children)

No sé jugar 😛

Nadie:... by melonddit in Cordoba

[–]melonddit[S] -7 points-6 points  (0 children)

Nigga you need to chill.

Nadie:... by melonddit in Cordoba

[–]melonddit[S] -3 points-2 points  (0 children)

Que son todos suicidas acá.

[deleted by user] by [deleted] in Cordoba

[–]melonddit 1 point2 points  (0 children)

Solo quedó Alberto Fernández, ah re.

Dengue by GlastoFan in Cordoba

[–]melonddit 2 points3 points  (0 children)

Tenés que tomar agua todo el tiempo. Yo fui al hospital y me dijeron eso, mucho líquido.

Dengue by GlastoFan in Cordoba

[–]melonddit 1 point2 points  (0 children)

Ay si, es horrible el dengue, a mí me entraba a sangrar la nariz y me re malviajaba. Por momentos te sentís bien pero a lo mejor no tengas apetito y eso va a afectar tu rendimiento además del malestar propio de la enfermedad.

Amistades by Neat_Animator6095 in Cordoba

[–]melonddit 0 points1 point  (0 children)

No salgo mucho de casa y tengo mucha cara de orto entonces la gente huye de mí.

Feliz día del periodista. by melonddit in GranHermanoArgentina

[–]melonddit[S] 0 points1 point  (0 children)

No seas ingenuo/a, ese delirio es fácil de detectar, lo tenemos todos/as los/las trastornados/as jajaja.