JSPM

bizcharts

3.1.8
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 22492
  • Score
    100M100P100Q171549F
  • License MIT

A powerful React chart library based G2 for browser

Package Exports

  • bizcharts
  • bizcharts/lib
  • bizcharts/lib/components/Axis
  • bizcharts/lib/components/Chart
  • bizcharts/lib/components/Facet
  • bizcharts/lib/components/Geom
  • bizcharts/lib/components/Guide
  • bizcharts/lib/components/Legend
  • bizcharts/lib/components/Tooltip
  • bizcharts/lib/components/TypedGeom/Interval
  • bizcharts/lib/components/View
  • bizcharts/lib/core
  • bizcharts/lib/processor/event

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bizcharts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

NPM Package NPM Downloads

BizCharts

BizCharts: a powerful data visualization library based G2 React。

More details about BizCharts

Features

  • easy to use
  • strong expansion capability
  • support most data visualization charts

see more demos

Installation

npm

$ npm install bizcharts

umd

 <script src="https://unpkg.com/bizcharts@${version}/umd/BizCharts.min.js"></script>

dev build

$ git clone https://github.com/alibaba/BizCharts.git
$ cd BizCharts
$ npm install
$ npm run build

dev demo

$ sudo vi /etc/hosts
// add 127.0.0.1 localhost
$ npm run[-script] demo
// open in browser http://localhost:3510/

Usage

import {Chart, Axis, Tooltip, Geom} from "bizcharts";

const data = [...];

<Chart height={400} data={data} forceFit>
  <Axis name="month" />
  <Axis name="temperature" label={{formatter: val => `${val}°C`}} />
  <Tooltip crosshairs={{type : "y"}} />
  <Geom type="line" position="month*temperature" size={2} color={'city'} />
  <Geom type='point' position="month*temperature" size={4} color={'city'} />
</Chart>

Document

tutorial

api

FAQ