instead of the constant k:7 you can connect the variable k to the slider below to make the chart interactive
you can do this by replacing k:7 to k:k (the first k is your parameter, the second is the name of variable as you declare it below after "viewof")
javascript has a convenience short notation for situations like k:k — when parameter and variable have the same names you can just use k
i think the idea was to only show text labels for marks where revenue is higher than the limit (slider above). you can do this by adding an extra condition to the "filter" encoding of your text mark
replace
filter: d=>d.category != "Apparel"
with
filter: d=>d.category != "Apparel" && d.revenue > limit
(&& being the logical "and" in javascript)
Exploratory data analysis | Rhonda Giadolor's Workspace | Observable