Socket
Socket
Sign inDemoInstall

@coord/graph

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coord/graph

The @coord/graph is a React Library that allows you to create mathematical visualizations on the web.


Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

@coord/graph

The @coord/graph is a React Library that allows you to create mathematical visualizations on the web.

Why use it?

I'm a big fans of tools like Desmos. However, I also realize that moving your math logic from code to a separate tool can sometimes be a hassle.

This library aims to solve this problem by allowing developers to utilize the best of coding and graphing tools in a single platform without the extra hassle.

It's still a work in progress, but I'm excited to share it with you and I hope you find it helpful!

Keep in mind that the API is still subject to change.

Installation

npm install @coord/graph

Hello World

import { Graph, Grid, Plot, useNavigationState } from "@coord/graph";

export default function MyGraph() {
  const [coordBox, setCoordBox] = useNavigationState();

  return (
    <Graph
      coordBox={coordBox}
      onCoordBoxChange={setCoordBox}
      height={300}
      width="100%"
    >
      <Grid />
      <Plot.ofX f={(x) => Math.sin(x)} />
    </Graph>
  );
}

Documentation

Check out the official @coord/graph page at https://coord-docs.vercel.app/graph for more details.

FAQs

Package last updated on 12 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc