Skip to content
  • This project
    • Loading...
  • Sign in

ethan / ant-admin-pro

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • ant-admin-pro
  • src
  • g2.js
  • ethanlamzs's avatar
    init base · 13bb2ee6
    ethanlamzs committed 2018-01-12 14:18:44 +0800
    13bb2ee6
g2.js 432 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
// 全局 G2 设置
import G2 from 'g2';

G2.track(false);

const colors = [
  '#8543E0', '#F04864', '#FACC14', '#1890FF', '#13C2C2', '#2FC25B', '#fa8c16', '#a0d911',
];

const config = {
  ...G2.Theme,
  defaultColor: '#1089ff',
  colors: {
    default: colors,
    intervalStack: colors,
  },
  tooltip: {
    background: {
      radius: 4,
      fill: '#000',
      fillOpacity: 0.75,
    },
  },
};

G2.Global.setTheme(config);