How to use the echarts/lib/echarts.registerTheme function in echarts

To help you get started, we’ve selected a few echarts 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 microsoft / nni / src / webui / src / components / trial-detail / TableList.tsx View on Github external
import { TableRecord } from '../../static/interface';
import OpenRow from '../public-child/OpenRow';
import Compare from '../Modal/Compare';
import Customize from '../Modal/CustomizedTrial';
import '../../static/style/search.scss';
require('../../static/style/tableStatus.css');
require('../../static/style/logPath.scss');
require('../../static/style/search.scss');
require('../../static/style/table.scss');
require('../../static/style/button.scss');
require('../../static/style/openRow.scss');
const echarts = require('echarts/lib/echarts');
require('echarts/lib/chart/line');
require('echarts/lib/component/tooltip');
require('echarts/lib/component/title');
echarts.registerTheme('my_theme', {
    color: '#3c8dbc'
});

interface TableListProps {
    pageSize: number;
    tableSource: Array;
    columnList: Array; // user select columnKeys
    changeColumn: (val: Array) => void;
    trialsUpdateBroadcast: number;
}

interface TableListState {
    intermediateOption: object;
    modalVisible: boolean;
    isObjFinal: boolean;
    isShowColumn: boolean;
github microsoft / nni / src / webui / src / components / overview / Accuracy.tsx View on Github external
import * as React from 'react';
import ReactEcharts from 'echarts-for-react';
const echarts = require('echarts/lib/echarts');
echarts.registerTheme('my_theme', {
    color: '#3c8dbc'
});
require('echarts/lib/chart/scatter');
require('echarts/lib/component/tooltip');
require('echarts/lib/component/title');

interface AccuracyProps {
    accuracyData: object;
    accNodata: string;
    height: number;
}

class Accuracy extends React.Component {

    constructor(props: AccuracyProps) {
        super(props);
github NSFI / ppfish-components / source / components / Echart / default-theme.js View on Github external
"label": {
      "normal": {
        "textStyle": {
          "color": "#eeeeee"
        }
      },
      "emphasis": {
        "textStyle": {
          "color": "#eeeeee"
        }
      }
    }
  }
};

echarts.registerTheme(themeName, theme);

export default themeName;
github NREL / api-umbrella / src / api-umbrella / admin-ui / app / initializers / echarts.js View on Github external
label: {
        show: false,
      },
      emphasis: {
        itemStyle: {
          borderColor: '#999',
          borderWidth: 1,
        },
        label: {
          show: false,
        },
      },
    };
  }

  echarts.registerTheme('api-umbrella-theme', {
    color: colorPalette,
    graph: {
      color: colorPalette,
    },
    areaStyle: {
      opacity: 0.2,
    },
    timeAxis: axisCommon(),
    logAxis: axisCommon(),
    valueAxis: axisCommon(),
    categoryAxis: axisCommon(),
    geo: mapCommon(),
    map: mapCommon(),
    scatter: {
      itemStyle: {
        borderColor: '#bbb',
github NSFI / ppfish-components / es / components / Echart / default-theme.js View on Github external
"markPoint": {
    "label": {
      "normal": {
        "textStyle": {
          "color": "#eeeeee"
        }
      },
      "emphasis": {
        "textStyle": {
          "color": "#eeeeee"
        }
      }
    }
  }
};
echarts.registerTheme(themeName, theme);
export default themeName;
github edp963 / davinci / webapp / app / app.tsx View on Github external
import 'echarts/lib/chart/radar'
import 'echarts/lib/chart/parallel'
import 'echarts/lib/chart/pictorialBar'
import 'echarts-wordcloud'
import 'echarts/lib/component/legend'
import 'echarts/lib/component/legendScroll'
import 'echarts/lib/component/tooltip'
import 'echarts/lib/component/toolbox'
import 'echarts/lib/component/dataZoom'
import 'echarts/lib/component/visualMap'
import 'echarts/lib/component/geo'
import 'echarts/lib/component/brush'
import 'assets/js/china.js'

import { DEFAULT_ECHARTS_THEME } from 'app/globalConstants'
echarts.registerTheme('default', DEFAULT_ECHARTS_THEME)

import configureStore from './store'
import createRoutes from './routes'

const initialState = {}
const store = configureStore(initialState, hashHistory)
const MOUNT_NODE = document.getElementById('app')
const history = syncHistoryWithStore(hashHistory, store, {
  selectLocationState: makeSelectLocationState()
})

const rootRoute = {
  path: '/',
  component: hot(module)(App),
  childRoutes: createRoutes(store),
  indexRoute: {
github microsoft / nni / src / webui / src / components / Accuracy.tsx View on Github external
import * as React from 'react';
import axios from 'axios';
import { MANAGER_IP } from '../const';
import ReactEcharts from 'echarts-for-react';
const echarts = require('echarts/lib/echarts');
echarts.registerTheme('my_theme', {
    color: '#3c8dbc'
});
require('echarts/lib/chart/scatter');
require('echarts/lib/component/tooltip');
require('echarts/lib/component/title');
require('../style/accuracy.css');

const accStyle = {
    width: '100%',
    height: 600,
    margin: '0 auto'
};

interface ChartState {
    option: object;
    accNodata: string;
github microsoft / nni / src / webui / src / components / TrialStatus.tsx View on Github external
import * as React from 'react';
import { browserHistory } from 'react-router';
import axios from 'axios';
import { Table, Button, Popconfirm, message, Modal } from 'antd';
import { MANAGER_IP, trialJobStatus } from '../const';
import JSONTree from 'react-json-tree';
import ReactEcharts from 'echarts-for-react';
const echarts = require('echarts/lib/echarts');
require('echarts/lib/chart/bar');
require('echarts/lib/chart/line');
require('echarts/lib/chart/scatter');
require('echarts/lib/component/tooltip');
require('echarts/lib/component/title');
require('../style/trialStatus.css');
require('../style/logPath.css');
echarts.registerTheme('my_theme', {
    color: '#3c8dbc'
});

interface ErrorPara {
    error?: string;
}

interface DescObj {
    parameters: ErrorPara;
    logPath?: string;
    isLink?: boolean;
}

interface TableObj {
    key: number;
    id: string;
github Teradata / covalent / src / platform / echarts / base / utils / echarts.ts View on Github external
export function registerTheme(themeName: string, theme: object): void {
  echarts.registerTheme(themeName, theme);
}