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

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