Giter Site home page Giter Site logo

webdatarocks / pivot-react Goto Github PK

View Code? Open in Web Editor NEW
44.0 5.0 16.0 3.1 MB

Example of integrating the WebDataRocks web reporting tool with the React framework

Home Page: https://www.webdatarocks.com

CSS 6.82% JavaScript 34.36% TypeScript 40.68% HTML 18.14%
pivot-tables pivot pivot-grid reporting-tool reports react integration

pivot-react's Introduction

Example of integrating WebDataRocks with the React framework

This repository contains sample ES6 and TypeScript projects that show how to integrate WebDataRocks with the React framework.

Prerequisites

For React + ES6 project:

For React + TypeScript project:

Run the project

  1. Download or clone this project from GitHub:
    • React + ES6 project:
    git clone https://github.com/WebDataRocks/pivot-react
    cd pivot-react/ES6
    • React + TypeScript project:
    git clone https://github.com/WebDataRocks/pivot-react
    cd pivot-react/typescript
  2. Install npm packages:
npm install
  1. Run the project:
npm start

You can access the project at http://localhost:3000/.

Related docs

For details on how to integrate WebDataRocks into existing React projects, check out the integration with React.

Support

Feel free to ask WebDataRocks-related questions on StackOverflow.

pivot-react's People

Contributors

dependabot[bot] avatar iansadovy avatar maksymkad avatar marviem avatar tsshn avatar veradidenko avatar vo-fomin avatar webdatarocksowner avatar webdatarocksteam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pivot-react's Issues

Table not updating when data is updated

I'm using the pivot table to show some data from the backend. I have implemented a filter function, which filters the data passed to my PivotTable component e.g., by year or name.

However, even though the props for PivotTable and the data state changes and triggers a re-rendering of the entire component, the browser still shows the entire data, not the filtered data. Only if the hot reloading is triggered, the table actually updates.

Here is my PivotTable component:

import React, { useState, useEffect } from 'react';
import { Pivot } from "@webdatarocks/react-webdatarocks";

const PivotTable = ({ tableData }) => {
  const [data, setData] = useState(tableData);

  useEffect(() => {
    setData(tableData);
  }, [tableData]);

  return (
    <div>
      <Pivot
        toolbar={false}
        report={data}
      />
    </div>
  )
}

export default PivotTable;

Accessibility issues in Webdatarocks

1.For all wdr tabs(#wdr-tab-format ,#wdr-tab-options, #wdr-tab-fields, #wdr-tab-fullscreen ) -> List item does not have a <ul>, <ol> parent element."

2.For all wdr tab link text Element has insufficient color contrast of 3.54 (foreground color: #888888, background color: #ffffff, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1.

3.For all .wdr-sheet-heade Element has insufficient color contrast of 2.52 (foreground color: #999999, background color: #f1f1f1, font size: 9.0pt (12px), font weight: normal). Expected contrast ratio of 4.5:1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.