echarts.ts 151 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285
  1. import { ReplaceMode } from '@meta2d/chart-diagram';
  2. import { cdn } from './api';
  3. //注册所有主题
  4. export function registerTheme() {
  5. fetch((cdn ? cdn + '/v/' : '') + 'theme/dark.json')
  6. .then((r) => r.json())
  7. .then((theme) => {
  8. echarts.registerTheme('le-dark', theme);
  9. });
  10. }
  11. export function changeTheme(theme: string) {
  12. charts.forEach((item) => {
  13. item.list.forEach((chart) => {
  14. if (chart.data.name === 'echarts') {
  15. chart.data.echarts && (chart.data.echarts.theme = theme);
  16. }
  17. });
  18. });
  19. }
  20. export const charts = [
  21. {
  22. name: '折线图',
  23. show: true,
  24. list: [
  25. {
  26. name: '基础折线图',
  27. icon: 'l-line-chart',
  28. data: {
  29. name: 'echarts',
  30. width: 366,
  31. height: 206,
  32. externElement: true,
  33. disableAnchor: true,
  34. echarts: {
  35. option: {
  36. grid: {
  37. bottom: 16,
  38. left: 16,
  39. right: 16,
  40. top: 24,
  41. containLabel: true,
  42. },
  43. fontSize: 10,
  44. xAxis: {
  45. type: 'category',
  46. data: ['1月', '2月', '3月', '4月', '5月', '6月'],
  47. },
  48. yAxis: {
  49. type: 'value',
  50. },
  51. series: [
  52. {
  53. type: 'line',
  54. data: [40, 20, 90, 60, 70, 80],
  55. },
  56. ],
  57. },
  58. max: 30,
  59. },
  60. realTimes: [
  61. {
  62. key: 'echarts.option.series.0.data.0',
  63. label: '1月',
  64. type: 'float',
  65. enableMock: true,
  66. mock: '10-40',
  67. },
  68. {
  69. key: 'echarts.option.series.0.data.1',
  70. label: '2月',
  71. type: 'float',
  72. enableMock: true,
  73. mock: '0-50',
  74. },
  75. {
  76. key: 'echarts.option.series.0.data.2',
  77. label: '3月',
  78. type: 'float',
  79. enableMock: true,
  80. mock: '0-50',
  81. },
  82. {
  83. key: 'echarts.option.series.0.data.3',
  84. label: '4月',
  85. type: 'float',
  86. enableMock: true,
  87. mock: '20-60',
  88. },
  89. {
  90. key: 'echarts.option.series.0.data.4',
  91. label: '5月',
  92. type: 'float',
  93. enableMock: true,
  94. mock: '0-80',
  95. },
  96. {
  97. key: 'echarts.option.series.0.data.5',
  98. label: '6月',
  99. type: 'float',
  100. enableMock: true,
  101. mock: '60-100',
  102. },
  103. ],
  104. props: {
  105. custom: [
  106. {
  107. key: 'echarts',
  108. label: 'echarts配置',
  109. type: 'code',
  110. },
  111. ],
  112. },
  113. },
  114. },
  115. {
  116. name: '多折线图',
  117. icon: 'l-duozhexiantu',
  118. data: {
  119. name: 'echarts',
  120. width: 366,
  121. height: 206,
  122. externElement: true,
  123. disableAnchor: true,
  124. echarts: {
  125. option: {
  126. grid: {
  127. bottom: 16,
  128. left: 16,
  129. right: 16,
  130. top: 24,
  131. containLabel: true,
  132. },
  133. fontSize: 10,
  134. xAxis: {
  135. type: 'category',
  136. data: ['1月', '2月', '3月', '4月', '5月', '6月'],
  137. },
  138. yAxis: {
  139. type: 'value',
  140. },
  141. series: [
  142. {
  143. type: 'line',
  144. data: [40, 35, 80, 40, 45, 25],
  145. },
  146. {
  147. type: 'line',
  148. data: [25, 40, 20, 30, 25, 40],
  149. },
  150. ],
  151. },
  152. max: 30,
  153. },
  154. realTimes: [
  155. {
  156. key: 'echarts.option.series.0.data.0',
  157. label: '折线一的1月',
  158. type: 'float',
  159. enableMock: true,
  160. mock: '20-100',
  161. },
  162. {
  163. key: 'echarts.option.series.1.data.0',
  164. label: '折线二的1月',
  165. type: 'float',
  166. enableMock: true,
  167. mock: '10-70',
  168. },
  169. {
  170. key: 'echarts.option.series.0.data.1',
  171. label: '折线一的2月',
  172. type: 'float',
  173. enableMock: true,
  174. mock: '0-50',
  175. },
  176. {
  177. key: 'echarts.option.series.1.data.1',
  178. label: '折线二的2月',
  179. type: 'float',
  180. enableMock: true,
  181. mock: '0-70',
  182. },
  183. {
  184. key: 'echarts.option.series.0.data.2',
  185. label: '折线一的3月',
  186. type: 'float',
  187. enableMock: true,
  188. mock: '8-80',
  189. },
  190. {
  191. key: 'echarts.option.series.1.data.2',
  192. label: '折线二的3月',
  193. type: 'float',
  194. enableMock: true,
  195. mock: '1-70',
  196. },
  197. {
  198. key: 'echarts.option.series.0.data.3',
  199. label: '折线一的4月',
  200. type: 'float',
  201. enableMock: true,
  202. mock: '20-100',
  203. },
  204. {
  205. key: 'echarts.option.series.1.data.3',
  206. label: '折线二的4月',
  207. type: 'float',
  208. enableMock: true,
  209. mock: '10-70',
  210. },
  211. {
  212. key: 'echarts.option.series.0.data.4',
  213. label: '折线一的5月',
  214. type: 'float',
  215. enableMock: true,
  216. mock: '20-100',
  217. },
  218. {
  219. key: 'echarts.option.series.1.data.4',
  220. label: '折线二的5月',
  221. type: 'float',
  222. enableMock: true,
  223. mock: '10-70',
  224. },
  225. {
  226. key: 'echarts.option.series.0.data.5',
  227. label: '折线一的6月',
  228. type: 'float',
  229. enableMock: true,
  230. mock: '0-100',
  231. },
  232. {
  233. key: 'echarts.option.series.1.data.5',
  234. label: '折线二的6月',
  235. type: 'float',
  236. enableMock: true,
  237. mock: '30-80',
  238. },
  239. ],
  240. props: {
  241. custom: [
  242. {
  243. key: 'echarts',
  244. label: 'echarts配置',
  245. type: 'code',
  246. },
  247. ],
  248. },
  249. },
  250. },
  251. {
  252. name: '折线趋势图',
  253. icon: 'l-zhexiantuqushitu',
  254. data: {
  255. name: 'echarts',
  256. width: 366,
  257. height: 206,
  258. externElement: true,
  259. disableAnchor: true,
  260. echarts: {
  261. option: {
  262. grid: {
  263. bottom: 16,
  264. left: 16,
  265. right: 16,
  266. top: 24,
  267. containLabel: true,
  268. },
  269. fontSize: 10,
  270. xAxis: {
  271. type: 'category',
  272. data: [],
  273. },
  274. yAxis: {
  275. type: 'value',
  276. },
  277. series: [
  278. {
  279. type: 'line',
  280. data: [],
  281. },
  282. ],
  283. },
  284. replaceMode: 0,
  285. max: 30,
  286. },
  287. realTimes: [
  288. {
  289. key: 'echarts.option.series.0.data',
  290. label: '数据点',
  291. type: 'float',
  292. enableMock: true,
  293. mock: '0-100',
  294. },
  295. ],
  296. props: {
  297. custom: [
  298. {
  299. key: 'echarts',
  300. label: 'echarts配置',
  301. type: 'code',
  302. },
  303. ],
  304. },
  305. },
  306. },
  307. {
  308. name: '基础曲线图',
  309. icon: 'l-quxian',
  310. data: {
  311. name: 'echarts',
  312. width: 366,
  313. height: 206,
  314. externElement: true,
  315. disableAnchor: true,
  316. echarts: {
  317. option: {
  318. grid: {
  319. bottom: 16,
  320. left: 16,
  321. right: 16,
  322. top: 24,
  323. containLabel: true,
  324. },
  325. fontSize: 10,
  326. xAxis: {
  327. type: 'category',
  328. data: ['1月', '2月', '3月', '4月', '5月', '6月'],
  329. },
  330. yAxis: {
  331. type: 'value',
  332. },
  333. series: [
  334. {
  335. type: 'line',
  336. smooth: true,
  337. data: [40, 20, 90, 60, 70, 80],
  338. },
  339. ],
  340. },
  341. max: 30,
  342. },
  343. realTimes: [
  344. {
  345. key: 'echarts.option.series.0.data.0',
  346. label: '1月',
  347. type: 'float',
  348. enableMock: true,
  349. mock: '10-40',
  350. },
  351. {
  352. key: 'echarts.option.series.0.data.1',
  353. label: '2月',
  354. type: 'float',
  355. enableMock: true,
  356. mock: '0-50',
  357. },
  358. {
  359. key: 'echarts.option.series.0.data.2',
  360. label: '3月',
  361. type: 'float',
  362. enableMock: true,
  363. mock: '0-50',
  364. },
  365. {
  366. key: 'echarts.option.series.0.data.3',
  367. label: '4月',
  368. type: 'float',
  369. enableMock: true,
  370. mock: '20-60',
  371. },
  372. {
  373. key: 'echarts.option.series.0.data.4',
  374. label: '5月',
  375. type: 'float',
  376. enableMock: true,
  377. mock: '0-80',
  378. },
  379. {
  380. key: 'echarts.option.series.0.data.5',
  381. label: '6月',
  382. type: 'float',
  383. enableMock: true,
  384. mock: '60-100',
  385. },
  386. ],
  387. props: {
  388. custom: [
  389. {
  390. key: 'echarts',
  391. label: 'echarts配置',
  392. type: 'code',
  393. },
  394. ],
  395. },
  396. },
  397. },
  398. {
  399. name: '多曲线图',
  400. icon: 'l-duoquxiantu',
  401. data: {
  402. name: 'echarts',
  403. width: 366,
  404. height: 206,
  405. externElement: true,
  406. disableAnchor: true,
  407. echarts: {
  408. option: {
  409. grid: {
  410. bottom: 16,
  411. left: 16,
  412. right: 16,
  413. top: 24,
  414. containLabel: true,
  415. },
  416. fontSize: 10,
  417. xAxis: {
  418. type: 'category',
  419. data: ['1月', '2月', '3月', '4月', '5月', '6月'],
  420. },
  421. yAxis: {
  422. type: 'value',
  423. },
  424. series: [
  425. {
  426. type: 'line',
  427. smooth: true,
  428. data: [40, 35, 80, 40, 45, 25],
  429. },
  430. {
  431. type: 'line',
  432. smooth: true,
  433. data: [25, 40, 20, 30, 25, 40],
  434. },
  435. ],
  436. },
  437. max: 30,
  438. },
  439. realTimes: [
  440. {
  441. key: 'echarts.option.series.0.data.0',
  442. label: '折线一的1月',
  443. type: 'float',
  444. enableMock: true,
  445. mock: '20-100',
  446. },
  447. {
  448. key: 'echarts.option.series.1.data.0',
  449. label: '折线二的1月',
  450. type: 'float',
  451. enableMock: true,
  452. mock: '10-70',
  453. },
  454. {
  455. key: 'echarts.option.series.0.data.1',
  456. label: '折线一的2月',
  457. type: 'float',
  458. enableMock: true,
  459. mock: '0-50',
  460. },
  461. {
  462. key: 'echarts.option.series.1.data.1',
  463. label: '折线二的2月',
  464. type: 'float',
  465. enableMock: true,
  466. mock: '0-70',
  467. },
  468. {
  469. key: 'echarts.option.series.0.data.2',
  470. label: '折线一的3月',
  471. type: 'float',
  472. enableMock: true,
  473. mock: '8-80',
  474. },
  475. {
  476. key: 'echarts.option.series.1.data.2',
  477. label: '折线二的3月',
  478. type: 'float',
  479. enableMock: true,
  480. mock: '1-70',
  481. },
  482. {
  483. key: 'echarts.option.series.0.data.3',
  484. label: '折线一的4月',
  485. type: 'float',
  486. enableMock: true,
  487. mock: '20-100',
  488. },
  489. {
  490. key: 'echarts.option.series.1.data.3',
  491. label: '折线二的4月',
  492. type: 'float',
  493. enableMock: true,
  494. mock: '10-70',
  495. },
  496. {
  497. key: 'echarts.option.series.0.data.4',
  498. label: '折线一的5月',
  499. type: 'float',
  500. enableMock: true,
  501. mock: '20-100',
  502. },
  503. {
  504. key: 'echarts.option.series.1.data.4',
  505. label: '折线二的5月',
  506. type: 'float',
  507. enableMock: true,
  508. mock: '10-70',
  509. },
  510. {
  511. key: 'echarts.option.series.0.data.5',
  512. label: '折线一的6月',
  513. type: 'float',
  514. enableMock: true,
  515. mock: '0-100',
  516. },
  517. {
  518. key: 'echarts.option.series.1.data.5',
  519. label: '折线二的6月',
  520. type: 'float',
  521. enableMock: true,
  522. mock: '30-80',
  523. },
  524. ],
  525. props: {
  526. custom: [
  527. {
  528. key: 'echarts',
  529. label: 'echarts配置',
  530. type: 'code',
  531. },
  532. ],
  533. },
  534. },
  535. },
  536. {
  537. name: '曲线趋势图',
  538. icon: 'l-quxiantuqushitu',
  539. data: {
  540. name: 'echarts',
  541. width: 366,
  542. height: 206,
  543. externElement: true,
  544. disableAnchor: true,
  545. echarts: {
  546. option: {
  547. grid: {
  548. bottom: 16,
  549. left: 16,
  550. right: 16,
  551. top: 24,
  552. containLabel: true,
  553. },
  554. fontSize: 10,
  555. xAxis: {
  556. type: 'category',
  557. data: [],
  558. },
  559. yAxis: {
  560. type: 'value',
  561. },
  562. series: [
  563. {
  564. type: 'line',
  565. smooth: true,
  566. data: [],
  567. },
  568. ],
  569. },
  570. replaceMode: 0,
  571. max: 30,
  572. },
  573. realTimes: [
  574. {
  575. key: 'echarts.option.series.0.data',
  576. label: '数据点',
  577. type: 'float',
  578. enableMock: true,
  579. mock: '0-100',
  580. },
  581. ],
  582. props: {
  583. custom: [
  584. {
  585. key: 'echarts',
  586. label: 'echarts配置',
  587. type: 'code',
  588. },
  589. ],
  590. },
  591. },
  592. },
  593. {
  594. name: '阶梯折线图',
  595. icon: 'l-jietizhexian',
  596. data: {
  597. name: 'echarts',
  598. width: 366,
  599. height: 206,
  600. externElement: true,
  601. disableAnchor: true,
  602. echarts: {
  603. option: {
  604. grid: {
  605. bottom: 16,
  606. left: 16,
  607. right: 16,
  608. top: 24,
  609. containLabel: true,
  610. },
  611. fontSize: 10,
  612. xAxis: {
  613. type: 'category',
  614. data: ['1月', '2月', '3月', '4月', '5月', '6月'],
  615. },
  616. yAxis: {
  617. type: 'value',
  618. },
  619. series: [
  620. {
  621. type: 'line',
  622. step: 'start',
  623. data: [40, 20, 90, 60, 70, 80],
  624. },
  625. ],
  626. },
  627. max: 30,
  628. },
  629. realTimes: [
  630. {
  631. key: 'echarts.option.series.0.data.0',
  632. label: '1月',
  633. type: 'float',
  634. enableMock: true,
  635. mock: '10-40',
  636. },
  637. {
  638. key: 'echarts.option.series.0.data.1',
  639. label: '2月',
  640. type: 'float',
  641. enableMock: true,
  642. mock: '0-50',
  643. },
  644. {
  645. key: 'echarts.option.series.0.data.2',
  646. label: '3月',
  647. type: 'float',
  648. enableMock: true,
  649. mock: '0-50',
  650. },
  651. {
  652. key: 'echarts.option.series.0.data.3',
  653. label: '4月',
  654. type: 'float',
  655. enableMock: true,
  656. mock: '20-60',
  657. },
  658. {
  659. key: 'echarts.option.series.0.data.4',
  660. label: '5月',
  661. type: 'float',
  662. enableMock: true,
  663. mock: '0-80',
  664. },
  665. {
  666. key: 'echarts.option.series.0.data.5',
  667. label: '6月',
  668. type: 'float',
  669. enableMock: true,
  670. mock: '20-60',
  671. },
  672. ],
  673. props: {
  674. custom: [
  675. {
  676. key: 'echarts',
  677. label: 'echarts配置',
  678. type: 'code',
  679. },
  680. ],
  681. },
  682. },
  683. },
  684. ],
  685. },
  686. {
  687. name: '面积图',
  688. show: true,
  689. list: [
  690. {
  691. name: '基础面积图',
  692. icon: 'l-mianjitu',
  693. data: {
  694. name: 'echarts',
  695. width: 366,
  696. height: 206,
  697. externElement: true,
  698. disableAnchor: true,
  699. echarts: {
  700. option: {
  701. grid: {
  702. bottom: 16,
  703. left: 16,
  704. right: 16,
  705. top: 24,
  706. containLabel: true,
  707. },
  708. fontSize: 10,
  709. xAxis: {
  710. type: 'category',
  711. data: ['1月', '2月', '3月', '4月', '5月', '6月'],
  712. },
  713. yAxis: {
  714. type: 'value',
  715. },
  716. series: [
  717. {
  718. type: 'line',
  719. data: [40, 20, 90, 60, 70, 80],
  720. areaStyle: { opacity: 0.3 },
  721. smooth: true,
  722. },
  723. ],
  724. },
  725. max: 30,
  726. },
  727. realTimes: [
  728. {
  729. key: 'echarts.option.series.0.data.0',
  730. label: '1月',
  731. type: 'float',
  732. enableMock: true,
  733. mock: '10-40',
  734. },
  735. {
  736. key: 'echarts.option.series.0.data.1',
  737. label: '2月',
  738. type: 'float',
  739. enableMock: true,
  740. mock: '0-50',
  741. },
  742. {
  743. key: 'echarts.option.series.0.data.2',
  744. label: '3月',
  745. type: 'float',
  746. enableMock: true,
  747. mock: '0-50',
  748. },
  749. {
  750. key: 'echarts.option.series.0.data.3',
  751. label: '4月',
  752. type: 'float',
  753. enableMock: true,
  754. mock: '20-60',
  755. },
  756. {
  757. key: 'echarts.option.series.0.data.4',
  758. label: '5月',
  759. type: 'float',
  760. enableMock: true,
  761. mock: '0-80',
  762. },
  763. {
  764. key: 'echarts.option.series.0.data.5',
  765. label: '6月',
  766. type: 'float',
  767. enableMock: true,
  768. mock: '60-100',
  769. },
  770. ],
  771. props: {
  772. custom: [
  773. {
  774. key: 'echarts',
  775. label: 'echarts配置',
  776. type: 'code',
  777. },
  778. ],
  779. },
  780. },
  781. },
  782. {
  783. name: '堆叠面积图',
  784. icon: 'l-duidiemianjitu',
  785. data: {
  786. name: 'echarts',
  787. width: 366,
  788. height: 206,
  789. externElement: true,
  790. disableAnchor: true,
  791. echarts: {
  792. option: {
  793. grid: {
  794. bottom: 16,
  795. left: 16,
  796. right: 16,
  797. top: 24,
  798. containLabel: true,
  799. },
  800. fontSize: 10,
  801. xAxis: {
  802. type: 'category',
  803. data: ['1月', '2月', '3月', '4月', '5月', '6月'],
  804. },
  805. yAxis: {
  806. type: 'value',
  807. },
  808. series: [
  809. {
  810. type: 'line',
  811. areaStyle: { opacity: 0.3 },
  812. smooth: true,
  813. data: [40, 35, 80, 40, 45, 25],
  814. },
  815. {
  816. type: 'line',
  817. areaStyle: { opacity: 0.3 },
  818. smooth: true,
  819. data: [25, 40, 20, 30, 25, 40],
  820. },
  821. ],
  822. },
  823. max: 30,
  824. },
  825. realTimes: [
  826. {
  827. key: 'echarts.option.series.0.data.0',
  828. label: '折线一的1月',
  829. type: 'float',
  830. enableMock: true,
  831. mock: '20-100',
  832. },
  833. {
  834. key: 'echarts.option.series.1.data.0',
  835. label: '折线二的1月',
  836. type: 'float',
  837. enableMock: true,
  838. mock: '10-70',
  839. },
  840. {
  841. key: 'echarts.option.series.0.data.1',
  842. label: '折线一的2月',
  843. type: 'float',
  844. enableMock: true,
  845. mock: '0-50',
  846. },
  847. {
  848. key: 'echarts.option.series.1.data.1',
  849. label: '折线二的2月',
  850. type: 'float',
  851. enableMock: true,
  852. mock: '0-70',
  853. },
  854. {
  855. key: 'echarts.option.series.0.data.2',
  856. label: '折线一的3月',
  857. type: 'float',
  858. enableMock: true,
  859. mock: '8-80',
  860. },
  861. {
  862. key: 'echarts.option.series.1.data.2',
  863. label: '折线二的3月',
  864. type: 'float',
  865. enableMock: true,
  866. mock: '1-70',
  867. },
  868. {
  869. key: 'echarts.option.series.0.data.3',
  870. label: '折线一的4月',
  871. type: 'float',
  872. enableMock: true,
  873. mock: '20-100',
  874. },
  875. {
  876. key: 'echarts.option.series.1.data.3',
  877. label: '折线二的4月',
  878. type: 'float',
  879. enableMock: true,
  880. mock: '10-70',
  881. },
  882. {
  883. key: 'echarts.option.series.0.data.4',
  884. label: '折线一的5月',
  885. type: 'float',
  886. enableMock: true,
  887. mock: '20-100',
  888. },
  889. {
  890. key: 'echarts.option.series.1.data.4',
  891. label: '折线二的5月',
  892. type: 'float',
  893. enableMock: true,
  894. mock: '10-70',
  895. },
  896. {
  897. key: 'echarts.option.series.0.data.5',
  898. label: '折线一的6月',
  899. type: 'float',
  900. enableMock: true,
  901. mock: '0-100',
  902. },
  903. {
  904. key: 'echarts.option.series.1.data.5',
  905. label: '折线二的6月',
  906. type: 'float',
  907. enableMock: true,
  908. mock: '30-80',
  909. },
  910. ],
  911. props: {
  912. custom: [
  913. {
  914. key: 'echarts',
  915. label: 'echarts配置',
  916. type: 'code',
  917. },
  918. ],
  919. },
  920. },
  921. },
  922. ],
  923. },
  924. {
  925. name: '柱状图',
  926. show: true,
  927. list: [
  928. {
  929. name: '基础柱状图',
  930. icon: 'l-bar-chart',
  931. data: {
  932. name: 'echarts',
  933. width: 366,
  934. height: 206,
  935. externElement: true,
  936. disableAnchor: true,
  937. echarts: {
  938. option: {
  939. grid: {
  940. bottom: 16,
  941. left: 16,
  942. right: 16,
  943. top: 24,
  944. containLabel: true,
  945. },
  946. fontSize: 10,
  947. xAxis: {
  948. type: 'category',
  949. data: ['1月', '2月', '3月', '4月', '5月', '6月'],
  950. },
  951. yAxis: {
  952. type: 'value',
  953. max: 100,
  954. min: 0,
  955. },
  956. series: [
  957. {
  958. type: 'bar',
  959. data: [
  960. {
  961. value: 40,
  962. itemStyle: {
  963. color: '#6851f1',
  964. },
  965. },
  966. {
  967. value: 20,
  968. itemStyle: {
  969. color: '#09bcb7',
  970. },
  971. },
  972. {
  973. value: 90,
  974. itemStyle: {
  975. color: '#f5804d',
  976. },
  977. },
  978. {
  979. value: 60,
  980. itemStyle: {
  981. color: '#0c56eb',
  982. },
  983. },
  984. {
  985. value: 70,
  986. itemStyle: {
  987. color: '#6851f1',
  988. },
  989. },
  990. {
  991. value: 80,
  992. itemStyle: {
  993. color: '#09bcb7',
  994. },
  995. },
  996. ],
  997. },
  998. ],
  999. },
  1000. max: 100,
  1001. },
  1002. realTimes: [
  1003. {
  1004. key: 'echarts.option.series.0.data.0.value',
  1005. label: '1月',
  1006. type: 'float',
  1007. enableMock: true,
  1008. mock: '10-40',
  1009. triggers: [
  1010. {
  1011. name: '触发器1',
  1012. conditionType: 'and',
  1013. conditions: [
  1014. {
  1015. type: '',
  1016. operator: '>',
  1017. valueType: '',
  1018. value: '20',
  1019. },
  1020. ],
  1021. actions: [
  1022. {
  1023. action: 1,
  1024. params: '',
  1025. value: {
  1026. 'echarts.option.series.0.data.0.itemStyle.color':
  1027. '#ff4000',
  1028. },
  1029. targetType: 'id',
  1030. },
  1031. ],
  1032. },
  1033. {
  1034. name: '触发器2',
  1035. conditionType: 'and',
  1036. conditions: [
  1037. {
  1038. type: '',
  1039. operator: '<=',
  1040. valueType: '',
  1041. value: '20',
  1042. },
  1043. ],
  1044. actions: [
  1045. {
  1046. action: 1,
  1047. params: '',
  1048. value: {
  1049. 'echarts.option.series.0.data.0.itemStyle.color':
  1050. '#6851f1',
  1051. },
  1052. targetType: 'id',
  1053. },
  1054. ],
  1055. },
  1056. ],
  1057. },
  1058. {
  1059. key: 'echarts.option.series.0.data.1.value',
  1060. label: '2月',
  1061. type: 'float',
  1062. enableMock: true,
  1063. mock: '0-50',
  1064. },
  1065. {
  1066. key: 'echarts.option.series.0.data.2.value',
  1067. label: '3月',
  1068. type: 'float',
  1069. enableMock: true,
  1070. mock: '0-50',
  1071. },
  1072. {
  1073. key: 'echarts.option.series.0.data.3.value',
  1074. label: '4月',
  1075. type: 'float',
  1076. enableMock: true,
  1077. mock: '20-60',
  1078. },
  1079. {
  1080. key: 'echarts.option.series.0.data.4.value',
  1081. label: '5月',
  1082. type: 'float',
  1083. enableMock: true,
  1084. mock: '0-80',
  1085. },
  1086. {
  1087. key: 'echarts.option.series.0.data.5.value',
  1088. label: '6月',
  1089. type: 'float',
  1090. enableMock: true,
  1091. mock: '60-100',
  1092. },
  1093. ],
  1094. props: {
  1095. custom: [
  1096. {
  1097. key: 'echarts',
  1098. label: 'echarts配置',
  1099. type: 'code',
  1100. },
  1101. ],
  1102. },
  1103. },
  1104. },
  1105. {
  1106. name: '分组柱状图',
  1107. icon: 'l-fenzuzhuzhuangtu',
  1108. data: {
  1109. name: 'echarts',
  1110. width: 366,
  1111. height: 206,
  1112. externElement: true,
  1113. disableAnchor: true,
  1114. echarts: {
  1115. option: {
  1116. grid: {
  1117. bottom: 16,
  1118. left: 16,
  1119. right: 16,
  1120. top: 24,
  1121. containLabel: true,
  1122. },
  1123. xAxis: {
  1124. type: 'category',
  1125. data: ['1月', '2月', '3月', '4月', '5月', '6月'],
  1126. },
  1127. yAxis: {
  1128. type: 'value',
  1129. },
  1130. series: [
  1131. {
  1132. type: 'bar',
  1133. data: [40, 35, 80, 40, 45, 25],
  1134. },
  1135. {
  1136. type: 'bar',
  1137. data: [25, 40, 20, 30, 25, 40],
  1138. },
  1139. ],
  1140. },
  1141. max: 30,
  1142. },
  1143. realTimes: [
  1144. {
  1145. key: 'echarts.option.series.0.data.0',
  1146. label: '分组一的1月',
  1147. type: 'float',
  1148. enableMock: true,
  1149. mock: '20-100',
  1150. },
  1151. {
  1152. key: 'echarts.option.series.1.data.0',
  1153. label: '分组二的1月',
  1154. type: 'float',
  1155. enableMock: true,
  1156. mock: '10-70',
  1157. },
  1158. {
  1159. key: 'echarts.option.series.0.data.1',
  1160. label: '分组一的2月',
  1161. type: 'float',
  1162. enableMock: true,
  1163. mock: '0-50',
  1164. },
  1165. {
  1166. key: 'echarts.option.series.1.data.1',
  1167. label: '分组二的2月',
  1168. type: 'float',
  1169. enableMock: true,
  1170. mock: '0-70',
  1171. },
  1172. {
  1173. key: 'echarts.option.series.0.data.2',
  1174. label: '分组一的3月',
  1175. type: 'float',
  1176. enableMock: true,
  1177. mock: '8-80',
  1178. },
  1179. {
  1180. key: 'echarts.option.series.1.data.2',
  1181. label: '分组二的3月',
  1182. type: 'float',
  1183. enableMock: true,
  1184. mock: '1-70',
  1185. },
  1186. {
  1187. key: 'echarts.option.series.0.data.3',
  1188. label: '分组一的4月',
  1189. type: 'float',
  1190. enableMock: true,
  1191. mock: '20-100',
  1192. },
  1193. {
  1194. key: 'echarts.option.series.1.data.3',
  1195. label: '分组二的4月',
  1196. type: 'float',
  1197. enableMock: true,
  1198. mock: '10-70',
  1199. },
  1200. {
  1201. key: 'echarts.option.series.0.data.4',
  1202. label: '分组一的5月',
  1203. type: 'float',
  1204. enableMock: true,
  1205. mock: '20-100',
  1206. },
  1207. {
  1208. key: 'echarts.option.series.1.data.4',
  1209. label: '分组二的5月',
  1210. type: 'float',
  1211. enableMock: true,
  1212. mock: '10-70',
  1213. },
  1214. {
  1215. key: 'echarts.option.series.0.data.5',
  1216. label: '分组一的6月',
  1217. type: 'float',
  1218. enableMock: true,
  1219. mock: '0-100',
  1220. },
  1221. {
  1222. key: 'echarts.option.series.1.data.5',
  1223. label: '分组二的6月',
  1224. type: 'float',
  1225. enableMock: true,
  1226. mock: '30-80',
  1227. },
  1228. ],
  1229. props: {
  1230. custom: [
  1231. {
  1232. key: 'echarts',
  1233. label: 'echarts配置',
  1234. type: 'code',
  1235. },
  1236. ],
  1237. },
  1238. },
  1239. },
  1240. {
  1241. name: '堆叠柱状图',
  1242. icon: 'l-duidiezhuzhuangtu',
  1243. data: {
  1244. name: 'echarts',
  1245. width: 366,
  1246. height: 206,
  1247. externElement: true,
  1248. disableAnchor: true,
  1249. echarts: {
  1250. option: {
  1251. grid: {
  1252. bottom: 16,
  1253. left: 16,
  1254. right: 16,
  1255. top: 24,
  1256. containLabel: true,
  1257. },
  1258. xAxis: {
  1259. type: 'category',
  1260. data: ['1月', '2月', '3月', '4月', '5月', '6月'],
  1261. },
  1262. yAxis: {
  1263. type: 'value',
  1264. },
  1265. series: [
  1266. {
  1267. type: 'bar',
  1268. stack: 'one',
  1269. data: [40, 35, 80, 40, 45, 25],
  1270. },
  1271. {
  1272. type: 'bar',
  1273. stack: 'one',
  1274. data: [25, 40, 20, 30, 25, 40],
  1275. },
  1276. ],
  1277. },
  1278. max: 30,
  1279. },
  1280. realTimes: [
  1281. {
  1282. key: 'echarts.option.series.0.data.0',
  1283. label: '分组一的1月',
  1284. type: 'float',
  1285. enableMock: true,
  1286. mock: '20-100',
  1287. },
  1288. {
  1289. key: 'echarts.option.series.1.data.0',
  1290. label: '分组二的1月',
  1291. type: 'float',
  1292. enableMock: true,
  1293. mock: '10-70',
  1294. },
  1295. {
  1296. key: 'echarts.option.series.0.data.1',
  1297. label: '分组一的2月',
  1298. type: 'float',
  1299. enableMock: true,
  1300. mock: '0-50',
  1301. },
  1302. {
  1303. key: 'echarts.option.series.1.data.1',
  1304. label: '分组二的2月',
  1305. type: 'float',
  1306. enableMock: true,
  1307. mock: '0-70',
  1308. },
  1309. {
  1310. key: 'echarts.option.series.0.data.2',
  1311. label: '分组一的3月',
  1312. type: 'float',
  1313. enableMock: true,
  1314. mock: '8-80',
  1315. },
  1316. {
  1317. key: 'echarts.option.series.1.data.2',
  1318. label: '分组二的3月',
  1319. type: 'float',
  1320. enableMock: true,
  1321. mock: '1-70',
  1322. },
  1323. {
  1324. key: 'echarts.option.series.0.data.3',
  1325. label: '分组一的4月',
  1326. type: 'float',
  1327. enableMock: true,
  1328. mock: '20-100',
  1329. },
  1330. {
  1331. key: 'echarts.option.series.1.data.3',
  1332. label: '分组二的4月',
  1333. type: 'float',
  1334. enableMock: true,
  1335. mock: '10-70',
  1336. },
  1337. {
  1338. key: 'echarts.option.series.0.data.4',
  1339. label: '分组一的5月',
  1340. type: 'float',
  1341. enableMock: true,
  1342. mock: '20-100',
  1343. },
  1344. {
  1345. key: 'echarts.option.series.1.data.4',
  1346. label: '分组二的5月',
  1347. type: 'float',
  1348. enableMock: true,
  1349. mock: '10-70',
  1350. },
  1351. {
  1352. key: 'echarts.option.series.0.data.5',
  1353. label: '分组一的6月',
  1354. type: 'float',
  1355. enableMock: true,
  1356. mock: '0-100',
  1357. },
  1358. {
  1359. key: 'echarts.option.series.1.data.5',
  1360. label: '分组二的6月',
  1361. type: 'float',
  1362. enableMock: true,
  1363. mock: '30-80',
  1364. },
  1365. ],
  1366. props: {
  1367. custom: [
  1368. {
  1369. key: 'echarts',
  1370. label: 'echarts配置',
  1371. type: 'code',
  1372. },
  1373. ],
  1374. },
  1375. },
  1376. },
  1377. ],
  1378. },
  1379. {
  1380. name: '条形图',
  1381. show: true,
  1382. list: [
  1383. {
  1384. name: '基础条形图',
  1385. icon: 'l-tiaoxingtu',
  1386. data: {
  1387. name: 'echarts',
  1388. width: 366,
  1389. height: 206,
  1390. externElement: true,
  1391. disableAnchor: true,
  1392. echarts: {
  1393. option: {
  1394. grid: {
  1395. bottom: 16,
  1396. left: 16,
  1397. right: 16,
  1398. top: 24,
  1399. containLabel: true,
  1400. },
  1401. fontSize: 10,
  1402. yAxis: {
  1403. type: 'category',
  1404. data: ['1月', '2月', '3月', '4月', '5月', '6月'],
  1405. },
  1406. xAxis: {
  1407. type: 'value',
  1408. max: 100,
  1409. min: 0,
  1410. },
  1411. series: [
  1412. {
  1413. type: 'bar',
  1414. data: [40, 20, 90, 60, 70, 80],
  1415. },
  1416. ],
  1417. },
  1418. max: 100,
  1419. },
  1420. realTimes: [
  1421. {
  1422. key: 'echarts.option.series.0.data.0',
  1423. label: '1月',
  1424. type: 'float',
  1425. enableMock: true,
  1426. mock: '10-40',
  1427. },
  1428. {
  1429. key: 'echarts.option.series.0.data.1',
  1430. label: '2月',
  1431. type: 'float',
  1432. enableMock: true,
  1433. mock: '0-50',
  1434. },
  1435. {
  1436. key: 'echarts.option.series.0.data.2',
  1437. label: '3月',
  1438. type: 'float',
  1439. enableMock: true,
  1440. mock: '0-50',
  1441. },
  1442. {
  1443. key: 'echarts.option.series.0.data.3',
  1444. label: '4月',
  1445. type: 'float',
  1446. enableMock: true,
  1447. mock: '20-60',
  1448. },
  1449. {
  1450. key: 'echarts.option.series.0.data.4',
  1451. label: '5月',
  1452. type: 'float',
  1453. enableMock: true,
  1454. mock: '0-80',
  1455. },
  1456. {
  1457. key: 'echarts.option.series.0.data.5',
  1458. label: '6月',
  1459. type: 'float',
  1460. enableMock: true,
  1461. mock: '60-100',
  1462. },
  1463. ],
  1464. props: {
  1465. custom: [
  1466. {
  1467. key: 'echarts',
  1468. label: 'echarts配置',
  1469. type: 'code',
  1470. },
  1471. ],
  1472. },
  1473. },
  1474. },
  1475. {
  1476. name: '分组条形图',
  1477. icon: 'l-fenzutiaoxingtu',
  1478. data: {
  1479. name: 'echarts',
  1480. width: 366,
  1481. height: 206,
  1482. externElement: true,
  1483. disableAnchor: true,
  1484. echarts: {
  1485. option: {
  1486. grid: {
  1487. top: 20,
  1488. bottom: 40,
  1489. left: 40,
  1490. right: 20,
  1491. },
  1492. yAxis: {
  1493. type: 'category',
  1494. data: ['1月', '2月', '3月', '4月', '5月', '6月'],
  1495. },
  1496. xAxis: {
  1497. type: 'value',
  1498. max: 100,
  1499. min: 0,
  1500. },
  1501. series: [
  1502. {
  1503. type: 'bar',
  1504. data: [40, 35, 80, 40, 45, 25],
  1505. },
  1506. {
  1507. type: 'bar',
  1508. data: [25, 40, 20, 30, 25, 40],
  1509. },
  1510. ],
  1511. },
  1512. max: 30,
  1513. },
  1514. realTimes: [
  1515. {
  1516. key: 'echarts.option.series.0.data.0',
  1517. label: '分组一的1月',
  1518. type: 'float',
  1519. enableMock: true,
  1520. mock: '20-100',
  1521. },
  1522. {
  1523. key: 'echarts.option.series.1.data.0',
  1524. label: '分组二的1月',
  1525. type: 'float',
  1526. enableMock: true,
  1527. mock: '10-70',
  1528. },
  1529. {
  1530. key: 'echarts.option.series.0.data.1',
  1531. label: '分组一的2月',
  1532. type: 'float',
  1533. enableMock: true,
  1534. mock: '0-50',
  1535. },
  1536. {
  1537. key: 'echarts.option.series.1.data.1',
  1538. label: '分组二的2月',
  1539. type: 'float',
  1540. enableMock: true,
  1541. mock: '0-70',
  1542. },
  1543. {
  1544. key: 'echarts.option.series.0.data.2',
  1545. label: '分组一的3月',
  1546. type: 'float',
  1547. enableMock: true,
  1548. mock: '8-80',
  1549. },
  1550. {
  1551. key: 'echarts.option.series.1.data.2',
  1552. label: '分组二的3月',
  1553. type: 'float',
  1554. enableMock: true,
  1555. mock: '1-70',
  1556. },
  1557. {
  1558. key: 'echarts.option.series.0.data.3',
  1559. label: '分组一的4月',
  1560. type: 'float',
  1561. enableMock: true,
  1562. mock: '20-100',
  1563. },
  1564. {
  1565. key: 'echarts.option.series.1.data.3',
  1566. label: '分组二的4月',
  1567. type: 'float',
  1568. enableMock: true,
  1569. mock: '10-70',
  1570. },
  1571. {
  1572. key: 'echarts.option.series.0.data.4',
  1573. label: '分组一的5月',
  1574. type: 'float',
  1575. enableMock: true,
  1576. mock: '20-100',
  1577. },
  1578. {
  1579. key: 'echarts.option.series.1.data.4',
  1580. label: '分组二的5月',
  1581. type: 'float',
  1582. enableMock: true,
  1583. mock: '10-70',
  1584. },
  1585. {
  1586. key: 'echarts.option.series.0.data.5',
  1587. label: '分组一的6月',
  1588. type: 'float',
  1589. enableMock: true,
  1590. mock: '0-100',
  1591. },
  1592. {
  1593. key: 'echarts.option.series.1.data.5',
  1594. label: '分组二的6月',
  1595. type: 'float',
  1596. enableMock: true,
  1597. mock: '30-80',
  1598. },
  1599. ],
  1600. props: {
  1601. custom: [
  1602. {
  1603. key: 'echarts',
  1604. label: 'echarts配置',
  1605. type: 'code',
  1606. },
  1607. ],
  1608. },
  1609. },
  1610. },
  1611. {
  1612. name: '堆叠条形图',
  1613. icon: 'l-duidietiaoxingtu',
  1614. data: {
  1615. name: 'echarts',
  1616. width: 366,
  1617. height: 206,
  1618. externElement: true,
  1619. disableAnchor: true,
  1620. echarts: {
  1621. option: {
  1622. grid: {
  1623. bottom: 16,
  1624. left: 16,
  1625. right: 16,
  1626. top: 24,
  1627. containLabel: true,
  1628. },
  1629. yAxis: {
  1630. type: 'category',
  1631. data: ['1月', '2月', '3月', '4月', '5月', '6月'],
  1632. },
  1633. xAxis: {
  1634. type: 'value',
  1635. max: 100,
  1636. min: 0,
  1637. },
  1638. series: [
  1639. {
  1640. type: 'bar',
  1641. stack: 'one',
  1642. data: [40, 35, 80, 40, 45, 25],
  1643. },
  1644. {
  1645. type: 'bar',
  1646. stack: 'one',
  1647. data: [25, 40, 20, 30, 25, 40],
  1648. },
  1649. ],
  1650. },
  1651. max: 30,
  1652. },
  1653. realTimes: [
  1654. {
  1655. key: 'echarts.option.series.0.data.0',
  1656. label: '分组一的1月',
  1657. type: 'float',
  1658. enableMock: true,
  1659. mock: '20-100',
  1660. },
  1661. {
  1662. key: 'echarts.option.series.1.data.0',
  1663. label: '分组二的1月',
  1664. type: 'float',
  1665. enableMock: true,
  1666. mock: '10-70',
  1667. },
  1668. {
  1669. key: 'echarts.option.series.0.data.1',
  1670. label: '分组一的2月',
  1671. type: 'float',
  1672. enableMock: true,
  1673. mock: '0-50',
  1674. },
  1675. {
  1676. key: 'echarts.option.series.1.data.1',
  1677. label: '分组二的2月',
  1678. type: 'float',
  1679. enableMock: true,
  1680. mock: '0-70',
  1681. },
  1682. {
  1683. key: 'echarts.option.series.0.data.2',
  1684. label: '分组一的3月',
  1685. type: 'float',
  1686. enableMock: true,
  1687. mock: '8-80',
  1688. },
  1689. {
  1690. key: 'echarts.option.series.1.data.2',
  1691. label: '分组二的3月',
  1692. type: 'float',
  1693. enableMock: true,
  1694. mock: '1-70',
  1695. },
  1696. {
  1697. key: 'echarts.option.series.0.data.3',
  1698. label: '分组一的4月',
  1699. type: 'float',
  1700. enableMock: true,
  1701. mock: '20-100',
  1702. },
  1703. {
  1704. key: 'echarts.option.series.1.data.3',
  1705. label: '分组二的4月',
  1706. type: 'float',
  1707. enableMock: true,
  1708. mock: '10-70',
  1709. },
  1710. {
  1711. key: 'echarts.option.series.0.data.4',
  1712. label: '分组一的5月',
  1713. type: 'float',
  1714. enableMock: true,
  1715. mock: '20-100',
  1716. },
  1717. {
  1718. key: 'echarts.option.series.1.data.4',
  1719. label: '分组二的5月',
  1720. type: 'float',
  1721. enableMock: true,
  1722. mock: '10-70',
  1723. },
  1724. {
  1725. key: 'echarts.option.series.0.data.5',
  1726. label: '分组一的6月',
  1727. type: 'float',
  1728. enableMock: true,
  1729. mock: '0-100',
  1730. },
  1731. {
  1732. key: 'echarts.option.series.1.data.5',
  1733. label: '分组二的6月',
  1734. type: 'float',
  1735. enableMock: true,
  1736. mock: '30-80',
  1737. },
  1738. ],
  1739. props: {
  1740. custom: [
  1741. {
  1742. key: 'echarts',
  1743. label: 'echarts配置',
  1744. type: 'code',
  1745. },
  1746. ],
  1747. },
  1748. },
  1749. },
  1750. {
  1751. name: '正负条形图',
  1752. icon: 'l-zhengfutiaoxingtu',
  1753. data: {
  1754. name: 'echarts',
  1755. width: 366,
  1756. height: 206,
  1757. externElement: true,
  1758. disableAnchor: true,
  1759. echarts: {
  1760. option: {
  1761. grid: {
  1762. bottom: 16,
  1763. left: 16,
  1764. right: 16,
  1765. top: 24,
  1766. containLabel: true,
  1767. },
  1768. yAxis: {
  1769. type: 'category',
  1770. data: ['1月', '2月', '3月', '4月', '5月', '6月'],
  1771. },
  1772. xAxis: {
  1773. type: 'value',
  1774. max: 100,
  1775. min: -50,
  1776. },
  1777. series: [
  1778. {
  1779. type: 'bar',
  1780. stack: 'one',
  1781. data: [40, 35, 80, 40, 45, 25],
  1782. },
  1783. {
  1784. type: 'bar',
  1785. stack: 'one',
  1786. data: [25, 40, 20, 30, 25, 40],
  1787. },
  1788. {
  1789. type: 'bar',
  1790. stack: 'one',
  1791. data: [-5, -30, -10, -20, -25, -16],
  1792. },
  1793. ],
  1794. },
  1795. max: 30,
  1796. },
  1797. realTimes: [
  1798. {
  1799. key: 'echarts.option.series.0.data.0',
  1800. label: '分组一的1月',
  1801. type: 'float',
  1802. enableMock: true,
  1803. mock: '20-100',
  1804. },
  1805. {
  1806. key: 'echarts.option.series.1.data.0',
  1807. label: '分组二的1月',
  1808. type: 'float',
  1809. enableMock: true,
  1810. mock: '10-70',
  1811. },
  1812. {
  1813. key: 'echarts.option.series.2.data.0',
  1814. label: '分组三的1月',
  1815. type: 'float',
  1816. enableMock: true,
  1817. mock: '-10--2',
  1818. },
  1819. {
  1820. key: 'echarts.option.series.0.data.1',
  1821. label: '分组一的2月',
  1822. type: 'float',
  1823. enableMock: true,
  1824. mock: '0-50',
  1825. },
  1826. {
  1827. key: 'echarts.option.series.1.data.1',
  1828. label: '分组二的2月',
  1829. type: 'float',
  1830. enableMock: true,
  1831. mock: '0-70',
  1832. },
  1833. {
  1834. key: 'echarts.option.series.2.data.1',
  1835. label: '分组三的2月',
  1836. type: 'float',
  1837. enableMock: true,
  1838. mock: '-30--10',
  1839. },
  1840. {
  1841. key: 'echarts.option.series.0.data.2',
  1842. label: '分组一的3月',
  1843. type: 'float',
  1844. enableMock: true,
  1845. mock: '8-80',
  1846. },
  1847. {
  1848. key: 'echarts.option.series.1.data.2',
  1849. label: '分组二的3月',
  1850. type: 'float',
  1851. enableMock: true,
  1852. mock: '1-70',
  1853. },
  1854. {
  1855. key: 'echarts.option.series.2.data.2',
  1856. label: '分组三的3月',
  1857. type: 'float',
  1858. enableMock: true,
  1859. mock: '-30--1',
  1860. },
  1861. {
  1862. key: 'echarts.option.series.0.data.3',
  1863. label: '分组一的4月',
  1864. type: 'float',
  1865. enableMock: true,
  1866. mock: '20-100',
  1867. },
  1868. {
  1869. key: 'echarts.option.series.1.data.3',
  1870. label: '分组二的4月',
  1871. type: 'float',
  1872. enableMock: true,
  1873. mock: '10-70',
  1874. },
  1875. {
  1876. key: 'echarts.option.series.2.data.3',
  1877. label: '分组三的4月',
  1878. type: 'float',
  1879. enableMock: true,
  1880. mock: '-50--10',
  1881. },
  1882. {
  1883. key: 'echarts.option.series.0.data.4',
  1884. label: '分组一的5月',
  1885. type: 'float',
  1886. enableMock: true,
  1887. mock: '20-100',
  1888. },
  1889. {
  1890. key: 'echarts.option.series.1.data.4',
  1891. label: '分组二的5月',
  1892. type: 'float',
  1893. enableMock: true,
  1894. mock: '10-70',
  1895. },
  1896. {
  1897. key: 'echarts.option.series.2.data.4',
  1898. label: '分组三的5月',
  1899. type: 'float',
  1900. enableMock: true,
  1901. mock: '-40--10',
  1902. },
  1903. {
  1904. key: 'echarts.option.series.0.data.5',
  1905. label: '分组一的6月',
  1906. type: 'float',
  1907. enableMock: true,
  1908. mock: '0-100',
  1909. },
  1910. {
  1911. key: 'echarts.option.series.1.data.5',
  1912. label: '分组二的6月',
  1913. type: 'float',
  1914. enableMock: true,
  1915. mock: '30-80',
  1916. },
  1917. {
  1918. key: 'echarts.option.series.2.data.5',
  1919. label: '分组三的6月',
  1920. type: 'float',
  1921. enableMock: true,
  1922. mock: '-30--20',
  1923. },
  1924. ],
  1925. props: {
  1926. custom: [
  1927. {
  1928. key: 'echarts',
  1929. label: 'echarts配置',
  1930. type: 'code',
  1931. },
  1932. ],
  1933. },
  1934. },
  1935. },
  1936. ],
  1937. },
  1938. {
  1939. name: '饼环图',
  1940. show: true,
  1941. list: [
  1942. {
  1943. name: '饼图',
  1944. icon: 'l-pie-chart',
  1945. data: {
  1946. width: 300,
  1947. height: 200,
  1948. disableAnchor: true,
  1949. externElement: true,
  1950. name: 'echarts',
  1951. echarts: {
  1952. option: {
  1953. tooltip: {
  1954. trigger: 'item',
  1955. },
  1956. series: [
  1957. {
  1958. type: 'pie',
  1959. radius: '50%',
  1960. label: {
  1961. color: '#ffffff',
  1962. },
  1963. data: [
  1964. { value: 335, name: '2D' },
  1965. { value: 310, name: '3D' },
  1966. { value: 234, name: '大屏' },
  1967. { value: 135, name: '物联网平台' },
  1968. { value: 1548, name: '图形库' },
  1969. ],
  1970. },
  1971. ],
  1972. },
  1973. replaceMode: ReplaceMode.Replace,
  1974. },
  1975. realTimes: [
  1976. {
  1977. key: 'echarts.option.series.0.data.0.value',
  1978. label: '2D',
  1979. type: 'integer',
  1980. enableMock: true,
  1981. mock: '300-1000',
  1982. },
  1983. {
  1984. key: 'echarts.option.series.0.data.1.value',
  1985. label: '3D',
  1986. type: 'integer',
  1987. enableMock: true,
  1988. mock: '300-1000',
  1989. },
  1990. {
  1991. key: 'echarts.option.series.0.data.2.value',
  1992. label: '大屏',
  1993. type: 'integer',
  1994. enableMock: true,
  1995. mock: '300-1000',
  1996. },
  1997. {
  1998. key: 'echarts.option.series.0.data.3.value',
  1999. label: '物联网平台',
  2000. type: 'integer',
  2001. enableMock: true,
  2002. mock: '300-1000',
  2003. },
  2004. {
  2005. key: 'echarts.option.series.0.data.4.value',
  2006. label: '图形库',
  2007. type: 'integer',
  2008. enableMock: true,
  2009. mock: '300-1000',
  2010. },
  2011. ],
  2012. props: {
  2013. custom: [
  2014. {
  2015. key: 'echarts',
  2016. label: 'echarts配置',
  2017. type: 'code',
  2018. },
  2019. ],
  2020. },
  2021. },
  2022. },
  2023. {
  2024. name: '环图',
  2025. icon: 'l-huanxingtu',
  2026. data: {
  2027. width: 300,
  2028. height: 200,
  2029. disableAnchor: true,
  2030. externElement: true,
  2031. name: 'echarts',
  2032. echarts: {
  2033. option: {
  2034. tooltip: {
  2035. trigger: 'item',
  2036. },
  2037. series: [
  2038. {
  2039. type: 'pie',
  2040. radius: ['50%', '70%'],
  2041. label: {
  2042. color: '#ffffff',
  2043. },
  2044. data: [
  2045. { value: 335, name: '2D' },
  2046. { value: 310, name: '3D' },
  2047. { value: 234, name: '大屏' },
  2048. { value: 135, name: '物联网平台' },
  2049. { value: 1548, name: '图形库' },
  2050. ],
  2051. },
  2052. ],
  2053. },
  2054. replaceMode: ReplaceMode.Replace,
  2055. },
  2056. realTimes: [
  2057. {
  2058. key: 'echarts.option.series.0.data.0.value',
  2059. label: '2D',
  2060. type: 'integer',
  2061. enableMock: true,
  2062. mock: '300-1000',
  2063. },
  2064. {
  2065. key: 'echarts.option.series.0.data.1.value',
  2066. label: '3D',
  2067. type: 'integer',
  2068. enableMock: true,
  2069. mock: '300-1000',
  2070. },
  2071. {
  2072. key: 'echarts.option.series.0.data.2.value',
  2073. label: '大屏',
  2074. type: 'integer',
  2075. enableMock: true,
  2076. mock: '300-1000',
  2077. },
  2078. {
  2079. key: 'echarts.option.series.0.data.3.value',
  2080. label: '物联网平台',
  2081. type: 'integer',
  2082. enableMock: true,
  2083. mock: '300-1000',
  2084. },
  2085. {
  2086. key: 'echarts.option.series.0.data.4.value',
  2087. label: '图形库',
  2088. type: 'integer',
  2089. enableMock: true,
  2090. mock: '300-1000',
  2091. },
  2092. ],
  2093. props: {
  2094. custom: [
  2095. {
  2096. key: 'echarts',
  2097. label: 'echarts配置',
  2098. type: 'code',
  2099. },
  2100. ],
  2101. },
  2102. },
  2103. },
  2104. {
  2105. name: '圆角环图',
  2106. icon: 'l-yuanjiaohuanxingtu',
  2107. data: {
  2108. width: 300,
  2109. height: 200,
  2110. disableAnchor: true,
  2111. externElement: true,
  2112. name: 'echarts',
  2113. echarts: {
  2114. option: {
  2115. tooltip: {
  2116. trigger: 'item',
  2117. },
  2118. series: [
  2119. {
  2120. type: 'pie',
  2121. radius: ['50%', '70%'],
  2122. label: {
  2123. color: '#ffffff',
  2124. },
  2125. itemStyle: {
  2126. borderRadius: 4,
  2127. borderWidth: 1,
  2128. },
  2129. data: [
  2130. { value: 335, name: '2D' },
  2131. { value: 310, name: '3D' },
  2132. { value: 234, name: '大屏' },
  2133. { value: 135, name: '物联网平台' },
  2134. { value: 1548, name: '图形库' },
  2135. ],
  2136. },
  2137. ],
  2138. },
  2139. replaceMode: ReplaceMode.Replace,
  2140. },
  2141. realTimes: [
  2142. {
  2143. key: 'echarts.option.series.0.data.0.value',
  2144. label: '2D',
  2145. type: 'integer',
  2146. enableMock: true,
  2147. mock: '300-1000',
  2148. },
  2149. {
  2150. key: 'echarts.option.series.0.data.1.value',
  2151. label: '3D',
  2152. type: 'integer',
  2153. enableMock: true,
  2154. mock: '300-1000',
  2155. },
  2156. {
  2157. key: 'echarts.option.series.0.data.2.value',
  2158. label: '大屏',
  2159. type: 'integer',
  2160. enableMock: true,
  2161. mock: '300-1000',
  2162. },
  2163. {
  2164. key: 'echarts.option.series.0.data.3.value',
  2165. label: '物联网平台',
  2166. type: 'integer',
  2167. enableMock: true,
  2168. mock: '300-1000',
  2169. },
  2170. {
  2171. key: 'echarts.option.series.0.data.4.value',
  2172. label: '图形库',
  2173. type: 'integer',
  2174. enableMock: true,
  2175. mock: '300-1000',
  2176. },
  2177. ],
  2178. props: {
  2179. custom: [
  2180. {
  2181. key: 'echarts',
  2182. label: 'echarts配置',
  2183. type: 'code',
  2184. },
  2185. ],
  2186. },
  2187. },
  2188. },
  2189. ],
  2190. },
  2191. {
  2192. name: '散点图',
  2193. show: true,
  2194. list: [
  2195. {
  2196. name: '散点图',
  2197. icon: 'l-sandiantu',
  2198. data: {
  2199. width: 300,
  2200. height: 200,
  2201. disableAnchor: true,
  2202. externElement: true,
  2203. name: 'echarts',
  2204. echarts: {
  2205. option: {
  2206. grid: {
  2207. bottom: 12,
  2208. left: 16,
  2209. right: 16,
  2210. top: 24,
  2211. containLabel: true,
  2212. },
  2213. xAxis: {
  2214. axisLabel: {
  2215. fontSize: 12,
  2216. color: '#ffffff',
  2217. },
  2218. },
  2219. yAxis: {
  2220. axisLabel: {
  2221. fontSize: 12,
  2222. color: '#ffffff',
  2223. },
  2224. },
  2225. series: [
  2226. {
  2227. symbolSize: 10,
  2228. data: [
  2229. [10.0, 8.04],
  2230. [8.07, 6.95],
  2231. [13.0, 7.58],
  2232. [9.05, 8.81],
  2233. [11.0, 8.33],
  2234. [14.0, 7.66],
  2235. [13.4, 6.81],
  2236. [10.0, 6.33],
  2237. [14.0, 8.96],
  2238. [12.5, 6.82],
  2239. [9.15, 7.2],
  2240. [11.5, 7.2],
  2241. [3.03, 4.23],
  2242. [12.2, 7.83],
  2243. [2.02, 4.47],
  2244. [1.05, 3.33],
  2245. [4.05, 4.96],
  2246. [6.03, 7.24],
  2247. [12.0, 6.26],
  2248. [12.0, 8.84],
  2249. [7.08, 5.82],
  2250. [5.02, 5.68],
  2251. ],
  2252. type: 'scatter',
  2253. },
  2254. ],
  2255. },
  2256. replaceMode: ReplaceMode.Replace,
  2257. },
  2258. realTimes: [
  2259. {
  2260. key: 'echarts.option.series.0.data.0.0',
  2261. label: '点1.X',
  2262. type: 'float',
  2263. enableMock: true,
  2264. mock: '10.00-16',
  2265. },
  2266. {
  2267. key: 'echarts.option.series.0.data.0.1',
  2268. label: '点1.Y',
  2269. type: 'float',
  2270. enableMock: true,
  2271. mock: '10.00-16',
  2272. },
  2273. {
  2274. key: 'echarts.option.series.0.data.1.0',
  2275. label: '点2.X',
  2276. type: 'float',
  2277. enableMock: true,
  2278. mock: '10.00-16',
  2279. },
  2280. {
  2281. key: 'echarts.option.series.0.data.1.1',
  2282. label: '点2.Y',
  2283. type: 'float',
  2284. enableMock: true,
  2285. mock: '10.00-16',
  2286. },
  2287. {
  2288. key: 'echarts.option.series.0.data.2.0',
  2289. label: '点3.X',
  2290. type: 'float',
  2291. enableMock: true,
  2292. mock: '10.00-16',
  2293. },
  2294. {
  2295. key: 'echarts.option.series.0.data.2.1',
  2296. label: '点3.Y',
  2297. type: 'float',
  2298. enableMock: true,
  2299. mock: '10.00-16',
  2300. },
  2301. ],
  2302. props: {
  2303. custom: [
  2304. {
  2305. key: 'echarts',
  2306. label: 'echarts配置',
  2307. type: 'code',
  2308. },
  2309. ],
  2310. },
  2311. },
  2312. },
  2313. {
  2314. name: '涟漪散点图',
  2315. icon: 'l-lianyisandianyu',
  2316. data: {
  2317. width: 300,
  2318. height: 200,
  2319. disableAnchor: true,
  2320. externElement: true,
  2321. name: 'echarts',
  2322. echarts: {
  2323. option: {
  2324. grid: {
  2325. bottom: 12,
  2326. left: 16,
  2327. right: 16,
  2328. top: 24,
  2329. containLabel: true,
  2330. },
  2331. xAxis: {
  2332. axisLabel: {
  2333. fontSize: 12,
  2334. color: '#ffffff',
  2335. },
  2336. },
  2337. yAxis: {
  2338. axisLabel: {
  2339. fontSize: 12,
  2340. color: '#ffffff',
  2341. },
  2342. },
  2343. series: [
  2344. {
  2345. type: 'effectScatter',
  2346. symbolSize: 8,
  2347. data: [
  2348. [12.7, 15.2],
  2349. [13.4, 4],
  2350. [15.4, 2],
  2351. ],
  2352. },
  2353. {
  2354. symbolSize: 10,
  2355. data: [
  2356. [10.0, 8.04],
  2357. [8.07, 6.95],
  2358. [13.0, 7.58],
  2359. [9.05, 8.81],
  2360. [11.0, 8.33],
  2361. [14.0, 7.66],
  2362. [13.4, 6.81],
  2363. [10.0, 6.33],
  2364. [14.0, 8.96],
  2365. [12.5, 6.82],
  2366. [9.15, 7.2],
  2367. [11.5, 7.2],
  2368. [3.03, 4.23],
  2369. [12.2, 7.83],
  2370. [2.02, 4.47],
  2371. [1.05, 3.33],
  2372. [4.05, 4.96],
  2373. [6.03, 7.24],
  2374. [12.0, 6.26],
  2375. [12.0, 8.84],
  2376. [7.08, 5.82],
  2377. [5.02, 5.68],
  2378. ],
  2379. type: 'scatter',
  2380. },
  2381. ],
  2382. },
  2383. replaceMode: ReplaceMode.Replace,
  2384. },
  2385. realTimes: [
  2386. {
  2387. key: 'echarts.option.series.0.data.0.0',
  2388. label: '点1.X',
  2389. type: 'float',
  2390. enableMock: true,
  2391. mock: '10.00-16',
  2392. },
  2393. {
  2394. key: 'echarts.option.series.0.data.0.1',
  2395. label: '点1.Y',
  2396. type: 'float',
  2397. enableMock: true,
  2398. mock: '10.00-16',
  2399. },
  2400. {
  2401. key: 'echarts.option.series.0.data.1.0',
  2402. label: '点2.X',
  2403. type: 'float',
  2404. enableMock: true,
  2405. mock: '10.00-16',
  2406. },
  2407. {
  2408. key: 'echarts.option.series.0.data.1.1',
  2409. label: '点2.Y',
  2410. type: 'float',
  2411. enableMock: true,
  2412. mock: '10.00-16',
  2413. },
  2414. {
  2415. key: 'echarts.option.series.0.data.2.0',
  2416. label: '点3.X',
  2417. type: 'float',
  2418. enableMock: true,
  2419. mock: '10.00-16',
  2420. },
  2421. {
  2422. key: 'echarts.option.series.0.data.2.1',
  2423. label: '点3.Y',
  2424. type: 'float',
  2425. enableMock: true,
  2426. mock: '10.00-16',
  2427. },
  2428. ],
  2429. props: {
  2430. custom: [
  2431. {
  2432. key: 'echarts',
  2433. label: 'echarts配置',
  2434. type: 'code',
  2435. },
  2436. ],
  2437. },
  2438. },
  2439. },
  2440. ],
  2441. },
  2442. {
  2443. name: '雷达图',
  2444. show: true,
  2445. list: [
  2446. {
  2447. name: '雷达图',
  2448. icon: 'l-leidatu',
  2449. data: {
  2450. width: 300,
  2451. height: 300,
  2452. disableAnchor: true,
  2453. externElement: true,
  2454. name: 'echarts',
  2455. echarts: {
  2456. option: {
  2457. radar: {
  2458. indicator: [
  2459. { name: '销售', max: 65000 },
  2460. { name: '管理', max: 16000 },
  2461. { name: '数据', max: 30000 },
  2462. { name: '支持', max: 38000 },
  2463. { name: '开发', max: 52000 },
  2464. { name: '营销', max: 25000 },
  2465. ],
  2466. splitLine: {
  2467. lineStyle: {
  2468. opacity: 0.3,
  2469. },
  2470. },
  2471. splitArea: {
  2472. show: false,
  2473. },
  2474. axisLine: {
  2475. lineStyle: {
  2476. opacity: 0.1,
  2477. },
  2478. },
  2479. },
  2480. series: [
  2481. {
  2482. type: 'radar',
  2483. lineStyle: { width: 1, opacity: 0.5 },
  2484. areaStyle: { opacity: 0.1 },
  2485. data: [
  2486. {
  2487. value: [52000, 3000, 20000, 35000, 50000, 18000],
  2488. name: '预算',
  2489. },
  2490. {
  2491. value: [60000, 14000, 28000, 26000, 42000, 21000],
  2492. name: '消费',
  2493. },
  2494. ],
  2495. },
  2496. ],
  2497. },
  2498. replaceMode: ReplaceMode.Replace,
  2499. },
  2500. realTimes: [
  2501. {
  2502. key: 'echarts.option.series.0.data.0.value.0',
  2503. label: '预算.销售',
  2504. type: 'integer',
  2505. enableMock: true,
  2506. mock: '40000-65000',
  2507. },
  2508. {
  2509. key: 'echarts.option.series.0.data.0.value.1',
  2510. label: '预算.管理',
  2511. type: 'integer',
  2512. enableMock: true,
  2513. mock: '14000-16000',
  2514. },
  2515. {
  2516. key: 'echarts.option.series.0.data.0.value.2',
  2517. label: '预算.数据',
  2518. type: 'integer',
  2519. enableMock: true,
  2520. mock: '20000-30000',
  2521. },
  2522. {
  2523. key: 'echarts.option.series.0.data.0.value.3',
  2524. label: '预算.支持',
  2525. type: 'integer',
  2526. enableMock: true,
  2527. mock: '30000-38000',
  2528. },
  2529. {
  2530. key: 'echarts.option.series.0.data.0.value.4',
  2531. label: '预算.开发',
  2532. type: 'integer',
  2533. enableMock: true,
  2534. mock: '30000-52000',
  2535. },
  2536. {
  2537. key: 'echarts.option.series.0.data.0.value.5',
  2538. label: '预算.营销',
  2539. type: 'integer',
  2540. enableMock: true,
  2541. mock: '10000-25000',
  2542. },
  2543. ],
  2544. props: {
  2545. custom: [
  2546. {
  2547. key: 'echarts',
  2548. label: 'echarts配置',
  2549. type: 'code',
  2550. },
  2551. ],
  2552. },
  2553. },
  2554. },
  2555. {
  2556. name: '圆形雷达图',
  2557. icon: 'l-yuanxingleidatu',
  2558. data: {
  2559. width: 300,
  2560. height: 300,
  2561. disableAnchor: true,
  2562. externElement: true,
  2563. name: 'echarts',
  2564. echarts: {
  2565. option: {
  2566. radar: {
  2567. shape: 'circle',
  2568. indicator: [
  2569. { name: '销售', max: 65000 },
  2570. { name: '管理', max: 16000 },
  2571. { name: '数据', max: 30000 },
  2572. { name: '支持', max: 38000 },
  2573. { name: '开发', max: 52000 },
  2574. { name: '营销', max: 25000 },
  2575. ],
  2576. splitLine: {
  2577. lineStyle: {
  2578. opacity: 0.3,
  2579. },
  2580. },
  2581. splitArea: {
  2582. show: false,
  2583. },
  2584. axisLine: {
  2585. lineStyle: {
  2586. opacity: 0.1,
  2587. },
  2588. },
  2589. },
  2590. series: [
  2591. {
  2592. type: 'radar',
  2593. lineStyle: { width: 1, opacity: 0.5 },
  2594. areaStyle: { opacity: 0.1 },
  2595. data: [
  2596. {
  2597. value: [52000, 3000, 20000, 35000, 50000, 18000],
  2598. name: '预算',
  2599. },
  2600. {
  2601. value: [60000, 14000, 28000, 26000, 42000, 21000],
  2602. name: '消费',
  2603. },
  2604. ],
  2605. },
  2606. ],
  2607. },
  2608. replaceMode: ReplaceMode.Replace,
  2609. },
  2610. realTimes: [
  2611. {
  2612. key: 'echarts.option.series.0.data.0.value.0',
  2613. label: '预算.销售',
  2614. type: 'integer',
  2615. enableMock: true,
  2616. mock: '40000-65000',
  2617. },
  2618. {
  2619. key: 'echarts.option.series.0.data.0.value.1',
  2620. label: '预算.管理',
  2621. type: 'integer',
  2622. enableMock: true,
  2623. mock: '14000-16000',
  2624. },
  2625. {
  2626. key: 'echarts.option.series.0.data.0.value.2',
  2627. label: '预算.数据',
  2628. type: 'integer',
  2629. enableMock: true,
  2630. mock: '20000-30000',
  2631. },
  2632. {
  2633. key: 'echarts.option.series.0.data.0.value.3',
  2634. label: '预算.支持',
  2635. type: 'integer',
  2636. enableMock: true,
  2637. mock: '30000-38000',
  2638. },
  2639. {
  2640. key: 'echarts.option.series.0.data.0.value.4',
  2641. label: '预算.开发',
  2642. type: 'integer',
  2643. enableMock: true,
  2644. mock: '30000-52000',
  2645. },
  2646. {
  2647. key: 'echarts.option.series.0.data.0.value.5',
  2648. label: '预算.营销',
  2649. type: 'integer',
  2650. enableMock: true,
  2651. mock: '10000-25000',
  2652. },
  2653. ],
  2654. props: {
  2655. custom: [
  2656. {
  2657. key: 'echarts',
  2658. label: 'echarts配置',
  2659. type: 'code',
  2660. },
  2661. ],
  2662. },
  2663. },
  2664. },
  2665. ],
  2666. },
  2667. {
  2668. name: '关系图',
  2669. show: true,
  2670. list: [
  2671. {
  2672. name: '力引导布局',
  2673. icon: 'l-liyindaobuju',
  2674. data: {
  2675. width: 300,
  2676. height: 300,
  2677. disableAnchor: true,
  2678. externElement: true,
  2679. name: 'echarts',
  2680. echarts: {
  2681. option: {
  2682. tooltip: {},
  2683. series: [
  2684. {
  2685. type: 'graph',
  2686. layout: 'force',
  2687. data: [
  2688. {
  2689. id: '0',
  2690. name: '1',
  2691. symbolSize: 6,
  2692. category: 0,
  2693. },
  2694. {
  2695. id: '1',
  2696. name: '2',
  2697. symbolSize: 6,
  2698. category: 0,
  2699. },
  2700. {
  2701. id: '2',
  2702. name: '3',
  2703. symbolSize: 6,
  2704. category: 0,
  2705. },
  2706. {
  2707. id: '3',
  2708. name: '4',
  2709. symbolSize: 6,
  2710. category: 0,
  2711. },
  2712. {
  2713. id: '4',
  2714. name: '5',
  2715. symbolSize: 6,
  2716. category: 0,
  2717. },
  2718. {
  2719. id: '5',
  2720. name: '6',
  2721. symbolSize: 6,
  2722. category: 0,
  2723. },
  2724. {
  2725. id: '6',
  2726. name: '7',
  2727. symbolSize: 6,
  2728. category: 1,
  2729. },
  2730. {
  2731. id: '7',
  2732. name: '8',
  2733. symbolSize: 6,
  2734. category: 1,
  2735. },
  2736. {
  2737. id: '8',
  2738. name: '9',
  2739. symbolSize: 6,
  2740. category: 2,
  2741. },
  2742. {
  2743. id: '9',
  2744. name: '10',
  2745. symbolSize: 6,
  2746. category: 2,
  2747. },
  2748. {
  2749. id: '10',
  2750. name: '11',
  2751. symbolSize: 6,
  2752. category: 2,
  2753. },
  2754. {
  2755. id: '11',
  2756. name: '12',
  2757. symbolSize: 6,
  2758. category: 2,
  2759. },
  2760. {
  2761. id: '12',
  2762. name: '13',
  2763. symbolSize: 6,
  2764. category: 2,
  2765. },
  2766. {
  2767. id: '13',
  2768. name: '14',
  2769. symbolSize: 6,
  2770. category: 3,
  2771. },
  2772. {
  2773. id: '14',
  2774. name: '15',
  2775. symbolSize: 6,
  2776. category: 3,
  2777. },
  2778. {
  2779. id: '15',
  2780. name: '16',
  2781. symbolSize: 6,
  2782. category: 3,
  2783. },
  2784. {
  2785. id: '16',
  2786. name: '17',
  2787. symbolSize: 6,
  2788. category: 3,
  2789. },
  2790. {
  2791. id: '17',
  2792. name: '18',
  2793. symbolSize: 6,
  2794. category: 3,
  2795. },
  2796. {
  2797. id: '18',
  2798. name: '19',
  2799. symbolSize: 6,
  2800. category: 3,
  2801. },
  2802. ],
  2803. links: [
  2804. { source: '0', target: '3' },
  2805. { source: '1', target: '3' },
  2806. { source: '2', target: '3' },
  2807. { source: '3', target: '5' },
  2808. { source: '4', target: '3' },
  2809. { source: '5', target: '8' },
  2810. { source: '6', target: '5' },
  2811. { source: '7', target: '5' },
  2812. { source: '8', target: '10' },
  2813. { source: '9', target: '8' },
  2814. { source: '10', target: '12' },
  2815. { source: '11', target: '12' },
  2816. { source: '12', target: '10' },
  2817. { source: '13', target: '12' },
  2818. { source: '14', target: '9' },
  2819. { source: '15', target: '14' },
  2820. { source: '16', target: '8' },
  2821. { source: '17', target: '12' },
  2822. { source: '18', target: '8' },
  2823. ],
  2824. categories: [
  2825. { name: 'A' },
  2826. { name: 'B' },
  2827. { name: 'C' },
  2828. { name: 'D' },
  2829. ],
  2830. roam: true,
  2831. force: {
  2832. repulsion: 30,
  2833. gravity: 0.03,
  2834. edgeLength: 50,
  2835. layoutAnimation: true,
  2836. },
  2837. },
  2838. ],
  2839. },
  2840. replaceMode: ReplaceMode.Replace,
  2841. },
  2842. realTimes: [
  2843. {
  2844. key: 'echarts.option.series.0.data',
  2845. label: 'data',
  2846. type: 'array',
  2847. },
  2848. {
  2849. key: 'echarts.option.series.0.links',
  2850. label: 'links',
  2851. type: 'array',
  2852. },
  2853. {
  2854. key: 'echarts.option.series.0.categories',
  2855. label: 'categories',
  2856. type: 'array',
  2857. },
  2858. ],
  2859. props: {
  2860. custom: [
  2861. {
  2862. key: 'echarts',
  2863. label: 'echarts配置',
  2864. type: 'code',
  2865. },
  2866. ],
  2867. },
  2868. },
  2869. },
  2870. {
  2871. name: '知识图谱',
  2872. icon: 'l-zhishitupu',
  2873. data: {
  2874. width: 400,
  2875. height: 400,
  2876. disableAnchor: true,
  2877. externElement: true,
  2878. name: 'echarts',
  2879. echarts: {
  2880. option: {
  2881. tooltip: {},
  2882. series: [
  2883. {
  2884. type: 'graph',
  2885. symbolSize: 58,
  2886. layout: 'force',
  2887. data: [
  2888. {
  2889. name: '操作系统',
  2890. category: 0,
  2891. },
  2892. {
  2893. name: '浏览器',
  2894. category: 0,
  2895. },
  2896. {
  2897. name: 'HTML',
  2898. category: 0,
  2899. },
  2900. {
  2901. name: 'JavaScript',
  2902. category: 0,
  2903. },
  2904. {
  2905. name: 'CSS',
  2906. category: 0,
  2907. },
  2908. {
  2909. name: 'Chrome',
  2910. category: 1,
  2911. },
  2912. {
  2913. name: 'IE',
  2914. category: 1,
  2915. },
  2916. {
  2917. name: 'Firefox',
  2918. category: 1,
  2919. },
  2920. {
  2921. name: 'Safari',
  2922. category: 1,
  2923. },
  2924. ],
  2925. links: [
  2926. {
  2927. source: '浏览器',
  2928. target: '操作系统',
  2929. name: '包含',
  2930. lineStyle: { color: '#4583ff' },
  2931. },
  2932. {
  2933. source: 'HTML',
  2934. target: '浏览器',
  2935. name: '实现',
  2936. lineStyle: { color: '#4583ff' },
  2937. },
  2938. {
  2939. source: 'CSS',
  2940. target: '浏览器',
  2941. name: '实现',
  2942. lineStyle: { color: '#4583ff' },
  2943. },
  2944. {
  2945. source: 'JavaScript',
  2946. target: '浏览器',
  2947. name: '实现',
  2948. lineStyle: { color: '#4583ff' },
  2949. },
  2950. {
  2951. source: 'Chrome',
  2952. target: '浏览器',
  2953. name: '属于',
  2954. lineStyle: { color: '#4583ff' },
  2955. },
  2956. {
  2957. source: 'IE',
  2958. target: '浏览器',
  2959. name: '属于',
  2960. lineStyle: { color: '#4583ff' },
  2961. },
  2962. {
  2963. source: 'Firefox',
  2964. target: '浏览器',
  2965. name: '属于',
  2966. lineStyle: { color: '#4583ff' },
  2967. },
  2968. {
  2969. source: 'Safari',
  2970. target: '浏览器',
  2971. name: '属于',
  2972. lineStyle: { color: '#4583ff' },
  2973. },
  2974. {
  2975. source: 'Chrome',
  2976. target: 'JavaScript',
  2977. name: '关联',
  2978. lineStyle: { color: '#4583ff' },
  2979. },
  2980. ],
  2981. categories: [
  2982. {
  2983. name: 'A',
  2984. itemStyle: {
  2985. color: '#4583ff',
  2986. },
  2987. },
  2988. { name: 'B' },
  2989. { name: 'C' },
  2990. { name: 'D' },
  2991. ],
  2992. roam: true,
  2993. edgeSymbol: ['', 'arrow'],
  2994. label: {
  2995. show: true,
  2996. },
  2997. edgeLabel: {
  2998. normal: {
  2999. show: true,
  3000. color: '#4583ff',
  3001. formatter(x) {
  3002. return x.data.name;
  3003. },
  3004. },
  3005. },
  3006. force: {
  3007. repulsion: 500,
  3008. edgeLength: 120,
  3009. },
  3010. },
  3011. ],
  3012. },
  3013. replaceMode: ReplaceMode.Replace,
  3014. },
  3015. realTimes: [
  3016. {
  3017. key: 'echarts.option.series.0.data',
  3018. label: 'data',
  3019. type: 'array',
  3020. },
  3021. {
  3022. key: 'echarts.option.series.0.links',
  3023. label: 'links',
  3024. type: 'array',
  3025. },
  3026. {
  3027. key: 'echarts.option.series.0.categories',
  3028. label: 'categories',
  3029. type: 'array',
  3030. },
  3031. ],
  3032. props: {
  3033. custom: [
  3034. {
  3035. key: 'echarts',
  3036. label: 'echarts配置',
  3037. type: 'code',
  3038. },
  3039. ],
  3040. },
  3041. },
  3042. },
  3043. ],
  3044. },
  3045. {
  3046. name: '桑葚图',
  3047. show: true,
  3048. list: [
  3049. {
  3050. name: '桑基图',
  3051. icon: 'l-sangjitu',
  3052. data: {
  3053. width: 300,
  3054. height: 200,
  3055. disableAnchor: true,
  3056. externElement: true,
  3057. name: 'echarts',
  3058. echarts: {
  3059. option: {
  3060. series: {
  3061. right: 30.0,
  3062. type: 'sankey',
  3063. layout: 'none',
  3064. emphasis: {
  3065. focus: 'adjacency',
  3066. },
  3067. data: [
  3068. {
  3069. name: 'a',
  3070. },
  3071. {
  3072. name: 'b',
  3073. },
  3074. {
  3075. name: 'a1',
  3076. },
  3077. {
  3078. name: 'a2',
  3079. },
  3080. {
  3081. name: 'b1',
  3082. },
  3083. {
  3084. name: 'c',
  3085. },
  3086. ],
  3087. links: [
  3088. {
  3089. source: 'a',
  3090. target: 'a1',
  3091. value: 5,
  3092. },
  3093. {
  3094. source: 'a',
  3095. target: 'a2',
  3096. value: 3,
  3097. },
  3098. {
  3099. source: 'b',
  3100. target: 'b1',
  3101. value: 8,
  3102. },
  3103. {
  3104. source: 'a',
  3105. target: 'b1',
  3106. value: 3,
  3107. },
  3108. {
  3109. source: 'b1',
  3110. target: 'a1',
  3111. value: 1,
  3112. },
  3113. {
  3114. source: 'b1',
  3115. target: 'c',
  3116. value: 2,
  3117. },
  3118. ],
  3119. lineStyle: {
  3120. color: 'source',
  3121. curveness: 0.5,
  3122. },
  3123. label: {
  3124. color: '#ffffff',
  3125. fontSize: 10,
  3126. },
  3127. },
  3128. },
  3129. replaceMode: ReplaceMode.Replace,
  3130. },
  3131. realTimes: [
  3132. {
  3133. key: 'echarts.option.series.data',
  3134. label: 'data',
  3135. type: 'array',
  3136. },
  3137. {
  3138. key: 'echarts.option.series.links',
  3139. label: 'links',
  3140. type: 'array',
  3141. },
  3142. {
  3143. key: 'echarts.option.series.links.0.value',
  3144. label: 'a->a1',
  3145. type: 'integer',
  3146. enableMock: true,
  3147. mock: '3-8',
  3148. },
  3149. {
  3150. key: 'echarts.option.series.links.1.value',
  3151. label: 'a->a2',
  3152. type: 'integer',
  3153. enableMock: true,
  3154. mock: '1-8',
  3155. },
  3156. {
  3157. key: 'echarts.option.series.links.2.value',
  3158. label: 'b->b1',
  3159. type: 'integer',
  3160. enableMock: true,
  3161. mock: '1-8',
  3162. },
  3163. {
  3164. key: 'echarts.option.series.links.3.value',
  3165. label: 'a->b1',
  3166. type: 'integer',
  3167. enableMock: true,
  3168. mock: '1-8',
  3169. },
  3170. {
  3171. key: 'echarts.option.series.links.4.value',
  3172. label: 'b1->a1',
  3173. type: 'integer',
  3174. enableMock: true,
  3175. mock: '1-8',
  3176. },
  3177. {
  3178. key: 'echarts.option.series.links.5.value',
  3179. label: 'b1->c',
  3180. type: 'integer',
  3181. enableMock: true,
  3182. mock: '1-8',
  3183. },
  3184. ],
  3185. props: {
  3186. custom: [
  3187. {
  3188. key: 'echarts',
  3189. label: 'echarts配置',
  3190. type: 'code',
  3191. },
  3192. ],
  3193. },
  3194. },
  3195. },
  3196. {
  3197. name: '自定义桑基图',
  3198. icon: 'l-zidingyisangjitu',
  3199. data: {
  3200. width: 400,
  3201. height: 500,
  3202. disableAnchor: true,
  3203. externElement: true,
  3204. name: 'echarts',
  3205. echarts: {
  3206. option: {
  3207. series: {
  3208. right: 30.0,
  3209. type: 'sankey',
  3210. layout: 'none',
  3211. layoutIterations: 0,
  3212. emphasis: {
  3213. focus: 'adjacency',
  3214. },
  3215. lineStyle: {
  3216. color: 'source',
  3217. opacity: 0.45,
  3218. curveness: 0.5,
  3219. },
  3220. label: {
  3221. color: '#fff',
  3222. fontSize: 10,
  3223. },
  3224. data: [
  3225. {
  3226. name: '华中',
  3227. itemStyle: {
  3228. color: 'rgba(0,176,80)',
  3229. borderColor: 'rgba(0,176,80)',
  3230. },
  3231. },
  3232. {
  3233. name: '华南',
  3234. itemStyle: {
  3235. color: 'rgba(112,48,160)',
  3236. borderColor: 'rgba(112,48,160)',
  3237. },
  3238. },
  3239. {
  3240. name: '华东',
  3241. itemStyle: {
  3242. color: 'rgba(48,84,150)',
  3243. borderColor: 'rgba(48,84,150)',
  3244. },
  3245. },
  3246. {
  3247. name: '华北',
  3248. itemStyle: {
  3249. color: 'rgba(198,89,17)',
  3250. borderColor: 'rgba(198,89,17)',
  3251. },
  3252. },
  3253. {
  3254. name: '西北',
  3255. itemStyle: {
  3256. color: 'rgba(112,173,71)',
  3257. borderColor: 'rgba(112,173,71)',
  3258. },
  3259. },
  3260. {
  3261. name: '西南',
  3262. itemStyle: {
  3263. color: 'rgba(117,113,113)',
  3264. borderColor: 'rgba(117,113,113)',
  3265. },
  3266. },
  3267. {
  3268. name: '北京',
  3269. itemStyle: {
  3270. color: 'rgba(198,89,17)',
  3271. borderColor: 'rgba(198,89,17)',
  3272. },
  3273. },
  3274. {
  3275. name: '上海',
  3276. itemStyle: {
  3277. color: 'rgba(48,84,150)',
  3278. borderColor: 'rgba(48,84,150)',
  3279. },
  3280. },
  3281. {
  3282. name: '武汉',
  3283. itemStyle: {
  3284. color: 'rgba(0,176,80)',
  3285. borderColor: 'rgba(0,176,80)',
  3286. },
  3287. },
  3288. {
  3289. name: '济南',
  3290. itemStyle: {
  3291. color: 'rgba(48,84,150)',
  3292. borderColor: 'rgba(48,84,150)',
  3293. },
  3294. },
  3295. {
  3296. name: '东莞',
  3297. itemStyle: {
  3298. color: 'rgba(112,48,160)',
  3299. borderColor: 'rgba(112,48,160)',
  3300. },
  3301. },
  3302. {
  3303. name: '珠海',
  3304. itemStyle: {
  3305. color: 'rgba(112,48,160)',
  3306. borderColor: 'rgba(112,48,160)',
  3307. },
  3308. },
  3309. {
  3310. name: '青岛',
  3311. itemStyle: {
  3312. color: 'rgba(48,84,150)',
  3313. borderColor: 'rgba(48,84,150)',
  3314. },
  3315. },
  3316. {
  3317. name: '无锡',
  3318. itemStyle: {
  3319. color: 'rgba(48,84,150)',
  3320. borderColor: 'rgba(48,84,150)',
  3321. },
  3322. },
  3323. {
  3324. name: '厦门',
  3325. itemStyle: {
  3326. color: 'rgba(48,84,150)',
  3327. borderColor: 'rgba(48,84,150)',
  3328. },
  3329. },
  3330. {
  3331. name: '成都',
  3332. itemStyle: {
  3333. color: 'rgba(0,176,80)',
  3334. borderColor: 'rgba(0,176,80)',
  3335. },
  3336. },
  3337. {
  3338. name: '杭州',
  3339. itemStyle: {
  3340. color: 'rgba(48,84,150)',
  3341. borderColor: 'rgba(48,84,150)',
  3342. },
  3343. },
  3344. {
  3345. name: '金华',
  3346. itemStyle: {
  3347. color: 'rgba(48,84,150)',
  3348. borderColor: 'rgba(48,84,150)',
  3349. },
  3350. },
  3351. {
  3352. name: '南京',
  3353. itemStyle: {
  3354. color: 'rgba(48,84,150)',
  3355. borderColor: 'rgba(48,84,150)',
  3356. },
  3357. },
  3358. {
  3359. name: '西安',
  3360. itemStyle: {
  3361. color: 'rgba(112,173,71)',
  3362. borderColor: 'rgba(112,173,71)',
  3363. },
  3364. },
  3365. {
  3366. name: '中山',
  3367. itemStyle: {
  3368. color: 'rgba(112,48,160)',
  3369. borderColor: 'rgba(112,48,160)',
  3370. },
  3371. },
  3372. {
  3373. name: '天津',
  3374. itemStyle: {
  3375. color: 'rgba(198,89,17)',
  3376. borderColor: 'rgba(198,89,17)',
  3377. },
  3378. },
  3379. {
  3380. name: '苏州',
  3381. itemStyle: {
  3382. color: 'rgba(48,84,150)',
  3383. borderColor: 'rgba(48,84,150)',
  3384. },
  3385. },
  3386. {
  3387. name: '威海',
  3388. itemStyle: {
  3389. color: 'rgba(48,84,150)',
  3390. borderColor: 'rgba(48,84,150)',
  3391. },
  3392. },
  3393. {
  3394. name: '银川',
  3395. itemStyle: {
  3396. color: 'rgba(112,173,71)',
  3397. borderColor: 'rgba(112,173,71)',
  3398. },
  3399. },
  3400. {
  3401. name: '贵阳',
  3402. itemStyle: {
  3403. color: 'rgba(0,176,80)',
  3404. borderColor: 'rgba(0,176,80)',
  3405. },
  3406. },
  3407. {
  3408. name: '佛山',
  3409. itemStyle: {
  3410. color: 'rgba(112,48,160)',
  3411. borderColor: 'rgba(112,48,160)',
  3412. },
  3413. },
  3414. {
  3415. name: '东营',
  3416. itemStyle: {
  3417. color: 'rgba(48,84,150)',
  3418. borderColor: 'rgba(48,84,150)',
  3419. },
  3420. },
  3421. {
  3422. name: '舟山',
  3423. itemStyle: {
  3424. color: 'rgba(48,84,150)',
  3425. borderColor: 'rgba(48,84,150)',
  3426. },
  3427. },
  3428. {
  3429. name: '郑州',
  3430. itemStyle: {
  3431. color: 'rgba(0,176,80)',
  3432. borderColor: 'rgba(0,176,80)',
  3433. },
  3434. },
  3435. {
  3436. name: '烟台',
  3437. itemStyle: {
  3438. color: 'rgba(48,84,150)',
  3439. borderColor: 'rgba(48,84,150)',
  3440. },
  3441. },
  3442. {
  3443. name: '嘉兴',
  3444. itemStyle: {
  3445. color: 'rgba(48,84,150)',
  3446. borderColor: 'rgba(48,84,150)',
  3447. },
  3448. },
  3449. {
  3450. name: '三亚',
  3451. itemStyle: {
  3452. color: 'rgba(112,48,160)',
  3453. borderColor: 'rgba(112,48,160)',
  3454. },
  3455. },
  3456. {
  3457. name: '宁波',
  3458. itemStyle: {
  3459. color: 'rgba(48,84,150)',
  3460. borderColor: 'rgba(48,84,150)',
  3461. },
  3462. },
  3463. {
  3464. name: '潍坊',
  3465. itemStyle: {
  3466. color: 'rgba(198,89,17)',
  3467. borderColor: 'rgba(198,89,17)',
  3468. },
  3469. },
  3470. {
  3471. name: '合肥',
  3472. itemStyle: {
  3473. color: 'rgba(48,84,150)',
  3474. borderColor: 'rgba(48,84,150)',
  3475. },
  3476. },
  3477. {
  3478. name: '湖州',
  3479. itemStyle: {
  3480. color: 'rgba(48,84,150)',
  3481. borderColor: 'rgba(48,84,150)',
  3482. },
  3483. },
  3484. {
  3485. name: '枣庄',
  3486. itemStyle: {
  3487. color: 'rgba(48,84,150)',
  3488. borderColor: 'rgba(48,84,150)',
  3489. },
  3490. },
  3491. {
  3492. name: '太原',
  3493. itemStyle: {
  3494. color: 'rgba(198,89,17)',
  3495. borderColor: 'rgba(198,89,17)',
  3496. },
  3497. },
  3498. {
  3499. name: '海口',
  3500. itemStyle: {
  3501. color: 'rgba(112,48,160)',
  3502. borderColor: 'rgba(112,48,160)',
  3503. },
  3504. },
  3505. {
  3506. name: '长沙',
  3507. itemStyle: {
  3508. color: 'rgba(0,176,80)',
  3509. borderColor: 'rgba(0,176,80)',
  3510. },
  3511. },
  3512. {
  3513. name: '淄博',
  3514. itemStyle: {
  3515. color: 'rgba(48,84,150)',
  3516. borderColor: 'rgba(48,84,150)',
  3517. },
  3518. },
  3519. {
  3520. name: '聊城',
  3521. itemStyle: {
  3522. color: 'rgba(48,84,150)',
  3523. borderColor: 'rgba(48,84,150)',
  3524. },
  3525. },
  3526. {
  3527. name: '常州',
  3528. itemStyle: {
  3529. color: 'rgba(48,84,150)',
  3530. borderColor: 'rgba(48,84,150)',
  3531. },
  3532. },
  3533. {
  3534. name: '济宁',
  3535. itemStyle: {
  3536. color: 'rgba(48,84,150)',
  3537. borderColor: 'rgba(48,84,150)',
  3538. },
  3539. },
  3540. {
  3541. name: '南宁',
  3542. itemStyle: {
  3543. color: 'rgba(112,48,160)',
  3544. borderColor: 'rgba(112,48,160)',
  3545. },
  3546. },
  3547. {
  3548. name: '梅州',
  3549. itemStyle: {
  3550. color: 'rgba(112,48,160)',
  3551. borderColor: 'rgba(112,48,160)',
  3552. },
  3553. },
  3554. {
  3555. name: '遵义',
  3556. itemStyle: {
  3557. color: 'rgba(48,84,150)',
  3558. borderColor: 'rgba(48,84,150)',
  3559. },
  3560. },
  3561. {
  3562. name: '南昌',
  3563. itemStyle: {
  3564. color: 'rgba(48,84,150)',
  3565. borderColor: 'rgba(48,84,150)',
  3566. },
  3567. },
  3568. {
  3569. name: '宿迁',
  3570. itemStyle: {
  3571. color: 'rgba(48,84,150)',
  3572. borderColor: 'rgba(48,84,150)',
  3573. },
  3574. },
  3575. {
  3576. name: '福州',
  3577. itemStyle: {
  3578. color: 'rgba(48,84,150)',
  3579. borderColor: 'rgba(48,84,150)',
  3580. },
  3581. },
  3582. {
  3583. name: '桂林',
  3584. itemStyle: {
  3585. color: 'rgba(112,48,160)',
  3586. borderColor: 'rgba(112,48,160)',
  3587. },
  3588. },
  3589. {
  3590. name: '广州',
  3591. itemStyle: {
  3592. color: 'rgba(112,48,160)',
  3593. borderColor: 'rgba(112,48,160)',
  3594. },
  3595. },
  3596. {
  3597. name: '深圳',
  3598. itemStyle: {
  3599. color: 'rgba(112,48,160)',
  3600. borderColor: 'rgba(112,48,160)',
  3601. },
  3602. },
  3603. {
  3604. name: '惠州',
  3605. itemStyle: {
  3606. color: 'rgba(112,48,160)',
  3607. borderColor: 'rgba(112,48,160)',
  3608. },
  3609. },
  3610. {
  3611. name: '拉萨',
  3612. itemStyle: {
  3613. color: 'rgba(117,113,113)',
  3614. borderColor: 'rgba(117,113,113)',
  3615. },
  3616. },
  3617. ],
  3618. links: [
  3619. { source: '武汉', target: '华中', value: 1 },
  3620. { source: '深圳', target: '华南', value: 1 },
  3621. { source: '北京', target: '华北', value: 1 },
  3622. { source: '广州', target: '华南', value: 1 },
  3623. { source: '上海', target: '华东', value: 1 },
  3624. { source: '济南', target: '华东', value: 1 },
  3625. { source: '东莞', target: '华南', value: 1 },
  3626. { source: '珠海', target: '华南', value: 1 },
  3627. { source: '青岛', target: '华东', value: 1 },
  3628. { source: '无锡', target: '华东', value: 1 },
  3629. { source: '厦门', target: '华东', value: 1 },
  3630. { source: '成都', target: '华中', value: 1 },
  3631. { source: '杭州', target: '华东', value: 1 },
  3632. { source: '金华', target: '华东', value: 1 },
  3633. { source: '南京', target: '华东', value: 1 },
  3634. { source: '西安', target: '西北', value: 1 },
  3635. { source: '中山', target: '华南', value: 1 },
  3636. { source: '天津', target: '华北', value: 1 },
  3637. { source: '苏州', target: '华东', value: 1 },
  3638. { source: '威海', target: '华东', value: 1 },
  3639. { source: '银川', target: '西北', value: 1 },
  3640. { source: '贵阳', target: '华中', value: 1 },
  3641. { source: '佛山', target: '华南', value: 1 },
  3642. { source: '东营', target: '华东', value: 1 },
  3643. { source: '舟山', target: '华东', value: 1 },
  3644. { source: '郑州', target: '华中', value: 1 },
  3645. { source: '烟台', target: '华东', value: 1 },
  3646. { source: '嘉兴', target: '华东', value: 1 },
  3647. { source: '三亚', target: '华南', value: 1 },
  3648. { source: '宁波', target: '华东', value: 1 },
  3649. { source: '潍坊', target: '华北', value: 1 },
  3650. { source: '合肥', target: '华东', value: 1 },
  3651. { source: '湖州', target: '华东', value: 1 },
  3652. { source: '枣庄', target: '华东', value: 1 },
  3653. { source: '太原', target: '华北', value: 1 },
  3654. { source: '海口', target: '华南', value: 1 },
  3655. { source: '长沙', target: '华中', value: 1 },
  3656. { source: '淄博', target: '华东', value: 1 },
  3657. { source: '聊城', target: '华东', value: 1 },
  3658. { source: '常州', target: '华东', value: 1 },
  3659. { source: '济宁', target: '华东', value: 1 },
  3660. { source: '南宁', target: '华南', value: 1 },
  3661. { source: '梅州', target: '华南', value: 1 },
  3662. { source: '遵义', target: '华东', value: 1 },
  3663. { source: '南昌', target: '华东', value: 1 },
  3664. { source: '宿迁', target: '华东', value: 1 },
  3665. { source: '福州', target: '华东', value: 1 },
  3666. { source: '桂林', target: '华南', value: 1 },
  3667. { source: '惠州', target: '华南', value: 1 },
  3668. { source: '拉萨', target: '西南', value: 1 },
  3669. ],
  3670. },
  3671. },
  3672. replaceMode: ReplaceMode.Replace,
  3673. },
  3674. realTimes: [
  3675. {
  3676. key: 'echarts.option.series.data',
  3677. label: 'data',
  3678. type: 'array',
  3679. },
  3680. {
  3681. key: 'echarts.option.series.links',
  3682. label: 'links',
  3683. type: 'array',
  3684. },
  3685. {
  3686. key: 'echarts.option.series.links.0.value',
  3687. label: '武汉->华中',
  3688. type: 'integer',
  3689. enableMock: true,
  3690. mock: '1-18',
  3691. },
  3692. ],
  3693. props: {
  3694. custom: [
  3695. {
  3696. key: 'echarts',
  3697. label: 'echarts配置',
  3698. type: 'code',
  3699. },
  3700. ],
  3701. },
  3702. },
  3703. },
  3704. ],
  3705. },
  3706. {
  3707. name: '仪表盘',
  3708. show: true,
  3709. list: [
  3710. {
  3711. name: '基础仪表盘',
  3712. icon: 'l-dashboard-chart',
  3713. data: {
  3714. width: 300,
  3715. height: 300,
  3716. disableAnchor: true,
  3717. externElement: true,
  3718. name: 'echarts',
  3719. echarts: {
  3720. option: {
  3721. fontSize: 10,
  3722. series: [
  3723. {
  3724. type: 'gauge',
  3725. radius: '100%',
  3726. axisLine: {
  3727. roundCap: true,
  3728. lineStyle: {
  3729. color: [[1, 'rgba(107,157,215,.25)']],
  3730. width: 8,
  3731. },
  3732. },
  3733. axisTick: {
  3734. distance: 4,
  3735. lineStyle: {
  3736. color: '#6B9DD7',
  3737. },
  3738. },
  3739. splitLine: {
  3740. distance: 4,
  3741. lineStyle: {
  3742. width: 2,
  3743. color: 'rgb(107,157,215)',
  3744. },
  3745. },
  3746. detail: {
  3747. color: '#0c56eb',
  3748. },
  3749. progress: {
  3750. show: true,
  3751. roundCap: true,
  3752. width: 8,
  3753. },
  3754. axisLabel: {
  3755. color: '#ddd',
  3756. },
  3757. itemStyle: {
  3758. color: '#0c56eb',
  3759. },
  3760. pointer: {
  3761. itemStyle: {
  3762. borderWidth: 0,
  3763. },
  3764. },
  3765. data: [{ value: 70 }],
  3766. },
  3767. ],
  3768. },
  3769. replaceMode: ReplaceMode.Replace,
  3770. },
  3771. realTimes: [
  3772. {
  3773. key: 'echarts.option.series.0.data.0.value',
  3774. label: '值',
  3775. type: 'integer',
  3776. enableMock: true,
  3777. mock: '30-80',
  3778. },
  3779. ],
  3780. props: {
  3781. custom: [
  3782. {
  3783. key: 'echarts',
  3784. label: 'echarts配置',
  3785. type: 'code',
  3786. },
  3787. ],
  3788. },
  3789. },
  3790. },
  3791. {
  3792. name: '圆盘仪表盘',
  3793. icon: 'l-yuanpanyibiaopan',
  3794. data: {
  3795. width: 300,
  3796. height: 300,
  3797. disableAnchor: true,
  3798. externElement: true,
  3799. name: 'echarts',
  3800. echarts: {
  3801. option: {
  3802. fontSize: 10,
  3803. series: [
  3804. {
  3805. name: '最外部进度条',
  3806. type: 'gauge',
  3807. radius: '96%',
  3808. splitNumber: 10,
  3809. axisLine: {
  3810. lineStyle: {
  3811. color: [[1, 'rgba(107,157,215,.25)']],
  3812. width: 8,
  3813. },
  3814. },
  3815. progress: {
  3816. show: true,
  3817. width: 8,
  3818. },
  3819. axisTick: {
  3820. distance: 8,
  3821. splitNumber: 5,
  3822. lineStyle: {
  3823. color: '#42E5FB',
  3824. width: 1,
  3825. },
  3826. length: 8,
  3827. },
  3828. splitLine: {
  3829. distance: 8,
  3830. length: 15,
  3831. lineStyle: {
  3832. width: 2,
  3833. color: '#42E5FB',
  3834. },
  3835. },
  3836. axisLabel: {
  3837. show: false,
  3838. },
  3839. itemStyle: {
  3840. show: false,
  3841. },
  3842. detail: {
  3843. color: '#ACCFFF',
  3844. fontSize: 16,
  3845. fontWeight: 400,
  3846. offsetCenter: [0, '24%'],
  3847. },
  3848. data: [{ value: 60 }],
  3849. pointer: {
  3850. length: '40%',
  3851. radius: '20%',
  3852. width: 4,
  3853. itemStyle: {
  3854. color: '#45CAED',
  3855. borderWidth: 0,
  3856. },
  3857. },
  3858. },
  3859. {
  3860. name: '指针上的圆',
  3861. type: 'pie',
  3862. z: 5,
  3863. hoverAnimation: false,
  3864. legendHoverLink: false,
  3865. radius: ['0%', '6%'],
  3866. center: ['50%', '50%'],
  3867. label: {
  3868. normal: {
  3869. show: false,
  3870. },
  3871. },
  3872. labelLine: {
  3873. normal: {
  3874. show: false,
  3875. },
  3876. },
  3877. data: [
  3878. {
  3879. value: 10,
  3880. itemStyle: {
  3881. normal: {
  3882. color: '#45CAED',
  3883. borderWidth: 0,
  3884. },
  3885. },
  3886. },
  3887. ],
  3888. },
  3889. {
  3890. name: '外层透明圆',
  3891. type: 'pie',
  3892. radius: '60%',
  3893. startAngle: 0,
  3894. endAngle: 360,
  3895. hoverAnimation: false,
  3896. center: ['50%', '50%'],
  3897. avoidLabelOverlap: false,
  3898. label: {
  3899. show: false,
  3900. },
  3901. labelLine: {
  3902. show: false,
  3903. },
  3904. data: [
  3905. {
  3906. value: 1,
  3907. },
  3908. ],
  3909. itemStyle: {
  3910. normal: {
  3911. color: {
  3912. type: 'linear',
  3913. x: 0,
  3914. y: 0,
  3915. x2: 0,
  3916. y2: 1,
  3917. colorStops: [
  3918. {
  3919. offset: 0,
  3920. color: '#17A1FF',
  3921. },
  3922. {
  3923. offset: 1,
  3924. color: 'rgba(17, 90, 233, 0.16)',
  3925. },
  3926. ],
  3927. },
  3928. opacity: 0.2,
  3929. },
  3930. },
  3931. },
  3932. {
  3933. name: '内圆',
  3934. type: 'pie',
  3935. radius: '48%',
  3936. center: ['50%', '50%'],
  3937. startAngle: 0,
  3938. endAngle: 360,
  3939. label: {
  3940. show: false,
  3941. },
  3942. labelLine: {
  3943. show: false,
  3944. },
  3945. data: [
  3946. {
  3947. value: 1,
  3948. },
  3949. ],
  3950. itemStyle: {
  3951. color: {
  3952. colorStops: [
  3953. {
  3954. offset: 0,
  3955. color: '#23A6FF',
  3956. },
  3957. {
  3958. offset: 1,
  3959. color: 'rgba(17, 90, 233, 0.21) ',
  3960. },
  3961. ],
  3962. x: 0,
  3963. y: 0,
  3964. x2: 0,
  3965. y2: 1,
  3966. type: 'linear',
  3967. global: false,
  3968. },
  3969. opacity: 0.5,
  3970. borderWidth: 0,
  3971. },
  3972. },
  3973. ],
  3974. },
  3975. replaceMode: ReplaceMode.Replace,
  3976. },
  3977. realTimes: [
  3978. {
  3979. key: 'echarts.option.series.0.data.0.value',
  3980. label: '值',
  3981. type: 'integer',
  3982. enableMock: true,
  3983. mock: '30-80',
  3984. },
  3985. ],
  3986. props: {
  3987. custom: [
  3988. {
  3989. key: 'echarts',
  3990. label: 'echarts配置',
  3991. type: 'code',
  3992. },
  3993. ],
  3994. },
  3995. },
  3996. },
  3997. {
  3998. name: '进度仪表盘',
  3999. icon: 'l-jinduyibiaopan',
  4000. data: {
  4001. width: 300,
  4002. height: 300,
  4003. disableAnchor: true,
  4004. externElement: true,
  4005. name: 'echarts',
  4006. echarts: {
  4007. option: {
  4008. fontSize: 10,
  4009. series: [
  4010. {
  4011. name: '最外部环',
  4012. type: 'gauge',
  4013. radius: '96%',
  4014. splitNumber: 10,
  4015. axisLine: {
  4016. lineStyle: {
  4017. color: [[1, '#33507A']],
  4018. width: 8,
  4019. },
  4020. },
  4021. axisTick: {
  4022. distance: 8,
  4023. splitNumber: 10,
  4024. lineStyle: {
  4025. color: '#42E5FB',
  4026. width: 1,
  4027. },
  4028. length: 8,
  4029. },
  4030. splitLine: {
  4031. distance: 8,
  4032. length: 15,
  4033. lineStyle: {
  4034. width: 2,
  4035. color: '#42E5FB',
  4036. },
  4037. },
  4038. axisLabel: {
  4039. show: false,
  4040. },
  4041. itemStyle: {
  4042. show: false,
  4043. },
  4044. detail: {
  4045. show: false,
  4046. },
  4047. title: {
  4048. show: false,
  4049. },
  4050. data: [],
  4051. pointer: {
  4052. show: false,
  4053. },
  4054. },
  4055. {
  4056. name: '仪表盘',
  4057. type: 'gauge',
  4058. radius: '70%',
  4059. z: 4,
  4060. axisLine: {
  4061. lineStyle: {
  4062. color: [[1, 'rgba(0,0,0,0)']],
  4063. width: 20,
  4064. },
  4065. },
  4066. axisLabel: {
  4067. show: false,
  4068. },
  4069. axisTick: {
  4070. show: false,
  4071. },
  4072. splitLine: {
  4073. show: false,
  4074. },
  4075. itemStyle: {
  4076. color: 'rgba(0,191,194,0.5)',
  4077. },
  4078. progress: {
  4079. width: 20,
  4080. show: true,
  4081. },
  4082. detail: {
  4083. offsetCenter: [0, 50],
  4084. textStyle: {
  4085. padding: [0, 0, 0, 0],
  4086. fontSize: 30,
  4087. color: '#468EFD',
  4088. },
  4089. },
  4090. data: [
  4091. {
  4092. value: 36,
  4093. },
  4094. ],
  4095. pointer: {
  4096. width: 3,
  4097. itemStyle: {
  4098. borderWidth: 0,
  4099. },
  4100. },
  4101. },
  4102. ],
  4103. },
  4104. replaceMode: ReplaceMode.Replace,
  4105. },
  4106. realTimes: [
  4107. {
  4108. key: 'echarts.option.series.1.data.0.value',
  4109. label: '值',
  4110. type: 'integer',
  4111. enableMock: true,
  4112. mock: '30-80',
  4113. },
  4114. ],
  4115. props: {
  4116. custom: [
  4117. {
  4118. key: 'echarts',
  4119. label: 'echarts配置',
  4120. type: 'code',
  4121. },
  4122. ],
  4123. },
  4124. },
  4125. },
  4126. {
  4127. name: '蓝色科技1',
  4128. icon: 'l-lansekeji1',
  4129. data: {
  4130. width: 300,
  4131. height: 300,
  4132. disableAnchor: true,
  4133. externElement: true,
  4134. name: 'echarts',
  4135. echarts: {
  4136. option: {
  4137. fontSize: 10,
  4138. series: [
  4139. {
  4140. type: 'gauge',
  4141. radius: '98%',
  4142. splitNumber: 10,
  4143. axisLine: {
  4144. lineStyle: {
  4145. color: [[1, 'rgba(107,157,215,.25)']],
  4146. width: 8,
  4147. },
  4148. },
  4149. axisLabel: {
  4150. color: '#4d5bd1',
  4151. distance: 16,
  4152. },
  4153. axisTick: {
  4154. distance: 16,
  4155. splitNumber: 5,
  4156. lineStyle: {
  4157. color: '#468EFD',
  4158. width: 1,
  4159. },
  4160. length: 8,
  4161. },
  4162. splitLine: {
  4163. distance: 16,
  4164. length: 16,
  4165. lineStyle: {
  4166. color: '#468EFD',
  4167. },
  4168. },
  4169. itemStyle: {
  4170. show: false,
  4171. color: '#0c56eb',
  4172. },
  4173. progress: {
  4174. show: true,
  4175. },
  4176. detail: {
  4177. offsetCenter: [0, 50],
  4178. textStyle: {
  4179. padding: [0, 0, 0, 0],
  4180. fontSize: 18,
  4181. fontWeight: '700',
  4182. color: '#0c56eb',
  4183. },
  4184. },
  4185. data: [
  4186. {
  4187. value: 58,
  4188. },
  4189. ],
  4190. pointer: {
  4191. length: '75%',
  4192. radius: '20%',
  4193. width: 5,
  4194. itemStyle: {
  4195. borderWidth: 0,
  4196. },
  4197. },
  4198. },
  4199. ],
  4200. },
  4201. replaceMode: ReplaceMode.Replace,
  4202. },
  4203. realTimes: [
  4204. {
  4205. key: 'echarts.option.series.0.data.0.value',
  4206. label: '值',
  4207. type: 'integer',
  4208. enableMock: true,
  4209. mock: '30-80',
  4210. },
  4211. ],
  4212. props: {
  4213. custom: [
  4214. {
  4215. key: 'echarts',
  4216. label: 'echarts配置',
  4217. type: 'code',
  4218. },
  4219. ],
  4220. },
  4221. },
  4222. },
  4223. {
  4224. name: '蓝色科技2',
  4225. icon: 'l-lansekeji2',
  4226. data: {
  4227. width: 300,
  4228. height: 300,
  4229. disableAnchor: true,
  4230. externElement: true,
  4231. name: 'echarts',
  4232. echarts: {
  4233. option: {
  4234. fontSize: 10,
  4235. series: [
  4236. {
  4237. type: 'gauge',
  4238. radius: '60%',
  4239. splitNumber: 10,
  4240. axisLine: {
  4241. lineStyle: {
  4242. color: [[1, 'rgba(107,157,215,.25)']],
  4243. width: 8,
  4244. },
  4245. },
  4246. axisLabel: {
  4247. color: '#4d5bd1',
  4248. distance: 16,
  4249. },
  4250. axisTick: {
  4251. distance: -50,
  4252. splitNumber: 5,
  4253. lineStyle: {
  4254. color: '#468EFD',
  4255. width: 1,
  4256. },
  4257. length: 8,
  4258. },
  4259. splitLine: {
  4260. distance: -58,
  4261. length: 16,
  4262. lineStyle: {
  4263. color: '#468EFD',
  4264. },
  4265. },
  4266. itemStyle: {
  4267. show: false,
  4268. color: '#0c56eb',
  4269. },
  4270. progress: {
  4271. show: true,
  4272. },
  4273. detail: {
  4274. offsetCenter: [0, 50],
  4275. textStyle: {
  4276. padding: [0, 0, 0, 0],
  4277. fontSize: 18,
  4278. fontWeight: '700',
  4279. color: '#0c56eb',
  4280. },
  4281. },
  4282. data: [
  4283. {
  4284. value: 58,
  4285. },
  4286. ],
  4287. pointer: {
  4288. length: '75%',
  4289. radius: '20%',
  4290. width: 5,
  4291. itemStyle: {
  4292. borderWidth: 0,
  4293. },
  4294. },
  4295. },
  4296. ],
  4297. },
  4298. replaceMode: ReplaceMode.Replace,
  4299. },
  4300. realTimes: [
  4301. {
  4302. key: 'echarts.option.series.0.data.0.value',
  4303. label: '值',
  4304. type: 'integer',
  4305. enableMock: true,
  4306. mock: '30-80',
  4307. },
  4308. ],
  4309. props: {
  4310. custom: [
  4311. {
  4312. key: 'echarts',
  4313. label: 'echarts配置',
  4314. type: 'code',
  4315. },
  4316. ],
  4317. },
  4318. },
  4319. },
  4320. {
  4321. name: '蓝色科技3',
  4322. icon: 'l-lansekeji3',
  4323. data: {
  4324. width: 300,
  4325. height: 300,
  4326. disableAnchor: true,
  4327. externElement: true,
  4328. name: 'echarts',
  4329. echarts: {
  4330. option: {
  4331. fontSize: 10,
  4332. series: [
  4333. {
  4334. name: '最外部进度条',
  4335. type: 'gauge',
  4336. radius: '100%',
  4337. z: 3,
  4338. axisLine: {
  4339. lineStyle: {
  4340. color: [[1, 'rgba(28,128,245,0)']],
  4341. width: 3,
  4342. },
  4343. },
  4344. axisLabel: {
  4345. show: false,
  4346. },
  4347. axisTick: {
  4348. show: false,
  4349. },
  4350. splitLine: {
  4351. show: false,
  4352. },
  4353. pointer: {
  4354. show: false,
  4355. },
  4356. progress: {
  4357. show: true,
  4358. width: 5,
  4359. itemStyle: {
  4360. color: 'rgba(133,165,255,0.3)',
  4361. borderWidth: 0,
  4362. },
  4363. },
  4364. detail: {
  4365. offsetCenter: [0, 2],
  4366. textStyle: {
  4367. fontSize: 16,
  4368. fontWeight: 400,
  4369. color: '#EDFFFD',
  4370. },
  4371. },
  4372. data: [
  4373. {
  4374. value: 40,
  4375. },
  4376. ],
  4377. },
  4378. {
  4379. name: '刻度线',
  4380. type: 'gauge',
  4381. radius: '80%',
  4382. splitNumber: 10,
  4383. axisLine: {
  4384. lineStyle: {
  4385. color: [[1, '#0063E7']],
  4386. width: -3,
  4387. },
  4388. },
  4389. axisLabel: {
  4390. color: '#69b1ff',
  4391. distance: 8,
  4392. fontSize: 12,
  4393. },
  4394. axisTick: {
  4395. distance: 6,
  4396. splitNumber: 5,
  4397. lineStyle: {
  4398. color: '#002c8c',
  4399. width: 1,
  4400. },
  4401. length: 4,
  4402. },
  4403. splitLine: {
  4404. distance: 6,
  4405. length: 10,
  4406. lineStyle: {
  4407. color: '#002c8c',
  4408. width: 2,
  4409. },
  4410. },
  4411. progress: {
  4412. show: true,
  4413. width: 60,
  4414. itemStyle: {
  4415. color: 'rgba(145,207,255,0.12)',
  4416. borderWidth: 0,
  4417. },
  4418. },
  4419. detail: {
  4420. show: false,
  4421. },
  4422. pointer: {
  4423. length: '100%',
  4424. radius: '20%',
  4425. width: 3,
  4426. itemStyle: {
  4427. borderWidth: 0,
  4428. color: 'rgba(69,131,255,0.3)',
  4429. },
  4430. },
  4431. anchor: {
  4432. show: true,
  4433. showAbove: true,
  4434. size: 50,
  4435. itemStyle: {
  4436. color: 'rgb(42,65,111)',
  4437. },
  4438. },
  4439. data: [
  4440. {
  4441. value: 40,
  4442. },
  4443. ],
  4444. },
  4445. ],
  4446. },
  4447. replaceMode: ReplaceMode.Replace,
  4448. },
  4449. realTimes: [
  4450. {
  4451. key: 'echarts.option.series.1.data.0.value',
  4452. label: '值',
  4453. type: 'integer',
  4454. enableMock: true,
  4455. mock: '30-80',
  4456. triggers: [
  4457. {
  4458. name: '触发器1',
  4459. conditionType: 'and',
  4460. conditions: [],
  4461. actions: [
  4462. {
  4463. action: 5,
  4464. params: '',
  4465. value:
  4466. "let v = pen.echarts.option.series[1].data[0].value;meta2d.setValue({id:pen.id,'echarts.option.series.0.data.0.value':v},{doEvent:false});",
  4467. targetType: 'id',
  4468. props: [],
  4469. input: '',
  4470. },
  4471. ],
  4472. },
  4473. ],
  4474. },
  4475. ],
  4476. props: {
  4477. custom: [
  4478. {
  4479. key: 'echarts',
  4480. label: 'echarts配置',
  4481. type: 'code',
  4482. },
  4483. ],
  4484. },
  4485. },
  4486. },
  4487. ],
  4488. },
  4489. {
  4490. name: '地图',
  4491. show: true,
  4492. list: [
  4493. {
  4494. name: '中国地图',
  4495. icon: 'l-earth',
  4496. data: {
  4497. name: 'echarts',
  4498. width: 500,
  4499. height: 400,
  4500. externElement: true,
  4501. disableAnchor: true,
  4502. echarts: {
  4503. geoName: 'china',
  4504. geoUrl: 'https://assets.le5lecdn.com/v/geo/china.json',
  4505. option: {
  4506. tooltip: {},
  4507. geo: {
  4508. map: 'china',
  4509. zoom: 1.6,
  4510. center: [105, 35],
  4511. label: {
  4512. normal: {
  4513. show: false,
  4514. },
  4515. emphasis: {
  4516. show: false,
  4517. },
  4518. },
  4519. // 地图区域的样式设置
  4520. itemStyle: {
  4521. normal: {
  4522. borderColor: 'rgba(26,82,231, 1)',
  4523. borderWidth: 1,
  4524. areaColor: 'rgba(7, 52, 126, 0.3)',
  4525. },
  4526. emphasis: {
  4527. areaColor: '#1677ff80',
  4528. borderColor: '#1677ff',
  4529. },
  4530. },
  4531. },
  4532. series: [
  4533. {
  4534. name: '涟漪散点',
  4535. tooltip: {
  4536. show: false,
  4537. },
  4538. type: 'effectScatter',
  4539. coordinateSystem: 'geo',
  4540. data: [{ name: '武汉', value: [114.31, 30.52] }],
  4541. symbolSize: 8,
  4542. showEffectOn: 'render',
  4543. rippleEffect: {
  4544. brushType: 'stroke',
  4545. },
  4546. hoverAnimation: true,
  4547. label: {
  4548. show: true,
  4549. formatter: '{b}',
  4550. position: 'bottom',
  4551. color: 'yellow',
  4552. offset: [0, 4],
  4553. },
  4554. itemStyle: {
  4555. normal: {
  4556. color: 'yellow',
  4557. shadowBlur: 10,
  4558. shadowColor: 'yellow',
  4559. },
  4560. },
  4561. zlevel: 1,
  4562. },
  4563. {
  4564. name: '散点',
  4565. tooltip: {
  4566. show: false,
  4567. },
  4568. type: 'scatter',
  4569. coordinateSystem: 'geo',
  4570. data: [
  4571. { name: '北京', value: [116.4551, 40.2539] },
  4572. { name: '上海', value: [121.4648, 31.2891] },
  4573. { name: '广州', value: [113.12244, 23.009505] },
  4574. { name: '杭州', value: [119.5313, 29.8773] },
  4575. { name: '成都', value: [103.9526, 30.7617] },
  4576. ],
  4577. symbolSize: 8,
  4578. label: {
  4579. show: true,
  4580. formatter: '{b}',
  4581. position: 'bottom',
  4582. color: '#36cfc9',
  4583. offset: [0, -2],
  4584. },
  4585. itemStyle: {
  4586. normal: {
  4587. color: '#36cfc9',
  4588. },
  4589. },
  4590. zlevel: 1,
  4591. },
  4592. {
  4593. name: '数据',
  4594. tooltip: { formatter: '{b}' },
  4595. animation: false,
  4596. type: 'scatter',
  4597. coordinateSystem: 'geo',
  4598. symbol: 'pin',
  4599. symbolSize: 40,
  4600. label: {
  4601. normal: {
  4602. show: true,
  4603. formatter: '{b}',
  4604. textStyle: {
  4605. color: '#fff',
  4606. fontSize: 9,
  4607. },
  4608. },
  4609. },
  4610. itemStyle: {
  4611. normal: {
  4612. color: '#F62157',
  4613. },
  4614. },
  4615. zlevel: 6,
  4616. data: [
  4617. { name: 128, value: [114.31, 30.52] },
  4618. { name: 96, value: [116.4551, 40.2539] },
  4619. { name: 94, value: [121.4648, 31.2891] },
  4620. { name: 86, value: [113.12244, 23.009505] },
  4621. { name: 92, value: [119.5313, 29.8773] },
  4622. { name: 82, value: [103.9526, 30.7617] },
  4623. ],
  4624. },
  4625. ],
  4626. },
  4627. },
  4628. realTimes: [
  4629. {
  4630. key: 'echarts.option.series.2.data.0.name',
  4631. label: '武汉',
  4632. type: 'integer',
  4633. enableMock: true,
  4634. mock: '100-150',
  4635. },
  4636. ],
  4637. props: {
  4638. custom: [
  4639. {
  4640. key: 'echarts',
  4641. label: 'echarts配置',
  4642. type: 'code',
  4643. },
  4644. ],
  4645. },
  4646. },
  4647. },
  4648. {
  4649. name: '湖北地图',
  4650. icon: 'l-hubei',
  4651. data: {
  4652. name: 'echarts',
  4653. width: 500,
  4654. height: 400,
  4655. externElement: true,
  4656. disableAnchor: true,
  4657. echarts: {
  4658. geoName: 'hubei',
  4659. geoUrl: 'https://assets.le5lecdn.com/v/geo/hubei.json',
  4660. option: {
  4661. tooltip: {},
  4662. geo: {
  4663. map: 'hubei',
  4664. zoom: 1.2,
  4665. label: {
  4666. normal: {
  4667. show: false,
  4668. },
  4669. emphasis: {
  4670. show: false,
  4671. },
  4672. },
  4673. // 地图区域的样式设置
  4674. itemStyle: {
  4675. normal: {
  4676. areaColor: {
  4677. x: 0,
  4678. y: 0,
  4679. x2: 0,
  4680. y2: 1,
  4681. colorStops: [
  4682. {
  4683. offset: 0,
  4684. color: '#001d66a0',
  4685. },
  4686. {
  4687. offset: 1,
  4688. color: '#061E3Da0',
  4689. },
  4690. ],
  4691. },
  4692. borderColor: 'rgba(26,82,231, 1)',
  4693. borderWidth: 1,
  4694. },
  4695. emphasis: {
  4696. areaColor: '#1677ff80',
  4697. borderColor: '#1677ff',
  4698. },
  4699. },
  4700. },
  4701. series: [
  4702. {
  4703. name: '涟漪',
  4704. tooltip: {
  4705. show: false,
  4706. },
  4707. type: 'effectScatter',
  4708. coordinateSystem: 'geo',
  4709. data: [
  4710. { name: '武汉', value: [114.31, 30.52] },
  4711. { name: '襄阳', value: [112.12207, 31.933056] },
  4712. { name: '宜昌', value: [111.309082, 30.588625] },
  4713. { name: '荆州', value: [112.24292, 30.266177] },
  4714. ],
  4715. rippleEffect: {
  4716. scale: 10,
  4717. brushType: 'stroke',
  4718. },
  4719. showEffectOn: 'render',
  4720. itemStyle: {
  4721. normal: {
  4722. shadowColor: '#0ff',
  4723. shadowBlur: 10,
  4724. shadowOffsetX: 0,
  4725. shadowOffsetY: 0,
  4726. color: {
  4727. colorStops: [
  4728. {
  4729. offset: 0,
  4730. color: '#61c0f1',
  4731. },
  4732. {
  4733. offset: 1,
  4734. color: '#6f2eb6',
  4735. },
  4736. ],
  4737. x: 1,
  4738. y: 0,
  4739. x2: 0,
  4740. y2: 0,
  4741. type: 'linear',
  4742. global: false,
  4743. },
  4744. },
  4745. },
  4746. label: {
  4747. normal: {
  4748. color: '#fff',
  4749. },
  4750. },
  4751. symbol: 'circle',
  4752. symbolSize: [10, 5],
  4753. },
  4754. {
  4755. tooltip: {
  4756. show: false,
  4757. },
  4758. name: '图标',
  4759. type: 'scatter',
  4760. coordinateSystem: 'geo',
  4761. symbol:
  4762. 'image://https://assets.le5lecdn.com/v%2Fmaterial%2F%E5%B8%B8%E7%94%A8%E5%9B%BE%E6%A0%87%2F%E5%9C%B0%E5%9B%BE%E6%A0%87%E6%B3%A8.svg',
  4763. symbolSize: [32, 32],
  4764. symbolOffset: [0, -20],
  4765. z: 9999,
  4766. data: [
  4767. { name: '武汉', value: [114.31, 30.52] },
  4768. { name: '襄阳', value: [112.12207, 31.933056] },
  4769. { name: '宜昌', value: [111.309082, 30.588625] },
  4770. { name: '荆州', value: [112.24292, 30.266177] },
  4771. ],
  4772. },
  4773. {
  4774. type: 'scatter',
  4775. coordinateSystem: 'geo',
  4776. tooltip: { formatter: '统计:{b}' },
  4777. animation: false,
  4778. label: {
  4779. normal: {
  4780. show: true,
  4781. formatter: '{b}',
  4782. color: '#fff',
  4783. },
  4784. emphasis: {
  4785. show: true,
  4786. },
  4787. },
  4788. itemStyle: {
  4789. color: '#4583ff70',
  4790. },
  4791. symbol:
  4792. 'image://https://assets.le5lecdn.com/v/material/%E9%9D%A2%E6%9D%BF/%E9%9D%A2%E6%9D%BF8.svg',
  4793. symbolSize: [80, 36],
  4794. symbolOffset: [0, -60],
  4795. z: 999,
  4796. data: [
  4797. { name: '2514', value: [114.31, 30.52] },
  4798. { name: '1265', value: [112.12207, 31.933056] },
  4799. { name: '1563', value: [111.309082, 30.588625] },
  4800. { name: '1654', value: [112.24292, 30.266177] },
  4801. ],
  4802. },
  4803. ],
  4804. },
  4805. },
  4806. realTimes: [
  4807. {
  4808. key: 'echarts.option.series.2.data.0.name',
  4809. label: '武汉',
  4810. type: 'integer',
  4811. enableMock: true,
  4812. mock: '2000-3000',
  4813. },
  4814. ],
  4815. props: {
  4816. custom: [
  4817. {
  4818. key: 'echarts',
  4819. label: 'echarts配置',
  4820. type: 'code',
  4821. },
  4822. ],
  4823. },
  4824. },
  4825. },
  4826. {
  4827. name: '地图·流量',
  4828. icon: 'l-dituliuliang',
  4829. data: {
  4830. name: 'echarts',
  4831. width: 500,
  4832. height: 400,
  4833. externElement: true,
  4834. disableAnchor: true,
  4835. echarts: {
  4836. geoName: 'china',
  4837. geoUrl: 'https://assets.le5lecdn.com/v/geo/china.json',
  4838. option: {
  4839. tooltip: {},
  4840. geo: {
  4841. map: 'china',
  4842. zoom: 1.6,
  4843. center: [105, 35],
  4844. label: {
  4845. normal: {
  4846. show: true,
  4847. fontSize: 10,
  4848. textStyle: {
  4849. color: '#fff',
  4850. },
  4851. },
  4852. emphasis: {
  4853. textStyle: {
  4854. color: '#fff',
  4855. },
  4856. },
  4857. },
  4858. // 地图区域的样式设置
  4859. itemStyle: {
  4860. normal: {
  4861. borderColor: 'rgba(26,82,231, 1)',
  4862. borderWidth: 1,
  4863. areaColor: 'rgba(7, 52, 126, 0.3)',
  4864. },
  4865. emphasis: {
  4866. areaColor: '#1677ff80',
  4867. borderColor: '#1677ff',
  4868. },
  4869. },
  4870. },
  4871. series: [
  4872. {
  4873. name: '涟漪散点',
  4874. tooltip: {
  4875. show: false,
  4876. },
  4877. type: 'effectScatter',
  4878. coordinateSystem: 'geo',
  4879. data: [
  4880. {
  4881. value: [118.8062, 31.9208],
  4882. itemStyle: { color: '#4ab2e5' },
  4883. },
  4884. {
  4885. value: [127.9688, 45.368],
  4886. itemStyle: { color: '#4fb6d2' },
  4887. },
  4888. {
  4889. value: [110.3467, 41.4899],
  4890. itemStyle: { color: '#52b9c7' },
  4891. },
  4892. {
  4893. value: [125.8154, 44.2584],
  4894. itemStyle: { color: '#5abead' },
  4895. },
  4896. {
  4897. value: [116.4551, 40.2539],
  4898. itemStyle: { color: '#f34e2b' },
  4899. },
  4900. {
  4901. value: [123.1238, 42.1216],
  4902. itemStyle: { color: '#f56321' },
  4903. },
  4904. {
  4905. value: [119.4543, 25.9222],
  4906. itemStyle: { color: '#f56f1c' },
  4907. },
  4908. {
  4909. value: [117.4219, 39.4189],
  4910. itemStyle: { color: '#f58414' },
  4911. },
  4912. {
  4913. value: [112.3352, 37.9413],
  4914. itemStyle: { color: '#f58f0e' },
  4915. },
  4916. {
  4917. value: [109.1162, 34.2004],
  4918. itemStyle: { color: '#f5a305' },
  4919. },
  4920. {
  4921. value: [103.5901, 36.3043],
  4922. itemStyle: { color: '#e7ab0b' },
  4923. },
  4924. {
  4925. value: [106.3586, 38.1775],
  4926. itemStyle: { color: '#dfae10' },
  4927. },
  4928. {
  4929. value: [101.4038, 36.8207],
  4930. itemStyle: { color: '#d5b314' },
  4931. },
  4932. {
  4933. value: [103.9526, 30.7617],
  4934. itemStyle: { color: '#c1bb1f' },
  4935. },
  4936. {
  4937. value: [108.384366, 30.439702],
  4938. itemStyle: { color: '#b9be23' },
  4939. },
  4940. {
  4941. value: [113.0823, 28.2568],
  4942. itemStyle: { color: '#a6c62c' },
  4943. },
  4944. {
  4945. value: [102.9199, 25.46639],
  4946. itemStyle: { color: '#96cc34' },
  4947. },
  4948. { value: [114.31, 30.52] },
  4949. ],
  4950. symbolSize: 8,
  4951. showEffectOn: 'render',
  4952. rippleEffect: {
  4953. brushType: 'stroke',
  4954. },
  4955. hoverAnimation: true,
  4956. label: {
  4957. show: true,
  4958. formatter: '{b}',
  4959. position: 'bottom',
  4960. color: 'yellow',
  4961. offset: [0, 4],
  4962. },
  4963. itemStyle: {
  4964. normal: {
  4965. color: '#1DE9B6',
  4966. shadowBlur: 10,
  4967. shadowColor: '#333',
  4968. },
  4969. },
  4970. zlevel: 1,
  4971. },
  4972. {
  4973. type: 'lines',
  4974. zlevel: 2,
  4975. effect: {
  4976. show: true,
  4977. period: 4, //箭头指向速度,值越小速度越快
  4978. trailLength: 0.4, //特效尾迹长度[0,1]值越大,尾迹越长重
  4979. symbol: 'arrow', //箭头图标
  4980. symbolSize: 7, //图标大小
  4981. },
  4982. lineStyle: {
  4983. normal: {
  4984. color: '#1DE9B6',
  4985. width: 1,
  4986. opacity: 0.1, //尾迹线条透明度
  4987. curveness: 0.3, //尾迹线条曲直度
  4988. },
  4989. },
  4990. data: [
  4991. {
  4992. coords: [
  4993. [118.8062, 31.9208],
  4994. [114.31, 30.52],
  4995. ],
  4996. lineStyle: { color: '#4ab2e5' },
  4997. },
  4998. {
  4999. coords: [
  5000. [127.9688, 45.368],
  5001. [114.31, 30.52],
  5002. ],
  5003. lineStyle: { color: '#4fb6d2' },
  5004. },
  5005. {
  5006. coords: [
  5007. [110.3467, 41.4899],
  5008. [114.31, 30.52],
  5009. ],
  5010. lineStyle: { color: '#52b9c7' },
  5011. },
  5012. {
  5013. coords: [
  5014. [125.8154, 44.2584],
  5015. [114.31, 30.52],
  5016. ],
  5017. lineStyle: { color: '#5abead' },
  5018. },
  5019. {
  5020. coords: [
  5021. [116.4551, 40.2539],
  5022. [114.31, 30.52],
  5023. ],
  5024. lineStyle: { color: '#f34e2b' },
  5025. },
  5026. {
  5027. coords: [
  5028. [123.1238, 42.1216],
  5029. [114.31, 30.52],
  5030. ],
  5031. lineStyle: { color: '#f56321' },
  5032. },
  5033. {
  5034. coords: [
  5035. [119.4543, 25.9222],
  5036. [114.31, 30.52],
  5037. ],
  5038. lineStyle: { color: '#f56f1c' },
  5039. },
  5040. {
  5041. coords: [
  5042. [117.4219, 39.4189],
  5043. [114.31, 30.52],
  5044. ],
  5045. lineStyle: { color: '#f58414' },
  5046. },
  5047. {
  5048. coords: [
  5049. [112.3352, 37.9413],
  5050. [114.31, 30.52],
  5051. ],
  5052. lineStyle: { color: '#f58f0e' },
  5053. },
  5054. {
  5055. coords: [
  5056. [109.1162, 34.2004],
  5057. [114.31, 30.52],
  5058. ],
  5059. lineStyle: { color: '#f5a305' },
  5060. },
  5061. {
  5062. coords: [
  5063. [103.5901, 36.3043],
  5064. [114.31, 30.52],
  5065. ],
  5066. lineStyle: { color: '#e7ab0b' },
  5067. },
  5068. {
  5069. coords: [
  5070. [106.3586, 38.1775],
  5071. [114.31, 30.52],
  5072. ],
  5073. lineStyle: { color: '#dfae10' },
  5074. },
  5075. {
  5076. coords: [
  5077. [101.4038, 36.8207],
  5078. [114.31, 30.52],
  5079. ],
  5080. lineStyle: { color: '#d5b314' },
  5081. },
  5082. {
  5083. coords: [
  5084. [103.9526, 30.7617],
  5085. [114.31, 30.52],
  5086. ],
  5087. lineStyle: { color: '#c1bb1f' },
  5088. },
  5089. {
  5090. coords: [
  5091. [108.384366, 30.439702],
  5092. [114.31, 30.52],
  5093. ],
  5094. lineStyle: { color: '#b9be23' },
  5095. },
  5096. {
  5097. coords: [
  5098. [113.0823, 28.2568],
  5099. [114.31, 30.52],
  5100. ],
  5101. lineStyle: { color: '#a6c62c' },
  5102. },
  5103. {
  5104. coords: [
  5105. [102.9199, 25.46639],
  5106. [114.31, 30.52],
  5107. ],
  5108. lineStyle: { color: '#96cc34' },
  5109. },
  5110. ],
  5111. },
  5112. ],
  5113. },
  5114. },
  5115. realTimes: [
  5116. {
  5117. key: 'echarts.option.series.2.data.0.name',
  5118. label: '武汉',
  5119. type: 'integer',
  5120. // enableMock: true,
  5121. // mock: '100-150',
  5122. },
  5123. ],
  5124. props: {
  5125. custom: [
  5126. {
  5127. key: 'echarts',
  5128. label: 'echarts配置',
  5129. type: 'code',
  5130. },
  5131. ],
  5132. },
  5133. },
  5134. },
  5135. ],
  5136. },
  5137. {
  5138. name: '乐吾乐Charts',
  5139. show: true,
  5140. list: [
  5141. {
  5142. name: '折线图',
  5143. icon: 'l-line-chart',
  5144. data: {
  5145. name: 'lineChart',
  5146. width: 400,
  5147. disableAnchor: true,
  5148. height: 200,
  5149. chartsColor: [
  5150. '#1890ff',
  5151. '#2FC25B',
  5152. '#FACC14',
  5153. '#c23531',
  5154. '#2f4554',
  5155. '#61a0a8',
  5156. '#d48265',
  5157. ],
  5158. xAxisData: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
  5159. smooth: true,
  5160. data: [
  5161. [1820, 1932, 1901, 1934, 1990, 1830, 1920],
  5162. [1710, 1932, 1901, 1834, 1700, 1830, 1720],
  5163. ],
  5164. },
  5165. },
  5166. {
  5167. name: '柱状图',
  5168. icon: 'l-bar-chart',
  5169. data: {
  5170. name: 'histogram',
  5171. x: 600,
  5172. y: 100,
  5173. width: 400,
  5174. height: 200,
  5175. disableAnchor: true,
  5176. chartsColor: [
  5177. '#1890ff',
  5178. '#2FC25B',
  5179. '#FACC14',
  5180. '#c23531',
  5181. '#2f4554',
  5182. '#61a0a8',
  5183. '#d48265',
  5184. ],
  5185. xAxisData: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
  5186. data: [
  5187. [120, 200, 150, 80, 70, 110, 130],
  5188. [140, 250, 150, 80, 60, 10, 30],
  5189. [40, 50, 180, 210, 60, 70, 30],
  5190. ],
  5191. },
  5192. },
  5193. {
  5194. name: '饼图',
  5195. icon: 'l-pie-chart',
  5196. data: {
  5197. name: 'pieChart',
  5198. x: 100,
  5199. y: 300,
  5200. width: 400,
  5201. height: 200,
  5202. disableAnchor: true,
  5203. chartsColor: [
  5204. '#1890ff',
  5205. '#36CBCB',
  5206. '#2FC25B',
  5207. '#FACC14',
  5208. '#F2637B',
  5209. '#fc8452',
  5210. '#9a60b4',
  5211. '#ea7ccc',
  5212. ],
  5213. data: [
  5214. [
  5215. { value: 1048, name: 'Search Engine' },
  5216. { value: 735, name: 'Direct' },
  5217. { value: 580, name: 'Email' },
  5218. { value: 484, name: 'Union Ads' },
  5219. { value: 300, name: 'Video Ads' },
  5220. ],
  5221. [
  5222. { value: 1548, name: 'Search' },
  5223. { value: 775, name: 'Direct' },
  5224. { value: 679, name: 'Market' },
  5225. ],
  5226. ],
  5227. chartsRadius: [
  5228. ['60%', '70%'],
  5229. ['0%', '50%'],
  5230. ],
  5231. },
  5232. },
  5233. {
  5234. name: '仪表盘',
  5235. icon: 'l-dashboard-chart',
  5236. data: {
  5237. name: 'gauge',
  5238. x: 600,
  5239. y: 300,
  5240. width: 400,
  5241. height: 400,
  5242. disableAnchor: true,
  5243. value: 90,
  5244. unit: 'm/s',
  5245. axisLine: [
  5246. [0.3, '#67e0e3'],
  5247. [0.7, '#37a2da'],
  5248. [1, '#fd666d'],
  5249. ],
  5250. animateCycle: 1,
  5251. keepAnimateState: 0,
  5252. },
  5253. },
  5254. {
  5255. name: '时钟',
  5256. icon: 'l-07',
  5257. data: {
  5258. name: 'gauge',
  5259. x: 600,
  5260. y: 300,
  5261. width: 400,
  5262. height: 400,
  5263. disableAnchor: true,
  5264. isClock: true,
  5265. startAngle: 90,
  5266. endAngle: -270,
  5267. min: 0,
  5268. max: 12,
  5269. splitNumber: 12,
  5270. background: '#3A3A3A',
  5271. color: '#C0911F',
  5272. },
  5273. },
  5274. ],
  5275. },
  5276. ];