šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

simple-pivot-table

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-pivot-table

Simple pivot table library with basic functionality.

2.11.0
latest
Source
npm
Version published
Weekly downloads
3
-89.29%
Maintainers
1
Weekly downloads
Ā 
Created
Source

simple-pivot-table

This simple but powerful React UI library generates Pivot Tables based on the rows and values selected in the input.

Install

You can install with [npm]:

$ npm install --save simple-pivot-table

Usage

The library is self documented in a Storybook here:

https://webdacjs.github.io/simple-pivot-table/?path=/story/pivottable--default

Please browse it and discover all the different usecases supported but the simplest usage is to import the PivotTable module and pass the data, rows and values parameters.

The data parameter can be a JSON object or a CSV string, the rows are the fields to aggregate over and the values are the fields summarised with the required aggregator (ie. sum or avg) and an optional formatter. ie:


import { PivotTable } from 'simple-pivot-table'

export default function testcomponent ({data, rows, vals}) {

    return (
         <PivotTable
            data={data}
            rows={rows}
            values={values} />
    )

}

License

Copyright Ā© 2021, Juan Convers. Released under the MIT License.

Keywords

pivot

FAQs

Package last updated on 27 Dec 2021

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