Public
Edited
Mar 24, 2023
Insert cell
Insert cell
screenShot20230227At13637Pm = FileAttachment("Screen Shot 2023-02-27 at 1.36.37 PM.jpg").image()
Insert cell
md`### Precedent:
http://shirleywu.studio/legends/`
Insert cell
screenShot20230309At91424Pm = FileAttachment("Screen Shot 2023-03-09 at 9.14.24 PM.png").image()
Insert cell
md`### 3D Prototype:
https://observablehq.com/d/4b2976505a029433`
Insert cell
Insert cell
Insert cell
chart = {
// const discDataB = _.map(data, 'radB');
const svg = d3.select(DOM.svg(width, height))
.style("width", "60%")
.style("height", "auto")
.style("font", "4.5px sans-serif")
// .style("text.axis-tick-marks", "7px")
;
svg.append("rect") // background
.attr("width", "100%")
.attr("height", "100%")
.attr("fill", "powderblue")
;

svg.append("circle") // circle-A
.attr("r", 100)
.attr("cx", centerx)
.attr("cy", centery)
.attr("fill", "white")
.attr("stroke", "ghostwhite")
.attr("fill-opacity", 0.8)
.attr("stroke-opacity", 0.8)
.attr("id", "c1")
;

svg.append("circle") // circle-B, static
.attr("r", 40)
.attr("cx", centerx)
.attr("cy", centery)
.attr("fill", "plum")
.attr("class", "c2")
;

svg.append("circle") // circle-C
.attr("r", 15)
.attr("cx", centerx)
.attr("cy", centery)
.attr("fill", "black")
.attr("id", "c3")
;

svg.append("text")
.style("font", "12px Source Serif Pro")
.attr("x", 10)
.attr("y", 20)
.text("Prototype: 2d plan view of 3d form")
;
svg.append("text")
.style("font", "7px Source Serif Pro")
.attr("x", 12)
.attr("y", 30)
.text("visual bootstrap")
;

for (let step=0; step < data.length; step++) {
svg.selectAll(".c2")
.data(data[step])
.enter()
.transition()
.delay(500)
.selectAll(".c2")
.attr("r", function(d) {return (d.radB)})
;
}
return svg.node();
}
Insert cell
data[1].radB.toString()
Insert cell
barheight = 10
Insert cell
barwidth = 100
Insert cell
height = 300
Insert cell
width = 300
Insert cell
centerx = width/2
Insert cell
centery = height/2
Insert cell
padding = 10
Insert cell
x = d3.scaleLinear()
.domain(0, width)
.range([0, width])
Insert cell
y = d3.scaleLinear()
.domain([0 - padding, 35 + padding])
.range([height - padding, 0 + padding])
// .range()
// .domain([35, 40])
;
Insert cell
radii = ["70", "35", "70", "35", "10"]
Insert cell
d3 = require("d3@5")
Insert cell
_ = require('lodash')
Insert cell
md`### Precedent:
https://www.behance.net/gallery/162088471/Bloomberg-Coal-Countdown-Video-Campaign?tracking_source=search_projects%7Cdata+visualization`
Insert cell
md`### 2D Small Multiples Prototype:`
Insert cell
Insert cell
data
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more