Skip to content
Discussion options

You must be logged in to vote

Hi - sorry you're running into trouble.

I'm having a hard time reproducing your example. Can you please take the following code:

---
title: Hello
server:
  type: shiny
---

```{ojs}
//| panel: sidebar
vars = ["Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width"]
viewof xcol = Inputs.select(vars, {label: "X Variable"})
viewof ycol = Inputs.select(vars, {label: "Y Variable", value: vars[1]})
viewof count = Inputs.range([1, 9], {label: "Cluster Count", step: 1, value: 3})
```

```{ojs}
//| panel: fill
Plot.plot({
  color: {
    type: "ordinal",
    scheme: "category10"
  },
  marks: [
    Plot.dot(transpose(selectedData), {
      x: xcol,
      y: ycol,
      fill: (d, i) => clusters…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@cscheid
Comment options

@ProcessMinerUK
Comment options

@Doshin108
Comment options

Answer selected by cscheid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants