Giter Site home page Giter Site logo

detector-inspector-challenge's Introduction

WIKI Chart

Summary

  • After researching, instead of scan any table, I've scan only table with the class sortable which will be best fit for extracting chart data.
  • In demonstration purpose, I've only parsed 1st match table.sortable in given url.
  • While parsing table into data, I've mark th cell as main criteria in chart, if th not found it will get closet non-numeric column as main criteria.
  • I made the chart based on 1st numeric column.
  • Supported numeric column pattern:
  • contain only number , ex: 123, 100,000,000, 111.5 (comma character if any will be removed by using regex).
  • contain number and notation following behind, ex: 123 ft, 999 mm...
  • Unsupported numeric column pattern:
  • date time data like 14 March 1983,...
  • phone number: 111-333-999-0000,...
  • output is an svg chart instead save as an image.

Todo

  • Provide test cases / acceptant criterias.
  • Provide unittest for frontend and backend.
  • Support parsing date time data.
  • Make output save as an image.

Local machine dependency:

  • git
  • nodejs ^14x
  • yarn

[FrontEnd] setup and run

(Default: Frontend will run on PORT : 3000)

  • install dependency
cd ./client
yarn install
  • start app (in the same pwd)
yarn start

[BackEnd] setup and run

(Default: Backend will run on PORT : 4001)

  • install dependency
cd ./server
yarn install
  • start app (in the same pwd)
yarn start

Testing

detector-inspector-challenge's People

Contributors

jannikbuschke avatar

Watchers

Đặng Hoàng Thiên avatar

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.