GithubHelp home page GithubHelp logo

visiky / f2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from antvis/f2

0.0 0.0 0.0 10.26 MB

📱 📊 📈 Mobile data visualization solution in JavaScript

Home Page: https://antv.alipay.com/zh-cn/f2/3.x/index.html

License: MIT License

JavaScript 99.05% Shell 0.06% CSS 0.36% HTML 0.53%

f2's Introduction

F2: Mobile data visualization solution, pure in JavaScript

npm package NPM downloads Percentage of issues still open

中文 README

F2 is a powerful mobile data visualization solution, pure in javascript. F2 is based on the grammar of graphics, and it is light-weighted, high-performance and easily expandable. Also, F2 charts are well designed for mobile.

Special thanks to Leland Wilkinson, the author of The Grammar Of Graphics, whose book served as the foundation for F2 and G2.

Installation

$ npm install @antv/f2

Features

  • ✔︎ Elegant user experience: Designed for mobile experience
  • ✔︎ Flexible: Customizable shapes and animations, flexible charting components, infinite creativity
  • ✔︎ High performance: F2 pursues the ultimate performance for drawing, lots of optimization have been done for mobile devices
  • ✔︎ Light-weighed: F2 maintains a compact code size while supporting more than 45 kinds of charts

Other runtime support

Website && Documentations

  • Chinese documents

  • English documents: on the way!

Demos

Or see demos in mobile:

Getting Started

<canvas id="c1"></canvas>
import F2 from '@antv/f2';

const data = [
  { year: '1951 年', sales: 38 },
  { year: '1952 年', sales: 52 },
  { year: '1956 年', sales: 61 },
  { year: '1957 年', sales: 145 },
  { year: '1958 年', sales: 48 },
  { year: '1959 年', sales: 38 },
  { year: '1960 年', sales: 38 },
  { year: '1962 年', sales: 38 },
];
const chart = new F2.Chart({
  id: 'c1',
  width: 375,
  height: 265,
  pixelRatio: window.devicePixelRatio
});

chart.source(data);
chart.interval().position('year*sales');
chart.render();

Development

$ npm install

# run test case
$ npm run test-live

# build watching file changes and run demos
$ npm run dev

# run demos
$ npm run demos

# run pack
$ npm run bundler

How to Contribute

Please let us know how can we help. Do check out issues for bug reports or suggestions first.

To become a contributor, please follow our contributing guide.

License

MIT license.

f2's People

Contributors

cycgit avatar dxq613 avatar inahoonya avatar jasonboy avatar leungwensen avatar simaq avatar zach41 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.