GithubHelp home page GithubHelp logo

idelairre / nosubject_d3 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 32.81 MB

scraper utility to create json to visualize nosubject.com with d3

JavaScript 22.91% HTML 73.27% Makefile 0.21% CSS 3.61%

nosubject_d3's Introduction

nosubject d3

a quick and dirty scraper utility to create json to visualize articles and backlinks on nosubject.com with d3. there is a working copy here: http://idelairre.github.io/nosubject_d3/.

to do

  • make the graph a controlled React component (note: there are major performance problems with this, there is a working version on the controlled_graph_test branch, the current implementation "sprinkles" new nodes onto the graph and keeps stock of nodes currently on the graph, the store basically handles async code, all business logic takes place in the graph generator, which more directly talks to the graph. A potential refactor would be to take the store out, remove promises from graph generator and handle async code with callbacks.)
  • remove methods to generate json from d3Chart.js to index.js (note: this is not possible with this graph strategy because of the way d3 indexes nodes.)
  • better styling and readability
  • make the graph more performant (there is a massive slowdown after 400 nodes)
  • find a way to pre-generate nodes with static json rather than generate them in the browser (note: a lot of problems emerged here.)
  • make scraper methods work for other wikis besides nosubject.
  • tests
  • tests for d3(?)

conclusion

for more complicated force directed graphs, react does not yet play well with d3: http://stackoverflow.com/questions/30330646/how-to-create-a-d3-force-layout-graph-using-react/34485379#34485379

development

  $ npm install

Build alt-async

  $ cd node_modules/alt-async && npm install && npm run build && cd ../..

You can also just run this to do all of the above:

$ make install

Run development server:

  $ gulp watch

tests

$ make tests

nosubject_d3's People

Contributors

idelairre avatar

Watchers

 avatar  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.