globalDefault.js 2.3 KB
Newer Older
L
lang 已提交
1 2 3 4 5
define(function () {
    var platform = navigator.platform || '';
    return {
        // 全图默认背景
        backgroundColor: 'rgba(0,0,0,0)',
L
lang 已提交
6

L
lang 已提交
7 8 9 10 11
        // 默认色板
        // color: ['#ff7f50','#87cefa','#da70d6','#32cd32','#6495ed',
        //         '#ff69b4','#ba55d3','#cd5c5c','#ffa500','#40e0d0',
        //         '#1e90ff','#ff6347','#7b68ee','#00fa9a','#ffd700',
        //         '#6699FF','#ff6666','#3cb371','#b8860b','#30e0e0'],
L
lang 已提交
12

L
lang 已提交
13
        // https://dribbble.com/shots/1065960-Infographic-Pie-chart-visualization
L
lang 已提交
14 15 16 17 18 19 20
        // color: ['#5793f3', '#d14a61', '#fd9c35', '#675bba', '#fec42c',
        //         '#dd4444', '#d4df5a', '#cd4870'],
        // color: ['#928ea8', '#63869e', '#76b8d1', '#eab9b9', '#ebe4af'],
        // color: ['#bcd3bb', '#e88f70', '#e9b7a6', '#e1e8c8', '#bda29a', '#7b7c68', '#fbeabf', '#edc1a5'],
        // 浅色
        // color: ['#bcd3bb', '#e88f70', '#edc1a5', '#9dc5c8', '#e1e8c8', '#7b7c68', '#e5b5b5', '#f0b489', '#928ea8', '#bda29a'],
        // 深色
L
tweak  
lang 已提交
21
        color: ['#c23531', '#314656', '#61a0a8', '#dd8668', '#91c7ae', '#6e7074', '#61a0a8', '#bda29a', '#44525d', '#c4ccd3'],
L
lang 已提交
22
        // color: ['#0088bb', '#a4d2aa', '#ea9695', '#eddf93', '#9bd6ec', '#f7c753', '#c78682', '#6bc3bc', '#e5362d', '#fbeabf'],
L
lang 已提交
23

L
lang 已提交
24 25
        // 默认需要 Grid 配置项
        grid: {},
L
lang 已提交
26

L
lang 已提交
27 28 29 30 31 32
        // 主题,主题
        textStyle: {
            decoration: 'none',
            // PENDING
            fontFamily: platform.match(/^Win/) ? 'Microsoft YaHei' : 'sans-serif',
            // fontFamily: 'Arial, Verdana, sans-serif',
L
lang 已提交
33
            fontSize: 14,
L
lang 已提交
34 35 36 37
            fontStyle: 'normal',
            fontWeight: 'normal'
        },
        // 主题,默认标志图形类型列表
L
lang 已提交
38 39 40 41
        // symbolList: [
        //     'circle', 'rectangle', 'triangle', 'diamond',
        //     'emptyCircle', 'emptyRectangle', 'emptyTriangle', 'emptyDiamond'
        // ],
L
lang 已提交
42 43 44 45
        animation: true,                // 过渡动画是否开启
        animationThreshold: 2000,       // 动画元素阀值,产生的图形原素超过2000不出动画
        animationDuration: 1000,        // 过渡动画参数:进入
        animationDurationUpdate: 300,   // 过渡动画参数:更新
L
lang 已提交
46 47
        animationEasing: 'cubicOut',    //BounceOut
        animationEasingUpdate: 'cubicOut'
L
lang 已提交
48
    };
L
lang 已提交
49
});