echarts 각 설정 항목 상세 설명 요약
theme = {
//
// backgroundColor: 'rgba(0,0,0,0)',
//
color: ['#ff7f50','#87cefa','#da70d6','#32cd32','#6495ed',
'#ff69b4','#ba55d3','#cd5c5c','#ffa500','#40e0d0',
'#1e90ff','#ff6347','#7b68ee','#00fa9a','#ffd700',
'#6699FF','#ff6666','#3cb371','#b8860b','#30e0e0'],
//
title: {
x: 'left', // , , :
// 'center' ¦ 'left' ¦ 'right'
// ¦ {number}(x , px)
y: 'top', // , , :
// 'top' ¦ 'bottom' ¦ 'center'
// ¦ {number}(y , px)
//textAlign: null // , x
backgroundColor: 'rgba(0,0,0,0)',
borderColor: '#ccc', //
borderWidth: 0, // , px, 0( )
padding: 5, // , px, 5,
// , css
itemGap: 10, // , px, 10,
textStyle: {
fontSize: 18,
fontWeight: 'bolder',
color: '#333' //
},
subtextStyle: {
color: '#aaa' //
}
},
//
legend: {
orient: 'horizontal', // , , :
// 'horizontal' ¦ 'vertical'
x: 'center', // , , :
// 'center' ¦ 'left' ¦ 'right'
// ¦ {number}(x , px)
y: 'top', // , , :
// 'top' ¦ 'bottom' ¦ 'center'
// ¦ {number}(y , px)
backgroundColor: 'rgba(0,0,0,0)',
borderColor: '#ccc', //
borderWidth: 0, // , px, 0( )
padding: 5, // , px, 5,
// , css
itemGap: 10, // item , px, 10,
// ,
itemWidth: 20, //
itemHeight: 14, //
textStyle: {
color: '#333' //
}
},
//
dataRange: {
orient: 'vertical', // , , :
// 'horizontal' ¦ 'vertical'
x: 'left', // , , :
// 'center' ¦ 'left' ¦ 'right'
// ¦ {number}(x , px)
y: 'bottom', // , , :
// 'top' ¦ 'bottom' ¦ 'center'
// ¦ {number}(y , px)
backgroundColor: 'rgba(0,0,0,0)',
borderColor: '#ccc', //
borderWidth: 0, // , px, 0( )
padding: 5, // , px, 5,
// , css
itemGap: 10, // item , px, 10,
// ,
itemWidth: 20, // , * 10
itemHeight: 14, // , * 10
splitNumber: 5, // , 5, 0
color:['#1e90ff','#f0ffff'],//
//text:[' ',' '], // ,
textStyle: {
color: '#333' //
}
},
toolbox: {
orient: 'horizontal', // , , :
// 'horizontal' ¦ 'vertical'
x: 'right', // , , :
// 'center' ¦ 'left' ¦ 'right'
// ¦ {number}(x , px)
y: 'top', // , , :
// 'top' ¦ 'bottom' ¦ 'center'
// ¦ {number}(y , px)
color : ['#1e90ff','#22bb22','#4b0082','#d2691e'],
backgroundColor: 'rgba(0,0,0,0)', //
borderColor: '#ccc', //
borderWidth: 0, // , px, 0( )
padding: 5, // , px, 5,
// , css
itemGap: 10, // item , px, 10,
// ,
itemSize: 16, //
featureImageIcon : {}, // icon
featureTitle : {
mark : ' ',
markUndo : ' ',
markClear : ' ',
dataZoom : ' ',
dataZoomReset : ' ',
dataView : ' ',
lineChart : ' ',
barChart : ' ',
restore : ' ',
saveAsImage : ' '
}
},
//
tooltip: {
trigger: 'item', // , , , :'item' ¦ 'axis'
showDelay: 20, // , , ms
hideDelay: 100, // , ms
transitionDuration : 0.4, // , s
backgroundColor: 'rgba(0,0,0,0.7)', // , 0.7
borderColor: '#333', //
borderRadius: 4, // , px, 4
borderWidth: 0, // , px, 0( )
padding: 5, // , px, 5,
// , css
axisPointer : { // ,
type : 'line', // , :'line' | 'shadow'
lineStyle : { //
color: '#48b',
width: 2,
type: 'solid'
},
shadowStyle : { //
width: 'auto', //
color: 'rgba(150,150,150,0.3)' //
}
},
textStyle: {
color: '#fff'
}
},
//
dataZoom: {
orient: 'horizontal', // , , :
// 'horizontal' ¦ 'vertical'
// x: {number}, // , grid , :
// {number}(x , px)
// y: {number}, // , grid , :
// {number}(y , px)
// width: {number}, // , grid
// height: {number}, // , grid
backgroundColor: 'rgba(0,0,0,0)', //
dataBackgroundColor: '#eee', //
fillerColor: 'rgba(144,197,237,0.2)', //
handleColor: 'rgba(70,130,180,0.8)' //
},
//
grid: {
x: 80,
y: 60,
x2: 80,
y2: 60,
// width: {totalWidth} - x - x2,
// height: {totalHeight} - y - y2,
backgroundColor: 'rgba(0,0,0,0)',
borderWidth: 1,
borderColor: '#ccc'
},
//
categoryAxis: {
position: 'bottom', //
nameLocation: 'end', // , 'start' | 'end'
boundaryGap: true, //
axisLine: { //
show: true, // , show
lineStyle: { // lineStyle
color: '#48b',
width: 2,
type: 'solid'
}
},
axisTick: { //
show: true, // show ,
interval: 'auto',
// onGap: null,
inside : false, // grid
length :5, // length
lineStyle: { // lineStyle
color: '#333',
width: 1
}
},
axisLabel: { // , axis.axisLabel
show: true,
interval: 'auto',
rotate: 0,
margin: 8,
// formatter: null,
textStyle: { // , TEXTSTYLE
color: '#333'
}
},
splitLine: { //
show: true, // , show
// onGap: null,
lineStyle: { // lineStyle( lineStyle)
color: ['#ccc'],
width: 1,
type: 'solid'
}
},
splitArea: { //
show: false, // , show
// onGap: null,
areaStyle: { // areaStyle( areaStyle)
color: ['rgba(250,250,250,0.3)','rgba(200,200,200,0.3)']
}
}
},
//
valueAxis: {
position: 'left', //
nameLocation: 'end', // , 'start' | 'end'
nameTextStyle: {}, // ,
boundaryGap: [0, 0], //
splitNumber: 5, // , 5
axisLine: { //
show: true, // , show
lineStyle: { // lineStyle
color: '#48b',
width: 2,
type: 'solid'
}
},
axisTick: { //
show: false, // show ,
inside : false, // grid
length :5, // length
lineStyle: { // lineStyle
color: '#333',
width: 1
}
},
axisLabel: { // , axis.axisLabel
show: true,
rotate: 0,
margin: 8,
// formatter: null,
textStyle: { // , TEXTSTYLE
color: '#333'
}
},
splitLine: { //
show: true, // , show
lineStyle: { // lineStyle( lineStyle)
color: ['#ccc'],
width: 1,
type: 'solid'
}
},
splitArea: { //
show: false, // , show
areaStyle: { // areaStyle( areaStyle)
color: ['rgba(250,250,250,0.3)','rgba(200,200,200,0.3)']
}
}
},
polar : {
center : ['50%', '50%'], //
radius : '75%',
startAngle : 90,
splitNumber : 5,
name : {
show: true,
textStyle: { // , TEXTSTYLE
color: '#333'
}
},
axisLine: { //
show: true, // , show
lineStyle: { // lineStyle
color: '#ccc',
width: 1,
type: 'solid'
}
},
axisLabel: { // , axis.axisLabel
show: false,
textStyle: { // , TEXTSTYLE
color: '#333'
}
},
splitArea : {
show : true,
areaStyle : {
color: ['rgba(250,250,250,0.3)','rgba(200,200,200,0.3)']
}
},
splitLine : {
show : true,
lineStyle : {
width : 1,
color : '#ccc'
}
}
},
//
bar: {
barMinHeight: 0, // 0
// barWidth: null, //
barGap: '30%', // , 30%,
barCategoryGap : '20%', // , 20%,
itemStyle: {
normal: {
// color: ' ',
barBorderColor: '#fff', //
barBorderRadius: 0, // , px, 0
barBorderWidth: 1, // , px, 1
label: {
show: false
// position: , 'top', 'right',
// 'inside'|'left'|'right'|'top'|'bottom'
// textStyle: null // , TEXTSTYLE
}
},
emphasis: {
// color: ' ',
barBorderColor: 'rgba(0,0,0,0)', //
barBorderRadius: 0, // , px, 0
barBorderWidth: 1, // , px, 1
label: {
show: false
// position: , 'top', 'right',
// 'inside'|'left'|'right'|'top'|'bottom'
// textStyle: null // , TEXTSTYLE
}
}
}
},
//
line: {
itemStyle: {
normal: {
// color: ,
label: {
show: false
// position: , 'top', 'right',
// 'inside'|'left'|'right'|'top'|'bottom'
// textStyle: null // , TEXTSTYLE
},
lineStyle: {
width: 2,
type: 'solid',
shadowColor : 'rgba(0,0,0,0)', //
shadowBlur: 5,
shadowOffsetX: 3,
shadowOffsetY: 3
}
},
emphasis: {
// color: ,
label: {
show: false
// position: , 'top', 'right',
// 'inside'|'left'|'right'|'top'|'bottom'
// textStyle: null // , TEXTSTYLE
}
}
},
//smooth : false,
//symbol: null, //
symbolSize: 2, //
//symbolRotate : null, //
showAllSymbol: false // ( )
},
// K
k: {
// barWidth : null //
// barMaxWidth : null //
itemStyle: {
normal: {
color: '#fff', //
color0: '#00aa11', //
lineStyle: {
width: 1,
color: '#ff3200', //
color0: '#00aa11' //
}
},
emphasis: {
// color: ,
// color0:
}
}
},
//
scatter: {
//symbol: null, //
symbolSize: 4, // , ( ) , symbolSize * 2
//symbolRotate : null, //
large: false, //
largeThreshold: 2000,// ,large true >largeThreshold
itemStyle: {
normal: {
// color: ,
label: {
show: false
// position: , 'top', 'right',
// 'inside'|'left'|'right'|'top'|'bottom'
// textStyle: null // , TEXTSTYLE
}
},
emphasis: {
// color: ' '
label: {
show: false
// position: , 'top', 'right',
// 'inside'|'left'|'right'|'top'|'bottom'
// textStyle: null // , TEXTSTYLE
}
}
}
},
//
radar : {
itemStyle: {
normal: {
// color: ,
label: {
show: false
},
lineStyle: {
width: 2,
type: 'solid'
}
},
emphasis: {
// color: ,
label: {
show: false
}
}
},
//symbol: null, //
symbolSize: 2 // ,
//symbolRotate : null, //
},
//
pie: {
center : ['50%', '50%'], //
radius : [0, '75%'],
clockWise : false, //
startAngle: 90,
minAngle: 0, // 0
selectedOffset: 10, //
itemStyle: {
normal: {
// color: ,
borderColor: '#fff',
borderWidth: 1,
label: {
show: true,
position: 'outer'
// textStyle: null // , TEXTSTYLE
},
labelLine: {
show: true,
length: 20,
lineStyle: {
// color: ,
width: 1,
type: 'solid'
}
}
},
emphasis: {
// color: ,
borderColor: 'rgba(0,0,0,0)',
borderWidth: 1,
label: {
show: false
// position: 'outer'
// textStyle: null // , TEXTSTYLE
},
labelLine: {
show: false,
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: 'rgba(255,215,0,0.8)'
},
label: {
show: false,
textStyle: {
color: 'rgba(139,69,19,1)'
}
}
}
}
},
force : {
// map
minRadius : 10,
maxRadius : 20,
density : 1.0,
attractiveness : 1.0,
//
initSize : 300,
// ,
centripetal : 1,
//
coolDown : 0.99,
//
itemStyle: {
normal: {
// color: ,
label: {
show: false
// textStyle: null // , TEXTSTYLE
},
nodeStyle : {
brushType : 'both',
color : '#f08c2e',
strokeColor : '#5182ab'
},
linkStyle : {
strokeColor : '#5182ab'
}
},
emphasis: {
// color: ,
label: {
show: false
// textStyle: null // , TEXTSTYLE
},
nodeStyle : {},
linkStyle : {}
}
}
},
chord : {
radius : ['65%', '75%'],
center : ['50%', '50%'],
padding : 2,
sort : 'none', // can be 'none', 'ascending', 'descending'
sortSub : 'none', // can be 'none', 'ascending', 'descending'
startAngle : 90,
clockWise : false,
showScale : false,
showScaleText : false,
itemStyle : {
normal : {
label : {
show : true
// textStyle: null // , TEXTSTYLE
},
lineStyle : {
width : 0,
color : '#000'
},
chordStyle : {
lineStyle : {
width : 1,
color : '#666'
}
}
},
emphasis : {
lineStyle : {
width : 0,
color : '#000'
},
chordStyle : {
lineStyle : {
width : 2,
color : '#333'
}
}
}
}
},
island: {
r: 15,
calculateStep: 0.1 // 0.1 = 10%
},
markPoint : {
symbol: 'pin', //
symbolSize: 10, // , ( ) , symbolSize * 2
//symbolRotate : null, //
itemStyle: {
normal: {
// color: ,
// borderColor: , // , color
borderWidth: 2, // , px, 1
label: {
show: true,
position: 'inside' // 'left'|'right'|'top'|'bottom'
// textStyle: null // , TEXTSTYLE
}
},
emphasis: {
// color:
label: {
show: true
// position: 'inside' // 'left'|'right'|'top'|'bottom'
// textStyle: null // , TEXTSTYLE
}
}
}
},
markLine : {
// symbol , , string
symbol: ['circle', 'arrow'],
// symbol , ( ) , symbolSize * 2
symbolSize: [2, 4],
// symbol
//symbolRotate : null,
itemStyle: {
normal: {
// color: , // , ,symbol
// borderColor: color, // symbol , color
borderWidth: 2, // symbol , px, 2
label: {
show: false,
// 'start'|'end'|'left'|'right'|'top'|'bottom'
position: 'inside',
textStyle: { // , TEXTSTYLE
color: '#333'
}
},
lineStyle: {
// color: borderColor, // , , borderColor color
// width: borderWidth, // borderWidth
type: 'solid',
shadowColor : 'rgba(0,0,0,0)', //
shadowBlur: 5,
shadowOffsetX: 3,
shadowOffsetY: 3
}
},
emphasis: {
// color:
label: {
show: false
// position: 'inside' // 'left'|'right'|'top'|'bottom'
// textStyle: null // , TEXTSTYLE
},
lineStyle : {}
}
}
},
textStyle: {
decoration: 'none',
fontFamily: 'Arial, Verdana, sans-serif',
fontFamily2: ' ', // IE8- ,
fontSize: 12,
fontStyle: 'normal',
fontWeight: 'normal'
},
//
symbolList : [
'circle', 'rectangle', 'triangle', 'diamond',
'emptyCircle', 'emptyRectangle', 'emptyTriangle', 'emptyDiamond'
],
loadingText : 'Loading...',
// , ,
calculable: false, //
calculableColor: 'rgba(255,165,0,0.6)', //
calculableHolderColor: '#ccc', //
nameConnector: ' & ',
valueConnector: ' : ',
animation: true,
animationThreshold: 2500, // , 2500
addDataAnimation: true, //
animationDuration: 2000,
animationEasing: 'ExponentialOut' //BounceOut
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
static 간단한 설명static 방법은 일반적으로 정적 방법이라고 부른다. 정적 방법은 어떠한 대상에 의존하지 않고 접근할 수 있기 때문에 정적 방법에 있어this는 없다. 왜냐하면 그 어떠한 대상에도 의존하지 않기 때문이다. 대상이 ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.