A. java echarts toolbox瑙﹀彂浠涔堜簨浠
宸ュ叿鏍忋傚唴緗鏈夊煎嚭鍥劇墖錛屾暟鎹瑙嗗浘錛屽姩鎬佺被鍨嬪垏鎹錛屾暟鎹鍖哄煙緙╂斁錛岄噸緗浜斾釜宸ュ叿銆
浠ヤ笅鏄鍏蜂綋灞炴э細
toolbox.show
boolean
[ default: true ]
鏄鍚︽樉紺哄伐鍏鋒爮緇勪歡銆
toolbox.orient
string
[ default: 'horizontal' ]
宸ュ叿鏍 icon 鐨勫竷灞鏈濆悜銆
鍙閫夛細
'horizontal'
'vertical'
toolbox.itemSize
number
[ default: 15 ]
宸ュ叿鏍 icon 鐨勫ぇ灝忋
toolbox.itemGap
number
[ default: 10 ]
宸ュ叿鏍 icon 姣忛」涔嬮棿鐨勯棿闅斻傛í鍚戝竷灞鏃朵負姘村鉤闂撮殧錛岀旱鍚戝竷灞鏃朵負綰靛悜闂撮殧銆
toolbox.showTitle
boolean
[ default: true ]
鏄鍚﹀湪榧犳爣 hover 鐨勬椂鍊欐樉紺烘瘡涓宸ュ叿 icon 鐨勬爣棰樸
toolbox.feature
Object
鍚勫伐鍏烽厤緗欏廣
闄や簡鍚勪釜鍐呯疆鐨勫伐鍏鋒寜閽澶栵紝榪樺彲浠ヨ嚜瀹氫箟宸ュ叿鎸夐挳銆
娉ㄦ剰錛岃嚜瀹氫箟鐨勫伐鍏峰悕瀛楋紝鍙鑳戒互 my 寮澶達紝渚嬪備笅渚嬩腑鐨 myTool1錛宮yTool2錛
{
toolbox: {
feature: {
myTool1: {
show: true,
title: '鑷瀹氫箟鎵╁睍鏂規硶1',
icon: 'path://M432.45,595.444c0,2.177-4.661,6.82-11.305,6.82c-6.475,0-11.306-4.567-11.306-6.82s4.852-6.812,11.306-6.812C427.841,588.632,432.452,593.191,432.45,595.444L432.45,595.444z M421.155,589.876c-3.009,0-5.448,2.495-5.448,5.572s2.439,5.572,5.448,5.572c3.01,0,5.449-2.495,5.449-5.572C426.604,592.371,424.165,589.876,421.155,589.876L421.155,589.876z M421.146,591.891c-1.916,0-3.47,1.589-3.47,3.549c0,1.959,1.554,3.548,3.47,3.548s3.469-1.589,3.469-3.548C424.614,593.479,423.062,591.891,421.146,591.891L421.146,591.891zM421.146,591.891',
onclick: function (){
alert('myToolHandler1')
}
},
myTool2: {
show: true,
title: '鑷瀹氫箟鎵╁睍鏂規硶',
icon: 'image://http://echarts..com/images/favicon.png',
onclick: function (){
alert('myToolHandler2')
}
}
}
}
}
toolbox.iconStyle
Object
鍏鐢ㄧ殑 icon 鏍峰紡璁劇疆銆
toolbox.zlevel
number
[ default: 0 ]
鎵鏈夊浘褰㈢殑 zlevel 鍊箋
zlevel鐢ㄤ簬 Canvas 鍒嗗眰錛屼笉鍚寊level鍊肩殑鍥懼艦浼氭斁緗鍦ㄤ笉鍚岀殑 Canvas 涓錛孋anvas 鍒嗗眰鏄涓縐嶅父瑙佺殑浼樺寲鎵嬫點傛垜浠鍙浠ユ妸涓浜涘浘褰㈠彉鍖栭戠箒錛堜緥濡傛湁鍔ㄧ敾錛夌殑緇勪歡璁劇疆鎴愪竴涓鍗曠嫭鐨剒level銆傞渶瑕佹敞鎰忕殑鏄榪囧氱殑 Canvas 浼氬紩璧峰唴瀛樺紑閿鐨勫炲ぇ錛屽湪鎵嬫満絝涓婇渶瑕佽皚鎱庝嬌鐢ㄤ互闃插穿婧冦
zlevel 澶х殑 Canvas 浼氭斁鍦 zlevel 灝忕殑 Canvas 鐨勪笂闈銆
toolbox.z
number
[ default: 2 ]
緇勪歡鐨勬墍鏈夊浘褰㈢殑z鍊箋傛帶鍒跺浘褰㈢殑鍓嶅悗欏哄簭銆倆鍊煎皬鐨勫浘褰浼氳珃鍊煎ぇ鐨勫浘褰㈣嗙洊銆
z鐩告瘮zlevel浼樺厛綰ф洿浣庯紝鑰屼笖涓嶄細鍒涘緩鏂扮殑 Canvas銆
toolbox.left
string, number
[ default: 'auto' ]
宸ュ叿鏍忕粍浠剁誨瑰櫒宸︿晶鐨勮窛紱匯
left 鐨勫煎彲浠ユ槸鍍 20 榪欐牱鐨勫叿浣撳儚緔犲礆紝鍙浠ユ槸鍍 '20%' 榪欐牱鐩稿逛簬瀹瑰櫒楂樺界殑鐧懼垎姣旓紝涔熷彲浠ユ槸 'left', 'center', 'right'銆
濡傛灉 left 鐨勫間負'left', 'center', 'right'錛岀粍浠朵細鏍規嵁鐩稿簲鐨勪綅緗鑷鍔ㄥ歸綈銆
toolbox.top
string, number
[ default: 'auto' ]
宸ュ叿鏍忕粍浠剁誨瑰櫒涓婁晶鐨勮窛紱匯
top 鐨勫煎彲浠ユ槸鍍 20 榪欐牱鐨勫叿浣撳儚緔犲礆紝鍙浠ユ槸鍍 '20%' 榪欐牱鐩稿逛簬瀹瑰櫒楂樺界殑鐧懼垎姣旓紝涔熷彲浠ユ槸 'top', 'middle', 'bottom'銆
濡傛灉 top 鐨勫間負'top', 'middle', 'bottom'錛岀粍浠朵細鏍規嵁鐩稿簲鐨勪綅緗鑷鍔ㄥ歸綈銆
toolbox.right
string, number
[ default: 'auto' ]
宸ュ叿鏍忕粍浠剁誨瑰櫒鍙充晶鐨勮窛紱匯
right 鐨勫煎彲浠ユ槸鍍 20 榪欐牱鐨勫叿浣撳儚緔犲礆紝鍙浠ユ槸鍍 '20%' 榪欐牱鐩稿逛簬瀹瑰櫒楂樺界殑鐧懼垎姣斻
榛樿よ嚜閫傚簲銆
toolbox.bottom
string, number
[ default: 'auto' ]
宸ュ叿鏍忕粍浠剁誨瑰櫒涓嬩晶鐨勮窛紱匯
bottom 鐨勫煎彲浠ユ槸鍍 20 榪欐牱鐨勫叿浣撳儚緔犲礆紝鍙浠ユ槸鍍 '20%' 榪欐牱鐩稿逛簬瀹瑰櫒楂樺界殑鐧懼垎姣斻
榛樿よ嚜閫傚簲銆
toolbox.width
string, number
[ default: 'auto' ]
宸ュ叿鏍忕粍浠剁殑瀹藉害銆傞粯璁よ嚜閫傚簲銆
toolbox.height
string, number
[ default: 'auto' ]
宸ュ叿鏍忕粍浠剁殑楂樺害銆傞粯璁よ嚜閫傚簲銆
B. ECHARTS閲岀殑浠g爜鑳藉湪matlab閲岃繍琛屼箞
ECharts 鏄涓涓鍩轟簬 JavaScript 鐨勬暟鎹鍙瑙嗗寲搴擄紝鑰 MATLAB 鏄涓縐嶇敤浜庢暟鍊艱$畻鍜岀紪紼嬬殑楂樼駭璇璦鍜屼氦浜掑紡鐜澧冦傚洜姝わ紝ECharts 閲岀殑浠g爜涓嶈兘鍦 MATLAB 涓鐩存帴榪愯屻
ECharts 鍜 MATLAB 閮芥湁鑷宸辯殑璇娉曞拰瑙勫垯錛屽畠浠涔嬮棿鐨勮璦宸寮傚緢澶с傚傛灉鎮ㄦ兂鍦 MATLAB 涓瀹炵幇涓 ECharts 綾諱技鐨勬暟鎹鍙瑙嗗寲鏁堟灉錛屽彲浠ヤ嬌鐢 MATLAB 鑷甯︾殑鍥捐〃鍔熻兘鎴栬呭叾浠栨暟鎹鍙瑙嗗寲宸ュ叿綆憋紝渚嬪 MATLAB Visualization Toolbox銆
濡傛灉鎮ㄩ渶瑕佸皢 ECharts 涓鐨勬暟鎹鍙瑙嗗寲緇撴灉瀵煎叆鍒 MATLAB 涓榪涜屽勭悊鎴栧垎鏋愶紝鍙浠ヨ冭檻浣跨敤 MATLAB 鐨勬暟鎹瀵煎叆鍔熻兘錛屼緥濡備粠 CSV 鏂囦歡鎴栧叾浠栧父瑙佹暟鎹鏍煎紡瀵煎叆鏁版嵁銆