mapped-calendar-graph

1.0.5 • Public • Published

React Interactive Calendar synced with React Frappe Charts Graph

A calendar with React Frappe Charts created for the convenience of mapping calendar inputs to a simple chart. Most lightweight NPM chart available and the graph is a separate component that is not required to be used.

Installation

npm install --save mapped-calendar-graph

Usage

import React, { useState } from 'react'
import { Calendar } from 'mapped-calendar-graph'
import { Graph } from 'mapped-calendar-graph'

export default function MyChart(props) {
    const [map, setMap] = useState(new Map());
    return (
        <div>
            <Calendar map={map} setMap={setMap}></Calendar>
            {map.size > 0 && <Graph map={map}></Graph>}
        </div>
    );
}

Package Sidebar

Install

npm i mapped-calendar-graph

Weekly Downloads

1

Version

1.0.5

License

ISC

Unpacked Size

3.82 MB

Total Files

17

Last publish

Collaborators

  • ayushnpatel