morph-chart
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

morph-chart

Mouse Cursor Morph Transitions

A react chart component with morph transitions.
Inspired by RobinHood's 'Spark' and Rainbow Charts.

NPM JavaScript Style Guide

Install

npm install --save morph-chart

Usage

import React from "react";
import Chart from "morph-chart";
import "morph-chart/dist/index.css";
import { data } from "./graphData";

const App = () => {
    return <Chart width={700} height={200} data={data} />;
};

export default App;

Use a custom header

const App = () => {
    return (
        <Chart width={700} height={200} data={data}>
            {(headerData) => (
                <div>
                    {headerData.title} - {headerData.dataPointValue}
                </div>
            )}
        </Chart>
    );
};

export default App;

License

MIT © itsPauV

Lean Graph

Package Sidebar

Install

npm i morph-chart

Weekly Downloads

5

Version

0.0.2

License

MIT

Unpacked Size

208 kB

Total Files

23

Last publish

Collaborators

  • itspauv