Data map node display method, system and storage medium for data governance
By constructing and sorting data map nodes, and calculating coordinates based on the honeycomb combination model, the problem of node stacking and occlusion in the data map is solved, and clear data display and differentiation effects are achieved.
Patent Information
- Application Number
- CN202410463619.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-17
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-04-17
AI Technical Summary
In data governance activities, due to the large number of system and database nodes on the browser side, the data map is stacked and blocked in a fixed-size canvas, making it impossible to distinguish clearly.
By obtaining the combination relationship between the business system and the database, we construct large circular and small circular nodes, filter and sort the large circular nodes, and calculate the node coordinates based on the honeycomb combination model to achieve the optimal layout of nodes and automatic line wrapping, ensuring that the nodes Occlusions are not stacked.
It realizes the adjustment of node layout according to the browser screen size, clearly displays the relationship between business systems and databases, distinguishes between large and small business systems, and ensures that the display effect is clear at a glance.
Smart Images

Figure CN118334164B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data map visualization, and in particular to a data map node display method, system and storage medium for data governance. Background Art
[0002] At present, in data governance activities, the data maps used to display a large number of system relationships have many business systems in the existing data services, and each business system has many different data sources and databases. These data form different combinations: one system contains multiple databases. When these large numbers of system and database relationships are displayed in the form of data maps, browser developers use the front-end graphics component, namely AntV-G6, to render and display the data maps between systems and databases on a fixed-size canvas on the browser page.
[0003] For example, a simple method is used to obtain the combined relationship between a system and the business databases it contains, that is, the parent-child relationship. A system can contain multiple business databases. The system is displayed as a large node in the data map, and the business database is displayed as a small node in the parent system, that is, the large node.
[0004] In the fixed-size canvas on the browser, the canvas is a rectangular area with fixed length and width on the browser page. Due to the large number of system and database nodes, these nodes are stacked and blocked, and cannot be clearly distinguished. Summary of the invention
[0005] In order to ensure that the displayed nodes are not overlapped or blocked and can be clearly distinguished, the present application provides a data map node display method, system and storage medium for data governance.
[0006] In the first aspect, the present application provides a data map node display method for data governance, which adopts the following technical solution:
[0007] A data map node display method for data governance includes the following steps:
[0008] Obtain multiple business systems, multiple business databases and corresponding combination relationships in data services;
[0009] Based on the business system and the business database, a map node is constructed according to the combination relationship; the map node contains a large circular node, a small circular node and a node inclusion attribute, the large circular node corresponds to the business system, and the small circular node corresponds to the business database; the content of the node inclusion attribute includes the inclusion relationship between the large circular node and the small circular node, and corresponds to the combination relationship;
[0010] Filtering out the large circular node including a plurality of the small circular nodes from the map nodes;
[0011] The screened large circular nodes are sorted according to the number of the small circular nodes contained therein to obtain a node sequence, wherein the node sequence containing more small circular nodes is ranked first;
[0012] According to the size data of all the small circular nodes in each of the filtered large circular nodes, the number of the filtered large circular nodes that can be accommodated in each row of the canvas is calculated, and a layer for placing the filtered large circular nodes is constructed in each row of the canvas;
[0013] Calculate the vertical axis coordinate of the first large circular node to be placed in each layer;
[0014] Calculate the horizontal axis coordinate of each of the large circular nodes and the horizontal axis coordinate of each of the small circular nodes in each of the layers in combination with the pre-generated honeycomb combination model;
[0015] A data map is rendered according to the vertical axis coordinate and the horizontal axis coordinate of each of the large circular nodes and each of the small circular nodes.
[0016] By adopting the above technical solution, the horizontal axis coordinates on the canvas, the vertical axis coordinates on the canvas and the data of the circular nodes can be set according to the screen sizes of different browsers, so as to achieve the best layout effect that meets the current browser screen size; the difference between a large business system with multiple databases and a small business system with a small number of databases can be intuitively seen through the data map; a large number of business systems and business database relationships can be arranged in order from large to small according to the number of databases included, and automatic line wrapping can be achieved, and the circular nodes are not stacked or blocked with each other, and the display is clear and clear at a glance.
[0017] Optionally, the method further comprises the following steps:
[0018] According to the data in the layer, the y-axis coordinate preYAis of the center of the first large circular node in each row is calculated. The y-axis coordinate of the center of the large circular node in each row is based on the value of preYAis, combined with the number value of the small circular nodes of the first large circular node and the radius radius of the small circle. The specific steps are as follows:
[0019] First calculate the radius value radiusNow of the first large circular node in the first row:
[0020] radiusNow=(1+(number of layers of honeycomb combination model of small circular nodes-1)×2)×radius;
[0021] The y-axis coordinate levelYAxis of the first large circular node is radiusNow; the radius value of the first large circular node in the next row is radiusNow2:
[0022] radiusNow2=(1+(number of layers of the honeycomb combination model of small circular nodes-1)×2)×radius2; radius2 is the radius of the small circle of the first large circular node in the next row;
[0023] Then the y-axis coordinate of the next line is:
[0024] levelYAxis2=levelYAxis of the previous row+radiusNow of the previous row+radiusNow2;
[0025] The levelYAxis of the previous row is preYAis;
[0026] Then calculate the y-axis coordinates of the large circular nodes in each row in turn.
[0027] By adopting the above technical solution, the y-axis coordinate of the large circular node can be calculated, which is conducive to achieving the best layout effect that meets the current browser screen size.
[0028] Optionally, the method further comprises the following steps:
[0029] The x-axis coordinate of the first large circular node in the first row is XAxis;
[0030] According to the radius value radiusNow, the x-axis coordinate XAxis of the first large circular node in the first row, the y-axis coordinate levelYAxis of the first large circular node in the first row, and the small circle radius radius of the small circular node of the first large circular node in the first row are calculated through the honeycomb combination model to obtain the x-axis coordinate and the y-axis coordinate of each small circular node of all layers in the honeycomb combination model of the small circular node;
[0031] According to the number value of the small circular nodes contained in the large circular node, the x-axis coordinates and y-axis coordinates of the same number of the small circular nodes are obtained, and the coordinates of all the small circular nodes of the large circular node are obtained;
[0032] Then, the coordinates of each of the small circular nodes in each of the large circular nodes in each row are calculated according to the layer.
[0033] By adopting the above technical solution, the x-axis coordinates of the large circular node and the coordinates of the small circular node can be calculated, which is conducive to achieving the best layout effect suitable for the current browser screen size.
[0034] Optionally, the method further comprises the following steps:
[0035] Filtering out the large circular node that contains only one small circular node from the map nodes;
[0036] The large circular node including only one small circular node is placed at the last position of the node sequence.
[0037] By adopting the above technical solution, after sorting, the arrangement order of the data can be presented visually, which is conducive to intuitively seeing the difference between a large business system with multiple databases and a small business system with a small number of databases through a data map.
[0038] Optionally, the method further comprises the following steps:
[0039] A new row is created at the end of the canvas to place all the large circular nodes that only contain one small circular node.
[0040] By adopting the above technical solution, the two large circular nodes can be displayed distinguishably, thereby improving the visibility of the display features.
[0041] Optionally, the method further comprises the following steps:
[0042] Calculate the sum of the radius values of all the large circular nodes that only include one small circular node as a first radius sum value;
[0043] Adjust the background transparency of the last row according to the first radius and value, wherein the larger the first radius and value, the greater the background transparency, and the smaller the first radius and value, the smaller the background transparency;
[0044] Calculate the sum of the radius values of all the large circular nodes including the plurality of small circular nodes as a second radius sum value;
[0045] adjusting the contrast of the last row according to the second radius and value, wherein the larger the second radius and value, the higher the contrast, and the smaller the second radius and value, the smaller the contrast;
[0046] Calculate a comprehensive radius sum value according to the first radius sum value and the second radius sum value;
[0047] The display pixels of the last row are adjusted according to the comprehensive radius and value. The larger the comprehensive radius and value, the higher the display pixels. The smaller the comprehensive radius and value, the lower the display pixels.
[0048] By adopting the above technical solution, the background transparency, contrast and display of the last row can be adjusted according to the conditions of the two large circular nodes, so that the last row can have the effect of highlighting or blurring the background.
[0049] Optionally, the method further comprises the following steps:
[0050] Calculating a comprehensive radius sum value using a weighted average algorithm according to the first radius sum value and the second radius sum value;
[0051] The weight of the first radius and value is positively correlated to the number of the large circular nodes that only contain one small circular node, and the greater the number of the large circular nodes that only contain one small circular node, the greater the weight of the first radius and value;
[0052] The weight of the second radius and value is positively correlated to the number of the large circular nodes containing multiple small circular nodes. The larger the number of the large circular nodes containing multiple small circular nodes, the greater the weight of the second radius and value.
[0053] By adopting the above technical solution, the comprehensive radius and value are calculated, so that the change of the display effect of the last row is more closely related to the distribution of the large circular nodes.
[0054] Optionally, the method further comprises the following steps:
[0055] Calculate the sum of the radius values of all the large circular nodes that only contain one small circular node;
[0056] The row height of the row above is adjusted according to the sum of the radius values. The larger the sum of the radius values is, the larger the row height of the row above is corresponding to the sum of the radius values. The smaller the sum of the radius values is, the smaller the row height of the row above is corresponding to the sum of the radius values.
[0057] By adopting the above technical solution, the row height corresponding to the upper row is adjusted according to the sum of the radius values, so that the difference between the two large circular nodes can be indirectly highlighted.
[0058] In the second aspect, the present application provides a data map node display system for data governance, which adopts the following technical solutions:
[0059] A data map node display system for data governance includes a processor in which a program of any one of the data map node display methods for data governance described above is run.
[0060] In a third aspect, the present application provides a storage medium, which adopts the following technical solution:
[0061] A storage medium storing a program of any one of the above-mentioned data map node display methods for data governance.
[0062] In summary, the present application includes at least one of the following beneficial technical effects: the horizontal axis coordinate on the canvas, the vertical axis coordinate on the canvas and the data of the circular node can be set according to the screen size of different browsers, so as to achieve the best layout effect that meets the current browser screen size; the difference between a large business system with multiple databases and a small business system with a small number of databases can be intuitively seen through the data map; a large number of business systems and business database relationships can be arranged in sequence from large to small according to the number of databases included, and automatic line wrapping can be achieved, and the circular nodes are not stacked or blocked with each other, and the display is clear and clear at a glance. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 It is a display diagram of data map nodes in the prior art.
[0064] Figure 2 It is a schematic diagram of the overall method flow of the data map node display method in the embodiment of the present application.
[0065] Figure 3 It is a flowchart of a method for calculating the y-axis coordinate of a large circular node in an embodiment of the present application.
[0066] Figure 4 It is a flowchart of a method for calculating the x-axis coordinates of a large circular node and the coordinates of a small circular node in an embodiment of the present application.
[0067] Figure 5 It is a graphical diagram of the coordinates of the small circular nodes calculated by the honeycomb combination model in the embodiment of the present application.
[0068] Figure 6 It is a flowchart diagram of a method for screening out and sorting large circular nodes that contain only one small circular node in an embodiment of the present application.
[0069] Figure 7 It is a flowchart of a method for adjusting the display effect of the last row in an embodiment of the present application.
[0070] Figure 8 It is a flow chart of the method for calculating the comprehensive radius and value in an embodiment of the present application.
[0071] Fig. 9 It is a flowchart of a method for adjusting the row height of the row above the last row in an embodiment of the present application.
[0072] Fig.10 It is a schematic diagram of the display effect of the data map node display method in the embodiment of the present application. DETAILED DESCRIPTION
[0073] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the attached Figure 2-Figure 10 Shown in.
[0074] In the description of this specification, the description with reference to the terms "certain embodiments", "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0075] Among the existing schemes, Figure 1 As shown, a simple method is used to obtain the combined relationship between the system and the business databases it contains, that is, the parent-child relationship. A system can contain multiple business databases. The system is displayed as a large node in the data map, and the business database is displayed as a small node in the parent system, that is, the large node. The large node is a large square frame, and the small node is a small square frame. The small node is located inside the large node. Click to display in a fixed-size canvas on the browser. The canvas is a rectangular area with a fixed length and width on the browser page. Due to the large number of system and database nodes, these nodes are stacked and blocked, and cannot be clearly distinguished.
[0076] The present application embodiment discloses a data map node display method for data management, referring to Figure 2 , including the following steps:
[0077] Obtain multiple business systems, multiple business databases and corresponding combination relationships in data services. Multiple business systems, multiple business databases and corresponding combination relationships can be obtained through simple existing methods. For example, the data of multiple business systems, multiple business databases and corresponding combination relationships are dynamically and real-time recorded in a separate MySQL database, and then a library, table and index can be built in the MySQL database, and then the data can be added, deleted, modified, checked, updated and queried. The steps involved in this method can all be implemented through Java code or other programming languages.
[0078] Based on the business system and business database, map nodes are constructed according to the combination relationship, and the map corresponding to the map is also a Map object. In terms of the details of data display, a large circular node is used to represent a business system, and a small circular node is used to represent a business database. The business system contains the business database, and the large circular node contains the small circular node. A large circular node contains at least one or more small circular nodes. Specifically, the nodes that need to be processed by the construction algorithm are constructed into Map objects, where the construction algorithm is to fill the corresponding data into a preset format to form a new object, for example, the key is used as the unique identifier id of the large circular node, and the value is used as the number of small circular nodes contained in the large circular node.
[0079] The map node contains large circular nodes, small circular nodes and node inclusion attributes. The large circular nodes correspond to the business system, and the small circular nodes correspond to the business database. The content of the node inclusion attribute includes the inclusion relationship between the large circular node and the small circular node, and corresponds to the combination relationship.
[0080] Large circular nodes that contain multiple small circular nodes are selected from the map nodes, and hiatus selects large circular nodes that contain only one small circular node from the map nodes, and processes the large circular nodes in the two cases separately.
[0081] First, process the large circular nodes that contain multiple small circular nodes, and sort the selected large circular nodes according to the number of small circular nodes they contain to obtain a node sequence. In the node sequence, the node with more small circular nodes is ranked first. The sorting rule is to sort in descending order according to the number of small circular nodes contained; or, it can also be sorted in descending order according to the total data capacity corresponding to all the small circular nodes contained.
[0082] According to the size data of all the small circular nodes in each filtered large circular node, the number of filtered large circular nodes that can be accommodated in each row of the canvas is calculated, and a layer for placing the filtered large circular nodes is constructed in each row of the canvas. For example, the number of large circular nodes that can be placed in each row of the page when the canvas is rendered is calculated according to the number of small circular nodes of each large circular node, the radius of the small circular node, and the width of the canvas, and the layers of large circular nodes that can be placed in each row, i.e., the set levels, are constructed. Therefore, compared with other existing technologies, this method adds node inclusion attributes. Specifically, each circular node includes the following attributes: index index, horizontal axis coordinate xAxis on the canvas, vertical axis coordinate yAxis on the canvas, and circular radius radius.
[0083] Then process the large circular nodes that only contain one small circular node, treat these large circular nodes that only contain one small circular node as a new row, and put them at the end as the last layer.
[0084] Next, calculate the vertical coordinate of the first large circular node to be placed in each layer.
[0085] like Figure 3 As shown, according to the data in each layer, i.e., the collection levels, the y-axis coordinate preYAis of the center of the first large circular node in each row is calculated. The y-axis coordinate of the center of the large circular node in each row is based on the value of preYAis. Combining the number of small circular nodes value of the first large circular node and the radius of the small circle radius, the radius value radiusNow of the first large circular node in the first row is calculated first:
[0086] radiusNow=(1+(number of layers of honeycomb combination model of small circular nodes-1)×2)×radius;
[0087] The value of the y-axis coordinate levelYAxis of the first large circular node in the first row is radiusNow.
[0088] Combining the number of small circular nodes value2 of the first large circular node in the next row and the radius radius2 of the small circle, the radius value of the first large circular node in the next row is calculated according to the above formula to be radiusNow2:
[0089] radiusNow2=(1+(number of layers of the honeycomb combination model of small circular nodes-1)×2)×radius2;
[0090] Then the y-axis coordinate of the next line is:
[0091] levelYAxis2=levelYAxis of the previous row+radiusNow of the previous row+radiusNow2;
[0092] Among them, the levelYAxis of the previous line is preYAis;
[0093] Then the y-axis coordinates of all the large circular nodes in each row are calculated in turn. In addition, the number of layers of the honeycomb combination model of the small circular nodes can be 5.
[0094] The above algorithm can calculate the y-axis coordinate of the large circular node, which is conducive to achieving the best layout effect that meets the current browser screen size.
[0095] like Figure 4 and Figure 5As shown, the horizontal axis coordinate of each large circular node and the horizontal axis coordinate of each small circular node in each layer are calculated in combination with the pre-generated honeycomb combination model.
[0096] The pre-generated honeycomb combination model is used to quickly calculate the x-axis coordinates and y-axis coordinates of each small circular node when multiple small circular nodes are displayed together. Since the adjacent circular nodes are arranged together in a honeycomb shape, the model is named the honeycomb combination model. The circle index index of the small circular node located in the center is 0, and the six circles indexed adjacent to the center circle 0 are 1, 2, 3, 4, 5, and 6 respectively. These six circles construct the first level-1 of the honeycomb combination model; the outward circles indexed adjacent to the first layer are 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, and 18 respectively, and this circle of circles constitutes the second level-2 of the honeycomb combination model; according to this rule, the sorting algorithm or permutation algorithm used in this method will use the 5-layer structure of this model for calculation. Set the x-axis coordinate of the center circle 0 to x, and the y-axis coordinate to y. Then the x-axis coordinate of the first layer circle 1 is f(x1)=x-2*radius, and the y-axis coordinate is f(y1)=y; the x-axis coordinate of circle 2 is f(x2)=x-radius, and the y-axis coordinate is f(y2)=y-Math.sqrt(3)*radius; the x-axis coordinate of circle 3 is f(x3)=x+radius, and the y-axis coordinate is f(y3)=y-Math.sqrt(3)*radius; the x-axis coordinate of circle 4 is f(x4)=x+2*radius, and the y-axis coordinate is f(y4)=y; the x-axis coordinate of circle 5 is f(x5)=x+radius, and the y-axis coordinate is f(y5)=y+Math.sqrt(3)*radius; the x-axis coordinate of circle 6 is f(x6)=x-radius, and the y-axis coordinate is f(y6)=y+Math.sqrt(3)*radius. The coordinate calculation method of the second-layer circle 7 refers to the calculation method of circle 1 to circle 0, taking the x-coordinate and y-coordinate of circle 1 as input parameters, and the x-coordinate and y-coordinate of circle 7 can be calculated through f(x1) and f(y1); the calculation method of circle 8 refers to the calculation method of circle 1 to circle 0, taking the x-coordinate and y-coordinate of circle 2 as input parameters, and the x-coordinate and y-coordinate of circle 8 can be calculated through f(x1) and f(y1); and so on, a 5-layer honeycomb combination model used for calculation by this method is generated.
[0097] The x-axis coordinate of the first large circular node in the first row is XAxis. According to the radius value radiusNow, the parameters XAxis, levelYAxis, and radius are used to calculate the x-axis coordinate and y-axis coordinate of each small circular node of all layers in the honeycomb combination model of the small circular nodes through the honeycomb combination model. According to the number value of small circular nodes contained in the large circular node, the x-axis coordinate and y-axis coordinate of the same number of small circular nodes are taken, and the coordinates of all small circular nodes of the large circular node are obtained. Then, the coordinates of each small circular node in each large circular node in each row are calculated according to the layer. The ability to calculate the x-axis coordinate of the large circular node and the coordinates of the small circular nodes is conducive to achieving the best layout effect suitable for the current browser screen size.
[0098] Render a data map based on the vertical and horizontal coordinates of each large circular node and each small circular node. You can set the horizontal coordinates on the canvas, the vertical coordinates on the canvas, and the data of the circular nodes according to the screen size of different browsers to achieve the best layout effect suitable for the current browser screen size. The data map can intuitively show the difference between a large business system with multiple databases and a small business system with a small number of databases. Add adjustable parameters that can be adjusted according to the size of the browser screen: the radius of the small circular node, the width of the canvas, the height of the canvas, and the Map. The Map contains the key of each large circular node and the number of small circular nodes. A large number of business systems and business database relationships can be arranged in order from large to small according to the number of databases included, and automatic line breaks can be achieved. There is no stacking or blocking between the circular nodes, and the display is clear and clear at a glance.
[0099] like Figure 6 and Fig.10 As shown in the figure, a new row is created at the very end of the canvas to place all the large circular nodes that contain only one small circular node. The large circular node that contains only one small circular node is placed at the end of the node sequence. The two types of large circular nodes can be displayed separately to improve the visibility of the display features. After sorting, the order of data arrangement can be presented visually, which is conducive to intuitively seeing the difference between a large business system with multiple databases and a small business system with a small number of databases through a data map.
[0100] like Figure 7 and Fig.10As shown, in another specific implementation, the sum of the radius values of all large circular nodes containing only one small circular node is calculated as the first radius sum value, and the background transparency of the last row is adjusted according to the first radius sum value. The larger the first radius sum value, the greater the background transparency, and the smaller the first radius sum value, the smaller the background transparency. For example, there are 2 large circular nodes containing only one small circular node, and the radius values are respectively the values related to the capacity of the business database, which are 1 and 1.5. The sum value of the business database corresponding to the small circular node does not exceed 10m, and the capacity of the business database corresponding to the first small circular node is 1 times m, and the capacity of the business database corresponding to the second small circular node is 1.5 times m. At this time, the first radius sum value is 2.5, and the background transparency is 25%. If the radius values are 2 and 3 respectively, the first radius sum value is 5, and the background transparency is 50%. The larger the value of the background transparency, the more opaque the display effect of the row, and the larger the value of the background transparency, the more transparent the display effect of the row.
[0101] The sum of the radius values of all large circular nodes containing multiple small circular nodes is calculated as the second radius sum value, and the contrast of the last row is adjusted according to the second radius sum value. The larger the second radius sum value, the higher the contrast, and the smaller the second radius sum value, the smaller the contrast.
[0102] like Figure 8 and Fig.10As shown, the comprehensive radius sum is calculated based on the first radius sum and the second radius sum. Specifically, the comprehensive radius sum is calculated based on the first radius sum and the second radius sum using a weighted average algorithm, and the weight of the first radius sum is positively correlated to the number of large circular nodes that contain only one small circular node. The more large circular nodes that contain only one small circular node, the greater the weight of the first radius sum. The weight of the second radius sum is positively correlated to the number of large circular nodes that contain multiple small circular nodes. The more large circular nodes that contain multiple small circular nodes, the greater the weight of the second radius sum. The weight of the first radius and the weight of the second radius are not only used to reflect the relative relationship between the number of two large circular nodes, but also used to balance the attribute gap between the first radius and the second radius. The first radius is related to the capacity of the business database, and the second radius is related to the number of small circular nodes. Because the radius of the small circular node is adjustable and fixedly involved in the calculation, the first radius is small and the second radius is large. It is necessary to enlarge the first radius and reduce the second radius, and the enlarged value is integrated into the weight of the first radius, and the reduced value is integrated into the weight of the second radius. Among them, the enlarged value and the reduced value are related to the radius of the small circular node; the larger the radius of the small circular node, the smaller the enlargement multiple and the smaller the reduction multiple; the smaller the radius of the small circular node, the larger the enlargement multiple and the larger the reduction multiple. Then calculate the comprehensive radius and value, so that the change of the display effect of the last row is more closely related to the distribution of the large circular nodes.
[0103] Next, adjust the display pixels of the last row according to the comprehensive radius and value. The larger the comprehensive radius and value, the higher the display pixels, and the smaller the comprehensive radius and value, the lower the display pixels. The background transparency, contrast and display of the last row can be adjusted according to the two large circular nodes, so that the last row can have a highlighted display or background blur effect.
[0104] like Fig. 9 and Fig.10 As shown, in another specific implementation, the sum of the radius values of all large circular nodes that only contain one small circular node is calculated, and the row height of the corresponding upper row is adjusted according to the sum of the radius values. The larger the sum of the radius values, the larger the row height of the upper row corresponding to the sum of the radius values, and the smaller the sum of the radius values, the smaller the row height of the upper row corresponding to the sum of the radius values. By adjusting the row height of the upper row corresponding to the sum of the radius values, the difference between the two large circular nodes can be indirectly highlighted.
[0105] An embodiment of the present application also discloses a data map node display system for data governance, including a processor, in which a program of any one of the above-mentioned data map node display methods for data governance is running.
[0106] An embodiment of the present application also discloses a storage medium storing a program of any one of the data map node display methods for data governance described above.
[0107] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A data map node display method for data management, characterized in that: The steps include: Obtain multiple business systems, multiple business databases and corresponding combination relationships in data services; Based on the business system and the business database, a map node is constructed according to the combination relationship; the map node contains a large circular node, a small circular node and a node inclusion attribute, the large circular node corresponds to the business system, and the small circular node corresponds to the business database; the content of the node inclusion attribute includes the inclusion relationship between the large circular node and the small circular node, and corresponds to the combination relationship; Filtering out the large circular node including a plurality of the small circular nodes from the map nodes; The screened large circular nodes are sorted according to the number of the small circular nodes contained therein to obtain a node sequence, wherein the node sequence containing more small circular nodes is ranked first; According to the size data of all the small circular nodes in each of the filtered large circular nodes, the number of the filtered large circular nodes that can be accommodated in each row of the canvas is calculated, and a layer for placing the filtered large circular nodes is constructed in each row of the canvas; Calculate the vertical axis coordinate of the first large circular node to be placed in each layer; Calculate the horizontal axis coordinate of each of the large circular nodes and the horizontal axis coordinate of each of the small circular nodes in each of the layers in combination with the pre-generated honeycomb combination model; Rendering a data map according to the vertical axis coordinate and the horizontal axis coordinate of each of the large circular nodes and each of the small circular nodes; The method further comprises the steps of: According to the data in the layer, the y-axis coordinate preYAis of the center of the first large circular node in each row is calculated. The y-axis coordinate of the center of the large circular node in each row is based on the value of preYAis, combined with the number value of the small circular nodes of the first large circular node and the radius radius of the small circle. The specific steps are as follows: First calculate the radius of the first large circular node in the first row: radiusNow=(1+(number of layers of honeycomb combination model of small circular nodes-1)×2)×radius; The y-axis coordinate levelYAxis of the first large circular node is radiusNow; the radius value of the first large circular node in the next row is radiusNow2: radiusNow2=(1+(number of layers of the honeycomb combination model of small circular nodes-1)×2)×radius2; radius2 is the radius of the small circle of the first large circular node in the next row; Then the y-axis coordinate of the next line is: levelYAxis2=levelYAxis of the previous row+radiusNow of the previous row+radiusNow2; The levelYAxis of the previous line is preYAis; Then calculate the y-axis coordinates of the large circular nodes in each row in turn.
2. The data map node display method for data management according to claim 1, characterized in that: The method further comprises the steps of: The x-axis coordinate of the first large circular node in the first row is XAxis; According to the radius value radiusNow, the x-axis coordinate XAxis of the first large circular node in the first row, the y-axis coordinate levelYAxis of the first large circular node in the first row, and the small circle radius radius of the small circular node of the first large circular node in the first row are calculated through the honeycomb combination model to obtain the x-axis coordinate and the y-axis coordinate of each small circular node of all layers in the honeycomb combination model of the small circular node; According to the number value of the small circular nodes contained in the large circular node, the x-axis coordinates and y-axis coordinates of the same number of the small circular nodes are obtained, and the coordinates of all the small circular nodes of the large circular node are obtained; Then, the coordinates of each of the small circular nodes in each of the large circular nodes in each row are calculated according to the layer.
3. The data map node display method for data management according to claim 1, characterized in that: The method further comprises the steps of: Filtering out the large circular node that contains only one small circular node from the map nodes; The large circular node including only one small circular node is placed at the last position of the node sequence.
4. The data map node display method for data management according to claim 3 is characterized in that: The method further comprises the steps of: A new row is created at the end of the canvas to place all the large circular nodes that only contain one small circular node.
5. The data map node display method for data management according to claim 4 is characterized in that: The method further comprises the steps of: Calculate the sum of the radius values of all the large circular nodes that only include one small circular node as a first radius sum value; Adjust the background transparency of the last row according to the first radius and value, wherein the larger the first radius and value, the greater the background transparency, and the smaller the first radius and value, the smaller the background transparency; Calculate the sum of the radius values of all the large circular nodes including the plurality of small circular nodes as a second radius sum value; adjusting the contrast of the last row according to the second radius and value, wherein the larger the second radius and value, the higher the contrast, and the smaller the second radius and value, the smaller the contrast; Calculate a comprehensive radius sum value according to the first radius sum value and the second radius sum value; The display pixels of the last row are adjusted according to the comprehensive radius and value. The larger the comprehensive radius and value, the higher the display pixels. The smaller the comprehensive radius and value, the lower the display pixels.
6. The data map node display method for data management according to claim 5, characterized in that: The method further comprises the steps of: Calculating a comprehensive radius sum value using a weighted average algorithm according to the first radius sum value and the second radius sum value; The weight of the first radius and value is positively correlated to the number of the large circular nodes that only contain one small circular node, and the greater the number of the large circular nodes that only contain one small circular node, the greater the weight of the first radius and value; The weight of the second radius and value is positively correlated to the number of the large circular nodes containing multiple small circular nodes. The larger the number of the large circular nodes containing multiple small circular nodes, the greater the weight of the second radius and value.
7. The data map node display method for data management according to claim 4 is characterized in that: The method further comprises the steps of: Calculate the sum of the radius values of all the large circular nodes that only contain one small circular node; The row height of the row above is adjusted according to the sum of the radius values. The larger the sum of the radius values is, the larger the row height of the row above is corresponding to the sum of the radius values. The smaller the sum of the radius values is, the smaller the row height of the row above is corresponding to the sum of the radius values.
8. A data map node display system for data management, characterized in that: It includes a processor in which a program of a data map node display method for data governance as described in any one of claims 1 to 7 is running.
9. A storage medium, characterized in that: A program storing a data map node display method for data governance as described in any one of claims 1-7.
