0.2.3 • Published 3 years ago

react-pivottable-custom v0.2.3

Weekly downloads
36
License
MIT
Repository
github
Last release
3 years ago

react-pivottable-custom

This is a library with some customized functions based on react-pivottable, mainly for testing and demo.

Please see https://github.com/plotly/react-pivottable#readme for more details of usage of the original table.

Added features

1. Unused Attributes with categories

2. Set category level to display (Removed in new look)

3. Customized the default orders of unused attributes

4. Add attribute filters for better user experience when there are more attributes

  - Update: change to search function on the top of the table
  - Update: fix the problem of `reset filters` will clean searchings

5. Add unclassfied attributes handler

6. Add Reset function

7. Add number configuration for each category

8. Add labels for each attributes for hover to show extra information

 attrLabel: {[attrName]: "supplementary information"}

9. Add Show All button for each category with sub category

10. Customized styling without third-party library

11. Support multiple queries for value in filters and query by expression

12. Add module to config "OR groups"

- 12.1 Set label color for different 'OR' groups
- 12.2 Change the place of all ungrouped attributes

Usage

Configure categories for attributes

This fearture is mainly designed for scenario when there are lots of attributes to analyze, providing a better way to organize attributes.

See the example form NYC Open Data in App.js.

                attrClassified: true,
                attrCategory:[
                    {
                        name: "Payer",
                        subcategory: [
                            {
                                name: "Test1",
                                attributes: ['Payer Smoker'],
                                subcategory: [
                                    {
                                        name: "Test2",
                                        attributes:  ['Payer Gender']
                                }
                                ]
                            },
                        ]
                    },
                    {
                        name: "Money",
                        attributes:  ['Tip', 'Total Bill'],
                    },
                    {
                        name: "Others",
                        // attributes: ['Day of Week','Meal','Party Size'],
                        subcategory:[
                            {
                                name: "Test1",
                                attributes: ['Meal'],
                                subcategory: [
                                    {
                                        name: "Test2",
                                        attributes:  ['Day of Week']
                                },{
                                    name: "Test3",
                                    attributes: ['Party Size']
                                }
                                ]
                            },
                        ]
                    }
                ],
0.2.1

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5-test

3 years ago

0.1.5

3 years ago

0.1.4-test

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.2-test

3 years ago

0.1.1-test

3 years ago

0.1.1

3 years ago

0.1.0-test

3 years ago

0.1.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6-test

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago