Code Monkey home page Code Monkey logo

fun-times's Introduction

fun-times

project 0

repo url: https://github.com/kevinvkell/fun-times

In order to view the project, clone the repository from the above url and open index.html in a browser. If you got the project in a zip file and are reading this then you have already unzipped the project and need only to open index.html in a browser.

I have only tested it in chrome. It uses d3 to create elements in an svg html element. To get started I used the tutorial found here: http://bost.ocks.org/mike/bar/2/

In preparation for using data sets in future projects I tried to base some part of each object drawn on the array of numbers that the tutorial used to make the bar chart. None of it makes sense, I just did the first thing that came into my head.

-The lines are just the length of each number in the array. -The dots are at the coordinates of each number in the array. They become less blue as the value increases. -For the polygon I used sin and cos to "wrap" the data in the array around a circle, so each point is placed on the unit circle by rotating it a distance proportional to its value (I think...I might have done my math incorrectly).

Aside from the dots, I just picked random colors for the objects.

FILES INCLUDED: -index.html: basic html file with svg element that I will add stuff to. -main.js: javascript file that uses d3 to add elements to the page usinng svg -style.css: this file specifies the style for some of the elements on the page

fun-times's People

Contributors

kevinvkell avatar

Watchers

James Cloos avatar Ceren Savasan 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.