Git Product home page Git Product logo

complete-cloud's Introduction

complete-cloud

A simple world cloud visualization that shows most common google's auto completion for questions about countries.

why does...

Click on any tag to see queries:

why does expanded

Note: If you are on mobile - touch and hold the tag for two seconds to see completions.

How it's made?

For each country I query Google for autocompletions:

why does animated

Then each suggestion is recorded and stored into json format:

{
  "state": "Albania",
  "suggestions": [
    "why does albania<b> hate greece</b>",
    "why does albania<b> love america</b>",
    "why does albania<b> have a bad reputation</b>",
    "why does albania<b> hate serbia</b>",
    "..."
  ]
}

NOTE: This extraction work is automated and managed by anvaka/wpg-data repository. I'm trying to update data on a daily basis.

All words between <b></b> tags are extracted. I use world cloud layout algorithm to determine position of a word on the page.

Common words are excluded. You can find the list of excluded words here

Rendering is done entirely in SVG. You can pan and zoom the image to see it at infinite precision:

  • Use mouse wheel or pinch zoom to zoom in/zoom out. You can also use keyboard keys -, + to do the same.
  • With left mouse button (or one finger on mobile diveces) you can drag the area. Keyboard arrows should also do the same.

NOTE: The SVG interaction is managed by anvaka/panzoom module.

See also

If you want to explore Google's auto completion tags, please refer to anvaka/what-people-google repository.

Local build

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

License

MIT

complete-cloud's People

Contributors

anvaka avatar

Stargazers

ManInDark avatar Suri avatar Gwenaël Gallon avatar  avatar JackerKun avatar J Hughes avatar Yury Egorenkov avatar Sabin Bir avatar

Watchers

 avatar maru jan avatar James Cloos 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.