Coder Social home page Coder Social logo

csc220-assignments's Introduction

CSC220-Assignments

assignments from Advanced Programming Techniques class

Assignment 1

Visualize the data defined in the attached data.js document.

A possibility for the user to chose from the three data sets (e.g. drop-down list, list of links, etc.)

After selecting a data set, its data series should be visualized in form of a bar chart, showing the labels for each data point

If there is already a data set active, it has to be replaced with the newly selected data set

The title of the selected data set should appear somewhere

When moving over a bar with the mouse, that bar should highlight in a different color (or other effect) and the value of the data point should be displayed above the bar (but the highlighting and data label should disappear when the mouse leaves the bar)

Assignment 2

Re-implement bar chart based on Canvas (including hover effect)

Add the ability to switch between bar chart and line chart

Add a vertical scale and value labels to both chart types (major and minor steps)

For line chart only: Highlight points and show data values of the data point that is closest to the mouse Following the mouse's Y position, a dotted line should be drawn so that one has a horizontal guide

Use object-oriented approach

Assignment 3

Use GameEngine (derive from it), to set up a game loop canvas

Implement your own drop-down list in Canvas:

Create your own objects for Selector and Option

Input: override the onMouseClick method and do your own hit-testing on your Selector object(s)

Output: override the draw method and call your Selector's draw function

Selector has to have a setPosition(x, y) method, so that you can instantiate multiple selectors on the same canvas

Assignment 4

Use object-oriented approach to design a system that draws different shapes (circle, square, triangle) and allows you to drag and layer the shapes

csc220-assignments's People

Contributors

caealana avatar

Watchers

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.