Coder Social home page Coder Social logo

info474softwaredesign's Introduction

Nishant Velagapudi

info474 coding assignment 3

##Introduction This module allows you to create word clouds using d3. Please note that this requires D3 and also d3.layout.cloud.js (which can be taken from https://jardindesconnaissances.googlecode.com/svn-history/r82/trunk/public/js/d3.layout.cloud.js.

More common words have a default color of red. Less common words have a default color of black. More common words are larger. You can modify cloud height, width, pick colors for most and least often occurring words, and adjust the scale of the words created (more often occurring words are larger by definition).

Input text needs to be in the format of a simple string: words separated by spaces. Special characters are cleaned.

##Functions

The following functions are exposed to the user:

Word Cloud Width -

wordCloudModule.width(int width) Set the width of the word cloud. Note that setting a width wider than containing element will result in missing words.

Word Cloud Height -

wordCloudModule.height(int height) Set the height of word cloud. Note that setting a height greater than containing element results in missing words.

Word Cloud Word Occurence Coloring: Max Color -

wordCloudModule.maxColor(string color) Set the color of the most often occurring word in the cloud. Color is a hex value. Max color and min color establish gradient bounding points.

Word Cloud Word Occurence Coloring: Min Color -

wordCloudModule.minColor(string color) Set the color of the least often occurring word in the cloud. Color is a hex value

Word Cloud Word Scale -

wordCloudModule.scale(int scale) Set the relative size of words all words. Default is 5. Note that this needs to be adjusted to tune with the number of words and size of the word cloud to optimize readability.

Word Cloud Margin -

wordCloudModule.margin(int margin) Set the margin from the container given to the beginning of the word cloud. Default is 50: Margin applied equally to all four sides and is specified in pixels. Use if there are any elements surrounding the word cloud to avoid obscuring them.

info474softwaredesign's People

Contributors

nishray avatar

Watchers

 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.