Public
Edited
Jan 3, 2023
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewpoint = d3X3d.component.viewpoint().quickView(position)
Insert cell
Insert cell
axis2 = {
let chartHolder = d3.select(document.createElement("div"));
chartHolder.attr("style", "height: 420px");

// Construct components
let yxAxis = d3X3d.component
.axis()
.scale(yScale)
.direction("y")
.tickDirection("x")
.tickSize(40);

// Create x3d and scene
let scene = chartHolder
.append("X3D")
.attr("id", "axis")
.attr("width", width + "px")
.attr("height", height + "px")
.append("Scene");

// Append components to scene
scene.append("Group").call(yxAxis);
scene.call(viewpoint);

return chartHolder.node();
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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