Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_chart/utils/Helpers.ts>normalize

A graph library for deno. Inspired by Chart.js. A simpler implementation for basic bar graphs that save to an image.
Latest
function normalize
import { normalize } from "https://deno.land/x/deno_chart@1.1.0/utils/Helpers.ts";

Normalizes the given value to a range

Parameters

val: number

Value to normalize

min: number

Minimum Range

max: number

Maximum Range

Returns

number

The normalized value