Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

mauriciopoppe/function-plot

Repository files navigation

image

js-standard-style NPM js-standard-style


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

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

npm install function-plot

Usage

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

Resources

License

2015-2023 MIT © Mauricio Poppe

FOSSA Status

AltStyle によって変換されたページ (->オリジナル) /