Code
= FileAttachment("diamonds.csv").csv({ typed: true})
data data
Read CSV
Table
Code
= Inputs.table(data) viewof raw_table
Table
Scatterplot
Pick the variable for point color.
Code
= Inputs.select(["carat","cut","color","clarity","depth","table","price"],{value: "cut", multiple: false, label: "Color variable"}) viewof col
Scatterplot
Code
= Inputs.select(["carat","depth","table","price"], {value: "carat", multiple: false, label: "X1 axis"})
viewof x1 = Inputs.select(["carat","depth","table","price"], {value: "depth", multiple: false, label: "Y1 axis"}) viewof y1
Scatterplot
Code
.plot({
Plotcolor: {legend: true},
@@ -251,19 +259,23 @@ Scatterplot
grid: true
})
Code
= Inputs.select(["carat","depth","table","price"], {value: "carat", multiple: false, label: "X2 axis"})
viewof x2 = Inputs.select(["carat","depth","table","price"], {value: "price", multiple: false, label: "Y2 axis"}) viewof y2
Scatterplot
Code
.plot({
Plotcolor: {legend: true},
@@ -300,12 +312,16 @@ Scatterplot
grid: true
})
Scatterplot
- - @@ -185,6 +191,7 @@On this page
+This is recreated from here.