This package implements a function curve viewer that runs within a HTML page in the web browser. It can be used in widget mode (with a HTML canvas element) or as a web component (HTML custom element).
NPM package: function-curve-viewer
Online demo: www.source-code.biz/snippets/typescript/functionCurveViewer
Examples of how to use it: github.com/chdh/function-curve-viewer/tree/master/examples