Git Product home page Git Product logo

datav's Introduction

DataV.js

Get Start

get code and install

git clone [email protected]:datavjs/datav.git
cd datav
make install

start server

bin/start

访问命令行提供的网址,开始开发浏览吧

生成文档:

make doc

运行测试

make test

Architecture

datav 总体分为两层

  • demos 展示层,负责demo用户
  • src 源码层,各种类型的报表在这里产出
src下,又分为两层:
  - /charts
    图标层,各种多样性的图表,实现在这里面.
    这层是图表的组装层, 各种形状的图表,源码都在这里
  - /...
    基础层,各种组件、小物件、底层库 等等
    这层用来构建charts层, 抽象更小的部分,让charts层的编写更方便
/src
  - /core     核心小模块
  - /format   各种格式化工具
  - /layout   各种布局工具
  - /legend   各种图例的实现
  - /tip      各种tip的实现

Coding Style

  • node风格,require机制
  • sublime配置jshint, 设置保存时校验
  • 2空格缩进
  • 文件描述, git hook 自动添加头信息: license, file description, author, create date
  • 文档注释

其他细节

  • css 请不要使用超长前缀namespace,这个事情交给less等工具来完成

release module

npm install datav

Test

基于node的完成测试,mocha + expect.js + jQuery + jsdom + jscoverage 同时也支持浏览器端跑test case

图表测试包含

License

comming soon

datav's People

Watchers

 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.