123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- (function(root, factory) {
- if (typeof define === 'function' && define.amd) {
-
- define(['exports', 'echarts'], factory);
- } else if (
- typeof exports === 'object' &&
- typeof exports.nodeName !== 'string'
- ) {
-
- factory(exports, require('echarts/lib/echarts'));
- } else {
-
- factory({}, root.echarts);
- }
- })(this, function(exports, echarts) {
- var log = function(msg) {
- if (typeof console !== 'undefined') {
- console && console.error && console.error(msg);
- }
- };
- if (!echarts) {
- log('ECharts is not Loaded');
- return;
- }
- var colorPalette = [
- '#ed9678',
- '#e7dac9',
- '#cb8e85',
- '#f3f39d',
- '#c8e49c',
- '#f16d7a',
- '#f3d999',
- '#d3758f',
- '#dcc392',
- '#2e4783',
- '#82b6e9',
- '#ff6347',
- '#a092f1',
- '#0a915d',
- '#eaf889',
- '#6699FF',
- '#ff6666',
- '#3cb371',
- '#d5b158',
- '#38b6b6'
- ];
- var theme = {
- color: colorPalette,
- title: {
- textStyle: {
- fontWeight: 'normal',
- color: '#cb8e85'
- }
- },
- dataRange: {
- color: ['#cb8e85', '#e7dac9'],
-
- textStyle: {
- color: '#333'
- }
- },
- bar: {
- barMinHeight: 0,
-
- barGap: '30%',
- barCategoryGap: '20%',
- label: {
- show: false
-
-
-
- },
- itemStyle: {
-
- barBorderColor: '#fff',
- barBorderRadius: 0,
- barBorderWidth: 1
- },
- emphasis: {
- itemStyle: {
-
- barBorderColor: 'rgba(0,0,0,0)',
- barBorderRadius: 0,
- barBorderWidth: 1,
- },
- label: {
- show: false
-
-
-
- }
- }
- },
- line: {
- label: {
- show: false
-
-
-
- },
- itemStyle: {
-
- },
- emphasis: {
-
- label: {
- show: false
-
-
-
- }
- },
- lineStyle: {
- width: 2,
- type: 'solid',
- shadowColor: 'rgba(0,0,0,0)',
- shadowBlur: 5,
- shadowOffsetX: 3,
- shadowOffsetY: 3
- },
-
-
- symbolSize: 2,
-
- showAllSymbol: false
- },
- candlestick: {
- itemStyle: {
- color: '#fe9778',
- color0: '#e7dac9'
- },
- lineStyle: {
- width: 1,
- color: '#f78766',
- color0: '#f1ccb8'
- },
- areaStyle: {
- color: '#e7dac9',
- color0: '#c8e49c'
- }
- },
-
- pie: {
- center: ['50%', '50%'],
- radius: [0, '75%'],
- clockWise: false,
- startAngle: 90,
- minAngle: 0,
- selectedOffset: 10,
- label: {
- show: true,
- position: 'outer',
- color: '#1b1b1b',
- lineStyle: { color: '#1b1b1b' }
-
- },
- itemStyle: {
-
- borderColor: '#fff',
- borderWidth: 1
- },
- labelLine: {
- show: true,
- length: 20,
- lineStyle: {
-
- width: 1,
- type: 'solid'
- }
- }
- },
- map: {
- itemStyle: {
- color: '#ddd',
- borderColor: '#fff',
- borderWidth: 1
- },
- areaStyle: {
- color: '#f3f39d'
- },
- label: {
- show: false,
- color: 'rgba(139,69,19,1)'
- },
- showLegendSymbol: true
- },
- graph: {
- itemStyle: {
- color: '#d87a80'
- },
- linkStyle: {
- strokeColor: '#a17e6e'
- },
- nodeStyle: {
- brushType: 'both',
- strokeColor: '#a17e6e'
- },
- label: {
- show: false
- }
- },
- gauge: {
- axisLine: {
- lineStyle: {
- color: [
- [0.2, '#ed9678'],
- [0.8, '#e7dac9'],
- [1, '#cb8e85']
- ],
- width: 8
- }
- }
- }
- };
- echarts.registerTheme('macarons2', theme);
- });
|