Giter VIP home page Giter VIP logo

drawit's Introduction

DrawIt

[email protected] Chamath Ranasinghe rexzing IA6. This library can be used to easily generate configaration files for popular javascript grap ibraries like c3, chartjs, d3. At the oment this only support c3.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installing

Download the drawit.js frile from /dist folder and import it in your html.

  <script src="drawit.js"></script>

And call DI.generate method as follows.

 DI.generate(url, div_id, callback, chart_type, axises);
 // url - url of the data file. Can be csv, tsv or a json. Find example data files
 //       in samples/data_files
 // div_id - Id of the div that you wish to put the grahp
 // callback - callback method after generating configurations( example - In c3 c3.generate method)
 // chart_type - chart tyoe of your desired grahp. At the momment we support (spline, area, bar, line, step)
 // axises - {x:'', y:''} name of the columns on data file witch you going a make as x and y axises

Example

Examples using drawit,js library with c3 can find in samples/index.html

Dependency

Authors

  • Chamath Sandaru - Initial work - rexzing

License

This project is licensed under the MIT License - see the LICENSE.md file for details

drawit's People

Contributors

csranasinghe avatar imesh94 avatar

Stargazers

Nir Lanka 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.