Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

scaleOf function

Bounds and ticks of the value axis: from 0, or below it for negative values.

View as Markdown
import { scaleOf } from '@dioramajs/data/chart'
function scaleOf(
  values: readonly number[],
  top?: number,
): { hi: number; lo: number; ticks: number[] }

Parameters

NameTypeDescription
valuesreadonly number[]
top?number

Default 0.

Defined in packages/data/src/chart.ts.