How to use the bizcharts.setTheme 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 eggjs / egg-ant-design-pro / app / web / src / components / Charts / g2.js View on Github external
// 全局 G2 设置
import { track, setTheme } from 'bizcharts';

track(false);

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

setTheme(config);
github cjbi / weshop / weshop-admin-ui / src / components / Charts / g2.js View on Github external
// 全局 G2 设置
import {setTheme, track} from 'bizcharts';

track(false);

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

setTheme(config);
github WhatAKitty / react-script-antd-pro / src / g2.js View on Github external
// 全局 G2 设置
import { track, setTheme } from 'bizcharts';

track(false);

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

setTheme(config);
github ant-design / ant-design-pro-layout / src / components / Charts / g2.js View on Github external
// 全局 G2 设置
import { track, setTheme } from 'bizcharts';

track(false);

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

setTheme(config);
github alibaba / BizCharts / demo / component / theme / black.js View on Github external
render() {
    setTheme("dark");    
    return (
      <div>
        <p>bizcharts do not support set chart's separate theme, just support setTheme global.
           so when this chart is opened, the all charts's theme is setted to dark.
        </p>
        
          
          
          
        </div>
github apache / skywalking-ui / src / components / Charts / g2.js View on Github external
import { track, setTheme } from 'bizcharts';

track(false);

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

setTheme(config);
github hyperledger / cello / src / static / dashboard / src / components / Charts / g2.js View on Github external
SPDX-License-Identifier: Apache-2.0
*/
import { track, setTheme } from 'bizcharts';

track(false);

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

setTheme(config);