How to use the bizcharts.G2 function in bizcharts

To help you get started, we’ve selected a few bizcharts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alibaba / BizCharts / typings / bizcharts-tests.tsx View on Github external
import * as React from 'react';
import * as BizCharts from 'bizcharts';
import { Chart, View, Shape, Tooltip, Coord, Axis, Legend, Guide, Facet } from 'bizcharts';

const g2: any = BizCharts.G2;

const global: G2.Global = g2.Global;
global.setTheme('dark');

// lodash function
const util: G2.Util = {
  each: ()=>{},
  map: ()=>{},
  isObject: ()=>{},
  isNumber: ()=>{},
  isString: ()=>{},
  isFunction: ()=>{},
  other: ''
};
// same as use BizCharts.Util
const util2: BizCharts.Util = util;