UF01-1844. Observable JS

Quarto Markdown: Observable JS

Exemple de Observable JS. Aquí teniu la url de l’enunciat:

Observable JS example. Here is the URL for the assignment:

UF01-1844. Observable JS

Observable JS Example

height = 250
numbers = Float64Array.from({length: 1000}, d3.randomNormal())
import {chart as histogram} with {numbers as data, height} from "@d3/histogram@261"

histogram
height = 250
numbers = Float64Array(1000) [-0.757525795810278, -0.43489718239244735, 2.566928099185603, 1.0675069164149094, 0.5419672633573454, -0.1123721934328014, -2.0763764483670655, -1.4767793839821381, -1.6526810569017503, -0.7497739921899959, -0.9915254451872946, 1.3669373585101297, -2.348544197986272, -0.2036389050631956, 0.5266498968682651, -1.0349348620657106, -0.5109747520163487, -0.43216579537236566, 1.073719646239874, -0.07278763194666256, …]
OJS Runtime Error (line 21, column 1)

histogram is not defined