Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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