GithubHelp home page GithubHelp logo

gabrieldaze / vline-chart Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 43 KB

Simple vertical line chart

License: Apache License 2.0

HTML 2.35% JavaScript 97.65%
javascript-library chart-library data-visualization

vline-chart's Introduction

vLine-chart

Simple vertical line chart

The vLine Chart is basicly a table with columns, rows and markers

Preview

To use the vLine Chart, first you need to instanciate the class
vline = new VLine()
Then, you have to setup the font of your chart
vline.setupFont('Courier', 16, 20)
  1. The first parameter is the font family
  2. The second parameter is the font size
  3. The third parameter is the font margin (It is 20 by default)
After setting the font, you need to setup the header of your chart
vline.setupVLineHeader('Leadership Attributes', [
	'Low',
	'Medium',
	'High'
])
  1. The first parameter is the title of your chart
  2. The second parameter is an array of strings which are the columns of your chart
Now you can add your rows to the chart
vline.addElement('Business management', 2)
vline.addElement('Entrepreneurial mindset', 3)
vline.addElement('Ambition and resilience', 2)
vline.addElement('Relationship building', 2)
vline.addElement('Project management', 1)
vline.addElement('Taking orders', 1)
  1. The first parameter is the description of your item
  2. The second parameter is the index that your row is scored
After adding your rows you can build the chart
vline.buildCanvas()

vline-chart's People

Contributors

gabrieldaze avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

thiagorock22

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.