Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fresh_charts/deps.ts>ChartJs.BasePlatform#releaseContext

A server-side-rendered charting library for Fresh
Go to Latest
method ChartJs.BasePlatform.prototype.releaseContext
import { ChartJs } from "https://deno.land/x/fresh_charts@0.3.0/deps.ts";
const { BasePlatform } = ChartJs;

Called at chart destruction time, releases any resources associated to the context previously returned by the acquireContext() method.

Parameters

context: CanvasRenderingContext2D
  • The context2d instance

Returns

boolean

true if the method succeeded, else false