echarts.ts 211 KB

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