https://github.com/mauriciopoppe/function-plot
A versatile 2d function plotter
https://github.com/mauriciopoppe/function-plot
desmos evaluation-functions function function-plot graph plot plotter
Last synced: about 1 month ago
JSON representation
A versatile 2d function plotter
- Host: GitHub
- URL: https://github.com/mauriciopoppe/function-plot
- Owner: mauriciopoppe
- License: mit
- Created: 2015-03-31T07:06:17.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2026-01-03T17:58:43.000Z (4 months ago)
- Last Synced: 2026-04-01T07:52:33.738Z (about 1 month ago)
- Topics: desmos, evaluation-functions, function, function-plot, graph, plot, plotter
- Language: TypeScript
- Homepage: https://mauriciopoppe.github.io/function-plot/
- Size: 6.7 MB
- Stars: 1,040
- Watchers: 17
- Forks: 122
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](http://mauriciopoppe.github.io/function-plot/)
---
function-plot is a powerful library built on top of D3.js whose purpose
is to render functions with little configuration, think of it as a little clone of Google's plotting
utility: [y = x \* x](https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&es_th=1&ie=UTF-8#q=y+%3D+x+%5E+2)
The library currently supports interactive line charts and scatterplots, whenever the graph scale is modified the function
is evaluated again with the new bounds, result: infinite graphs!
## Installation
```sh
npm install function-plot
```
## Usage
```javascript
import functionPlot from 'function-plot'
functionPlot({
target: '#root',
data: [
{
fn: 'x^2',
derivative: {
fn: '2*x',
updateOnMouseMove: true
}
}
]
})
```
[Check all the examples in the homepage](https://mauriciopoppe.github.io/function-plot/)
## Resources
- [API](https://mauriciopoppe.github.io/function-plot/docs/functions/default-1.html)
- [Want to know how it works? Read the design docs](./design/)
- [Render pipeline](./design/pipeline.md)
- [Web workers](./design/web-workers.md)
## License
2015-2023 MIT © Mauricio Poppe
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fmauriciopoppe%2Ffunction-plot?ref=badge_large)