Skip to content

sandaruchamath@gmail.com Chamath Ranasinghe rexzing IA6

License

Notifications You must be signed in to change notification settings

codezilla2018/DrawIt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DrawIt

sandaruchamath@gmail.com 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

About

sandaruchamath@gmail.com Chamath Ranasinghe rexzing IA6

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published