How to use the bizcharts.G2.Global 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 / demo / component / point / bubble.js View on Github external
},
  Population: {
    type: 'pow',
    alias: '人口总数'
  },
  GDP: {
    alias: '人均国内生产总值($)'
  },
  Country: {
    alias: '国家/地区'
  }
};

const colorMap = {
  'Asia': G2.Global.colors[0],
  'Americas': G2.Global.colors[1],
  'Europe': G2.Global.colors[2],
  'Oceania': G2.Global.colors[3]
};

export default class PointC extends Component {

  render() {
    return (
      
        
         {
            return (value / 1000).toFixed(0) + 'k';
          } // 格式化坐标轴的显示
        }} />
github alibaba / BizCharts / demo / component / point / bubble.js View on Github external
alias: '人均寿命(年)'
  },
  Population: {
    type: 'pow',
    alias: '人口总数'
  },
  GDP: {
    alias: '人均国内生产总值($)'
  },
  Country: {
    alias: '国家/地区'
  }
};

const colorMap = {
  'Asia': G2.Global.colors[0],
  'Americas': G2.Global.colors[1],
  'Europe': G2.Global.colors[2],
  'Oceania': G2.Global.colors[3]
};

export default class PointC extends Component {

  render() {
    return (
      
        
         {
            return (value / 1000).toFixed(0) + 'k';
          } // 格式化坐标轴的显示
        }} />
github m430 / antd-pro-toolkit / components / Charts / g2.ts View on Github external
// 全局 G2 设置
import { G2 } from 'bizcharts';

G2.track(false);

const config = {
  defaultColor: '#1089ff',
  shape: {
    interval: {
      fillOpacity: 1,
    },
  },
};

G2.Global.setTheme(config as any);
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};
github snowflakedb / SnowAlert / src / webui / frontend / src / components / Chart / index.ts View on Github external
G2.track(false);

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

G2.Global.setTheme(config);

export {Pie};
github z-9527 / react-admin-master / src / routes / Other / ChartDemo / index.js View on Github external
dimension: 'item',
  as: 'percent'
})
const cols3 = {
  percent: {
    formatter: val => {
      val = (val * 100) + '%'
      return val
    }
  }
}

const colorMap = {
  'Asia': G2.Global.colors[0],
  'Americas': G2.Global.colors[1],
  'Europe': G2.Global.colors[2],
  'Oceania': G2.Global.colors[3]
}
const cols4 = {
  LifeExpectancy: {
    alias: '人均寿命(年)'
  },
  Population: {
    type: 'pow',
    alias: '人口总数'
  },
  GDP: {
    alias: '人均国内生产总值($)'
  },
  Country: {
    alias: '国家/地区'
  }
github z-9527 / react-admin-master / src / routes / Other / ChartDemo / index.js View on Github external
type: 'percent',
  field: 'count',
  dimension: 'item',
  as: 'percent'
})
const cols3 = {
  percent: {
    formatter: val => {
      val = (val * 100) + '%'
      return val
    }
  }
}

const colorMap = {
  'Asia': G2.Global.colors[0],
  'Americas': G2.Global.colors[1],
  'Europe': G2.Global.colors[2],
  'Oceania': G2.Global.colors[3]
}
const cols4 = {
  LifeExpectancy: {
    alias: '人均寿命(年)'
  },
  Population: {
    type: 'pow',
    alias: '人口总数'
  },
  GDP: {
    alias: '人均国内生产总值($)'
  },
  Country: {