Method and system for automatic layout of substation labels in centralized control area based on Echarts map

By using the automatic layout method based on Echarts map in the substation monitoring system, the problem of overlapping substation labels is solved, achieving more efficient project implementation and optimized user experience.

CN118377818BActive Publication Date: 2025-01-24NANJING GUODIAN NANZI POWER GRID AUTOMATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410814539.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2025-01-24
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

In the substation monitoring system, multiple substation labels overlap on the map, resulting in difficulty in manual arrangement, increasing the amount of engineering configuration, and affecting the user's operating experience.

Method used

The automatic layout method based on the Echarts map is used to filter the labels that need to be re-layout, calculate the rectangular target area and longitude and latitude, convert them into screen coordinates, and use the labelLayout label layout configuration item to display the labels.

Benefits of technology

Reduce the amount of engineering configuration, improve the efficiency of engineering implementation and user operation experience, and optimize the interface layout.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118377818B_ABST
    Figure CN118377818B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of substation monitoring automation application, and provides a method and system for automatically laying out substation labels in a centralized control area based on an Echarts map, wherein the method comprises: screening out labels of substations that need to be re-layout; calculating the rectangular target area of ​​the labels of the substations according to the constraint conditions, and calculating the longitude and latitude of the labels of each substation according to the rectangular target area; converting the calculated longitude and latitude of the labels of each substation into screen coordinates; and displaying the label layout of each substation in the rectangular target area on the Echarts map according to the screen coordinates of the labels of each substation. The present invention greatly reduces the amount of engineering configuration, and is more conducive to engineering implementation and promotion; the present invention finds blank areas through automatic layout, and arranges the labels of each substation in sequence, and the method greatly improves the efficiency of engineering implementation and optimizes the interface layout.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of substation monitoring automation application, and in particular to a method and system for automatically laying out substation labels within a centralized control area based on an Echarts map. Background Art

[0002] Substation operation and maintenance monitoring is the core business of power production. Substations are key nodes in the power grid. The panoramic monitoring homepage of the new generation of centralized control system displays all substations under the jurisdiction of the centralized control system in a unified geographic map, monitors the operating status information of substation equipment in real time, and enables the operation personnel of the centralized control station to carry out centralized monitoring of primary, secondary and auxiliary equipment of the substation, thereby improving the real-time perception of the status of power grid equipment.

[0003] According to the construction scale of the centralized control station, the substation is converted to a 35kV substation, and 80-200 substations are connected under the standard configuration. If all these substations are displayed on the map, the labels of each substation will inevitably overlap. At present, the solutions of various manufacturers are manual anchor points, which manually arrange the labels of each substation, which will be detrimental to the implementation of the project, greatly increase the amount of project configuration, and be detrimental to the implementation and promotion of the project; and the interface layout of the traditional solution is unreasonable, which affects the user operation experience. Summary of the invention

[0004] The purpose of the present invention is to solve at least one technical problem in the background technology and to provide a method for automatic layout of substation labels in a centralized control area based on an Echarts map.

[0005] To achieve the above object, the present invention provides a method for automatically laying out substation labels in a centralized control area based on an Echarts map, comprising:

[0006] Filter out the labels of substations that need to be re-arranged on the Echarts map;

[0007] According to the constraint conditions, the rectangular target area of ​​the substation label is calculated, and the longitude and latitude of the label of each substation is calculated according to the rectangular target area;

[0008] Convert the calculated longitude and latitude of each substation label into screen coordinates;

[0009] According to the screen coordinates of the labels of each substation, the label layout of each substation is displayed in the rectangular target area on the Echarts map.

[0010] According to one aspect of the present invention, the step of filtering out labels of substations that need to be rearranged on the Echarts map includes:

[0011] Determine the labels of the substations that overlap on the Echarts map;

[0012] Filter out the tags of substations that overlap.

[0013] According to one aspect of the present invention, the labels of the substations that overlap on the Echarts map are determined by the following formula:

[0014]

[0015] in, Labels representing substations The upper left corner longitude, upper left corner latitude, label spans longitude range, label spans latitude range, Labels representing substations The upper left corner longitude, upper left corner latitude, label spans longitude range, label spans latitude range.

[0016] According to one aspect of the present invention, the rectangular target area is located in a blank area on the Echarts map;

[0017] The rectangular target area of ​​the substation tag is calculated by the following formula:

[0018]

[0019] The constraints are:

[0020] or

[0021]

[0022] ,

[0023] ,

[0024] in, For substation The longitude after the labels are re-arranged, For substation Longitude, For substation The latitude of the labels after re-layout, For substation The latitude, is the number of tags of the substation that need to be rearranged, They represent the westernmost longitude, easternmost longitude, southernmost latitude and northernmost latitude of the Echarts map respectively; is a constant, which is twice the height of the label; or The position of the label indicating the substation after layout is outside the map area; The latitude of the location of the label indicating the substation after layout should not exceed the latitude of the map boundary; The labels of the substations after layout are aligned to the left; The labels indicating the substations after layout are evenly distributed vertically; is the minimum value of the rectangular target area;

[0025] Calculate the minimum value of the rectangular target area using the constraint conditions as boundary conditions , according to the minimum value of the rectangular target area Obtain the longitude and latitude values ​​of each substation after the labels are rearranged.

[0026] According to one aspect of the present invention, the calculated longitude and latitude of each substation label is converted into screen coordinates by the following formula:

[0027]

[0028]

[0029] in, For substation The horizontal coordinate on the screen is a known quantity; For substation The horizontal coordinate of the label on the screen; For substation The vertical coordinate on the screen is a known quantity; For substation The vertical coordinate of the label on the screen.

[0030] According to one aspect of the present invention, the label layout of each substation is displayed in a rectangular target area on the Echarts map according to the screen coordinates of the label of each substation:

[0031] Use the labelLayout configuration item of the Echarts map to display the label layout of each substation in the rectangular target area on the Echarts map according to the screen coordinates of the labels of each substation.

[0032] Furthermore, in order to achieve the above-mentioned purpose, the present invention also provides a substation label automatic layout system in a centralized control area based on an Echarts map, comprising:

[0033] Substation label filtering module, which filters out the labels of substations that need to be re-arranged on the Echarts map;

[0034] The substation tag longitude and latitude calculation module calculates the rectangular target area of ​​the substation tag according to the constraint conditions, and calculates the longitude and latitude of each substation tag according to the rectangular target area;

[0035] The screen coordinate conversion module converts the calculated longitude and latitude of each substation label into screen coordinates;

[0036] The substation label layout display module displays the label layout of each substation in the rectangular target area on the Echarts map according to the screen coordinates of the labels of each substation.

[0037] Furthermore, to achieve the above-mentioned purpose, the present invention also provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the method for automatic layout of substation labels within a centralized control area based on the Echarts map as described above.

[0038] Furthermore, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for automatic layout of substation labels in a centralized control area based on an Echarts map as described above is implemented.

[0039] According to the scheme of the present invention, the label automatic layout method of the substation based on the Echarts map of the present invention greatly reduces the amount of engineering configuration, which is more conducive to engineering implementation and promotion;

[0040] The automatic label layout method of the substation based on the Echarts map of the present invention has a more reasonable interface layout and greatly improves the user operation experience.

[0041] According to the above scheme of the present invention, the present invention finds blank areas through automatic layout and arranges the labels of each substation in sequence. This method greatly improves the efficiency of project implementation and optimizes the interface layout. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 A flowchart schematically showing a method for automatic layout of substation labels within a centralized control area based on an Echarts map according to an embodiment of the present invention;

[0043] Figure 2 It is a schematic diagram of the labels and rectangular target area of ​​the substation to be arranged;

[0044] Figure 3 This is a schematic diagram of the label layout of each substation. DETAILED DESCRIPTION

[0045] The present invention will now be discussed with reference to exemplary embodiments. It should be understood that the embodiments discussed are only to enable those skilled in the art to better understand and thus implement the present invention, rather than implying any limitation on the scope of the present invention.

[0046] As used herein, the term “including” and variations thereof are to be interpreted as open-ended terms meaning “including, but not limited to.” The term “based on” is to be interpreted as “based, at least in part, on.” The terms “one embodiment” and “an embodiment” are to be interpreted as “at least one embodiment.”

[0047] Figure 1 The flowchart schematically shows a method for automatically laying out substation labels in a centralized control area based on an Echarts map according to an embodiment of the present invention. Figure 1 As shown, in this embodiment, the method for automatically laying out substation labels in a centralized control area based on the Echarts map includes:

[0048] Filter out the labels of substations that need to be re-arranged on the Echarts map;

[0049] According to the constraint conditions, the rectangular target area of ​​the substation label is calculated, and the longitude and latitude of the label of each substation is calculated according to the rectangular target area;

[0050] Convert the calculated longitude and latitude of each substation label into screen coordinates;

[0051] According to the screen coordinates of the labels of each substation, the label layout of each substation is displayed in the rectangular target area on the Echarts map.

[0052] In this embodiment, the label of the substation is a description of the relevant situation of the substation, which is generally displayed as the substation name and is located on the left or right side of the substation icon. The substations are not evenly distributed in the map. It is more common that there are a large number of substations in a small area, which will cause the labels of multiple substations to overlap and cannot be seen clearly. The labels of these substations need to be rearranged.

[0053] Further, according to an embodiment of the present invention, the labels of the substations that need to be rearranged on the Echarts map are screened out, including:

[0054] Determine the labels of the substations that overlap on the Echarts map;

[0055] Filter out the tags of substations that overlap.

[0056] In this embodiment, if Figure 2As shown in area 1 and area 2, the coordinate detection method for determining label overlap is as follows: , For example, if the following logical expression is satisfied, then the substation and Labels overlap:

[0057]

[0058] in, Labels representing substations The upper left corner longitude, upper left corner latitude, label spans longitude range, label spans latitude range, Labels representing substations The upper left corner longitude, upper left corner latitude, label spans longitude range, label spans latitude range.

[0059] Further, according to an embodiment of the present invention, the rectangular target area is located in a blank area on the Echarts map. The border of the Echarts map is composed of irregular curves, so there must be a blank area outside the border. This area is the target placement area of ​​the substation label (i.e., the rectangular target area);

[0060] Specifically, according to the constraints, the rectangular target area of ​​the substation tag is calculated by the following formula:

[0061]

[0062] The constraints are:

[0063] or

[0064]

[0065] ,

[0066] ,

[0067] in, For substation The longitude after the labels are re-arranged, For substation Longitude, For substation The latitude of the labels after re-layout, For substation The latitude, is the number of tags of the substation that need to be rearranged, They represent the westernmost longitude, easternmost longitude, southernmost latitude and northernmost latitude of the Echarts map respectively; is a constant, which is twice the height of the label; or The position of the label indicating the substation after layout is outside the map area; The latitude of the location of the label indicating the substation after layout should not exceed the latitude of the map boundary; The labels of the substations after layout are aligned to the left; The labels indicating the substations after layout are evenly distributed vertically; is the minimum value of the rectangular target area;

[0068] Calculate the minimum value of the rectangular target area using the constraint conditions as boundary conditions , according to the minimum value of the rectangular target area Obtain the latitude and longitude values ​​of the re-arranged labels of each substation. Obtain the rectangular target area for arranging the labels of the substation as follows: Figure 2 As shown in area 3 and area 4.

[0069] Further, according to an embodiment of the present invention, the calculated longitude and latitude of the labels of each substation are converted into screen coordinates by the following formula:

[0070]

[0071]

[0072] in, For substation The horizontal coordinate on the screen is a known quantity; For substation The horizontal coordinate of the label on the screen; For substation The vertical coordinate on the screen is a known quantity; For substation The vertical coordinate of the label on the screen.

[0073] Further, according to an embodiment of the present invention, according to the screen coordinates of the labels of each substation, the label layout of each substation is displayed in a rectangular target area on the Echarts map as follows:

[0074] Use the labelLayout configuration item of the Echarts map to display the label layout of each substation in the rectangular target area on the Echarts map according to the screen coordinates of the labels of each substation.

[0075] In this embodiment, the labelLayout configuration item is a callback function, which displays the screen coordinate layout of each substation label in the rectangular target area on the Echarts map according to the above calculation. Figure 3 shown.

[0076] According to the above scheme of the present invention, the label automatic layout method of the substation based on the Echarts map of the present invention greatly reduces the engineering configuration amount, which is more conducive to the implementation and promotion of the project;

[0077] The automatic label layout method of the substation based on the Echarts map of the present invention has a more reasonable interface layout and greatly improves the user operation experience.

[0078] According to the above scheme of the present invention, the present invention finds blank areas through automatic layout and arranges the labels of each substation in sequence. This method greatly improves the efficiency of project implementation and optimizes the interface layout.

[0079] Furthermore, in order to achieve the above-mentioned purpose, the present invention also provides a substation label automatic layout system in a centralized control area based on an Echarts map, comprising:

[0080] Substation label filtering module, which filters out the labels of substations that need to be re-arranged on the Echarts map;

[0081] The substation tag longitude and latitude calculation module calculates the rectangular target area of ​​the substation tag according to the constraint conditions, and calculates the longitude and latitude of each substation tag according to the rectangular target area;

[0082] The screen coordinate conversion module converts the calculated longitude and latitude of each substation label into screen coordinates;

[0083] The substation label layout display module displays the label layout of each substation in the rectangular target area on the Echarts map according to the screen coordinates of the labels of each substation.

[0084] In this embodiment, the label of the substation is a description of the relevant situation of the substation, which is generally displayed as the substation name and is located on the left or right side of the substation icon. The substations are not evenly distributed in the map. It is more common that there are a large number of substations in a small area, which will cause the labels of multiple substations to overlap and cannot be seen clearly. The labels of these substations need to be rearranged.

[0085] Further, according to an embodiment of the present invention, the labels of the substations that need to be rearranged on the Echarts map are screened out, including:

[0086] Determine the labels of the substations that overlap on the Echarts map;

[0087] Filter out the tags of substations that overlap.

[0088] In this embodiment, if Figure 2 As shown in area 1 and area 2, the coordinate detection method for determining label overlap is as follows: , For example, if the following logical expression is satisfied, then the substation and Labels overlap:

[0089]

[0090] in, Labels representing substations The upper left corner longitude, upper left corner latitude, label spans longitude range, label spans latitude range, Labels representing substations The upper left corner longitude, upper left corner latitude, label spans longitude range, label spans latitude range.

[0091] Further, according to an embodiment of the present invention, the rectangular target area is located in a blank area on the Echarts map. The border of the Echarts map is composed of irregular curves, so there must be a blank area outside the border. This area is the target placement area of ​​the substation label (i.e., the rectangular target area);

[0092] Specifically, according to the constraints, the rectangular target area of ​​the substation tag is calculated by the following formula:

[0093]

[0094] The constraints are:

[0095] or

[0096]

[0097] ,

[0098] ,

[0099] in, For substation The longitude after the labels are re-arranged, For substation Longitude, For substation The latitude of the labels after re-layout, For substation The latitude, is the number of tags of the substation that need to be rearranged, Respectively represent the westernmost longitude, easternmost longitude, southernmost latitude and northernmost latitude of the Echarts map; is a constant, which is twice the height of the label; or The position of the label indicating the substation after layout is outside the map area; The latitude of the location of the label indicating the substation after layout should not exceed the latitude of the map boundary; The labels of the substations after layout are aligned to the left; The labels indicating the substations after layout are evenly distributed vertically; is the minimum value of the rectangular target area;

[0100] Calculate the minimum value of the rectangular target area using the constraint conditions as boundary conditions , according to the minimum value of the rectangular target area Obtain the latitude and longitude values ​​of the re-arranged labels of each substation. Obtain the rectangular target area for arranging the labels of the substation as follows: Figure 2 As shown in area 3 and area 4.

[0101] Further, according to an embodiment of the present invention, the calculated longitude and latitude of the labels of each substation are converted into screen coordinates by the following formula:

[0102]

[0103]

[0104] in, For substation The horizontal coordinate on the screen is a known quantity; For substation The horizontal coordinate of the label on the screen; For substation The vertical coordinate on the screen is a known quantity; For substation The vertical coordinate of the label on the screen.

[0105] Further, according to an embodiment of the present invention, according to the screen coordinates of the labels of each substation, the label layout of each substation is displayed in a rectangular target area on the Echarts map as follows:

[0106] Use the labelLayout configuration item of the Echarts map to display the label layout of each substation in the rectangular target area on the Echarts map according to the screen coordinates of the labels of each substation.

[0107] In this embodiment, the labelLayout configuration item is a callback function, which displays the screen coordinate layout of each substation label obtained by the above calculation in the rectangular target area on the Echarts map. The final layout position of each substation (virtual station, representing the substation) label is as follows: Figure 3 shown.

[0108] According to the above scheme of the present invention, the label automatic layout method of the substation based on the Echarts map of the present invention greatly reduces the engineering configuration amount, which is more conducive to the implementation and promotion of the project;

[0109] The automatic label layout method of the substation based on the Echarts map of the present invention has a more reasonable interface layout and greatly improves the user operation experience.

[0110] According to the above scheme of the present invention, the present invention finds blank areas through automatic layout and arranges the labels of each substation in sequence. This method greatly improves the efficiency of project implementation and optimizes the interface layout.

[0111] Furthermore, to achieve the above-mentioned purpose, the present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the method for automatic layout of substation labels within a centralized control area based on the Echarts map as described above is implemented.

[0112] Furthermore, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for automatic layout of substation labels in a centralized control area based on an Echarts map as described above is implemented.

[0113] Those skilled in the art will appreciate that the modules and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0114] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and equipment can refer to the corresponding processes in the aforementioned method implementation methods, and will not be repeated here.

[0115] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0116] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.

[0117] In addition, each functional module in the embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0118] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the energy-saving signal sending / receiving method of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0119] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other.

[0120] It should be understood that the size of the serial numbers of each step in the content of the invention and the implementation methods of the present invention does not absolutely mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the implementation methods of the present invention.

Claims

1. The method for automatic layout of substation labels in the centralized control area based on Echarts map is characterized by: include: Filter out the labels of substations that need to be re-arranged on the Echarts map; According to the constraint conditions, the rectangular target area of ​​the substation label is calculated, and the longitude and latitude of the label of each substation is calculated according to the rectangular target area; Convert the calculated longitude and latitude of each substation label into screen coordinates; According to the screen coordinates of the labels of each substation, the label layout of each substation is displayed in the rectangular target area on the Echarts map; The rectangular target area is located in the blank area on the Echarts map; The rectangular target area of ​​the substation tag is calculated by the following formula: The constraints are: or , , in, For substation The longitude after the labels are re-arranged, For substation The longitude, For substation The latitude of the labels after re-layout, For substation The latitude, is the number of tags of the substation that need to be rearranged, They represent the westernmost longitude, easternmost longitude, southernmost latitude and northernmost latitude of the Echarts map respectively; is a constant, which is twice the height of the label; or The position of the label indicating the substation after layout is outside the map area; The latitude of the location of the label indicating the substation after layout should not exceed the latitude of the map boundary; The labels of the substations after layout are aligned to the left; The labels indicating the substations after layout are evenly distributed vertically; is the minimum value of the rectangular target area; Calculate the minimum value of the rectangular target area using the constraint conditions as boundary conditions , according to the minimum value of the rectangular target area Obtain the longitude and latitude values ​​of each substation after the labels are rearranged.

2. The method for automatic layout of substation labels in a centralized control area based on Echarts map according to claim 1 is characterized in that: The labels of the substations that need to be re-arranged on the Echarts map are filtered out, including: Determine the labels of the substations that overlap on the Echarts map; Filter out the tags of substations that overlap.

3. The method for automatic layout of substation labels in a centralized control area based on Echarts map according to claim 1 is characterized in that: The labels of the substations that overlap on the Echarts map are determined by the following formula: in, Labels representing substations The upper left corner longitude, upper left corner latitude, label spans longitude range, label spans latitude range, Labels representing substations The upper left corner longitude, upper left corner latitude, label spans longitude range, label spans latitude range.

4. The method for automatic layout of substation labels in a centralized control area based on Echarts map according to claim 1 is characterized in that: The calculated longitude and latitude of each substation label are converted into screen coordinates using the following formula: in, For substation The horizontal coordinate on the screen is a known quantity; For substation The horizontal coordinate of the label on the screen; For substation The vertical coordinate on the screen is a known quantity; For substation The vertical coordinate of the label on the screen.

5. The method for automatic layout of substation labels in a centralized control area based on an Echarts map according to any one of claims 1 to 4, characterized in that: According to the screen coordinates of the labels of each substation, the label layout of each substation is displayed in the rectangular target area on the Echarts map as follows: Use the labelLayout configuration item of the Echarts map to display the label layout of each substation in the rectangular target area on the Echarts map according to the screen coordinates of the labels of each substation.

6. The automatic layout system of substation labels in the centralized control area based on Echarts map is characterized by: include: Substation label filtering module, which filters out the labels of substations that need to be re-arranged on the Echarts map; The substation tag longitude and latitude calculation module calculates the rectangular target area of ​​the substation tag according to the constraint conditions, and calculates the longitude and latitude of each substation tag according to the rectangular target area; The screen coordinate conversion module converts the calculated longitude and latitude of each substation label into screen coordinates; The substation label layout display module displays the label layout of each substation in the rectangular target area on the Echarts map according to the screen coordinates of the labels of each substation; The rectangular target area is located in the blank area on the Echarts map; The rectangular target area of ​​the substation tag is calculated by the following formula: The constraints are: or , , in, For substation The longitude after the labels are re-arranged, For substation The longitude, For substation The latitude of the labels after re-layout, For substation The latitude, is the number of tags of the substation that need to be rearranged, They represent the westernmost longitude, easternmost longitude, southernmost latitude and northernmost latitude of the Echarts map respectively; is a constant, which is twice the height of the label; or The position of the label indicating the substation after layout is outside the map area; The latitude of the location of the label indicating the substation after layout should not exceed the latitude of the map boundary; The labels of the substations after layout are aligned to the left; The labels indicating the substations after layout are evenly distributed vertically; is the minimum value of the rectangular target area; Calculate the minimum value of the rectangular target area using the constraint conditions as boundary conditions , according to the minimum value of the rectangular target area Obtain the longitude and latitude values ​​of each substation after the labels are rearranged.

7. An electronic device, characterized in that The invention comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the method for automatically laying out substation labels within a centralized control area based on an Echarts map as described in any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the method for automatically laying out substation labels within a centralized control area based on an Echarts map according to any one of claims 1 to 5 is implemented.