Socket
Socket
Sign inDemoInstall

simple-pivot-table

Package Overview
Dependencies
59
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    simple-pivot-table

Simple pivot table library with basic functionality.


Version published
Weekly downloads
12
increased by1100%
Maintainers
1
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 27 Dec 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc