Public
Edited
Apr 25, 2023
Insert cell
Insert cell
box_plot = Plot.plot({
// Change the x-axis label from body_mass_g to the nicer "Body mass →"
x: { label: "Body mass →" },

// Also change the y-axis and, and place it at the top as well.
y: { label: "Species", labelAnchor: "top" },
width: 800,
height: 300,
marks: [
Plot.boxX(penguins, { x: "body_mass_g", y: "species" }),

// Add reference as a hyperlink.
() =>
svg`<a target="_blank" href="https://allisonhorst.github.io/palmerpenguins/">
<text font-size="14" transform="translate(40,280)">Reference</text>
</a>`
]
})
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