Code Monkey home page Code Monkey logo

bar-chart's Introduction

bar-chart

In this example project i have created a library for drawing bar charts on X, Y axes. Also i have made a live example for bar chart project.

  • index.html - Displays bar chart example.
  • script.js - In this file i have written code for creating bar chart.

To edit bar chart you can change data inside of script.js file.

Example of Data model:

var myVinyls = {
    "Apple": 35,
    "Orange": 30,
    "Banana": 10,
    "Kiwifruit": 25,
    "Blueberry": 40,
    "Grapes": 5
};
var myBarchart = new Barchart(
    {
        canvas:document.getElementById("canvas"),
        seriesName:"Nicest Fruit",
        padding: 35,
        gridScale: 5,
        gridColor:"#777",
        data:myVinyls,
        colors:["#eb4d4b","#f0932b", "#f6e58d","#badc58", "#686de0", "#130f40"]
    }
);

  1. Take any OOP language and create mini graphs (charts) library that is able to draw basic bar chart on X, Y axes. Create another chart type - line as just different visual representation for distinct values. Notes: Demonstrate usage of OOP with classes, inheritance etc Use any library for image drawing and generation that works with your language of choice. Result of your program might be JPG, PNG... image. Do not use existing graph libraries

bar-chart's People

Contributors

mardukaj avatar

Watchers

James Cloos 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.