echarts.ts 205 KB

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