// Defining the plot ... here simply putting the appropriate data in
// In plotly, they're called traces
vartrace1={
// data along x axis
x:fin_data.map(function(d){
returnd.date
}),
// data along y axis
y:fin_data.map(function(d){
returnd.close
})
}
// Adding the plot to the piece of HTML
plotly.react(plot,[trace1])
// For observable to display it, it must be returned out of this code chunk
returnplot
}
{
varchange=(Math.random()*10)-(Math.random()*10)
// var current_value = change_me
mutablechange_me+=change
}
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.