echarts.ts 206 KB

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