allTypesOfAnalysisData.js 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693
  1. import { color } from "echarts";
  2. import { width } from "tailwindcss/defaultTheme";
  3. export const allTypesDatas = [
  4. {
  5. //总图分图都存在
  6. analysisTypeName: "大部件温度传感器分析",
  7. //多种类型的分析结果图 需要单独一个组件生成
  8. // "title": "齿轮箱中速轴温度分布",
  9. analysisTypeCode: "temperature_large_components",
  10. modeType: "lines",
  11. graphType: "scatter",
  12. xLable: "功率(kW)",
  13. yLable: "温度(℃)",
  14. com: "lineChart",
  15. chartsType: [
  16. {
  17. name: "总图",
  18. filesType: "line",
  19. children: [
  20. {
  21. name: "齿轮箱高速轴温度",
  22. filesType: "line",
  23. },
  24. {
  25. name: "齿轮箱低速轴温度",
  26. filesType: "line",
  27. },
  28. {
  29. name: "发电机驱动端轴承温度",
  30. filesType: "line",
  31. },
  32. {
  33. name: "发电机非驱动端轴承温度",
  34. filesType: "line",
  35. },
  36. {
  37. name: "主轴承温度",
  38. filesType: "line",
  39. },
  40. ],
  41. },
  42. {
  43. name: "分图",
  44. filesType: "line",
  45. children: [
  46. {
  47. name: "主轴承温度",
  48. filesType: "line",
  49. },
  50. {
  51. name: "齿轮箱高速轴温度",
  52. filesType: "line",
  53. },
  54. {
  55. name: "齿轮箱低速轴温度",
  56. filesType: "line",
  57. },
  58. {
  59. name: "发电机驱动端轴承温度",
  60. filesType: "line",
  61. },
  62. {
  63. name: "发电机非驱动端轴承温度",
  64. filesType: "line",
  65. },
  66. {
  67. name: "发电机绕组温度",
  68. filesType: "line",
  69. },
  70. {
  71. name: "发电机温度偏差:",
  72. filesType: "line",
  73. line_dash: [
  74. {
  75. name: "DE Bearing Temperature",
  76. color: "blue",
  77. // dash: undefined,
  78. },
  79. {
  80. name: "NDE Bearing Temperature",
  81. color: "green",
  82. // dash: undefined,
  83. },
  84. {
  85. name: "DE Temp. BIAS",
  86. color: "blue",
  87. dash: "dot",
  88. },
  89. {
  90. name: "NDE Temp. BIAS",
  91. color: "green",
  92. dash: "dot",
  93. },
  94. {
  95. name: "DE-NDE Temp. BIAS",
  96. color: "black",
  97. dash: "dash",
  98. },
  99. {
  100. name: "Nacelle Temperature",
  101. color: "orange",
  102. // dash: undefined,
  103. },
  104. ],
  105. lableConfig: {
  106. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  107. xaxis: {
  108. title: "功率",
  109. gridcolor: "rgb(255,255,255)",
  110. showgrid: true,
  111. zeroline: false,
  112. ticklen: 5,
  113. gridwidth: 1, // 网格线宽度
  114. tickcolor: "rgb(255,255,255)",
  115. // tickangle: -45, // 设置x轴标签倾斜45度
  116. },
  117. yaxis: {
  118. title: "轴承温度 & 偏差",
  119. gridcolor: "rgb(255,255,255)",
  120. showgrid: true,
  121. zeroline: false,
  122. tickcolor: "rgb(255,255,255)",
  123. ticklen: 5,
  124. gridwidth: 1, // 网格线宽度
  125. },
  126. showlegend: true, // 显示图例
  127. legend: {
  128. // 设置图例的X轴和Y轴锚点
  129. // 控制图例在X轴上的位置,1是最右边,1.05有间距
  130. // 控制图例在Y轴上的位置,0.5表示垂直居中
  131. // xanchor: "left", // 图例以左边为锚点,确保有右边间距
  132. // yanchor: "middle", // 图例以中间为锚点,垂直居中
  133. // 控制图例的边距
  134. x: 1.1, // 控制图例在X轴上的位置,1是最右边,1.05有间距
  135. y: 0.5, // 控制图例在Y轴上的位置,0.5表示垂直居中
  136. xanchor: "left", // 图例以左边为锚点,确保有右边间距
  137. yanchor: "middle", // 图例以中间为锚点,垂直居中
  138. title: {
  139. text: "温度 & 偏差", // 图例的标题
  140. },
  141. },
  142. margin: {
  143. r: 200,
  144. },
  145. shapes: [
  146. {
  147. type: "line",
  148. x0: 0,
  149. x1: 1,
  150. y0: 5,
  151. y1: 5,
  152. xref: "paper",
  153. line: { dash: "dot", color: "#FFDB58" },
  154. },
  155. {
  156. type: "line",
  157. x0: 0,
  158. x1: 1,
  159. y0: -5,
  160. y1: -5,
  161. xref: "paper",
  162. line: { dash: "dot", color: "#FFDB58" },
  163. },
  164. {
  165. type: "line",
  166. x0: 0,
  167. x1: 1,
  168. y0: 15,
  169. y1: 15,
  170. xref: "paper",
  171. line: { dash: "dot", color: "red" },
  172. },
  173. {
  174. type: "line",
  175. x0: 0,
  176. x1: 1,
  177. y0: -15,
  178. y1: -15,
  179. xref: "paper",
  180. line: { dash: "dot", color: "red" },
  181. },
  182. ],
  183. autosize: true, // 自适应
  184. },
  185. },
  186. ],
  187. },
  188. ],
  189. lableConfig: {
  190. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  191. xaxis: {
  192. title: "功率",
  193. gridcolor: "rgb(255,255,255)",
  194. showgrid: true,
  195. zeroline: false,
  196. ticklen: 5,
  197. gridwidth: 1, // 网格线宽度
  198. tickcolor: "rgb(255,255,255)",
  199. // tickangle: -45, // 设置x轴标签倾斜45度
  200. },
  201. yaxis: {
  202. title: "温度",
  203. gridcolor: "rgb(255,255,255)",
  204. showgrid: true,
  205. zeroline: false,
  206. tickcolor: "rgb(255,255,255)",
  207. ticklen: 5,
  208. gridwidth: 1, // 网格线宽度
  209. },
  210. legend: {
  211. orientation: "h",
  212. xanchor: "center",
  213. x: 0.5,
  214. y: -0.2,
  215. },
  216. // 添加边框
  217. annotations: [], // 初始化注释数组
  218. },
  219. },
  220. {
  221. //只有分图
  222. analysisTypeName: "变桨和有功功率协调性分析",
  223. // "title": "月度发电机转速功率散点图",
  224. analysisTypeCode: "pitch_power",
  225. modeType: "markers",
  226. graphType: "scatter", //动态渲染时要判断变动
  227. xLable: "功率(kW)",
  228. yLable: "桨距角(°)",
  229. x3DLable: "桨距角(°)",
  230. y3DLable: "时间",
  231. z3DLable: "功率(kW)", //判断z轴存不存在,存在数据需要使用3D 散点进行展示,否则默认展示平面
  232. com: "MarkersCharts",
  233. chartsType: [
  234. {
  235. name: "分图",
  236. filesType: "2D",
  237. },
  238. {
  239. name: "分图",
  240. filesType: "3D",
  241. },
  242. ],
  243. "2DConfig": {
  244. marker: {
  245. color: [1, 2, 3, 4, 5],
  246. colorscale: "Rainbow",
  247. size: 3,
  248. opacity: 0.7,
  249. colorbar: {
  250. tickvals: [1, 2, 3, 4, 5],
  251. ticktext: [],
  252. thickness: 18,
  253. len: 1,
  254. outlinecolor: "rgba(255,255,255,0)",
  255. },
  256. showscale: true,
  257. },
  258. mode: "markers",
  259. type: "scatter",
  260. },
  261. "2DLayoutConfig": {
  262. title: { text: "机组", x: 0.5 },
  263. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  264. xaxis: {
  265. // "title": "发电机转速",
  266. title: "功率",
  267. dtick: 100,
  268. tickangle: -45,
  269. gridcolor: "rgb(255,255,255)",
  270. showgrid: true,
  271. zeroline: false,
  272. ticklen: 5,
  273. gridwidth: 1, // 网格线宽度
  274. tickcolor: "rgb(255,255,255)",
  275. },
  276. yaxis: {
  277. // "title": "Power",
  278. title: "桨距角",
  279. dtick: 100,
  280. // range: [0, 5000],
  281. gridcolor: "rgb(255,255,255)",
  282. showgrid: true,
  283. zeroline: false,
  284. tickcolor: "rgb(255,255,255)",
  285. ticklen: 5,
  286. gridwidth: 1, // 网格线宽度
  287. },
  288. },
  289. "3DConfig": {
  290. x: [],
  291. y: [],
  292. z: [],
  293. marker: {
  294. size: 1.5,
  295. symbol: "circle",
  296. },
  297. type: "scatter3d",
  298. mode: "markers",
  299. },
  300. "3DLayoutConfig": {
  301. title: { text: "月度桨距角功率3D散点图", x: 0.5 },
  302. scene: {
  303. xaxis: {
  304. title: "桨距角",
  305. dtick: 100,
  306. gridcolor: "rgb(255,255,255)",
  307. showgrid: true,
  308. zeroline: false,
  309. ticklen: 5,
  310. gridwidth: 1, // 网格线宽度
  311. tickcolor: "rgb(255,255,255)",
  312. backgroundcolor: "#e5ecf6",
  313. showbackground: true, // 显示背景
  314. },
  315. yaxis: {
  316. title: "时间",
  317. gridcolor: "rgb(255,255,255)",
  318. showgrid: true,
  319. zeroline: false,
  320. ticklen: 5,
  321. gridwidth: 1, // 网格线宽度
  322. tickcolor: "rgb(255,255,255)",
  323. backgroundcolor: "#e5ecf6",
  324. showbackground: true, // 显示背景
  325. },
  326. zaxis: {
  327. title: "功率",
  328. dtick: 100,
  329. gridcolor: "rgb(255,255,255)",
  330. showgrid: true,
  331. zeroline: false,
  332. ticklen: 5,
  333. gridwidth: 1, // 网格线宽度
  334. tickcolor: "rgb(255,255,255)",
  335. backgroundcolor: "#e5ecf6",
  336. showbackground: true, // 显示背景
  337. },
  338. },
  339. legend: {
  340. orientation: "h",
  341. xanchor: "center",
  342. x: 0.5,
  343. y: -0.1,
  344. itemsizing: "constant",
  345. },
  346. },
  347. "3DColors": [
  348. "#636EFA",
  349. "#EF553B",
  350. "#00CC96",
  351. "#AB63FA",
  352. "#FFA15A",
  353. "#19D3F3",
  354. "#FF6692",
  355. "#B6E880",
  356. "#FF97FF",
  357. "#FECB52",
  358. "#636EFB",
  359. "#EF553C",
  360. "#00CC97",
  361. "#AB63FB",
  362. "#FFA15B",
  363. "#19D3F4",
  364. "#FF6693",
  365. "#B6E881",
  366. "#FF97FE",
  367. "#FECB51",
  368. "#1F77B4",
  369. "#FF7F0E",
  370. "#2CA02C",
  371. "#D62728",
  372. "#9467BD",
  373. "#8C564B",
  374. "#E377C2",
  375. "#7F7F7F",
  376. "#BCBD22",
  377. "#17BECF",
  378. "#1A55F2",
  379. "#FF5733",
  380. "#33FF57",
  381. "#3375FF",
  382. "#FF33A6",
  383. "#FF5733",
  384. "#57FF33",
  385. "#FF3380",
  386. "#80FF33",
  387. "#3380FF",
  388. "#FF8033",
  389. "#57FF80",
  390. "#3380FF",
  391. "#8033FF",
  392. "#FF3380",
  393. "#FF57D7",
  394. "#FFD733",
  395. "#33FFD7",
  396. "#D733FF",
  397. "#8033FF",
  398. "#3380FF",
  399. "#FF3380",
  400. "#D7FF33",
  401. "#FF8033",
  402. "#33FF57",
  403. "#33D7FF",
  404. "#FF5733",
  405. "#33D7FF",
  406. "#33FF57",
  407. "#57D7FF",
  408. ],
  409. },
  410. {
  411. //分图-
  412. analysisTypeName: "变桨和叶尖速比及风能利用系数分析",
  413. analysisTypeCode: "pitch_tsr_cp",
  414. modeType: "markers",
  415. graphType: "scatter2D",
  416. xLable: "叶尖速比",
  417. yLable: "风能利用系数",
  418. zLable: "",
  419. com: "MarkersCharts",
  420. chartsType: [
  421. {
  422. name: "分图",
  423. filesType: "2D",
  424. },
  425. ],
  426. "2DConfig": {
  427. mode: "markers",
  428. },
  429. "2DLayoutConfig": {
  430. plot_bgcolor: "#e5ecf6",
  431. title: "风能利用系数 vs. 叶尖速比 :",
  432. xaxis: {
  433. title: "叶尖速比",
  434. range: [5, 20],
  435. gridcolor: "rgb(255,255,255)",
  436. showgrid: true,
  437. zeroline: false,
  438. ticklen: 5,
  439. gridwidth: 1, // 网格线宽度
  440. tickcolor: "rgb(255,255,255)",
  441. },
  442. yaxis: {
  443. title: "风能利用系数",
  444. range: [0, 1],
  445. gridcolor: "rgb(255,255,255)",
  446. showgrid: true,
  447. zeroline: false,
  448. ticklen: 5,
  449. gridwidth: 1, // 网格线宽度
  450. tickcolor: "rgb(255,255,255)",
  451. },
  452. legend: {
  453. title: {
  454. text: "桨距角", // 图例的标题
  455. },
  456. // "itemsizing": "constant",//不确定
  457. // "itemwidth": 80
  458. },
  459. },
  460. },
  461. {
  462. //只有分图,散点
  463. analysisTypeName: "逐月有功功率散点3D分析",
  464. analysisTypeCode: "power_scatter",
  465. title: "当月发电量",
  466. modeType: "markers",
  467. graphType: "scatter3D",
  468. xLable: "风速(m/s)",
  469. yLable: "时间",
  470. zLable: "功率(kW)",
  471. chartsType: [
  472. {
  473. name: "分图",
  474. filesType: "3D",
  475. },
  476. ],
  477. com: "MarkersCharts",
  478. lableConfig: {
  479. title: "当月发电量:",
  480. scene: {
  481. xaxis: {
  482. title: "风速",
  483. dtick: 100,
  484. gridcolor: "rgb(255,255,255)", // 网格线颜色
  485. showgrid: true,
  486. zeroline: false,
  487. ticklen: 5,
  488. gridwidth: 1, // 网格线宽度
  489. tickcolor: "rgb(255,255,255)",
  490. backgroundcolor: "#e5ecf6",
  491. showbackground: true, // 显示背景
  492. },
  493. yaxis: {
  494. title: "时间",
  495. gridcolor: "rgb(255,255,255)", // 网格线颜色
  496. showgrid: true,
  497. zeroline: false,
  498. ticklen: 5,
  499. gridwidth: 1, // 网格线宽度
  500. tickcolor: "rgb(255,255,255)",
  501. backgroundcolor: "#e5ecf6",
  502. showbackground: true, // 显示背景
  503. },
  504. zaxis: {
  505. title: "功率",
  506. dtick: 100,
  507. gridcolor: "rgb(255,255,255)", // 网格线颜色
  508. showgrid: true,
  509. zeroline: false,
  510. ticklen: 5,
  511. gridwidth: 1, // 网格线宽度
  512. tickcolor: "rgb(255,255,255)",
  513. backgroundcolor: "#e5ecf6",
  514. showbackground: true, // 显示背景
  515. },
  516. },
  517. legend: {
  518. orientation: "h",
  519. xanchor: "center",
  520. x: 0.5,
  521. y: -0.1,
  522. itemsizing: "constant",
  523. },
  524. },
  525. colors: [
  526. "#636EFA",
  527. "#EF553B",
  528. "#00CC96",
  529. "#AB63FA",
  530. "#FFA15A",
  531. "#19D3F3",
  532. "#FF6692",
  533. "#B6E880",
  534. "#FF97FF",
  535. "#FECB52",
  536. "#636EFB",
  537. "#EF553C",
  538. "#00CC97",
  539. "#AB63FB",
  540. "#FFA15B",
  541. "#19D3F4",
  542. "#FF6693",
  543. "#B6E881",
  544. "#FF97FE",
  545. "#FECB51",
  546. "#1F77B4",
  547. "#FF7F0E",
  548. "#2CA02C",
  549. "#D62728",
  550. "#9467BD",
  551. "#8C564B",
  552. "#E377C2",
  553. "#7F7F7F",
  554. "#BCBD22",
  555. "#17BECF",
  556. "#1A55F2",
  557. "#FF5733",
  558. "#33FF57",
  559. "#3375FF",
  560. "#FF33A6",
  561. "#FF5733",
  562. "#57FF33",
  563. "#FF3380",
  564. "#80FF33",
  565. "#3380FF",
  566. "#FF8033",
  567. "#57FF80",
  568. "#3380FF",
  569. "#8033FF",
  570. "#FF3380",
  571. "#FF57D7",
  572. "#FFD733",
  573. "#33FFD7",
  574. "#D733FF",
  575. "#8033FF",
  576. "#3380FF",
  577. "#FF3380",
  578. "#D7FF33",
  579. "#FF8033",
  580. "#33FF57",
  581. "#33D7FF",
  582. "#FF5733",
  583. "#33D7FF",
  584. "#33FF57",
  585. "#57D7FF",
  586. ],
  587. },
  588. {
  589. //改
  590. //总图分图都有
  591. analysisTypeName: "发电机转速和有功功率分析",
  592. analysisTypeCode: "speed_power",
  593. title: "风力发电机转速功率3D散点图-",
  594. modeType: "markers",
  595. graphType: "scatter3d",
  596. xLable: "发电机速度",
  597. yLable: "涡轮",
  598. zLable: "功率",
  599. com: "MarkersCharts",
  600. chartsType: [
  601. {
  602. name: "总图",
  603. filesType: "3D",
  604. },
  605. {
  606. name: "分图",
  607. filesType: "2D",
  608. },
  609. {
  610. name: "分图",
  611. filesType: "3D",
  612. },
  613. ],
  614. "2DConfig": {
  615. marker: {
  616. color: [1, 2, 3, 4, 5],
  617. colorscale: "Rainbow",
  618. size: 3,
  619. opacity: 0.7,
  620. colorbar: {
  621. tickvals: [1, 2, 3, 4, 5],
  622. ticktext: [],
  623. thickness: 18,
  624. len: 1,
  625. outlinecolor: "rgba(255,255,255,0)",
  626. },
  627. showscale: true,
  628. },
  629. mode: "markers",
  630. type: "scatter",
  631. },
  632. "2DLayoutConfig": {
  633. title: "月度发电机转速功率2D散点图",
  634. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  635. xaxis: {
  636. title: "发电机转速",
  637. dtick: 100,
  638. // range: [0, 1800],
  639. tickangle: -45,
  640. tickcolor: "rgb(255,255,255)",
  641. },
  642. yaxis: {
  643. title: "功率",
  644. dtick: 100,
  645. // range: [0, 5000],
  646. tickcolor: "rgb(255,255,255)",
  647. },
  648. },
  649. "3DConfig": {
  650. x: [],
  651. y: [],
  652. z: [],
  653. marker: {
  654. size: 1.5,
  655. symbol: "circle",
  656. },
  657. type: "scatter3d",
  658. mode: "markers",
  659. },
  660. "3DLayoutConfig": {
  661. zongtitle: "风机发电机转速功率3D散点图",
  662. fentitle: "月度发电机转速功率3D散点图",
  663. scene: {
  664. xaxis: {
  665. zongtitle: "发电机转速",
  666. fentitle: "发电机转速",
  667. dtick: 100,
  668. gridcolor: "rgb(255,255,255)", // 网格线颜色
  669. showgrid: true,
  670. zeroline: false,
  671. ticklen: 5,
  672. gridwidth: 1, // 网格线宽度
  673. tickcolor: "rgb(255,255,255)",
  674. backgroundcolor: "#e5ecf6",
  675. showbackground: true, // 显示背景
  676. },
  677. yaxis: {
  678. zongtitle: "机组",
  679. fentitle: "时间",
  680. gridcolor: "rgb(255,255,255)", // 网格线颜色
  681. showgrid: true,
  682. zeroline: false,
  683. ticklen: 5,
  684. gridwidth: 1, // 网格线宽度
  685. tickcolor: "rgb(255,255,255)",
  686. backgroundcolor: "#e5ecf6",
  687. showbackground: true, // 显示背景
  688. },
  689. zaxis: {
  690. fentitle: "功率",
  691. zongtitle: "功率",
  692. dtick: 100,
  693. gridcolor: "rgb(255,255,255)", // 网格线颜色
  694. showgrid: true,
  695. zeroline: false,
  696. ticklen: 5,
  697. gridwidth: 1, // 网格线宽度
  698. tickcolor: "rgb(255,255,255)",
  699. backgroundcolor: "#e5ecf6",
  700. showbackground: true, // 显示背景
  701. },
  702. },
  703. legend: {
  704. orientation: "h",
  705. xanchor: "center",
  706. x: 0.5,
  707. y: -0.1,
  708. itemsizing: "constant",
  709. },
  710. },
  711. "3DColors": [
  712. "#636EFA",
  713. "#EF553B",
  714. "#00CC96",
  715. "#AB63FA",
  716. "#FFA15A",
  717. "#19D3F3",
  718. "#FF6692",
  719. "#B6E880",
  720. "#FF97FF",
  721. "#FECB52",
  722. "#636EFB",
  723. "#EF553C",
  724. "#00CC97",
  725. "#AB63FB",
  726. "#FFA15B",
  727. "#19D3F4",
  728. "#FF6693",
  729. "#B6E881",
  730. "#FF97FE",
  731. "#FECB51",
  732. "#1F77B4",
  733. "#FF7F0E",
  734. "#2CA02C",
  735. "#D62728",
  736. "#9467BD",
  737. "#8C564B",
  738. "#E377C2",
  739. "#7F7F7F",
  740. "#BCBD22",
  741. "#17BECF",
  742. "#1A55F2",
  743. "#FF5733",
  744. "#33FF57",
  745. "#3375FF",
  746. "#FF33A6",
  747. "#FF5733",
  748. "#57FF33",
  749. "#FF3380",
  750. "#80FF33",
  751. "#3380FF",
  752. "#FF8033",
  753. "#57FF80",
  754. "#3380FF",
  755. "#8033FF",
  756. "#FF3380",
  757. "#FF57D7",
  758. "#FFD733",
  759. "#33FFD7",
  760. "#D733FF",
  761. "#8033FF",
  762. "#3380FF",
  763. "#FF3380",
  764. "#D7FF33",
  765. "#FF8033",
  766. "#33FF57",
  767. "#33D7FF",
  768. "#FF5733",
  769. "#33D7FF",
  770. "#33FF57",
  771. "#57D7FF",
  772. ],
  773. },
  774. {
  775. analysisTypeName: "有功功率曲线分析",
  776. analysisTypeCode: "power_curve",
  777. title: "XXX机型的功率曲线图",
  778. modeType: "lines",
  779. graphType: "scatter",
  780. xLable: "风速(m/s)",
  781. yLable: "功率(kW)",
  782. powerConfig: {
  783. //合同有功功率曲线值
  784. mode: "lines+markers",
  785. name: "Contract Guarantee",
  786. line: {
  787. color: "red",
  788. },
  789. marker: {
  790. color: "red",
  791. size: 5,
  792. },
  793. },
  794. config: null,
  795. com: "lineAndChildLine",
  796. lableConfig: {
  797. title: {
  798. text: "",
  799. x: 0.5,
  800. },
  801. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  802. xaxis: {
  803. title: "风速(m/s)",
  804. range: [0, 26],
  805. tickmode: "linear",
  806. gridcolor: "rgb(255,255,255)",
  807. showgrid: true,
  808. zeroline: false,
  809. tickcolor: "rgb(255,255,255)",
  810. dtick: 1,
  811. tickangle: -45,
  812. },
  813. yaxis: {
  814. title: "功率(kW)",
  815. gridcolor: "rgb(255,255,255)",
  816. showgrid: true,
  817. zeroline: false,
  818. tickcolor: "rgb(255,255,255)",
  819. },
  820. legend: {
  821. orientation: "h",
  822. xanchor: "center",
  823. x: 0.5,
  824. y: -0.2,
  825. },
  826. },
  827. colors: [
  828. "#636EFA",
  829. "#EF553B",
  830. "#00CC96",
  831. "#AB63FA",
  832. "#FFA15A",
  833. "#19D3F3",
  834. "#FF6692",
  835. "#B6E880",
  836. "#FF97FF",
  837. "#FECB52",
  838. "#636EFB",
  839. "#EF553C",
  840. "#00CC97",
  841. "#AB63FB",
  842. "#FFA15B",
  843. "#19D3F4",
  844. "#FF6693",
  845. "#B6E881",
  846. "#FF97FE",
  847. "#FECB51",
  848. "#1F77B4",
  849. "#FF7F0E",
  850. "#2CA02C",
  851. "#D62728",
  852. "#9467BD",
  853. "#8C564B",
  854. "#E377C2",
  855. "#7F7F7F",
  856. "#BCBD22",
  857. "#17BECF",
  858. "#1A55F2",
  859. "#FF5733",
  860. "#33FF57",
  861. "#3375FF",
  862. "#FF33A6",
  863. "#FF5733",
  864. "#57FF33",
  865. "#FF3380",
  866. "#80FF33",
  867. "#3380FF",
  868. "#FF8033",
  869. "#57FF80",
  870. "#3380FF",
  871. "#8033FF",
  872. "#FF3380",
  873. "#FF57D7",
  874. "#FFD733",
  875. "#33FFD7",
  876. "#D733FF",
  877. "#8033FF",
  878. "#3380FF",
  879. "#FF3380",
  880. "#D7FF33",
  881. "#FF8033",
  882. "#33FF57",
  883. "#33D7FF",
  884. "#FF5733",
  885. "#33D7FF",
  886. "#33FF57",
  887. "#57D7FF",
  888. ],
  889. },
  890. {
  891. analysisTypeName: "叶尖速比和有功功率分析",
  892. analysisTypeCode: "tsr",
  893. // "title": "XXX机型的功率曲线图",
  894. modeType: "lines",
  895. graphType: "scatter",
  896. xLable: "功率(kW)",
  897. yLable: "叶尖速比",
  898. com: "lineAndChildLine",
  899. lableConfig: {
  900. title: {
  901. zongtext: "叶尖速比分布",
  902. fentext: "机组:",
  903. x: 0.5,
  904. },
  905. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  906. xaxis: {
  907. zongtitle: "最小功率",
  908. fentitle: "功率(kW)",
  909. range: [0, 26],
  910. tickmode: "linear",
  911. gridcolor: "rgb(255,255,255)",
  912. showgrid: true,
  913. zeroline: false,
  914. dtick: 1,
  915. tickangle: -45,
  916. tickcolor: "rgb(255,255,255)",
  917. },
  918. yaxis: {
  919. title: "叶尖速比",
  920. gridcolor: "rgb(255,255,255)",
  921. showgrid: true,
  922. zeroline: false,
  923. dtick: 0.05,
  924. tickcolor: "rgb(255,255,255)",
  925. range: [0.3, 0.5], // 根据你需要的值范围进行设置
  926. },
  927. legend: {
  928. orientation: "h",
  929. xanchor: "center",
  930. x: 0.5,
  931. y: -0.2,
  932. },
  933. },
  934. colors: [
  935. "#636EFA",
  936. "#EF553B",
  937. "#00CC96",
  938. "#AB63FA",
  939. "#FFA15A",
  940. "#19D3F3",
  941. "#FF6692",
  942. "#B6E880",
  943. "#FF97FF",
  944. "#FECB52",
  945. "#636EFB",
  946. "#EF553C",
  947. "#00CC97",
  948. "#AB63FB",
  949. "#FFA15B",
  950. "#19D3F4",
  951. "#FF6693",
  952. "#B6E881",
  953. "#FF97FE",
  954. "#FECB51",
  955. "#1F77B4",
  956. "#FF7F0E",
  957. "#2CA02C",
  958. "#D62728",
  959. "#9467BD",
  960. "#8C564B",
  961. "#E377C2",
  962. "#7F7F7F",
  963. "#BCBD22",
  964. "#17BECF",
  965. "#1A55F2",
  966. "#FF5733",
  967. "#33FF57",
  968. "#3375FF",
  969. "#FF33A6",
  970. "#FF5733",
  971. "#57FF33",
  972. "#FF3380",
  973. "#80FF33",
  974. "#3380FF",
  975. "#FF8033",
  976. "#57FF80",
  977. "#3380FF",
  978. "#8033FF",
  979. "#FF3380",
  980. "#FF57D7",
  981. "#FFD733",
  982. "#33FFD7",
  983. "#D733FF",
  984. "#8033FF",
  985. "#3380FF",
  986. "#FF3380",
  987. "#D7FF33",
  988. "#FF8033",
  989. "#33FF57",
  990. "#33D7FF",
  991. "#FF5733",
  992. "#33D7FF",
  993. "#33FF57",
  994. "#57D7FF",
  995. ],
  996. },
  997. {
  998. analysisTypeName: "静态偏航误差", //不需要展示图,只展示表格/秒级数据
  999. },
  1000. {
  1001. analysisTypeName: "分钟级SCADA数据记录完整度分析",
  1002. analysisTypeCode: "data_integrity_minute",
  1003. modeType: "heatmap",
  1004. graphType: "heatmap",
  1005. xLable: "日期",
  1006. yLable: "机组",
  1007. zLable: "",
  1008. com: "HeatmapCharts",
  1009. chartsType: [
  1010. {
  1011. name: "总图",
  1012. filesType: "heatmap",
  1013. },
  1014. ],
  1015. lableConfig: {
  1016. title: { text: "数据完整度检测(%)", x: 0.5 },
  1017. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  1018. xaxis: {
  1019. title: {
  1020. text: "日期", // X 轴标签
  1021. standoff: 20, // 设置 X 轴标签与刻度标记之间的距离
  1022. },
  1023. gridcolor: "rgb(255,255,255)",
  1024. showgrid: true,
  1025. zeroline: false,
  1026. ticklen: 5,
  1027. gridwidth: 4, // 网格线宽度
  1028. tickcolor: "rgb(255,255,255)",
  1029. tickangle: -45, // 设置x轴标签倾斜45度
  1030. },
  1031. yaxis: {
  1032. title: {
  1033. text: "机组", // X 轴标签
  1034. standoff: 20, // 设置 X 轴标签与刻度标记之间的距离
  1035. },
  1036. gridcolor: "rgb(255,255,255)",
  1037. showgrid: true,
  1038. zeroline: false,
  1039. tickcolor: "rgb(255,255,255)",
  1040. ticklen: 5,
  1041. gridwidth: 4, // 网格线宽度
  1042. },
  1043. showlegend: false,
  1044. // 添加边框
  1045. annotations: [], // 初始化注释数组
  1046. },
  1047. },
  1048. {
  1049. analysisTypeName: "风速频率分析", //柱状图 蓝色
  1050. analysisTypeCode: "wind_speed_frequency",
  1051. modeType: "bar",
  1052. graphType: "bar",
  1053. xLable: "风速(m/s)",
  1054. yLable: "频率(%)",
  1055. zLable: "",
  1056. com: "BarChart",
  1057. chartsType: [
  1058. {
  1059. name: "分图",
  1060. filesType: "bar",
  1061. },
  1062. ],
  1063. lableConfig: {
  1064. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  1065. title: {
  1066. text: "风速频率",
  1067. x: 0.5,
  1068. xanchor: "center",
  1069. yanchor: "top",
  1070. },
  1071. xaxis: {
  1072. title: "风速",
  1073. showgrid: true,
  1074. range: [0, 26],
  1075. dtick: 1,
  1076. tickangle: -45,
  1077. gridcolor: "rgb(255,255,255)",
  1078. showgrid: true,
  1079. zeroline: false,
  1080. ticklen: 5,
  1081. gridwidth: 1, // 网格线宽度
  1082. tickcolor: "rgb(255,255,255)",
  1083. },
  1084. yaxis: {
  1085. title: "频率",
  1086. showgrid: true,
  1087. gridcolor: "rgb(255,255,255)",
  1088. showgrid: true,
  1089. zeroline: false,
  1090. tickcolor: "rgb(255,255,255)",
  1091. ticklen: 5,
  1092. gridwidth: 1, // 网格线宽度
  1093. },
  1094. margin: {
  1095. t: 50,
  1096. b: 100,
  1097. },
  1098. },
  1099. dataConfig: {
  1100. //data数据每一项的设置
  1101. type: "bar",
  1102. marker: {
  1103. color: "#626efb", //柱体颜色设置
  1104. },
  1105. },
  1106. colors: [
  1107. "#636EFA",
  1108. "#EF553B",
  1109. "#00CC96",
  1110. "#AB63FA",
  1111. "#FFA15A",
  1112. "#19D3F3",
  1113. "#FF6692",
  1114. "#B6E880",
  1115. "#FF97FF",
  1116. "#FECB52",
  1117. "#636EFB",
  1118. "#EF553C",
  1119. "#00CC97",
  1120. "#AB63FB",
  1121. "#FFA15B",
  1122. "#19D3F4",
  1123. "#FF6693",
  1124. "#B6E881",
  1125. "#FF97FE",
  1126. "#FECB51",
  1127. "#1F77B4",
  1128. "#FF7F0E",
  1129. "#2CA02C",
  1130. "#D62728",
  1131. "#9467BD",
  1132. "#8C564B",
  1133. "#E377C2",
  1134. "#7F7F7F",
  1135. "#BCBD22",
  1136. "#17BECF",
  1137. "#1A55F2",
  1138. "#FF5733",
  1139. "#33FF57",
  1140. "#3375FF",
  1141. "#FF33A6",
  1142. "#FF5733",
  1143. "#57FF33",
  1144. "#FF3380",
  1145. "#80FF33",
  1146. "#3380FF",
  1147. "#FF8033",
  1148. "#57FF80",
  1149. "#3380FF",
  1150. "#8033FF",
  1151. "#FF3380",
  1152. "#FF57D7",
  1153. "#FFD733",
  1154. "#33FFD7",
  1155. "#D733FF",
  1156. "#8033FF",
  1157. "#3380FF",
  1158. "#FF3380",
  1159. "#D7FF33",
  1160. "#FF8033",
  1161. "#33FF57",
  1162. "#33D7FF",
  1163. "#FF5733",
  1164. "#33D7FF",
  1165. "#33FF57",
  1166. "#57D7FF",
  1167. ],
  1168. },
  1169. {
  1170. //rose 分图
  1171. analysisTypeName: "风向玫瑰分析",
  1172. analysisTypeCode: "wind_direction_frequency",
  1173. modeType: "barpolar",
  1174. graphType: "barpolar",
  1175. com: "WindRoseChart",
  1176. chartsType: [
  1177. {
  1178. name: "分图",
  1179. filesType: "barpolar",
  1180. },
  1181. ],
  1182. dataConfig: {
  1183. type: "barpolar",
  1184. marker: {
  1185. line: {
  1186. color: "white",
  1187. width: 1,
  1188. },
  1189. },
  1190. },
  1191. lableConfig: {
  1192. title: "风向玫瑰图",
  1193. plot_bgcolor: "#e5ecf6", // 背景颜色
  1194. polar: {
  1195. bgcolor: "#e5ecf6", // 极坐标背景颜色
  1196. radialaxis: {
  1197. gridcolor: "rgb(255,255,255)", // 径向网格线颜色
  1198. showgrid: true,
  1199. linecolor: "rgb(255,255,255)", // 径向轴线颜色
  1200. },
  1201. angularaxis: {
  1202. gridcolor: "rgb(255,255,255)", // 角度网格线颜色
  1203. tickcolor: "rgb(255,255,255)", // 刻度线颜色
  1204. linecolor: "rgb(255,255,255)", // 角度轴线颜色
  1205. ticktext: [
  1206. "N",
  1207. "NNE",
  1208. "NE",
  1209. "ENE",
  1210. "E",
  1211. "ESE",
  1212. "SE",
  1213. "SSE",
  1214. "S",
  1215. "SSW",
  1216. "SW",
  1217. "WSW",
  1218. "W",
  1219. "WNW",
  1220. "NW",
  1221. "NNW",
  1222. ],
  1223. },
  1224. },
  1225. showlegend: true, // 显示图例
  1226. legend: { title: { text: "Wind Speed" } },
  1227. },
  1228. colors: {
  1229. "[0,3)": "rgba(247, 251, 255, 1.0)",
  1230. "[3,6)": "rgba(171, 207, 229, 1.0)",
  1231. "[6,9)": "rgba(55, 135, 192, 1.0)",
  1232. ">=9": "rgba(8, 48, 107, 1.0)",
  1233. },
  1234. speedLabels: ["[0,3)", "[3,6)", "[6,9)", ">=9"],
  1235. directionLabels: [
  1236. "N",
  1237. "NNE",
  1238. "NE",
  1239. "ENE",
  1240. "E",
  1241. "ESE",
  1242. "SE",
  1243. "SSE",
  1244. "S",
  1245. "SSW",
  1246. "SW",
  1247. "WSW",
  1248. "W",
  1249. "WNW",
  1250. "NW",
  1251. "NNW",
  1252. ],
  1253. },
  1254. {
  1255. analysisTypeName: "风速均值分析",
  1256. analysisTypeCode: "wind_speed",
  1257. modeType: "bar",
  1258. graphType: "bar",
  1259. xLable: "机组",
  1260. yLable: "平均风速(m/s)",
  1261. zLable: "",
  1262. com: "BarChart",
  1263. chartsType: [
  1264. {
  1265. name: "总图",
  1266. filesType: "bar",
  1267. },
  1268. ],
  1269. lableConfig: {
  1270. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  1271. title: {
  1272. text: "机组平均风速",
  1273. x: 0.5,
  1274. xanchor: "center",
  1275. yanchor: "top",
  1276. },
  1277. xaxis: {
  1278. title: "机组",
  1279. showgrid: true,
  1280. range: [0, 26],
  1281. dtick: 1,
  1282. tickangle: -45,
  1283. gridcolor: "rgb(255,255,255)",
  1284. showgrid: true,
  1285. zeroline: false,
  1286. ticklen: 5,
  1287. gridwidth: 1, // 网格线宽度
  1288. tickcolor: "rgb(255,255,255)",
  1289. },
  1290. yaxis: {
  1291. title: "平均风速(m/s)",
  1292. showgrid: true,
  1293. gridcolor: "rgb(255,255,255)",
  1294. showgrid: true,
  1295. zeroline: false,
  1296. tickcolor: "rgb(255,255,255)",
  1297. ticklen: 5,
  1298. gridwidth: 1, // 网格线宽度
  1299. },
  1300. margin: {
  1301. t: 50,
  1302. b: 100,
  1303. },
  1304. },
  1305. dataConfig: {
  1306. //data数据每一项的设置
  1307. type: "bar",
  1308. marker: {
  1309. color: "#626efb", //柱体颜色设置
  1310. },
  1311. },
  1312. colors: [
  1313. "#636EFA",
  1314. "#EF553B",
  1315. "#00CC96",
  1316. "#AB63FA",
  1317. "#FFA15A",
  1318. "#19D3F3",
  1319. "#FF6692",
  1320. "#B6E880",
  1321. "#FF97FF",
  1322. "#FECB52",
  1323. "#636EFB",
  1324. "#EF553C",
  1325. "#00CC97",
  1326. "#AB63FB",
  1327. "#FFA15B",
  1328. "#19D3F4",
  1329. "#FF6693",
  1330. "#B6E881",
  1331. "#FF97FE",
  1332. "#FECB51",
  1333. "#1F77B4",
  1334. "#FF7F0E",
  1335. "#2CA02C",
  1336. "#D62728",
  1337. "#9467BD",
  1338. "#8C564B",
  1339. "#E377C2",
  1340. "#7F7F7F",
  1341. "#BCBD22",
  1342. "#17BECF",
  1343. "#1A55F2",
  1344. "#FF5733",
  1345. "#33FF57",
  1346. "#3375FF",
  1347. "#FF33A6",
  1348. "#FF5733",
  1349. "#57FF33",
  1350. "#FF3380",
  1351. "#80FF33",
  1352. "#3380FF",
  1353. "#FF8033",
  1354. "#57FF80",
  1355. "#3380FF",
  1356. "#8033FF",
  1357. "#FF3380",
  1358. "#FF57D7",
  1359. "#FFD733",
  1360. "#33FFD7",
  1361. "#D733FF",
  1362. "#8033FF",
  1363. "#3380FF",
  1364. "#FF3380",
  1365. "#D7FF33",
  1366. "#FF8033",
  1367. "#33FF57",
  1368. "#33D7FF",
  1369. "#FF5733",
  1370. "#33D7FF",
  1371. "#33FF57",
  1372. "#57D7FF",
  1373. ],
  1374. },
  1375. {
  1376. //分图
  1377. analysisTypeName: "逐月有功功率散点2D分析",
  1378. analysisTypeCode: "power_scatter_2D",
  1379. modeType: "lines+markers",
  1380. graphType: "scatter",
  1381. xLable: "Wind Speed",
  1382. yLable: "Power",
  1383. zLable: "",
  1384. com: "powerMarkers2DCharts",
  1385. chartsType: [
  1386. {
  1387. name: "分图",
  1388. filesType: "2D",
  1389. },
  1390. ],
  1391. dataConfig: [
  1392. {
  1393. mode: "markers",
  1394. marker: {
  1395. colorscale: "Rainbow",
  1396. opacity: 0.7,
  1397. },
  1398. type: "scatter",
  1399. showlegend: false,
  1400. },
  1401. {
  1402. mode: "lines+markers",
  1403. marker: { color: "gray", size: 7 },
  1404. name: "Contract Guarantee Power Curve",
  1405. type: "scatter",
  1406. },
  1407. ],
  1408. lableConfig: {
  1409. title: {
  1410. text: "机组:",
  1411. },
  1412. plot_bgcolor: "#e5ecf6",
  1413. xaxis: {
  1414. title: "风速",
  1415. tickmode: "array",
  1416. gridcolor: "rgb(255,255,255)",
  1417. showgrid: false,
  1418. zeroline: false,
  1419. tickcolor: "rgb(255,255,255)",
  1420. tickangle: -45,
  1421. },
  1422. yaxis: {
  1423. title: "功率",
  1424. tickmode: "array",
  1425. gridcolor: "rgb(255,255,255)",
  1426. showgrid: false,
  1427. zeroline: false,
  1428. tickcolor: "rgb(255,255,255)",
  1429. },
  1430. legend: {
  1431. yanchor: "bottom",
  1432. y: 0,
  1433. xanchor: "right",
  1434. x: 1,
  1435. bgcolor: "rgba(0, 0, 0, 0)", // Transparent background color
  1436. },
  1437. },
  1438. },
  1439. {
  1440. analysisTypeName: "额定功率和风速分析",
  1441. analysisTypeCode: "rated_power_windspeed",
  1442. modeType: "box",
  1443. graphType: "box",
  1444. xLable: "Turbine",
  1445. yLable: "Power",
  1446. com: "boxLineCharts",
  1447. dataConfig: [
  1448. {
  1449. type: "box",
  1450. fillcolor: "#1d90ff",
  1451. marker: {
  1452. line: {
  1453. color: "black", // 设置盒子边框颜色为黑色
  1454. },
  1455. },
  1456. whiskerwidth: 1, // 设置延长线的宽度
  1457. boxpoints: "outliers",
  1458. line: {
  1459. color: "black", // 设置延长线颜色为黑色
  1460. },
  1461. name: "Ambient Temp >= 25°C",
  1462. showlegend: false,
  1463. },
  1464. {
  1465. mode: "markers",
  1466. marker: { symbol: "line-ew-open", color: "red", size: 10 }, // 设置中位数线的颜色为红色
  1467. showlegend: false,
  1468. },
  1469. ],
  1470. lableConfig: {
  1471. title: "额定全风速 (环境温度 >= 25°C) 10min功率分配",
  1472. plot_bgcolor: "#e5ecf6",
  1473. yaxis: {
  1474. title: "功率",
  1475. tickfont: { size: 10 },
  1476. gridcolor: "rgb(255,255,255)",
  1477. showgrid: true,
  1478. zeroline: false,
  1479. tickcolor: "rgb(255,255,255)",
  1480. },
  1481. xaxis: {
  1482. title: "机组",
  1483. tickangle: -45,
  1484. type: "category",
  1485. tickfont: { size: 10 },
  1486. gridcolor: "rgb(255,255,255)",
  1487. showgrid: true,
  1488. zeroline: false,
  1489. tickcolor: "rgb(255,255,255)",
  1490. },
  1491. boxmode: "group",
  1492. },
  1493. },
  1494. {
  1495. //改
  1496. analysisTypeName: "额定风速分析",
  1497. analysisTypeCode: "rated_windspeed",
  1498. modeType: "bar",
  1499. graphType: "bar",
  1500. xLable: "Turbine(涡轮)",
  1501. yLable: "Count(总数)",
  1502. zLable: "",
  1503. com: "BarChart",
  1504. chartsType: [
  1505. {
  1506. name: "分图",
  1507. filesType: "bar",
  1508. },
  1509. ],
  1510. lableConfig: {
  1511. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  1512. title: {
  1513. text: "额定风速间隔数据计数",
  1514. x: 0.5,
  1515. xanchor: "center",
  1516. yanchor: "top",
  1517. },
  1518. xaxis: {
  1519. title: "机组",
  1520. tickangle: -45,
  1521. },
  1522. yaxis: {
  1523. title: "总数",
  1524. showgrid: true,
  1525. gridcolor: "rgb(255,255,255)",
  1526. showgrid: true,
  1527. zeroline: false,
  1528. tickcolor: "rgb(255,255,255)",
  1529. ticklen: 5,
  1530. gridwidth: 1, // 网格线宽度
  1531. },
  1532. },
  1533. dataConfig: {
  1534. //data数据每一项的设置
  1535. type: "bar",
  1536. marker: {
  1537. color: "dodgerblue", //柱体颜色设置
  1538. },
  1539. },
  1540. },
  1541. {
  1542. analysisTypeName: "发电机转速和转矩分析",
  1543. analysisTypeCode: "speed_torque",
  1544. modeType: "markers",
  1545. graphType: "scatter3d",
  1546. xLable: "发电机转速",
  1547. yLable: "机组",
  1548. zLable: "实际扭矩",
  1549. com: "MarkersCharts",
  1550. chartsType: [
  1551. {
  1552. name: "总图",
  1553. filesType: "3D",
  1554. },
  1555. {
  1556. name: "分图",
  1557. filesType: "2D",
  1558. },
  1559. {
  1560. name: "分图",
  1561. filesType: "3D",
  1562. },
  1563. ],
  1564. "2DConfig": {
  1565. marker: {
  1566. color: [1, 2, 3, 4, 5],
  1567. colorscale: "Rainbow",
  1568. size: 3,
  1569. opacity: 0.7,
  1570. colorbar: {
  1571. tickvals: [1, 2, 3, 4, 5],
  1572. ticktext: [],
  1573. thickness: 18,
  1574. len: 1,
  1575. outlinecolor: "rgba(255,255,255,0)",
  1576. },
  1577. showscale: true,
  1578. },
  1579. mode: "markers",
  1580. type: "scatter",
  1581. },
  1582. "2DLayoutConfig": {
  1583. // "title": "发电机转速功率2D散点图",
  1584. title: "月度发电机转速扭矩散点图",
  1585. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  1586. xaxis: {
  1587. title: "发电机转速",
  1588. dtick: 100,
  1589. // range: [0, 1800],
  1590. tickangle: -45,
  1591. gridcolor: "rgb(255,255,255)",
  1592. showgrid: true,
  1593. zeroline: false,
  1594. ticklen: 5,
  1595. gridwidth: 1, // 网格线宽度
  1596. tickcolor: "rgb(255,255,255)",
  1597. },
  1598. yaxis: {
  1599. title: "扭矩",
  1600. dtick: 100,
  1601. // range: [0, 5000],
  1602. gridcolor: "rgb(255,255,255)",
  1603. showgrid: true,
  1604. zeroline: false,
  1605. ticklen: 5,
  1606. gridwidth: 1, // 网格线宽度
  1607. tickcolor: "rgb(255,255,255)",
  1608. },
  1609. },
  1610. "3DConfig": {
  1611. x: [],
  1612. y: [],
  1613. z: [],
  1614. marker: {
  1615. size: 1.5,
  1616. symbol: "circle",
  1617. },
  1618. type: "scatter3d",
  1619. mode: "markers",
  1620. },
  1621. "3DLayoutConfig": {
  1622. zongtitle: "发电机转速扭矩3D散点图",
  1623. fentitle: "月度发电机转速扭矩3D散点图",
  1624. scene: {
  1625. xaxis: {
  1626. zongtitle: "发电机转速",
  1627. fentitle: "发电机转速",
  1628. dtick: 100,
  1629. gridcolor: "rgb(255,255,255)",
  1630. showgrid: true,
  1631. zeroline: false,
  1632. ticklen: 5,
  1633. gridwidth: 1, // 网格线宽度
  1634. tickcolor: "rgb(255,255,255)",
  1635. backgroundcolor: "#e5ecf6",
  1636. showbackground: true, // 显示背景
  1637. },
  1638. yaxis: {
  1639. zongtitle: "机组",
  1640. fentitle: "时间",
  1641. gridcolor: "rgb(255,255,255)",
  1642. showgrid: true,
  1643. zeroline: false,
  1644. ticklen: 5,
  1645. gridwidth: 1, // 网格线宽度
  1646. tickcolor: "rgb(255,255,255)",
  1647. backgroundcolor: "#e5ecf6",
  1648. showbackground: true, // 显示背景
  1649. },
  1650. zaxis: {
  1651. zongtitle: "实际扭矩",
  1652. fentitle: "扭矩",
  1653. dtick: 100,
  1654. gridcolor: "rgb(255,255,255)",
  1655. showgrid: true,
  1656. zeroline: false,
  1657. ticklen: 5,
  1658. gridwidth: 1, // 网格线宽度
  1659. tickcolor: "rgb(255,255,255)",
  1660. backgroundcolor: "#e5ecf6",
  1661. showbackground: true, // 显示背景
  1662. },
  1663. },
  1664. legend: {
  1665. orientation: "h",
  1666. xanchor: "center",
  1667. x: 0.5,
  1668. y: -0.1,
  1669. itemsizing: "constant",
  1670. },
  1671. },
  1672. "3DColors": [
  1673. "#636EFA",
  1674. "#EF553B",
  1675. "#00CC96",
  1676. "#AB63FA",
  1677. "#FFA15A",
  1678. "#19D3F3",
  1679. "#FF6692",
  1680. "#B6E880",
  1681. "#FF97FF",
  1682. "#FECB52",
  1683. "#636EFB",
  1684. "#EF553C",
  1685. "#00CC97",
  1686. "#AB63FB",
  1687. "#FFA15B",
  1688. "#19D3F4",
  1689. "#FF6693",
  1690. "#B6E881",
  1691. "#FF97FE",
  1692. "#FECB51",
  1693. "#1F77B4",
  1694. "#FF7F0E",
  1695. "#2CA02C",
  1696. "#D62728",
  1697. "#9467BD",
  1698. "#8C564B",
  1699. "#E377C2",
  1700. "#7F7F7F",
  1701. "#BCBD22",
  1702. "#17BECF",
  1703. "#1A55F2",
  1704. "#FF5733",
  1705. "#33FF57",
  1706. "#3375FF",
  1707. "#FF33A6",
  1708. "#FF5733",
  1709. "#57FF33",
  1710. "#FF3380",
  1711. "#80FF33",
  1712. "#3380FF",
  1713. "#FF8033",
  1714. "#57FF80",
  1715. "#3380FF",
  1716. "#8033FF",
  1717. "#FF3380",
  1718. "#FF57D7",
  1719. "#FFD733",
  1720. "#33FFD7",
  1721. "#D733FF",
  1722. "#8033FF",
  1723. "#3380FF",
  1724. "#FF3380",
  1725. "#D7FF33",
  1726. "#FF8033",
  1727. "#33FF57",
  1728. "#33D7FF",
  1729. "#FF5733",
  1730. "#33D7FF",
  1731. "#33FF57",
  1732. "#57D7FF",
  1733. ],
  1734. },
  1735. {
  1736. analysisTypeName: "变桨和发电机转速协调性分析",
  1737. analysisTypeCode: "pitch_generator_speed",
  1738. modeType: "markers",
  1739. graphType: "scatter",
  1740. xLable: "发电机转速",
  1741. yLable: "桨距角",
  1742. zLable: "",
  1743. com: "MarkersCharts",
  1744. chartsType: [
  1745. {
  1746. name: "分图",
  1747. filesType: "2D",
  1748. },
  1749. ],
  1750. "2DConfig": {
  1751. marker: {
  1752. color: [1, 2, 3, 4, 5],
  1753. colorscale: "Rainbow",
  1754. size: 3,
  1755. opacity: 0.7,
  1756. colorbar: {
  1757. tickvals: [1, 2, 3, 4, 5],
  1758. ticktext: [],
  1759. thickness: 18,
  1760. len: 1,
  1761. outlinecolor: "rgba(255,255,255,0)",
  1762. },
  1763. showscale: true,
  1764. },
  1765. mode: "markers",
  1766. type: "scatter",
  1767. },
  1768. "2DLayoutConfig": {
  1769. title: "机组",
  1770. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  1771. xaxis: {
  1772. title: "发电机转速",
  1773. dtick: 100,
  1774. // range: [0, 1800],
  1775. tickangle: -45,
  1776. gridcolor: "rgb(255,255,255)",
  1777. showgrid: true,
  1778. zeroline: false,
  1779. ticklen: 5,
  1780. gridwidth: 1, // 网格线宽度
  1781. tickcolor: "rgb(255,255,255)",
  1782. },
  1783. yaxis: {
  1784. title: "桨距角",
  1785. dtick: 100,
  1786. // range: [0, 5000],
  1787. gridcolor: "rgb(255,255,255)",
  1788. showgrid: true,
  1789. zeroline: false,
  1790. ticklen: 5,
  1791. gridwidth: 1, // 网格线宽度
  1792. tickcolor: "rgb(255,255,255)",
  1793. },
  1794. },
  1795. },
  1796. {
  1797. analysisTypeName: "环境温度传感器分析",
  1798. analysisTypeCode: "temperature_environment",
  1799. modeType: "bar",
  1800. graphType: "bar",
  1801. xLable: "机组名称",
  1802. yLable: "温度偏差",
  1803. com: "BarChart",
  1804. chartsType: [
  1805. {
  1806. name: "总图",
  1807. filesType: "bar",
  1808. title: "Temperature Bias",
  1809. },
  1810. {
  1811. name: "总图",
  1812. filesType: "bar",
  1813. title: "Temperature Median",
  1814. },
  1815. ],
  1816. dataConfig: [
  1817. {
  1818. title: "Temperature Bias",
  1819. type: "bar",
  1820. marker: {
  1821. color: "dodgerblue",
  1822. },
  1823. },
  1824. {
  1825. title: "Temperature Median",
  1826. type: "bar",
  1827. marker: {
  1828. color: "dodgerblue",
  1829. },
  1830. },
  1831. ],
  1832. lableConfig: [
  1833. {
  1834. title: "温度偏差-",
  1835. xaxis: {
  1836. title: "机组名称",
  1837. tickangle: -45,
  1838. },
  1839. yaxis: {
  1840. title: "温度偏差",
  1841. rangemode: "tozero",
  1842. },
  1843. shapes: [
  1844. {
  1845. type: "line",
  1846. x0: 0,
  1847. x1: 1,
  1848. xref: "paper",
  1849. y0: 5,
  1850. y1: 5,
  1851. line: {
  1852. color: "red",
  1853. dash: "dot",
  1854. },
  1855. },
  1856. {
  1857. type: "line",
  1858. x0: 0,
  1859. x1: 1,
  1860. xref: "paper",
  1861. y0: -5,
  1862. y1: -5,
  1863. line: {
  1864. color: "red",
  1865. dash: "dot",
  1866. },
  1867. },
  1868. ],
  1869. },
  1870. {
  1871. title: "平均温度-",
  1872. xaxis: {
  1873. title: "机组名称",
  1874. tickangle: -45,
  1875. },
  1876. yaxis: {
  1877. title: "温度",
  1878. },
  1879. },
  1880. ],
  1881. },
  1882. {
  1883. analysisTypeName: "叶尖速比-Cp-功率分析",
  1884. analysisTypeCode: "tsr_cp_power",
  1885. modeType: "lines",
  1886. graphType: "scatter",
  1887. xLable: "功率(kW)",
  1888. yLable: "TSR/CP^(1/3)",
  1889. zLable: "",
  1890. com: "lineAndChildLine",
  1891. lableConfig: {
  1892. title: {
  1893. zongtext: "叶尖速比-风能利用系数分析-功率分布图",
  1894. fentext: "机组:",
  1895. x: 0.5,
  1896. },
  1897. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  1898. xaxis: {
  1899. zongtitle: "最小功率(kW)",
  1900. fentitle: "最小功率(kW)",
  1901. range: [0, 26],
  1902. tickmode: "linear",
  1903. gridcolor: "rgb(255,255,255)",
  1904. showgrid: true,
  1905. zeroline: false,
  1906. dtick: 1,
  1907. tickangle: -45,
  1908. tickcolor: "rgb(255,255,255)",
  1909. },
  1910. yaxis: {
  1911. zongtitle: "叶尖速比/风能利用系数分析^(1/3)",
  1912. fentitle: "叶尖速比/风能利用系数分析^(1/3)",
  1913. gridcolor: "rgb(255,255,255)",
  1914. showgrid: true,
  1915. zeroline: false,
  1916. dtick: 0.05,
  1917. tickcolor: "rgb(255,255,255)",
  1918. range: [0.3, 0.5], // 根据你需要的值范围进行设置
  1919. },
  1920. legend: {
  1921. orientation: "h",
  1922. xanchor: "center",
  1923. x: 0.5,
  1924. y: -0.2,
  1925. },
  1926. },
  1927. colors: [
  1928. "#636EFA",
  1929. "#EF553B",
  1930. "#00CC96",
  1931. "#AB63FA",
  1932. "#FFA15A",
  1933. "#19D3F3",
  1934. "#FF6692",
  1935. "#B6E880",
  1936. "#FF97FF",
  1937. "#FECB52",
  1938. "#636EFB",
  1939. "#EF553C",
  1940. "#00CC97",
  1941. "#AB63FB",
  1942. "#FFA15B",
  1943. "#19D3F4",
  1944. "#FF6693",
  1945. "#B6E881",
  1946. "#FF97FE",
  1947. "#FECB51",
  1948. "#1F77B4",
  1949. "#FF7F0E",
  1950. "#2CA02C",
  1951. "#D62728",
  1952. "#9467BD",
  1953. "#8C564B",
  1954. "#E377C2",
  1955. "#7F7F7F",
  1956. "#BCBD22",
  1957. "#17BECF",
  1958. "#1A55F2",
  1959. "#FF5733",
  1960. "#33FF57",
  1961. "#3375FF",
  1962. "#FF33A6",
  1963. "#FF5733",
  1964. "#57FF33",
  1965. "#FF3380",
  1966. "#80FF33",
  1967. "#3380FF",
  1968. "#FF8033",
  1969. "#57FF80",
  1970. "#3380FF",
  1971. "#8033FF",
  1972. "#FF3380",
  1973. "#FF57D7",
  1974. "#FFD733",
  1975. "#33FFD7",
  1976. "#D733FF",
  1977. "#8033FF",
  1978. "#3380FF",
  1979. "#FF3380",
  1980. "#D7FF33",
  1981. "#FF8033",
  1982. "#33FF57",
  1983. "#33D7FF",
  1984. "#FF5733",
  1985. "#33D7FF",
  1986. "#33FF57",
  1987. "#57D7FF",
  1988. ],
  1989. },
  1990. {
  1991. //改
  1992. analysisTypeName: "叶尖速比时序分析",
  1993. analysisTypeCode: "tsr_trend",
  1994. title: "",
  1995. modeType: "box+markers",
  1996. graphType: "box",
  1997. xLable: "时间",
  1998. yLable: "叶尖速比",
  1999. zLable: "",
  2000. com: "BoxMarkersCharts",
  2001. chartsType: [
  2002. {
  2003. name: "分图",
  2004. filesType: "BoxMarkers",
  2005. },
  2006. ],
  2007. dataConfig: [
  2008. {
  2009. type: "box",
  2010. boxpoints: "outliers", // 显示离群值
  2011. marker: {
  2012. color: "lightgoldenrodyellow",
  2013. size: 3,
  2014. },
  2015. line: {
  2016. color: "lightgray",
  2017. width: 2,
  2018. },
  2019. fillcolor: "rgba(200, 200, 200, 0.5)",
  2020. },
  2021. {
  2022. type: "scatter",
  2023. mode: "markers",
  2024. marker: {
  2025. color: "orange",
  2026. size: 5,
  2027. },
  2028. },
  2029. ],
  2030. lableConfig: {
  2031. title: {
  2032. text: "机组:",
  2033. },
  2034. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  2035. xaxis: {
  2036. title: "时间",
  2037. tickmode: "auto",
  2038. tickformat: "%Y-%m-%d",
  2039. showgrid: true,
  2040. gridcolor: "lightgray",
  2041. tickangle: -45,
  2042. linecolor: "black",
  2043. tickcolor: "rgb(255,255,255)",
  2044. ticklen: 5,
  2045. },
  2046. yaxis: {
  2047. title: "叶尖速比",
  2048. range: [0, 1],
  2049. showgrid: true,
  2050. gridcolor: "lightgray",
  2051. linecolor: "black",
  2052. tickcolor: "rgb(255,255,255)",
  2053. ticklen: 5,
  2054. },
  2055. paper_bgcolor: "white",
  2056. plot_bgcolor: "white",
  2057. margin: {
  2058. t: 50,
  2059. b: 150,
  2060. },
  2061. },
  2062. },
  2063. //分图
  2064. {
  2065. analysisTypeName: "最小桨距角分析",
  2066. analysisTypeCode: "min_pitch",
  2067. title: "最小桨距角分布",
  2068. modeType: "markers",
  2069. graphType: "scatter",
  2070. xLable: "时间",
  2071. yLable: "桨距角",
  2072. com: "MarkersCharts",
  2073. chartsType: [
  2074. {
  2075. name: "分图",
  2076. type: "markers",
  2077. },
  2078. ],
  2079. dataConfig: [
  2080. {
  2081. showscale: true,
  2082. colorbar: { title: "Rate" },
  2083. line: { color: "white", width: 1 },
  2084. mode: "markers",
  2085. },
  2086. ],
  2087. lableConfig: {
  2088. title: "最小桨距角分布",
  2089. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  2090. xaxis: {
  2091. title: "时间",
  2092. tickformat: "%Y-%m-%d",
  2093. tickangle: -45,
  2094. gridcolor: "rgb(255,255,255)",
  2095. showgrid: true,
  2096. zeroline: false,
  2097. tickcolor: "rgb(255,255,255)",
  2098. },
  2099. yaxis: {
  2100. title: "桨距角",
  2101. gridcolor: "rgb(255,255,255)",
  2102. showgrid: true,
  2103. zeroline: false,
  2104. tickcolor: "rgb(255,255,255)",
  2105. },
  2106. showlegend: false,
  2107. },
  2108. colors: [
  2109. [0.0, "rgb(255, 255, 255)"], // 白色
  2110. [0.1, "rgb(135, 206, 235)"], // 天蓝色
  2111. [0.5, "rgb(0, 0, 255)"], // 蓝色
  2112. [1.0, "rgb(0, 0, 139)"], // 深蓝色
  2113. ],
  2114. },
  2115. {
  2116. //改
  2117. //cpAnalyst.py 文件
  2118. analysisTypeName: "风能利用系数和有功功率分析",
  2119. title: "CP 分布图",
  2120. analysisTypeCode: "cp",
  2121. modeType: "lines",
  2122. graphType: "scatter",
  2123. xLable: "功率(kW)",
  2124. yLable: "CP 中位值",
  2125. powerConfig: {
  2126. //合同有功功率曲线值
  2127. mode: "lines+markers",
  2128. name: "Contract Guarantee",
  2129. line: {
  2130. color: "red",
  2131. },
  2132. marker: {
  2133. color: "red",
  2134. size: 5,
  2135. },
  2136. },
  2137. config: null,
  2138. com: "lineAndChildLine",
  2139. lableConfig: {
  2140. title: {
  2141. zongtext: "风能利用系数分布-",
  2142. fentext: "发电机:",
  2143. x: 0.5,
  2144. },
  2145. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  2146. xaxis: {
  2147. title: "功率(kW)",
  2148. range: [0, 26],
  2149. tickmode: "linear",
  2150. gridcolor: "rgb(255,255,255)",
  2151. showgrid: true,
  2152. zeroline: false,
  2153. tickcolor: "rgb(255,255,255)",
  2154. dtick: 1,
  2155. tickangle: -45,
  2156. },
  2157. yaxis: {
  2158. // "title": "CP 中位值",
  2159. title: "风能利用系数",
  2160. gridcolor: "rgb(255,255,255)",
  2161. showgrid: true,
  2162. zeroline: false,
  2163. tickcolor: "rgb(255,255,255)",
  2164. },
  2165. zonglegend: {
  2166. orientation: "h",
  2167. xanchor: "center",
  2168. x: 0.5,
  2169. y: -0.2,
  2170. },
  2171. fenlegend: {
  2172. x: 1.1, // 控制图例在X轴上的位置,1是最右边,1.05有间距
  2173. y: 0.5, // 控制图例在Y轴上的位置,0.5表示垂直居中
  2174. xanchor: "left", // 图例以左边为锚点,确保有右边间距
  2175. yanchor: "middle", // 图例以中间为锚点,垂直居中
  2176. },
  2177. },
  2178. colors: [
  2179. "#636EFA",
  2180. "#EF553B",
  2181. "#00CC96",
  2182. "#AB63FA",
  2183. "#FFA15A",
  2184. "#19D3F3",
  2185. "#FF6692",
  2186. "#B6E880",
  2187. "#FF97FF",
  2188. "#FECB52",
  2189. "#636EFB",
  2190. "#EF553C",
  2191. "#00CC97",
  2192. "#AB63FB",
  2193. "#FFA15B",
  2194. "#19D3F4",
  2195. "#FF6693",
  2196. "#B6E881",
  2197. "#FF97FE",
  2198. "#FECB51",
  2199. "#1F77B4",
  2200. "#FF7F0E",
  2201. "#2CA02C",
  2202. "#D62728",
  2203. "#9467BD",
  2204. "#8C564B",
  2205. "#E377C2",
  2206. "#7F7F7F",
  2207. "#BCBD22",
  2208. "#17BECF",
  2209. "#1A55F2",
  2210. "#FF5733",
  2211. "#33FF57",
  2212. "#3375FF",
  2213. "#FF33A6",
  2214. "#FF5733",
  2215. "#57FF33",
  2216. "#FF3380",
  2217. "#80FF33",
  2218. "#3380FF",
  2219. "#FF8033",
  2220. "#57FF80",
  2221. "#3380FF",
  2222. "#8033FF",
  2223. "#FF3380",
  2224. "#FF57D7",
  2225. "#FFD733",
  2226. "#33FFD7",
  2227. "#D733FF",
  2228. "#8033FF",
  2229. "#3380FF",
  2230. "#FF3380",
  2231. "#D7FF33",
  2232. "#FF8033",
  2233. "#33FF57",
  2234. "#33D7FF",
  2235. "#FF5733",
  2236. "#33D7FF",
  2237. "#33FF57",
  2238. "#57D7FF",
  2239. ],
  2240. },
  2241. {
  2242. //改
  2243. // <h1>风能利用系数和风速分析</h1>
  2244. analysisTypeName: "风能利用系数和风速分析",
  2245. // "title": "CP 分布图",
  2246. analysisTypeCode: "cp_windspeed",
  2247. modeType: "lines",
  2248. graphType: "scatter",
  2249. xLable: "风速",
  2250. yLable: "风能利用系数",
  2251. powerConfig: null,
  2252. config: null,
  2253. com: "lineAndChildLine",
  2254. lableConfig: {
  2255. title: {
  2256. text: "风能利用系数分布-",
  2257. x: 0.5,
  2258. },
  2259. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  2260. xaxis: {
  2261. title: "风速",
  2262. range: [0, 26],
  2263. tickmode: "linear",
  2264. gridcolor: "rgb(255,255,255)",
  2265. showgrid: true,
  2266. zeroline: false,
  2267. dtick: 1,
  2268. tickangle: -45,
  2269. tickcolor: "rgb(255,255,255)",
  2270. },
  2271. yaxis: {
  2272. title: "风能利用系数",
  2273. gridcolor: "rgb(255,255,255)",
  2274. showgrid: true,
  2275. zeroline: false,
  2276. dtick: 0.05,
  2277. tickcolor: "rgb(255,255,255)",
  2278. range: [0.3, 0.5], // 根据你需要的值范围进行设置
  2279. },
  2280. zonglegend: {
  2281. orientation: "h",
  2282. xanchor: "center",
  2283. x: 0.5,
  2284. y: -0.2,
  2285. },
  2286. fenlegend: {
  2287. x: 1.1, // 控制图例在X轴上的位置,1是最右边,1.05有间距
  2288. y: 0.5, // 控制图例在Y轴上的位置,0.5表示垂直居中
  2289. xanchor: "left", // 图例以左边为锚点,确保有右边间距
  2290. yanchor: "middle", // 图例以中间为锚点,垂直居中
  2291. },
  2292. },
  2293. colors: [
  2294. "#636EFA",
  2295. "#EF553B",
  2296. "#00CC96",
  2297. "#AB63FA",
  2298. "#FFA15A",
  2299. "#19D3F3",
  2300. "#FF6692",
  2301. "#B6E880",
  2302. "#FF97FF",
  2303. "#FECB52",
  2304. "#636EFB",
  2305. "#EF553C",
  2306. "#00CC97",
  2307. "#AB63FB",
  2308. "#FFA15B",
  2309. "#19D3F4",
  2310. "#FF6693",
  2311. "#B6E881",
  2312. "#FF97FE",
  2313. "#FECB51",
  2314. "#1F77B4",
  2315. "#FF7F0E",
  2316. "#2CA02C",
  2317. "#D62728",
  2318. "#9467BD",
  2319. "#8C564B",
  2320. "#E377C2",
  2321. "#7F7F7F",
  2322. "#BCBD22",
  2323. "#17BECF",
  2324. "#1A55F2",
  2325. "#FF5733",
  2326. "#33FF57",
  2327. "#3375FF",
  2328. "#FF33A6",
  2329. "#FF5733",
  2330. "#57FF33",
  2331. "#FF3380",
  2332. "#80FF33",
  2333. "#3380FF",
  2334. "#FF8033",
  2335. "#57FF80",
  2336. "#3380FF",
  2337. "#8033FF",
  2338. "#FF3380",
  2339. "#FF57D7",
  2340. "#FFD733",
  2341. "#33FFD7",
  2342. "#D733FF",
  2343. "#8033FF",
  2344. "#3380FF",
  2345. "#FF3380",
  2346. "#D7FF33",
  2347. "#FF8033",
  2348. "#33FF57",
  2349. "#33D7FF",
  2350. "#FF5733",
  2351. "#33D7FF",
  2352. "#33FF57",
  2353. "#57D7FF",
  2354. ],
  2355. },
  2356. {
  2357. analysisTypeName: "叶尖速比-Cp-功率散点分析",
  2358. analysisTypeCode: "tsr_cp_power_scatter",
  2359. title: "",
  2360. modeType: "markers",
  2361. graphType: "scatter",
  2362. xLable: "功率",
  2363. yLable: "TSR/CP^(1/3)",
  2364. zLable: "",
  2365. com: "MarkersCharts",
  2366. chartsType: [
  2367. {
  2368. name: "分图",
  2369. filesType: "2D",
  2370. },
  2371. ],
  2372. "2DConfig": {
  2373. mode: "markers",
  2374. type: "scatter",
  2375. marker: {
  2376. size: 5,
  2377. color: "#636EFA",
  2378. },
  2379. },
  2380. "2DLayoutConfig": {
  2381. title: "机组",
  2382. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  2383. xaxis: {
  2384. // "dtick": 100,
  2385. title: "功率",
  2386. tickangle: -45,
  2387. gridcolor: "rgb(255,255,255)",
  2388. showgrid: true,
  2389. zeroline: false,
  2390. ticklen: 5,
  2391. gridwidth: 1, // 网格线宽度
  2392. tickcolor: "rgb(255,255,255)",
  2393. },
  2394. yaxis: {
  2395. title: "叶尖速比/风能利用系数分析^(1/3)",
  2396. // "dtick": 100,
  2397. gridcolor: "rgb(255,255,255)",
  2398. showgrid: true,
  2399. zeroline: false,
  2400. ticklen: 5,
  2401. gridwidth: 1, // 网格线宽度
  2402. tickcolor: "rgb(255,255,255)",
  2403. },
  2404. },
  2405. },
  2406. {
  2407. analysisTypeName: "风能利用系数时序分析",
  2408. analysisTypeCode: "cp_trend",
  2409. title: "",
  2410. modeType: "box+markers",
  2411. graphType: "box",
  2412. xLable: "Time",
  2413. yLable: "风能利用系数",
  2414. zLable: "",
  2415. com: "BoxMarkersCharts",
  2416. chartsType: [
  2417. {
  2418. name: "分图",
  2419. filesType: "BoxMarkers",
  2420. },
  2421. ],
  2422. dataConfig: [
  2423. {
  2424. type: "box",
  2425. boxpoints: "outliers", // 显示离群值
  2426. marker: {
  2427. color: "lightgoldenrodyellow",
  2428. size: 3,
  2429. },
  2430. line: {
  2431. color: "lightgray",
  2432. width: 2,
  2433. },
  2434. fillcolor: "rgba(200, 200, 200, 0.5)",
  2435. },
  2436. {
  2437. type: "scatter",
  2438. mode: "markers",
  2439. marker: {
  2440. color: "orange",
  2441. size: 5,
  2442. },
  2443. },
  2444. ],
  2445. lableConfig: {
  2446. title: {
  2447. text: "机组:",
  2448. },
  2449. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  2450. xaxis: {
  2451. title: "时间",
  2452. tickmode: "auto",
  2453. tickformat: "%Y-%m-%d",
  2454. showgrid: true,
  2455. gridcolor: "lightgray",
  2456. tickangle: -45,
  2457. linecolor: "black",
  2458. tickcolor: "rgb(255,255,255)",
  2459. ticklen: 5,
  2460. },
  2461. yaxis: {
  2462. title: "风能利用系数",
  2463. range: [0, 1],
  2464. showgrid: true,
  2465. gridcolor: "lightgray",
  2466. linecolor: "black",
  2467. tickcolor: "rgb(255,255,255)",
  2468. ticklen: 5,
  2469. },
  2470. paper_bgcolor: "white",
  2471. plot_bgcolor: "white",
  2472. margin: {
  2473. t: 50,
  2474. b: 150,
  2475. },
  2476. },
  2477. },
  2478. {
  2479. analysisTypeName: "叶尖速比和风速分析",
  2480. analysisTypeCode: "tsr_windspeed",
  2481. title: "",
  2482. modeType: "lines",
  2483. graphType: "scatter",
  2484. xLable: "Wind Speed Floor",
  2485. yLable: "叶尖速比",
  2486. zLable: "",
  2487. com: "lineAndChildLine",
  2488. lableConfig: {
  2489. title: {
  2490. x: 0.5,
  2491. text: "叶尖速比分布图",
  2492. },
  2493. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  2494. xaxis: {
  2495. title: "风速最低阈值",
  2496. tickmode: "linear",
  2497. gridcolor: "rgb(255,255,255)",
  2498. showgrid: true,
  2499. zeroline: false,
  2500. dtick: 1,
  2501. tickangle: -45,
  2502. tickcolor: "rgb(255,255,255)",
  2503. },
  2504. yaxis: {
  2505. title: "叶尖风速比",
  2506. gridcolor: "rgb(255,255,255)",
  2507. showgrid: true,
  2508. zeroline: false,
  2509. tickcolor: "rgb(255,255,255)",
  2510. },
  2511. legend: {
  2512. orientation: "h",
  2513. xanchor: "center",
  2514. x: 0.5,
  2515. y: -0.2,
  2516. },
  2517. },
  2518. colors: [
  2519. "#636EFA",
  2520. "#EF553B",
  2521. "#00CC96",
  2522. "#AB63FA",
  2523. "#FFA15A",
  2524. "#19D3F3",
  2525. "#FF6692",
  2526. "#B6E880",
  2527. "#FF97FF",
  2528. "#FECB52",
  2529. "#636EFB",
  2530. "#EF553C",
  2531. "#00CC97",
  2532. "#AB63FB",
  2533. "#FFA15B",
  2534. "#19D3F4",
  2535. "#FF6693",
  2536. "#B6E881",
  2537. "#FF97FE",
  2538. "#FECB51",
  2539. "#1F77B4",
  2540. "#FF7F0E",
  2541. "#2CA02C",
  2542. "#D62728",
  2543. "#9467BD",
  2544. "#8C564B",
  2545. "#E377C2",
  2546. "#7F7F7F",
  2547. "#BCBD22",
  2548. "#17BECF",
  2549. "#1A55F2",
  2550. "#FF5733",
  2551. "#33FF57",
  2552. "#3375FF",
  2553. "#FF33A6",
  2554. "#FF5733",
  2555. "#57FF33",
  2556. "#FF3380",
  2557. "#80FF33",
  2558. "#3380FF",
  2559. "#FF8033",
  2560. "#57FF80",
  2561. "#3380FF",
  2562. "#8033FF",
  2563. "#FF3380",
  2564. "#FF57D7",
  2565. "#FFD733",
  2566. "#33FFD7",
  2567. "#D733FF",
  2568. "#8033FF",
  2569. "#3380FF",
  2570. "#FF3380",
  2571. "#D7FF33",
  2572. "#FF8033",
  2573. "#33FF57",
  2574. "#33D7FF",
  2575. "#FF5733",
  2576. "#33D7FF",
  2577. "#33FF57",
  2578. "#57D7FF",
  2579. ],
  2580. },
  2581. {
  2582. analysisTypeName: "秒级SCADA数据记录完整度分析",
  2583. analysisTypeCode: "data_integrity_second",
  2584. title: "数据完整度检测(%)秒级",
  2585. modeType: "heatmap",
  2586. graphType: "heatmap",
  2587. xLable: "机组",
  2588. colorscale: "Viridis",
  2589. yLable: "日期",
  2590. zLable: "",
  2591. com: "HeatmapCharts",
  2592. chartsType: [
  2593. {
  2594. name: "总图",
  2595. filesType: "heatmap",
  2596. },
  2597. ],
  2598. lableConfig: {
  2599. plot_bgcolor: "#e5ecf6", // 图表区域背景颜色
  2600. xaxis: {
  2601. title: {
  2602. text: "日期", // X 轴标签
  2603. standoff: 20, // 设置 X 轴标签与刻度标记之间的距离
  2604. },
  2605. gridcolor: "rgb(255,255,255)",
  2606. showgrid: false,
  2607. zeroline: false,
  2608. ticklen: 5,
  2609. gridwidth: 4, // 网格线宽度
  2610. tickcolor: "rgb(255,255,255)",
  2611. tickangle: -45, // 设置x轴标签倾斜45度
  2612. },
  2613. yaxis: {
  2614. title: {
  2615. text: "机组", // X 轴标签
  2616. standoff: 20, // 设置 X 轴标签与刻度标记之间的距离
  2617. },
  2618. gridcolor: "rgb(255,255,255)",
  2619. showgrid: true,
  2620. zeroline: false,
  2621. tickcolor: "rgb(255,255,255)",
  2622. ticklen: 5,
  2623. gridwidth: 4, // 网格线宽度
  2624. },
  2625. showlegend: false,
  2626. // 添加边框
  2627. annotations: [], // 初始化注释数组
  2628. },
  2629. },
  2630. {
  2631. //分图
  2632. analysisTypeName: "偏航控制策略异常检测",
  2633. analysisTypeCode: "power_scatter_2D",
  2634. modeType: "lines+markers",
  2635. graphType: "scatter",
  2636. xLable: "有功功率",
  2637. yLable: "偏航误差角度",
  2638. zLable: "",
  2639. com: "powerMarkers2DCharts",
  2640. chartsType: [
  2641. {
  2642. name: "分图",
  2643. filesType: "2D",
  2644. },
  2645. ],
  2646. dataConfig: [
  2647. {
  2648. mode: "markers",
  2649. marker: {
  2650. colorscale: "Rainbow",
  2651. opacity: 0.7,
  2652. },
  2653. type: "scatter",
  2654. },
  2655. {
  2656. mode: "lines+markers",
  2657. marker: { color: "gray", size: 7 },
  2658. name: "Contract Guarantee Power Curve",
  2659. type: "scatter",
  2660. },
  2661. ],
  2662. lableConfig: {
  2663. plot_bgcolor: "#e5ecf6",
  2664. xaxis: {
  2665. title: "风速",
  2666. tickmode: "array",
  2667. gridcolor: "rgb(255,255,255)",
  2668. showgrid: true,
  2669. zeroline: false,
  2670. tickcolor: "rgb(255,255,255)",
  2671. tickangle: -45,
  2672. },
  2673. yaxis: {
  2674. title: "功率",
  2675. tickmode: "array",
  2676. gridcolor: "rgb(255,255,255)",
  2677. showgrid: true,
  2678. zeroline: false,
  2679. tickcolor: "rgb(255,255,255)",
  2680. },
  2681. legend: {
  2682. yanchor: "bottom",
  2683. y: 0,
  2684. xanchor: "right",
  2685. x: 1,
  2686. bgcolor: "rgba(0, 0, 0, 0)", // Transparent background color
  2687. },
  2688. },
  2689. },
  2690. ];