Published
Edited
Dec 7, 2020
1 fork
1 star
Insert cell
Insert cell
Insert cell
Insert cell
getWeekData = {
var result = [];
for(var i = 0; i < rawWeekData.data.length; i++) {
result.push([rawWeekData.data[i].date, rawWeekData.data[i].news_count]);
}

return result;
}
Insert cell
rawWeekData = {
return d3.json("https://pf2.it.itba.edu.ar/api/cantidad-de-noticias?d_from="+dateFrom+"&d_to="+dateTo+"&sources=51");
}
Insert cell
Insert cell
dateFrom = "2020-01-01"
Insert cell
Insert cell
echarts = require('https://unpkg.com/echarts@4.0.2/dist/echarts.js')
Insert cell
d3 = require("d3@6")
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