Chart Knowledge Base
Last updated 17 days ago by neoddish .
MIT · Original npm · Tarball · package.json
$ cnpm install @antv/knowledge 
SYNC missed versions from official npm registry.

English | 简体中文

Chart Knowledge Base (CKB)


A knowledge base stores the wiki for every type of visualization.

Version NPM downloads

Chart Knowledge Base (CKB) is a library offers knowledge base for chart wikis in a JSON format. The JSON is like this:

  line_chart: {
    id: 'line_chart',
    name: 'Line Chart',
    alias: ['Lines'],
    family: ['LineCharts'],
    def: 'A line chart uses lines with segments to show changes in data in a ordinal dimension.',
    purpose: ['Comparison', 'Trend', 'Anomaly'],
    coord: ['Cartesian2D'],
    category: ['Statistic'],
    shape: ['Lines'],
    dataPres: [
      { minQty: 1, maxQty: 1, fieldConditions: ['Time', 'Ordinal'] },
      { minQty: 0, maxQty: 1, fieldConditions: ['Nominal'] },
      { minQty: 1, maxQty: 1, fieldConditions: ['Interval'] },
    channel: ['Position', 'Direction'],
    recRate: 'Recommended',



Consistency for Chart Taxonomy

The contribution of the whole data visualization community makes this library a standard. You don't have to struggle with different names or alias or definition of a same chart type.

To Build Chart Dictionaries in Seconds

With AVA/CKB, you can quickly build your chart dictionary product like this: ChartCube

The Base for Automatic Chart Recommendation

You can easily build a chart type recommendation system with this knowledge base and your customized rules.


$ npm install @antv/knowledge


import { CKBJson } from '@antv/knowledge';

// Knowledage base for all charts in English.
const knowledgeBase = CKBJson();

// Knowledage base for completed charts in Chinese.
const zhCompletedKB = CKBJson('zh-CN', true);



We welcome all contributions. Please read General Contribution Guide and Contribution Guide for AVA/CKB first.

You can submit any ideas as pull requests or as GitHub issues. Let's build a better AVA together.




ChartCube - Online chart making tool based on G2Plot.

Current Tags

  • 1.1.0                                ...           latest (17 days ago)

20 Versions

  • 1.1.0                                ...           17 days ago
  • 1.0.0                                ...           2 months ago
  • 0.1.3-alpha.18                                ...           10 months ago
  • 0.1.3-alpha.17                                ...           a year ago
  • 0.1.3-alpha.16                                ...           a year ago
  • 0.1.3-alpha.14                                ...           a year ago
  • 0.1.3-alpha.13                                ...           a year ago
  • 0.1.3-alpha.12                                ...           a year ago
  • 0.1.3-alpha.11                                ...           a year ago
  • 0.1.3-alpha.10                                ...           a year ago
  • 0.1.3-alpha.8                                ...           a year ago
  • 0.1.3-alpha.7                                ...           a year ago
  • 0.1.3-alpha.6                                ...           a year ago
  • 0.1.3-alpha.5                                ...           a year ago
  • 0.1.3-alpha.4                                ...           a year ago
  • 0.1.3-alpha.3                                ...           a year ago
  • 0.1.3-alpha.2                                ...           a year ago
  • 0.1.3-alpha.1                                ...           a year ago
  • 0.1.3-alpha                                ...           a year ago
  • 0.0.2-alpha.16                                ...           a year ago

Copyright 2014 - 2016 © taobao.org |