All Projects → antvis → G2

antvis / G2

Licence: mit
📊 A highly interactive data-driven visualization grammar for statistical charts.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to G2

Amcharts4
The most advanced amCharts charting library for JavaScript and TypeScript apps.
Stars: ✭ 907 (-91.77%)
Mutual labels:  graph, svg, data-visualization, charts
C3
📊 A D3-based reusable chart library
Stars: ✭ 9,163 (-16.85%)
Mutual labels:  graph, graphics, svg, data-visualization
Echarts
Apache ECharts is a powerful, interactive charting and data visualization library for browser
Stars: ✭ 49,119 (+345.73%)
Mutual labels:  svg, data-visualization, charts, canvas
Rickshaw
JavaScript toolkit for creating interactive real-time graphs
Stars: ✭ 6,506 (-40.96%)
Mutual labels:  graph, svg, charts
Aachartcore
📈📊☕️☕️☕️An elegant modern declarative data visualization chart framework for Android. Extremely powerful, supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types.极其精美而又强大的 Android 数据可视化图表框架,支持柱状图、条形图、折线图、曲线图、折线填充图、曲线填充图、气泡图、扇形图、环形图、散点图、雷达图、混合图等各种类型的多达几十种的信息图图表,完全满足工作所需.
Stars: ✭ 424 (-96.15%)
Mutual labels:  graphics, data-visualization, charts
Uplot
📈 A small, fast chart for time series, lines, areas, ohlc & bars
Stars: ✭ 6,808 (-38.22%)
Mutual labels:  graph, data-visualization, charts
Graphic
A Flutter data visualization library based on Grammar of Graphics.
Stars: ✭ 173 (-98.43%)
Mutual labels:  graph, data-visualization, charts
Apexcharts.js
📊 Interactive JavaScript Charts built on SVG
Stars: ✭ 10,991 (-0.26%)
Mutual labels:  svg, data-visualization, charts
Resonance
◾️Resonance | 5kb React animation library
Stars: ✭ 1,011 (-90.83%)
Mutual labels:  graph, svg, charts
Deep Viz
A React component library, providing concise and beautiful diversity charts with Canvas, SVG, E-map, WebGL, Dom, based on data visualization experience and commercial data display practice.
Stars: ✭ 55 (-99.5%)
Mutual labels:  svg, data-visualization, canvas
Reaviz
📊 Data visualization library for React based on D3
Stars: ✭ 1,141 (-89.65%)
Mutual labels:  svg, data-visualization, charts
Pts
A library for visualization and creative-coding
Stars: ✭ 4,628 (-58%)
Mutual labels:  graphics, svg, canvas
ux-charts
Simple, responsive, modern Charts with zero dependencies
Stars: ✭ 22 (-99.8%)
Mutual labels:  charts, canvas, graph
Clchart
A fast, simple and cross-platform(html5 react-native weex wechat-applet) stock chart library created using canvas.
Stars: ✭ 250 (-97.73%)
Mutual labels:  graph, data-visualization, canvas
Calendar Graph
Calendar graph like github using jsx support SVG, Canvas and SSR
Stars: ✭ 58 (-99.47%)
Mutual labels:  graph, svg, canvas
Muze
Composable data visualisation library for web with a data-first approach now powered by WebAssembly
Stars: ✭ 1,153 (-89.54%)
Mutual labels:  svg, data-visualization, charts
Pure Vue Chart
Simple and lightweight vue chart component without using chart library dependencies
Stars: ✭ 50 (-99.55%)
Mutual labels:  graph, svg, charts
Rough
Create graphics with a hand-drawn, sketchy, appearance
Stars: ✭ 16,472 (+49.47%)
Mutual labels:  graphics, svg, canvas
Aachartkit Swift
📈📊📱💻🖥️An elegant modern declarative data visualization chart framework for iOS, iPadOS and macOS. Extremely powerful, supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types. 极其精美而又强大的跨平台数据可视化图表框架,支持柱状图、条形图、…
Stars: ✭ 1,962 (-82.2%)
Mutual labels:  graph, graphics, data-visualization
Unity Ugui Xcharts
A charting and data visualization library for Unity. 一款基于UGUI的数据可视化图表插件。
Stars: ✭ 1,086 (-90.15%)
Mutual labels:  graphics, data-visualization, charts

English | 简体中文

G2

一套面向常规统计图表,以数据驱动的高交互可视化图形语法。

CI Coverage Status NPM Package NPM Downloads Dependencies Percentage of issues still open PRs Welcome

网站教程文档博客G2Plot

G2 是一套基于图形语法理论的可视化底层引擎,以数据驱动,提供图形语法与交互语法,具有高度的易用性和扩展性。使用 G2,你可以无需关注图表各种繁琐的实现细节,一条语句即可使用 Canvas 或 SVG 构建出各种各样的可交互的统计图表。

📺 线上示例

特性

  • 💯 完善的图形语法:数据到图形的映射,能够绘制出所有的图表。
  • 🤩 全新的交互语法:通过触发和反馈机制可以组合出各种交互行为,对数据进行探索。
  • 🦍 强大的 View 模块:可支持开发个性化的数据多维分析图形。
  • 👬 双引擎渲染:Canvas 或 SVG 任意切换。
  • 💄 可视化组件体系:面向交互、体验优雅。
  • 🛡 全面拥抱 TypeScript:提供完整的类型定义文件。

📦 安装

$ npm install @antv/g2

🔨 快速上手

在绘图前我们需要为 G2 准备一个 DOM 容器:

<div id="c1"></div>
import { Chart } from '@antv/g2';

const data = [
  { genre: 'Sports', sold: 275 },
  { genre: 'Strategy', sold: 115 },
  { genre: 'Action', sold: 120 },
  { genre: 'Shooter', sold: 350 },
  { genre: 'Other', sold: 150 },
];

// Step 1: 创建 Chart 对象
const chart = new Chart({
  container: 'c1', // 指定图表容器 ID
  width: 600, // 指定图表宽度
  height: 300, // 指定图表高度
});

// Step 2: 载入数据源
chart.data(data);

// Step 3: 创建图形语法,绘制柱状图
chart.interval().position('genre*sold');

// Step 4: 渲染图表
chart.render();

⌨️ 本地开发

# 安装依赖
$ npm install

# 运行测试用例
$ npm run test

# 打开 electron 运行测试用例,监听文件变化构建
$ npm run test-live

# 运行 CI
$ npm run ci

# 运行网站
$ npm start

🏷️ 版本

你也可以在业务中使用基于 G2 封装的常规统计图表 G2Plot,可以使用配置的方式快速生成一个通用图表,降低开发者的使用成本。

🤝 如何贡献

如果您在使用的过程中碰到问题,可以先通过 issues 看看有没有类似的 bug 或者建议。

如需提交代码,请遵从我们的贡献指南

Let's fund issues in this repository

联系我们

钉钉群组号码: 30233731 / 35686967 (2 群)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].