var sakura = { // 全图默认背景 // backgroundColor: 'rgba(0,0,0,0)', // é»˜è®¤è‰²æ¿ color: ['#e52c3c','#f7b1ab','#fa506c','#f59288','#f8c4d8', '#e54f5c','#f06d5c','#e54f80','#f29c9f','#eeb5b7'], // 值域 dataRange: { color:['#e52c3c','#f7b1ab']//颜色 }, // Kçº¿å›¾é»˜è®¤å‚æ•° k: { // barWidth : null // 默认自适应 // barMaxWidth : null // 默认自适应 itemStyle: { normal: { color: '#e52c3c', // 阳线填充颜色 color0: '#f59288', // 阴线填充颜色 lineStyle: { width: 1, color: '#e52c3c', // 阳线边框颜色 color0: '#f59288' // 阴线边框颜色 } }, emphasis: { // color: å„异, // color0: å„异 } } }, // é¥¼å›¾é»˜è®¤å‚æ•° pie: { itemStyle: { normal: { // color: å„异, borderColor: '#fff', borderWidth: 1, label: { show: true, position: 'outer', textStyle: {color: 'black'} // textStyle: null // é»˜è®¤ä½¿ç”¨å…¨å±€æ–‡æœ¬æ ·å¼ï¼Œè¯¦è§TEXTSTYLE }, labelLine: { show: true, length: 20, lineStyle: { // color: å„异, width: 1, type: 'solid' } } } } }, map: { mapType: 'china', // å„çœçš„mapTypeæš‚æ—¶éƒ½ç”¨ä¸æ–‡ mapLocation: { x : 'center', y : 'center' // width // 自适应 // height // 自适应 }, showLegendSymbol : true, // æ˜¾ç¤ºå›¾ä¾‹é¢œè‰²æ ‡è¯†ï¼ˆç³»åˆ—æ ‡è¯†çš„å°åœ†ç‚¹ï¼‰ï¼Œå˜åœ¨legend时生效 itemStyle: { normal: { // color: å„异, borderColor: '#fff', borderWidth: 1, areaStyle: { color: '#ccc'//rgba(135,206,250,0.8) }, label: { show: false, textStyle: { color: 'rgba(139,69,19,1)' } } }, emphasis: { // ä¹Ÿæ˜¯é€‰ä¸æ ·å¼ // color: å„异, borderColor: 'rgba(0,0,0,0)', borderWidth: 1, areaStyle: { color: '#f3f39d' }, label: { show: false, textStyle: { color: 'rgba(139,69,19,1)' } } } } }, force : { // åˆ†ç±»é‡Œå¦‚æžœæœ‰æ ·å¼ä¼šè¦†ç›–èŠ‚ç‚¹é»˜è®¤æ ·å¼ itemStyle: { normal: { // color: å„异, label: { show: false // textStyle: null // é»˜è®¤ä½¿ç”¨å…¨å±€æ–‡æœ¬æ ·å¼ï¼Œè¯¦è§TEXTSTYLE }, nodeStyle : { brushType : 'both', strokeColor : '#e54f5c' }, linkStyle : { strokeColor : '#e54f5c' } }, emphasis: { // color: å„异, label: { show: false // textStyle: null // é»˜è®¤ä½¿ç”¨å…¨å±€æ–‡æœ¬æ ·å¼ï¼Œè¯¦è§TEXTSTYLE }, nodeStyle : {}, linkStyle : {} } } }, gauge : { axisLine: { // åæ ‡è½´çº¿ show: true, // 默认显示,属性showæŽ§åˆ¶æ˜¾ç¤ºä¸Žå¦ lineStyle: { // 属性lineStyleæŽ§åˆ¶çº¿æ¡æ ·å¼ color: [[0.2, '#e52c3c'],[0.8, '#f7b1ab'],[1, '#fa506c']], width: 8 } }, axisTick: { // åæ ‡è½´å°æ ‡è®° splitNumber: 10, // æ¯ä»½split细分多少段 length :12, // 属性length控制线长 lineStyle: { // 属性lineStyleæŽ§åˆ¶çº¿æ¡æ ·å¼ color: 'auto' } }, axisLabel: { // åæ ‡è½´æ–‡æœ¬æ ‡ç¾ï¼Œè¯¦è§axis.axisLabel textStyle: { // å…¶ä½™å±žæ€§é»˜è®¤ä½¿ç”¨å…¨å±€æ–‡æœ¬æ ·å¼ï¼Œè¯¦è§TEXTSTYLE color: 'auto' } }, splitLine: { // 分隔线 length : 18, // 属性length控制线长 lineStyle: { // 属性lineStyle(详è§lineStyleï¼‰æŽ§åˆ¶çº¿æ¡æ ·å¼ color: 'auto' } }, pointer : { length : '90%', color : 'auto' }, title : { textStyle: { // å…¶ä½™å±žæ€§é»˜è®¤ä½¿ç”¨å…¨å±€æ–‡æœ¬æ ·å¼ï¼Œè¯¦è§TEXTSTYLE color: '#333' } }, detail : { textStyle: { // å…¶ä½™å±žæ€§é»˜è®¤ä½¿ç”¨å…¨å±€æ–‡æœ¬æ ·å¼ï¼Œè¯¦è§TEXTSTYLE color: 'auto' } } } };