echarts.ts 200 KB

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