How to use the bizcharts.G2.Util 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 snowflakedb / SnowAlert / src / webui / frontend / src / components / Chart / index.ts View on Github external
import {G2} from 'bizcharts';
import Pie from './Pie';

G2.track(false);

const config = G2.Util.deepMix(
  {
    defaultColor: '#1089ff',
    shape: {
      interval: {
        fillOpacity: 1,
      },
    },
  },
  G2.Global,
);

G2.Global.setTheme(config);

export {Pie};