Public
Edited
Apr 2
12 forks
Insert cell
Insert cell
Insert cell
<svg width="100" height="100">
<g transform="translate(50, 50)">
<circle r="50" fill="steelblue"/>
<text fill="white" font-size="50" dominant-baseline="middle" text-anchor="middle">vis</text>
</g>
</svg>
Insert cell
// tu código 1

Insert cell
Insert cell
segments = [ //1
{ x1: 5, y1: 5, x2: 5, y2: 95 },
{ x1: 45, y1: 5, x2: 45, y2: 95 },
{ x1: 5, y1: 95, x2: 45, y2: 95 },
{ x1: 60, y1: 5, x2: 100, y2: 5 },
{ x1: 80, y1: 5, x2: 80, y2: 95 },
{ x1: 115, y1: 5, x2: 115, y2: 95 },
{ x1: 115, y1: 5, x2: 145, y2: 5 },
{ x1: 115, y1: 50, x2: 140, y2: 50 },
{ x1: 115, y1: 95, x2: 145, y2: 95 },
{ x1: 160, y1: 5, x2: 190, y2: 5 },
{ x1: 160, y1: 5, x2: 160, y2: 95 },
{ x1: 160, y1: 95, x2: 190, y2: 95 },
];
Insert cell
{
const svg = d3.create('svg')
.attr('width', 200)
.attr('height', 100);
//código
}
Insert cell
Insert cell
Insert cell
iris = require('@observablehq/iris')
Insert cell
iris
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
widthIris = 400
Insert cell
heightIris = 400
Insert cell
Insert cell
Insert cell
sepalWidthMin = null
Insert cell
sepalWidthMax = null
Insert cell
Insert cell
xIris = d3.scaleLinear()
.domain()
.range()
Insert cell
Insert cell
sepalLengthtMin = null
Insert cell
sepalLengthMax =null
Insert cell
yIris = d3.scaleLinear()
.domain()
.range()
Insert cell
Insert cell
species = null
Insert cell
Insert cell
colorIris = d3.scaleOrdinal()
.domain()
.range()
Insert cell
Insert cell
//Código aqui 3 puntos
scatterplot = {

}
Insert cell
margin={ return{top:50, right:120, bottom:50, left:120}};
//d3.axisBottom y d3.axisLeft
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more