Public
Edited
Jan 12, 2024
Insert cell
Insert cell
Insert cell
Insert cell
daily_orders_product
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
filteredData = formattedDailyOrdersPizza.filter(d => {
const orderDate = new Date(d.order_date);
const isWithinDateRange = orderDate >= new Date(selectedDateI) && orderDate <= new Date(selectedDateF);

// Aplica el filtrado adicional por name_pizza
const matchesPizzaName = !namePizza || d.pizza_name === namePizza;

return isWithinDateRange && matchesPizzaName;
});
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {Sunburst} from "@d3/sunburst"
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