echarts.ts 160 KB

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