Public
Edited
Feb 24, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
The following **table** allows you to select a single **Parjay** to see all the songs that are categorized under it.
You can sort each column alphabetically by clicking the column heading.
Insert cell
viewof Parjay = Inputs.select(
dataA.map((d) => d.Parjay),
{ sort: true, unique: true, label: "Parjay: Thematic Category" }
)
Insert cell
Inputs.table(selectedParjay, { columnsA })
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof Ritu = Inputs.select(
onlyPrakriti.map((d) => d.Ritu),
{ sort: true, unique: true, label: "Select Ritu or Season" }
)
Insert cell
Inputs.table(selectedRitu, { columnsP })
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
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof parjay = Inputs.select(
tA.map((d) => d.Parjay),
{ sort: true, unique: true, value: "Puja", label: "Parjay" }
)
Insert cell
parjcounts = d3
.rollups(
tA,
(v) => v.length,
(d) => d.Parjay
)
.sort((a, b) => b[1] - a[1])
Insert cell
viewof raag = Inputs.select(
tA.map((d) => d.Raag),
{ sort: true, unique: true, value: "Bhairavi", label: "Raag" }
)
Insert cell
Insert cell
Insert cell
taalcounts = d3
.rollups(
tA,
(v) => v.length,
(d) => d.Taal
)
.sort((a, b) => b[1] - a[1])
Insert cell
viewof Parjay2 = Inputs.select(
parjcounts.map((d) => d[0]),
{
label: "Parjay2",
unique: true,
value: "Puja"
// format: (x) => x.Lyricist,
// value: lata.find((t) => t.Lyricist === "Anand Bakshi")
}
)
Insert cell
viewof Raag2 = Inputs.select(["All"].concat(raagcounts.map((d) => d[0])), {
label: "Raag2",
unique: true
})
Insert cell
Inputs.table(filtered)
Insert cell
filtered = tA.filter((d) => {
let pj = selectedParjay == "All" ? true : d.Parjay == Parjay;
let rg = selectedRaag.length ? selectedRaag.indexOf(d.Raag) >= 0 : true;
return pj && rg;
})
Insert cell
Insert cell
Inputs.table(
tA.filter((d) => d.Parjay === parjay && d.Raag === raag && d.Taal === taal)
)
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
Insert cell
Insert cell
byParjayTaal = FileAttachment("groupbyParjayTaal@2.csv").csv({ typed: true })
Insert cell
Insert cell
selectedParjay = dataA.filter((d) => d.Parjay === Parjay)
Insert cell
selectedRaag = dataA.filter((d) => d.Raag === Raag)
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
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
selectedP = tA.filter((d) => d.Parjay === parjay)
Insert cell
selectedR = tA.filter((d) => d.Raag === raag)
Insert cell
selectedT = tA.filter((d) => d.Taal === taal)
Insert cell
..... clusters]
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