Published
Edited
Mar 20, 2021
Insert cell
md`# Plotting wine data?`
Insert cell
scatterPlot(600, data, ['dim0', 'dim5', 'dim7', 'dim9', 'dim10'])
Insert cell
data = {
const res = new Array();
const name =
'# binairisation et ajout de 0% de valeurs manquantes au fichier wine.data';
for (let i in raw) {
const row = {};
const text = `${raw[i][name]}`.split(' ');
for (let j in raw[i][name]) {
row[`dim${j}`] = parseFloat(text[j]);
}
res.push(row);
}
return res;
}
Insert cell
raw = {
const url =
"https://raw.githubusercontent.com/lmcanavals/dm/master/20202/data/wine.bin";
return d3.csv(url, d3.autoType);
}
Insert cell
import { scatterPlot } from '@pcsilcan/plots'
Insert cell
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