Visualization Methods for Data Analysis

By combining horizontal cutting and vertical cutting methods in visualization technology, the pie chart is cut, which solves the problem of difficult positioning and interaction of small-scale data, and improves user experience and interaction accuracy.

CN112419442BActive Publication Date: 2025-02-14ZHENGZHOU TOBACCO RES INST OF CNTC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011405699.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-02
Publication Date
2025-02-14
Estimated Expiration
2040-12-02

AI Technical Summary

Technical Problem

In existing visualization technologies, it is difficult to accurately locate and interact with data with smaller proportions in the pie chart, resulting in poor user experience.

Method used

By obtaining the first node ratio of the node, the center area is cut in the order of the ratio from large to small, and the combination of horizontal cutting and longitudinal cutting is used to judge the cutting method based on the horizontal and vertical ratio, so that the cutting area is closer to square, which is convenient for Identify and interact.

Benefits of technology

It improves the accuracy and experience of users during the interaction process, making it easier for users to identify and click data areas with smaller proportions and obtain relevant information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112419442B_ABST
    Figure CN112419442B_ABST
Patent Text Reader

Abstract

The present invention relates to a visualization method for data analysis, and belongs to the technical field of information visualization analysis. The visualization method comprises: obtaining the first node ratio of all nodes; the first node ratio is the ratio of the node value of the node to the sum of all node values; the center area of ​​the circle is cut in the order of the first node ratio from large to small, and the cutting method comprises horizontal cutting and vertical cutting, the vertical cutting is the radial cutting along the circle, and the horizontal cutting is the arc cutting along the circle: a. the node with the largest first node ratio is cut vertically; b. the aspect ratio of the horizontal cutting and the vertical cutting of the remaining nodes is calculated: cutting is performed according to the cutting method with the aspect ratio closer to 1. For areas of the same area, squares are easier to identify and interact with than bars. Therefore, the present invention combines the horizontal cutting and vertical cutting methods, and selects the corresponding cutting method by judging the aspect ratio before cutting, so that the identification and interaction of nodes are more accurate, and the user experience effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a visualization method for data analysis, and belongs to the technical field of information visualization analysis. Background Art

[0002] Visualization technology is the theory, method and technology of using computer graphics and image processing technology to transform data into graphics, images or icons for display and interactive processing. Its main features include interactivity and visibility. Interactivity provides a way and environment for interactive data processing and enhances the user's participation; visibility means that data can be displayed in the form of images, curves (including line graphs, etc.), two-dimensional graphics (including bar graphs and pie charts, etc.), three-dimensional bodies and animations, and its patterns and relationships can be visualized for analysis.

[0003] Among them, a pie chart can show the ratio of the size of each item in a data series to the total of each item. The data points in the pie chart are displayed as a percentage of the entire pie chart. Pie charts can clearly reflect the quantitative relationship between parts and parts, and parts and the whole. It is easy to show the size of each group of data relative to the total, and the display method is intuitive. However, if a certain data accounts for a small proportion, the resulting pie chart will be Figure 1 As shown in the figure: data with a smaller proportion is often reflected as a sector with a very small angle. When the pie chart needs to interact with the user, for example: the user needs to click on a sector area with the mouse and needs to obtain the corresponding data, it is impossible to accurately locate the data with a small proportion, and thus it is impossible to accurately obtain the relevant information of the data in the area, resulting in a poor user experience. Summary of the invention

[0004] The purpose of this application is to provide a visualization method for data analysis to solve the problem of poor user experience of existing visualization.

[0005] To achieve the above objectives, the present application proposes a technical solution of a first data analysis visualization method, comprising the following steps:

[0006] 1) Obtaining the first node ratio of all nodes; the first node ratio is the ratio of the node value of the node to the sum of all node values;

[0007] 2) Cut the center area of ​​the circle in descending order of the first node ratio, and the cutting method includes horizontal cutting and vertical cutting. The vertical cutting is cutting along the radial direction of the circle, and the horizontal cutting is cutting along the arc direction of the circle:

[0008] a. The node with the largest first node ratio is cut vertically;

[0009] b. The cutting method of the remaining nodes is determined by comparing the aspect ratio of the horizontal cutting and the aspect ratio of the vertical cutting:

[0010] If the aspect ratio of the horizontal cut is closer to 1, then the horizontal cut is performed;

[0011] If the aspect ratio of the longitudinal cut is closer to 1, then the longitudinal cut is performed;

[0012] The aspect ratio is the ratio of the side length to the arc length in the cutting area corresponding to the node, and the aspect ratio is obtained according to the second node ratio of the node; the second node ratio is the ratio of the node value of the node to the sum of the uncut node values.

[0013] The beneficial effect of the technical solution of the first data analysis visualization method of the present invention is: when cutting each node, the aspect ratio of the horizontal cutting and the vertical cutting is first calculated. The aspect ratio reflects the squareness of the cutting area. If the aspect ratio of the horizontal cutting is closer to 1, it means that after the horizontal cutting, the node area is closer to a square; if the aspect ratio of the vertical cutting is closer to 1, it means that after the vertical cutting, the node area is closer to a square. For areas of the same area, squares are easier to identify and interact with than bars. Therefore, the present invention combines the horizontal cutting and vertical cutting methods, and selects the corresponding cutting method by judging the aspect ratio before cutting, so that the identification and interaction of nodes are more accurate, and the user experience effect is improved.

[0014] Furthermore, in order to more accurately describe each cutting area, the cutting area corresponding to each node is described in the form of a quadruple. i The corresponding cutting area quadruple is:

[0015]

[0016] in, For node C i The inner arc radius corresponding to the cutting area; For node C i The outer arc radius corresponding to the cutting area; Starting from 0 degrees, reaching node C i The angle of the first edge of the corresponding cutting area; Starting from 0 degrees, reaching node C i The angle of the second side of the corresponding cutting area.

[0017] Furthermore, the area to be cut before cutting and the cutting area corresponding to each node are described in the form of a quaternion. The area to be cut before the i-th cutting P i The four-tuple representation of is:

[0018] P i =[Lin ,L out ,α start ,α end ];

[0019] If node C i The cutting method is horizontal cutting, then node C i The corresponding quadruple of the cutting area is expressed as:

[0020]

[0021] Among them, L i For node C i After transverse cutting, the side length of the cutting area; L in is the area to be cut before the i-th cutting i The inner arc radius; L out is the area to be cut before the i-th cutting i The outer arc radius; α start Starting from 0 degrees, it reaches the area P to be cut before the i-th cutting. i The angle of the first side of end Starting from 0 degrees, it reaches the area P to be cut before the i-th cutting. i The angle of the second side of .

[0022] Furthermore, the area to be cut before cutting and the cutting area corresponding to each node are described in the form of a quaternion. The area to be cut before the i-th cutting P i The four-tuple representation of is:

[0023] P i =[L in ,L out ,α start ,α end ];

[0024] If node C i The cutting method is longitudinal cutting, then node C i The corresponding quadruple of the cutting area is expressed as:

[0025]

[0026] Among them, Δ β For node C i Cutting angle of the cutting area after longitudinal cutting; L in is the area to be cut before the i-th cutting i The inner arc radius; L out is the area to be cut before the i-th cutting i The outer arc radius; α start Starting from 0 degrees, it reaches the area P to be cut before the i-th cutting.i The angle of the first side of end Starting from 0 degrees, it reaches the area P to be cut before the i-th cutting. i The angle of the second side of .

[0027] Furthermore, the calculation process of the aspect ratio is:

[0028]

[0029] in, For node C i The aspect ratio of the corresponding cutting area; For node C i The outer arc radius corresponding to the cutting area; For node C i The inner arc radius corresponding to the cutting area; For node C i The length of the inner arc corresponding to the cutting area; For node C i The outer arc length of the corresponding cutting area.

[0030] In addition, the present application also proposes a technical solution for a second data analysis visualization method, comprising the following steps:

[0031] 1) Obtaining the first node ratio of all nodes; the first node ratio is the ratio of the node value of the node to the sum of all node values;

[0032] 2) Cut the center area of ​​the circle in descending order of the first node ratio, and the cutting method includes horizontal cutting and vertical cutting. The vertical cutting is cutting along the radial direction of the circle, and the horizontal cutting is cutting along the arc direction of the circle:

[0033] a. The node with the largest first node ratio is cut vertically;

[0034] b. The cutting method of the remaining nodes is determined by the following conditions:

[0035] If, when assuming horizontal cutting, the side length of the current cutting area or the remaining uncut area after the current cutting is less than the side length threshold, or the sum of the first node ratios of the remaining nodes before cutting is greater than the ratio threshold, then vertical cutting is performed;

[0036] If it is assumed that when horizontal cutting is performed, the side length of the current cutting area or the remaining uncut area after the current cutting is greater than or equal to the side length threshold, and the sum of the first node ratios of the remaining nodes when not cut is less than or equal to the ratio threshold, then proceed to step 3);

[0037] 3) Calculate the aspect ratio of the horizontal cutting and the aspect ratio of the vertical cutting of the node. If the aspect ratio of the horizontal cutting is closer to 1, perform the horizontal cutting; if the aspect ratio of the vertical cutting is closer to 1, perform the vertical cutting;

[0038] The aspect ratio is the ratio of the side length to the arc length in the cutting area corresponding to the node, and the aspect ratio is obtained according to the second node ratio of the node; the second node ratio is the ratio of the node value of the node to the sum of the uncut node values.

[0039] The beneficial effect of the technical solution of the second data analysis visualization method of the present invention is that: since the nodes are cut from large to small according to the first node ratio, in addition to the node with the largest first node ratio, there will be nodes in other nodes that obviously need to be cut vertically. Therefore, the present invention cuts the nodes that need to be cut vertically in advance through simple judgment. For nodes that cannot be obviously judged to need vertical cutting or horizontal cutting, when cutting them, first calculate the aspect ratio of horizontal cutting and vertical cutting. The aspect ratio reflects the square degree of the cutting area. If the aspect ratio of horizontal cutting is closer to 1, it means that after horizontal cutting, the node area is closer to square; if the aspect ratio of vertical cutting is closer to 1, it means that after vertical cutting, the node area is closer to square. For areas of the same area, squares are easier to identify and interact with than bars. Therefore, the present invention combines the horizontal cutting and vertical cutting methods, and selects the corresponding cutting method by judging the aspect ratio before cutting, so that the identification and interaction of nodes are more accurate, which not only improves the user experience effect, but also has higher visualization efficiency than the first data analysis visualization method of the present invention.

[0040] Furthermore, in order to more accurately describe each cutting area, the cutting area corresponding to each node is described in the form of a quadruple. i The corresponding cutting area quadruple is:

[0041]

[0042] in, For node C i The inner arc radius corresponding to the cutting area; For node C i The outer arc radius corresponding to the cutting area; Starting from 0 degrees, reaching node C i The angle of the first edge of the corresponding cutting area; Starting from 0 degrees, reaching node C i The angle of the second side of the corresponding cutting area.

[0043] Furthermore, the area to be cut before cutting and the cutting area corresponding to each node are described in the form of a quaternion. The area to be cut before the i-th cutting P i The four-tuple is:

[0044] P i =[L in ,L out ,α start ,α end ];

[0045] If node C i The cutting method is horizontal cutting, then node C i The corresponding quadruple of the cutting area is expressed as:

[0046]

[0047] Among them, L i For node C i After transverse cutting, the side length of the cutting area; L in is the area to be cut before the i-th cutting i The inner arc radius; L out is the area to be cut before the i-th cutting i The outer arc radius; α start Starting from 0 degrees, it reaches the area P to be cut before the i-th cutting. i The angle of the first side of end Starting from 0 degrees, it reaches the area P to be cut before the i-th cutting. i The angle of the second side of .

[0048] Furthermore, the area to be cut before cutting and the cutting area corresponding to each node are described in the form of a quaternion. The area to be cut before the i-th cutting P i The four-tuple is:

[0049] P i =[L in ,L out ,α start ,α end ];

[0050] If node C i The cutting method is longitudinal cutting, then node C i The corresponding quadruple of the cutting area is expressed as:

[0051]

[0052] Among them, Δ β For node C i Cutting angle of the cutting area after longitudinal cutting; L inis the area to be cut before the i-th cutting i The inner arc radius; L out is the area to be cut before the i-th cutting i The outer arc radius; α start Starting from 0 degrees, it reaches the area P to be cut before the i-th cutting. i The angle of the first side of end Starting from 0 degrees, it reaches the area P to be cut before the i-th cutting. i The angle of the second side of .

[0053] Furthermore, the calculation process of the aspect ratio is:

[0054]

[0055] in, For node C i The aspect ratio of the corresponding cutting area; For node C i The outer arc radius corresponding to the cutting area; For node C i The inner arc radius corresponding to the cutting area; For node C i The length of the inner arc corresponding to the cutting area; For node C i The outer arc length of the corresponding cutting area. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 It is a pie chart of data analysis in the prior art;

[0057] Figure 2 It is a schematic diagram of the present invention using a quaternary group to describe a region;

[0058] Figure 3 is a flow chart of Embodiment 1 of the visualization method for data analysis of the present invention;

[0059] Figure 4 It is a schematic diagram of transverse cutting of the present invention;

[0060] Figure 5 It is a longitudinal cutting schematic diagram of the present invention;

[0061] Figure 6 is a flow chart of Embodiment 2 of the visualization method for data analysis of the present invention;

[0062] Figure 7 It is a visualization schematic diagram of the visualization method of data analysis of the present invention. DETAILED DESCRIPTION

[0063] Visualization method for data analysis Example 1:

[0064] The main idea of ​​the visualization method for data analysis is that, in a circular area, the circular area is cut in order of the node ratios from large to small, and each node is mapped (i.e., the corresponding cutting area) as a sector-shaped area. There are two ways of cutting: longitudinal cutting (similar to the way of cutting a cake, cutting along the radial direction of the circle) and transverse cutting (cutting along the arc direction of the circle). By calculating the aspect ratio of the transverse cutting and the longitudinal cutting, the space is cut according to the cutting method with an aspect ratio closer to 1. An aspect ratio closer to 1 indicates that the cut area is closer to a "square". Therefore, the present invention keeps the sector-shaped area displayed by the data that occupies a smaller proportion in the existing pie chart as "square" as possible to avoid the phenomenon that the "bar" cannot be clicked.

[0065] First: the node attributes of the present invention include id (name) and value (node ​​value), and the area to be cut before cutting and the cutting area corresponding to each node are described in the form of shape representation quadruple (quadruple for short) to describe their visual form, for example:

[0066] Node C i The corresponding quadruple of the cutting area is expressed as:

[0067]

[0068] in, For node C i The inner arc radius corresponding to the cutting area; For node C i The outer arc radius corresponding to the cutting area; Starting from 0 degrees, reaching node C i The angle of the first edge of the corresponding cutting area; Starting from 0 degrees, reaching node C i The angle of the second side corresponding to the cutting area;

[0069] The area to be cut before the i-th cutting P i The four-tuple representation of is:

[0070] P i =[L in ,L out ,α start ,α end ];

[0071] like Figure 2 As shown, L in is the area to be cut before the i-th cutting i The inner arc radius; L out is the area to be cut before the i-th cutting i The outer arc radius; α startStarting from 0 degrees, it reaches the area P to be cut before the i-th cutting. i The angle of the first side of end Starting from 0 degrees, it reaches the area P to be cut before the i-th cutting. i The angle of the second side of .

[0072] Again, the aspect ratio defined in the present invention is the ratio of the side length to the arc length in the cutting area corresponding to the node, specifically the ratio of the sum of the side length to the sum of the arc length. For example: i The calculation process of the aspect ratio of the corresponding cutting area is:

[0073]

[0074] in, For node C i The aspect ratio of the corresponding cutting area; For node C i The outer arc radius corresponding to the cutting area; For node C i The inner arc radius corresponding to the cutting area; For node C i The length of the inner arc corresponding to the cutting area; For node C i The outer arc length of the corresponding cutting area.

[0075] At the same time, the directions of transverse cutting and longitudinal cutting of the present invention are defined. The transverse cutting is cutting along the arc direction of the circle, which is expressed as cutting the radius of the circle. The longitudinal cutting is the same as the cutting method of the prior art, which is cutting along the radial direction of the circle, which is expressed as cutting the angle of the circle.

[0076] Specifically, the visualization methods of data analysis are as follows: Figure 3 As shown, the following steps are included:

[0077] 1) Get the attributes of all nodes and calculate the first node ratio of each node.

[0078] The first node ratio is the ratio of the node value of the node to the sum of all node values. For each node, its attributes can be obtained. The attributes of each node include id (name) and value (node ​​value).

[0079] 2) Describe the circular area (in the specific program, the circular area here can be used as the root node, all the nodes obtained can be used as child nodes, and a recursive programming idea is adopted), and store the quadruple representation of the circular area (that is, the original area to be cut).

[0080] The circular area is represented by a quadruple, which is Indicates the inner arc radius L of the circle inis 0, the outer arc radius of the circle is L out for The starting angle of the circle α start is 0; the end angle of the circle is α end is 2π; width is the width of the current filling area; length is the length of the current filling area.

[0081] 3) Traverse all nodes and sort all nodes according to the first node ratio of the node, and the sorting method is: from large to small.

[0082] The first node ratio of each node corresponds to the proportion of each node in the circular area, and each proportion corresponds to a cutting angle.

[0083] 4) Cut the circular area according to the order of the nodes in step 3).

[0084] a. Cut the node with the largest first node ratio by longitudinal cutting to obtain the cutting area corresponding to the node and the remaining area to be cut.

[0085] b. The cutting method of the remaining nodes is determined by comparing the aspect ratio of the horizontal cutting and the aspect ratio of the vertical cutting:

[0086] Calculate the aspect ratio of the horizontal cutting and the aspect ratio of the vertical cutting of the node. If the aspect ratio of the vertical cutting is closer to 1 (expressed in the program as |aspect ratio-1| is closer to 0), use the vertical cutting method for cutting; if the aspect ratio of the horizontal cutting is closer to 1, use the horizontal cutting method for cutting until all nodes are cut.

[0087] The specific calculation process is as follows: Assume that the area to be cut before cutting is P i =[L in ,L out ,α start ,α end ];

[0088] Then, the area S of the area to be cut is p for: Δ α =α end -α start ;

[0089] The next node to be placed (i.e. cut) is C i The ratio of the second node occupying the area to be cut is Rate;

[0090] Then, the next node to be placed is C i The corresponding sector area S i For: S i =S p *Rate.

[0091] Assume that node C i Carry out horizontal and vertical cutting respectively, such as Figure 4 As shown, in the case of horizontal cutting:

[0092] Node C i The angle of the corresponding sector is the same as the angle of the area to be cut, which is Δ α (radians), assuming node C i After horizontal cutting, the side length of the corresponding sector area is L i , then node C i The area of ​​the corresponding sector is S i for:

[0093]

[0094] According to the condition L i ∈(L in ,L out ], and the solution is:

[0095]

[0096] After horizontal placement, node C i The corresponding quadruple of the fan-shaped area is:

[0097] The remaining space of the quadruple is: [L in +L i ,L out ,α start ,α end ].

[0098] L0=Δ α *L in , L1=Δ α *(L in +L i ).

[0099] like Figure 5 As shown, in the case of vertical placement:

[0100] Node C i The inner and outer radii of the corresponding sector are the same as those of the area to be cut, which is L in ,L out , assuming that node C i After vertical placement, the angle of the corresponding sector area is Δ β , then it satisfies:

[0101] Δ β =Δ α*Rate;

[0102] After vertical placement, node C i The corresponding quadruple of the fan-shaped area is:

[0103] The remaining space quaternary is: [L in ,L out ,α start +Δ β ,α end ].

[0104] L0=Δ β *L in , L1=Δ β *L out .

[0105] Regardless of whether each node is cut horizontally or vertically, after the cutting is completed, it is necessary to store the quadruple description of the current node and update the quadruple of the area to be cut, so as to implement the cutting and quadruple description of subsequent nodes in the program.

[0106] 5) This process is repeated in this way until the quadruple description and storage of all nodes are completed, and then the visual graph is drawn through the curve drawing function.

[0107] Regarding the node with the largest first node ratio (hereinafter referred to as the first node), the reason for choosing vertical cutting here is that after judging by the aspect ratio of horizontal cutting and the aspect ratio of vertical cutting (the first node ratio and the second node ratio of the first node are the same here), the aspect ratio of the vertical cutting of the first node is closer to 1. The calculation process is as follows:

[0108] The aspect ratio of the transverse cut at the first node is:

[0109] The aspect ratio of the vertical cut at the first node is:

[0110] Also because It can be deduced that

[0111] Due to L out >L i , and then compared to find that the aspect ratio of the longitudinal cutting of the first node is closer to 1, so the first node is directly cut by longitudinal cutting.

[0112] After longitudinal cutting, the quadruple of the fan-shaped area corresponding to the first node is

[0113] The quaternary group of the remaining space (i.e. the area to be cut) is:

[0114] From the above derivation, it can be seen that the cutting method of the first node can also be judged in the same way as the remaining nodes, but it will increase the calculation process of the program and lead to lower efficiency.

[0115] In the above embodiment, the calculation principle of the aspect ratio is that the sum of the side lengths in the cutting area is greater than the sum of the arc lengths. As other implementations, the ratio of the outer arc length to a length may be used as the aspect ratio, which can reflect whether the cutting area is close to a square. The present invention does not impose any limitation on this.

[0116] The present invention determines the placement mode of the nodes to be placed by comparing the aspect ratio of the horizontal cutting with the aspect ratio of the vertical cutting, so that the cut area is as square as possible, which is more convenient for human-computer interaction.

[0117] Visualization method for data analysis Example 2:

[0118] The difference between this embodiment and Embodiment 1 of the visualization method for data analysis is that before calculating the aspect ratios of various cutting methods, a preliminary judgment of the longitudinal cutting is first made. If it is assumed that the transverse cutting will result in a smaller side length of the current cutting area or the remaining area after the current cutting, or a larger angle of the current cutting area, then the longitudinal cutting is performed directly. If the above conditions are not met, the aspect ratio is calculated. This can reduce the amount of calculation and improve the cutting efficiency.

[0119] This embodiment adds a side length threshold L based on embodiment 1. min and the angle threshold α max Settings.

[0120] Specifically, the visualization methods of data analysis are as follows: Figure 6 As shown, the following steps are included:

[0121] Steps 1) to 3) are the same as those in Example 1 and will not be described in detail here.

[0122] 4) Cut the center area of ​​the circle in descending order of the first node ratio, including horizontal cutting and vertical cutting:

[0123] a. The node with the largest first node ratio is cut vertically;

[0124] b. The cutting method of the remaining nodes is determined by the following conditions:

[0125] If it is assumed that the horizontal cutting is performed, the current cutting area (such as Figure 4 , Figure 5 In ) or the remaining uncut area after the current cut (such as Figure 4 , Figure 5 In ) is less than the length threshold L min , or the area to be cut (the area to be cut here refers to the area before the current node is cut, such as Figure 4 , Figure 5 In ) corresponds to an angle greater than the angle threshold α max When , longitudinal cutting is performed; the angle corresponding to the area to be cut is the sum of the first node ratios of the remaining nodes, and the angle threshold corresponds to the ratio threshold. Therefore, the angle corresponding to the area to be cut is greater than the angle threshold, that is, the sum of the first node ratios of the remaining nodes is greater than the ratio threshold;

[0126] If the above conditions are not met, that is, assuming that when cutting horizontally, the side length of the current cutting or the remaining uncut area after the current cutting is greater than or equal to the side length threshold, and the sum of the first node ratios of the remaining nodes is less than or equal to the ratio threshold, then proceed to step 5).

[0127] 5) Calculate the aspect ratio of the horizontal cutting and the aspect ratio of the vertical cutting. If the aspect ratio of the horizontal cutting is close to 1, perform the horizontal cutting; if the aspect ratio of the vertical cutting is close to 1, perform the vertical cutting.

[0128] The process of calculating the aspect ratio in step 5) is the same as that in embodiment 1 and will not be described in detail here.

[0129] 6) This process is repeated in this way until the quadruple description and storage of all nodes are completed, and then the visualization graph is drawn through the curve drawing function.

[0130] The reason why the first node is cut vertically in this embodiment is that the angle of the area to be cut of the first node is 360°, which is necessarily greater than the angle threshold α. max , through the above judgment conditions of horizontal cutting and vertical cutting, it can be seen that the first node must be cut vertically:

[0131] After longitudinal cutting, the quadruple of the fan-shaped area corresponding to the first node is

[0132] The quaternary group of the remaining space (i.e. the area to be cut) is:

[0133] The method of the present invention is described below by visualizing the gas phase components in cigarette smoke and their release amounts.

[0134] Cigarette smoke is a complex aerosol composed of gaseous, vaporous and solid substances. The part of the smoke that can pass through the Cambridge filter at room temperature is called gas phase substance, and the intercepted part of the smoke is called particulate phase substance. The gas phase substances in cigarette smoke include nitrogen, oxygen, carbon dioxide, carbon monoxide, water, methane, other volatile alkanes, volatile olefins and other components. Each gas phase component in the smoke is a node, and the release amount of each gas phase component is the node value, as shown in Table 1:

[0135] Table 1 Gas phase components and their release amounts of cigarette smoke

[0136]

[0137]

[0138] According to the method of this embodiment, the release amount of each gas phase component in the cigarette smoke is analyzed, and the following is obtained: Figure 7 The visualization shown, Figure 7 Each sector area in corresponds to a node. The blue sector area corresponds to the node with the largest ratio of the first node. The cutting method is vertical cutting, which corresponds to nitrogen in Table 1. The orange sector area corresponds to the node with the second largest ratio. The cutting method is horizontal cutting, which corresponds to oxygen in Table 1. And so on. Figure 1 and Figure 7 By comparison, it can be seen that Figure 1 As the node ratio decreases, the area with a smaller node ratio appears as a thin strip, and the mouse cannot accurately click on a node. Figure 7 The thin strips are squared to better complete the human-computer interaction. When the user needs data of a certain area, he only needs to click the mouse on the corresponding area to get the composition and release amount of the area.

[0139] The method of the present invention is suitable for visual analysis of various data nodes, and is not limited to the release of smoke components. For example, the tobacco yield of each major tobacco-producing province, the scientific research output of different institutions (papers, soft works, books, new plant varieties), etc., and has a wide range of uses.

Claims

1. A visualization method for data analysis, characterized in that: The following steps are involved: 1) Obtain the first node ratio of all nodes; The first node ratio is the ratio of the node value of the node to the sum of all node values; 2) Cut the center area of ​​the circle in descending order according to the first node ratio. The cutting area corresponding to each node is described in the form of a quaternary group. The quaternary group of the area to be cut is stored. Node C i The corresponding quadruple of the cutting area is: in, For node C i The inner arc radius corresponding to the cutting area; For node C i The outer arc radius of the corresponding cutting area; Starting from 0 degrees, reaching node C i The angle of the first edge of the corresponding cutting area; Starting from 0 degrees, reaching node C i The angle of the second side corresponding to the cutting area; The cutting method includes transverse cutting and longitudinal cutting. The longitudinal cutting is cutting along the radial direction of the circle, and the transverse cutting is cutting along the arc direction of the circle: a. The node with the largest first node ratio is cut vertically; b. The cutting method of the remaining nodes is determined by comparing the aspect ratio of the horizontal cutting and the aspect ratio of the vertical cutting: If the aspect ratio of the horizontal cut is closer to 1, then the horizontal cut is performed; If the aspect ratio of the longitudinal cut is closer to 1, then the longitudinal cut is performed; The aspect ratio is the ratio of the side length to the arc length in the cutting area corresponding to the node. The area of ​​the area to be cut is obtained according to the second node ratio of the node, and the aspect ratio of the horizontal cutting and the vertical cutting is obtained according to the area. The second node ratio is the ratio of the node value of the node to the sum of the uncut node values.

2. The visualization method for data analysis according to claim 1, characterized in that: The area to be cut before cutting and the cutting area corresponding to each node are described in the form of a quaternion. The area to be cut before the i-th cutting P i The four-tuple representation of is: P i =[L in ,L out ,a start ,a end ]; If node C i The cutting method is horizontal cutting, then node C i The corresponding cut area quadruple is expressed as: Among them, L i For node C i After transverse cutting, the side length of the cutting area; L in is the area to be cut before the i-th cutting i The inner arc radius; L out is the area to be cut before the i-th cutting i The outer arc radius; α start Starting from 0 degrees, it reaches the area P to be cut before the i-th cutting. i The angle of the first side of end Starting from 0 degrees, it reaches the area P to be cut before the i-th cutting. i The angle of the second side of .

3. The visualization method for data analysis according to claim 1, characterized in that: The area to be cut before cutting and the cutting area after each node is cut are described in the form of a quaternion. The area to be cut before the i-th cutting P i The four-tuple representation of is: P i =[L in ,L out ,a start ,a end ]; If node C i The cutting method is longitudinal cutting, then node C i The corresponding cut area quadruple is expressed as: Among them, Δ β For node C i Cutting angle of the cutting area after longitudinal cutting; L in is the area to be cut before the i-th cutting i The inner arc radius; L out is the area to be cut before the i-th cutting i The outer arc radius; α start Starting from 0 degrees, it reaches the area P to be cut before the i-th cutting. i The angle of the first side of end Starting from 0 degrees, it reaches the area P to be cut before the i-th cutting. i The angle of the second side of .

4. The visualization method for data analysis according to claim 1, characterized in that: The calculation process of the aspect ratio is: in, For node C i The aspect ratio of the corresponding cutting area; For node C i The outer arc radius of the corresponding cutting area; For node C i The inner arc radius corresponding to the cutting area; For node C i The length of the inner arc corresponding to the cutting area; For node C i The outer arc length of the corresponding cutting area.

5. A visualization method for data analysis, characterized in that: The following steps are involved: 1) Obtain the first node ratio of all nodes; The first node ratio is the ratio of the node value of the node to the sum of all node values; 2) Cut the center area of ​​the circle in descending order according to the first node ratio. The cutting area corresponding to each node is described in the form of a quaternary group. The quaternary group of the area to be cut is stored. Node C i The corresponding quadruple of the cutting area is: in, For node C i The inner arc radius corresponding to the cutting area; For node C i The outer arc radius corresponding to the cutting area; Starting from 0 degrees, reaching node C i The angle of the first edge of the corresponding cutting area; Starting from 0 degrees, reaching node C i The angle of the second side corresponding to the cutting area; The cutting method includes transverse cutting and longitudinal cutting. The longitudinal cutting is cutting along the radial direction of the circle, and the transverse cutting is cutting along the arc direction of the circle: a. The node with the largest first node ratio is cut vertically; b. The cutting method of the remaining nodes is determined by the following conditions: If, when assuming horizontal cutting, the side length of the current cutting area or the remaining uncut area after the current cutting is less than the side length threshold, or the sum of the first node ratios of the remaining nodes before cutting is greater than the ratio threshold, then vertical cutting is performed; If it is assumed that when horizontal cutting is performed, the side length of the current cutting area or the remaining uncut area after the current cutting is greater than or equal to the side length threshold, and the sum of the first node ratios of the remaining nodes when not cut is less than or equal to the ratio threshold, then proceed to step 3); 3) Calculate the aspect ratio of the horizontal cutting and the aspect ratio of the vertical cutting of the node. If the aspect ratio of the horizontal cutting is closer to 1, perform the horizontal cutting; if the aspect ratio of the vertical cutting is closer to 1, perform the vertical cutting; The aspect ratio is the ratio of the side length to the arc length in the cutting area corresponding to the node. The area of ​​the area to be cut is obtained according to the second node ratio of the node, and the aspect ratio of the horizontal cutting and the vertical cutting is obtained according to the area. The second node ratio is the ratio of the node value of the node to the sum of the uncut node values.

6. The visualization method for data analysis according to claim 5, characterized in that: The area to be cut before cutting and the cutting area corresponding to each node are described in the form of a quaternion. The area to be cut before the i-th cutting P i The four-tuple is: P i =[L in ,L out ,a start ,a end ]; If node C i The cutting method is horizontal cutting, then node C i The corresponding cut area quadruple is expressed as: Among them, L i For node C i After transverse cutting, the side length of the cutting area; L in is the area to be cut before the i-th cutting i The inner arc radius; L out is the area to be cut before the i-th cutting i The outer arc radius; α start Starting from 0 degrees, it reaches the area P to be cut before the i-th cutting. i The angle of the first side of end Starting from 0 degrees, it reaches the area P to be cut before the i-th cutting. i The angle of the second side of .

7. The visualization method for data analysis according to claim 5, characterized in that: The area to be cut before cutting and the cutting area corresponding to each node are described in the form of a quaternion. The area to be cut before the i-th cutting P i The four-tuple is: P i =[L in ,L out ,a start ,a end ]; If node C i The cutting method is longitudinal cutting, then node C i The corresponding cut area quadruple is expressed as: Among them, Δ β For node C i Cutting angle of the cutting area after longitudinal cutting; L in is the area to be cut before the i-th cutting i The inner arc radius; L out is the area to be cut before the i-th cutting i The outer arc radius; α start Starting from 0 degrees, it reaches the area P to be cut before the i-th cutting. i The angle of the first side of end Starting from 0 degrees, it reaches the area P to be cut before the i-th cutting. i The angle of the second side of .

8. The visualization method for data analysis according to claim 5, characterized in that: The calculation process of the aspect ratio is: in, For node C i The aspect ratio of the corresponding cutting area; For node C i The outer arc radius corresponding to the cutting area; For node C i The inner arc radius corresponding to the cutting area; For node C i The length of the inner arc corresponding to the cutting area; For node C i The outer arc length of the corresponding cutting area.

Citation Information

Patent Citations

  • Interactive visual method and device facing layering data

    CN103164520A

  • Three-dimensional space target geologic body tracking method based on visualization

    CN104459768A