# mauriciopoppe/function-plot

A versatile 2d function plotter

Repository: https://github.com/mauriciopoppe/function-plot
Canonical: https://ross.abutalabs.com/products/function-plot
Homepage: https://mauriciopoppe.github.io/function-plot/
Language: JavaScript
License: MIT
License Family: permissive
Topics: graph, function-plot, plot, plotter, desmos, evaluation-functions, function
Last push: 2026-05-02T15:47:09+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 80, release rhythm 49, longevity 100
- inputs: {"age_days": 4173, "days_push": 123, "days_rel": 129, "gap_med": 269.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1056, forks 121 (observed 2026-08-28T04:03:24.551928+00:00)

## What it is
A JavaScript library built on D3.js for rendering 2D function plots with minimal configuration, supporting interactive line charts and scatterplots. It uses interval arithmetic to re-evaluate functions on zoom/pan, producing pixel-perfect curves even for rapidly oscillating functions.

## Use cases
- plot y = x^2 in a web page
- render interactive function graphs with zoom and pan
- visualize derivatives of functions on hover
- plot rapidly oscillating functions like sin(e^x) accurately
- embed a Desmos-like graphing widget in an app
- draw scatterplots of evaluated functions

## When to choose
- you need to plot mathematical functions in the browser with little configuration
- you want correct rendering of rapidly oscillating curves via interval arithmetic
- you want a lightweight Google/Desmos-style plotting clone on top of D3

## When to avoid
- you need 3D plotting or general-purpose charting of datasets rather than functions
- you need a non-JavaScript or server-side plotting solution
- you need heavy statistical chart types like box plots or heatmaps

## Facets
- artifact type: library
- maturity: active
- function: data-visualization, charts, math
- domain: data-visualization, web-development, mathematics
- platform: browser
- tags: function-plotter, d3, interval-arithmetic, line-charts, scatterplots, derivatives, math-visualization, nodejs, javascript

## Member repositories
- mauriciopoppe/function-plot (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:24.551928+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:58:24.656541+00:00, confidence not recorded.
  - readme: https://github.com/mauriciopoppe/function-plot (fetched 2026-08-28T04:03:24.551928+00:00, sha cf58f9fa9196)
  - homepage: https://mauriciopoppe.github.io/function-plot/ (fetched 2026-08-29T12:59:55.539109+00:00, sha e23e21b24db9)
  - registry_npm: https://registry.npmjs.org/function-plot (fetched 2026-08-29T12:59:55.548082+00:00, sha 6f557e4be4c1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
