Data comparison display method, device, equipment, storage medium and program product
Patent Information
- Application Number
- CN202210184337.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-25
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2042-02-25
AI Technical Summary
目前,在常规的数据对比显示中,采用等比例缩放调整各项数据,并使不同数据以相同速度进行匀速延伸显示,但这种方式无法突出或削弱某一对比数据,且无法对各项数据进行动态显示
[0018] According to one aspect of the embodiments of this application, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps in the data comparison and display method described above.
Smart Images

Figure CN116700845B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of navigation technology, specifically to a data comparison and display method, apparatus, device, storage medium, and program product. Background Technology
[0002] In the era of big data, data graphics are used to visually and intuitively display the comparative relationships between various data points in order to facilitate data statistics and comparison. Currently, conventional data comparison displays use proportional scaling to adjust the data and extend the display of different data at the same speed. However, this method cannot highlight or weaken any particular comparative data point, nor can it dynamically display the data. Summary of the Invention
[0003] To address the aforementioned technical problems, embodiments of this application provide a data comparison and display method, apparatus, device, storage medium, and program product.
[0004] According to one aspect of the embodiments of this application, a data comparison and display method is provided, the data comparison and display method comprising:
[0005] Obtain the data graphs corresponding to the multiple data points to be compared, where the quantified values of the data graphs corresponding to each data point are used to characterize the data values of each data point;
[0006] Divide the data graphs corresponding to each data point into dimensions to obtain at least one graph segment that makes up each data graph. Different graph segments that make up the data graphs correspond to different dimensions.
[0007] Determine the initial weight values corresponding to different graphic segments in each data graph, and adjust the initial weight values corresponding to different graphic segments according to the custom weight values of each dimension to obtain the target weight values corresponding to different graphic segments in each data graph.
[0008] The target display rate of each graphic segment is determined based on the target weight value corresponding to the different graphic segments in each data graphic, so that each data graphic can be dynamically displayed according to the target display rate of each graphic segment.
[0009] According to one aspect of the embodiments of this application, a data comparison dynamic display device is provided, the data comparison dynamic display device comprising:
[0010] The acquisition module is configured to acquire data graphs corresponding to the multiple data items to be compared, wherein the quantized value of the data graph corresponding to each data item is used to characterize the data value of each data item;
[0011] The dimension partitioning module is configured to partition the data graphs corresponding to each data item into dimensions, and obtain at least one graphic segment to compose each data graph. Different graphic segments used to compose the data graphs correspond to different dimensions.
[0012] The weight determination module is configured to determine the initial weight values corresponding to different graphic segments in each data graph, and adjust the initial weight values corresponding to different graphic segments according to the custom weight values of each dimension, so as to obtain the target weight values corresponding to different graphic segments in each data graph.
[0013] The display module is configured to determine the target display rate of different graphic segments based on the target weight values corresponding to different graphic segments in each data graphic, so as to dynamically display each data graphic according to the target display rate of different graphic segments.
[0014] According to one aspect of the embodiments of this application, an electronic device is provided, comprising:
[0015] Memory, which stores computer-readable instructions;
[0016] The processor reads computer-readable instructions stored in memory to execute any of the above data comparison and display methods.
[0017] According to one aspect of the embodiments of this application, a computer-readable storage medium is provided, on which computer-readable instructions are stored, which, when executed by a computer's processor, cause the computer to perform the data comparison and display method as described above.
[0018] According to one aspect of the embodiments of this application, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps in the data comparison and display method described above.
[0019] In the technical solution provided by the embodiments of this application, on the one hand, by dividing the data graphs corresponding to each data item into dimensions, the initial weight values corresponding to different graphic segments in each data graph are determined, and the initial weight values corresponding to different graphic segments in each data graph are adjusted by the custom weight values of each dimension, so as to highlight or weaken the importance of the data, and make each data item produce a strong or weak contrast result; on the other hand, each data graph is dynamically displayed according to the target display rate of different graphic segments, so as to realize the variable speed display of each data item, enhance the contrast effect of the data, and enable users to perceive or ignore the importance of the data in a short time.
[0020] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0021] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:
[0022] Figure 1 This is a schematic diagram illustrating the data comparison display effect in a data comparison display method according to an exemplary embodiment;
[0023] Figure 2 yes Figure 1 The diagram illustrates the data comparison display effect before the data was enhanced or weakened, using the data comparison display method shown.
[0024] Figure 3 yes Figure 1 The diagram illustrates the data comparison display effect after data enhancement and adjustment in the data comparison display method shown.
[0025] Figure 4 yes Figure 1 The diagram illustrates the data comparison display effect after data weakening and contrast adjustment in the data comparison display method shown.
[0026] Figure 5 This is a schematic diagram illustrating the implementation environment of the data comparison and display method according to an exemplary embodiment of this application;
[0027] Figure 6 This is a flowchart illustrating a data comparison and display method in an exemplary embodiment of this application;
[0028] Figure 7 yes Figure 6 The diagram illustrates the effect of various data graphs in the bar chart format in the data comparison display method shown.
[0029] Figure 8 yes Figure 7 The diagram shows the effect of the data graphs arranged in order of size in the data comparison display method shown.
[0030] Figure 9 yes Figure 8 The diagram shows the effect of each data graph after dimensional splitting in the data comparison display method shown.
[0031] Figure 10 yes Figure 6 The flowchart of step S630 in the illustrated embodiment is shown in an exemplary embodiment;
[0032] Figure 11 yes Figure 10The flowchart of step S1020 in the illustrated embodiment is shown in an exemplary embodiment;
[0033] Figure 12 yes Figure 6 A flowchart of step S630 in another exemplary embodiment;
[0034] Figure 13 yes Figure 12 The flowchart of step S1230 in the illustrated embodiment is shown in an exemplary embodiment;
[0035] Figure 14 yes Figure 6 The flowchart of step S640 in the illustrated embodiment is shown in an exemplary embodiment;
[0036] Figure 15 yes Figure 14 The flowchart of step S1410 in the illustrated embodiment is shown in an exemplary embodiment;
[0037] Figure 16 This is a block diagram illustrating a data comparison display device in an exemplary embodiment of this application;
[0038] Figure 17 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown. Detailed Implementation
[0039] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0040] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0041] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily need to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0042] In this application, "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0043] First, it should be noted that in the era of big data, data comparison and display is a form of data comparison and display through visualization and abstraction. For example, data comparison can be displayed using bar charts, line charts, or pie charts. In a broader sense, data comparison and display exists in all aspects of life and can be applied to any technical field.
[0044] In existing technologies, data are typically adjusted proportionally and displayed at the same rate. This results in the inability to highlight or diminish the importance of the data, making it impossible for the data to produce strong or weak contrasts during display, and preventing users from perceiving or ignoring the importance of the data in a short period of time.
[0045] Based on this, in order to highlight or weaken the importance of data, enhance or reduce the display differences between various data points, and thus create a strong or subtle contrast effect during display, embodiments of this application involve: on the one hand, adjusting the initial weight values corresponding to different graphic segments in each data graph by custom weight values for each dimension, thereby highlighting or weakening the importance of data and creating a strong or subtle contrast effect among the various data points; on the other hand, dynamically displaying each data graph according to the target display rate of different graphic segments, achieving variable-speed display of each data point, enhancing the contrast effect of the data, and enabling users to perceive or ignore the importance of the data in a short period of time. For details on the dynamic display method, see the following examples.
[0046] For example, let's take the voting data on user expectations for different character skins in game A as an example. For details, please refer to [link / reference]. Figure 1 .like Figure 1 As shown, the characters include Character 1, Character 2, Character 3, Character 4, and Character 5. Among them, Character 1 received 91,262 votes, Character 2 received 7,262 votes, Character 3 received 21,232 votes, Character 4 received 97,632 votes, and Character 5 received 14,822 votes.
[0047] On the one hand, there are situations where data values are similar across different data points, necessitating enhanced data comparison and display. For details, please refer to [link / reference needed]. Figure 2 , Figure 2The characters shown include Character 1, Character 2, Character 3, Character 4, and Character 5. Character 1 received 91,262 votes, Character 2 received 7,262 votes, Character 3 received 21,232 votes, Character 4 received 97,632 votes, and Character 5 received 14,822 votes. Figure 2 As shown in the dashed box, the voting data for Role 1 is 91,262 votes, and for Role 4 it is 97,632 votes. The difference between the voting results for Role 1 and Role 4 is small, causing the displayed bar chart to fail to highlight the votes for Role 4. This embodiment of the application adjusts the relevant weights of the data for Roles 1, 2, 3, 4, and 5, focusing on Roles 1 and 4. It also determines the target display rate for different graphic segments within Roles 1, 2, 3, 4, and 5, and then dynamically displays Roles 1, 2, 3, 4, and 5 according to the target display rate of these different graphic segments. This enhances the comparison of the voting results between Roles 1 and 4, as shown in the following figure. Figure 3 As shown, Figure 3 The data difference between the characters selected by the dashed box and the characters selected by the character 4 is significantly enhanced. In addition, the animation speed of the voting progress bar of character 4 is faster than that of the voting progress bar of character 1. This makes users feel the obvious difference between the voting progress bars of character 4 and character 1, and thus makes users focus their attention on the voting progress bar of character 4. This enhances the comparison effect between the voting results of character 4 and character 1.
[0048] On the other hand, when data points vary widely, it's necessary to reduce the complexity of the data comparison display. See details for further information. Figure 2 As shown in the dashed box, the voting data for character 3 is 21,232 votes, and for character 4 it is 97,632 votes. The significant difference in voting results between characters 3 and 4 makes character 4's votes appear overly prominent in the displayed bar chart. This embodiment adjusts the weights of the data for characters 1, 2, 3, 4, and 5, focusing on characters 3 and 4. It also determines the target display rate for different graphic segments within characters 1, 2, 3, 4, and 5, and then dynamically displays characters 1, 2, 3, 4, and 5 according to these target display rates. This reduces the disparity in voting results between characters 3 and 4, resulting in the following: Figure 4 As shown, Figure 4The data difference between the characters 3 and 4 selected by the dashed box in the text is significantly reduced. In addition, the animation speed of the voting progress bar of character 3 is similar to that of the voting progress bar of character 4 when it is displayed. This makes it difficult for users to perceive a significant difference between the voting progress bars of character 4 and character 3, thus weakening the comparison effect between the voting results of character 4 and character 3.
[0049] Figure 5 This is a schematic diagram of an implementation environment related to this application. The implementation environment includes a smart terminal 510 and a server 520, with the smart terminal 510 and the server 520 having a pre-established wired or wireless network connection.
[0050] like Figure 5 As shown, the data comparison is displayed through the display interface on the smart terminal 510. Specifically, the server 520 obtains the data graphs corresponding to the multiple data points to be compared, determines the initial weight values for different segments in each graph, adjusts the initial weight values for different segments using custom weight values for each dimension to obtain target weight values, and determines the target display rate for each segment using the target weight values. The server then sends the target display rates for each segment to the smart terminal 510. The smart terminal 510 receives the target display rates for each segment and dynamically displays each data graph according to the target display rates for each segment.
[0051] in, Figure 5 The smart terminal 510 shown can be any terminal device that supports data comparison and display, such as a smartphone, in-vehicle computer, tablet computer, laptop computer, or wearable device, but is not limited to these. Figure 5 The navigation server 520 shown is a server, which can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. No restrictions are imposed here. The smart terminal 510 can communicate with the navigation server 620 via wireless networks such as 6G (third-generation mobile information technology), 4G (fourth-generation mobile information technology), and 5G (fifth-generation mobile information technology). No restrictions are imposed here either.
[0052] Please see Figure 6 , Figure 6 This is a flowchart illustrating a data comparison and display method in an exemplary embodiment of this application. This data comparison and display method can be applied to… Figure 5The implementation environment shown is specifically executed by server 520 within that implementation environment. It should be understood that this method can also be applied to other exemplary implementation environments and executed by devices in other implementation environments; this embodiment does not limit the implementation environment to which the method is applicable.
[0053] The following section will describe in detail the data comparison and display method proposed in the embodiments of this application, using the server as the specific execution subject.
[0054] like Figure 6 As shown, in an exemplary embodiment, the data comparison and display method includes at least steps S610 to S640, which are described in detail below:
[0055] Step S610: Obtain the data graphs corresponding to the multiple data items to be compared.
[0056] First, it should be noted that the data to be compared are the data that will be displayed in comparison. The data to be compared must include at least two data points.
[0057] Data graphs are the display formats of multiple data points to be compared. Specifically, they can be bar charts, pie charts, line charts, area charts, or line segments, etc., and there are no restrictions here.
[0058] The quantified values of data graphs are used to represent the data values of each item. For example, if the data graph is a bar chart, the quantified values represent the height of each bar. Another example is a line chart, where the quantified value is the height of the inflection point. Yet another example is a pie chart, where the quantified value is the area of the sector.
[0059] The server retrieves the data graphs corresponding to the multiple data points to be compared. The following explanation uses bar charts to illustrate the data comparison display method. For details, please refer to [link / reference]. Figure 7 Multiple data points are represented as Data i(i=1,2,…n) To improve computational efficiency, the multiple data points acquired in this embodiment can be sorted in ascending order. For details, please refer to [link / reference needed]. Figure 8 .
[0060] It should also be noted that the server can also... Figure 7 The data in the dataset is sorted to obtain... Figure 8 The image shows multiple data items sorted by data size. For example... Figure 8 As shown, the sorted data is represented as SortData. i(i=1,2,…n) .in, Figure 7 Data in i(i=1,2,…n) and Figure 8 SortData in i(i=1,2,…n)There is a mapping relationship, specifically, Figure 7 Data in n correspond Figure 8 SortData1 in Figure 7 Data4 corresponds to Figure 8 SortData2 in Figure 7 Data1 in the middle corresponds to Figure 8 SortData3 in Figure 7 Data3 corresponds to Figure 8 SortData4 in Figure 7 Data2 in the middle corresponds to Figure 8 SortData in n .
[0061] Step S620: Divide the data graphs corresponding to each data item into dimensions to obtain at least one graphic segment used to compose each data graph.
[0062] Dimensional partitioning refers to dividing the data graph corresponding to each data item. For details on the multiple data items after dimensional partitioning, please refer to... Figure 9 .
[0063] A graphical segment is a part of a data graph; specifically, it's a section within the data graph. For example... Figure 9 As shown, BaseDate*w1, BaseData*(w1+w2), BaseData*(w1+w2+w3), BaseData*(w1+w2+w3+w4) and BaseData*(w1+…+w n Each data point corresponds to a different graphical segment in the data graph. This can also be understood as BaseDate*w1, BaseData*(w1+w2), BaseData*(w1+w2+w3), BaseData*(w1+w2+w3+w4), and BaseData*(w1+…+w…). n ) represents the quantized value of the graphic segment, specifically representing the data value of each graphic segment.
[0064] It should be noted that at least one graphic segment can form various data graphics. For example, Figure 9 Data4 in the example consists of the graphic segment corresponding to BaseDate*w1 and the graphic segment corresponding to BaseData*(w1+w2). Similarly, Data1 consists of the graphic segment corresponding to BaseDate*w1, the graphic segment corresponding to BaseData*(w1+w2), and the graphic segment corresponding to BaseData*(w1+w2+w3).
[0065] Depend on Figure 9It can be seen that different graphic segments used to compose data graphs correspond to different dimensions. In other words, different graphic segments correspond to one dimension. Different graphic segments of the same data graph correspond to different dimensions. Graphic segments of different data graphs may correspond to the same dimension. For example, in Data4, the graphic segment corresponding to BaseDate*w1 and the graphic segment corresponding to BaseData*(w1+w2) correspond to different dimensions. The graphic segment corresponding to BaseDate*w1 in Data4 and Data1 corresponds to the same dimension.
[0066] The server divides the data graphs corresponding to each data item into dimensions, obtaining at least one graph segment to compose each data graph. For example, the server determines the data difference between adjacent data graphs in the data graphs corresponding to each data item, and determines the graph segment of each data graph based on the data difference.
[0067] Step S630: Determine the initial weight values corresponding to different graphic segments in each data graph, and adjust the initial weight values corresponding to different graphic segments according to the custom weight values of each dimension to obtain the target weight values corresponding to different graphic segments in each data graph.
[0068] The initial weight values are based on the data weights between different data graphs in each data graph, which can also be understood as the display ratios between different data graphs in each data graph.
[0069] Custom weights are user-defined weights between different segments of a data graph, or, more specifically, user-defined display proportions between different data graphs. It's important to note that user-defined weights can be set by the user. For example, the user can pre-define the weights for different segments within each data graph.
[0070] Additionally, it should be noted that users can define custom coefficients, which, along with the initial weight values, determine custom weight values. For example, a custom weight value satisfies the following formula:
[0071] β i =w i *γ
[0072] Among them, w i β represents the initial weight value corresponding to different graphic segments in each data graphic. i The user-defined weight values are represented by γ, which represents the custom coefficients corresponding to different segments in each user-defined data graph. If it is necessary to highlight the data corresponding to a certain segment in each data graph, γ > 0. If it is necessary to weaken the data corresponding to a certain segment in each data graph, 1 ≥ γ ≥ 0.
[0073] The server determines the initial weight values corresponding to different graphic segments in each data graphic, and adjusts the initial weight values corresponding to different graphic segments according to the custom weight values of each dimension, so as to obtain the target weight values corresponding to each initial weight value.
[0074] like Figure 9 As shown, w1 in the graph segment corresponding to BaseData*w1 is the initial weight value for that graph segment. w2 in the graph segment corresponding to BaseData*(w1+w2) is the initial weight value for that graph segment. w3 in the graph segment corresponding to BaseData*(w1+w2+w3+w4) is the initial weight value for that graph segment. w4 in the graph segment corresponding to BaseData*(w1+w2+w3+w4) is the initial weight value for that graph segment. n The w in the corresponding graphic segment n This is the initial weight value corresponding to this graphic segment.
[0075] Step S640: Determine the target display rate of different graphic segments based on the target weight values corresponding to different graphic segments in each data graphic, so as to dynamically display each data graphic according to the target display rate of different graphic segments.
[0076] The target display rate is the speed at which different graphic segments in each data graphic move during display.
[0077] The server determines the target display rate of different graphic segments in each data graphic based on the target weight value corresponding to each graphic segment, so as to dynamically display each data graphic according to the target display rate of different graphic segments.
[0078] like Figure 9 As shown, the data for each item is... i(i=1,2,…n) The graphical segment corresponding to BaseData*w1 corresponds to a target display rate, for example, v1. The graphical segment corresponding to BaseData*(w1+w2) corresponds to a target display rate, for example, v2. The graphical segment corresponding to BaseData*(w1+w2+w3) corresponds to a target display rate, for example, v3. The graphical segment corresponding to BaseData*(w1+w2+w3+w4) corresponds to a target display rate, for example, v4. n The corresponding graphic segment corresponds to a target display rate, for example, v. n There exists a Data segment corresponding to BaseData*w1 in the graph. i(i=1,2,…n) After all are displayed as v1, at this time Data n Display complete; Data exists corresponding to the graphic segment BaseData*(w1+w2). i(i=1,2,…n-1)After all the data is displayed as v2, Data4 is now complete; there exists a Data segment corresponding to BaseData*(w1+w2+w3). i(i=1,2,3,5…n) After all data is displayed in v3, Data1 is now fully displayed, until Data2 contains BaseData*(w1+…+w n The corresponding graphic segment is v n Completed.
[0079] As can be seen, the data comparison and display method in this embodiment divides the data into data graphs corresponding to each data item by dimensions, determines the initial weight values corresponding to different graphic segments in each data graph, adjusts the initial weight values corresponding to different graphic segments using custom weight values for each dimension to obtain target weight values, and determines the target display rate corresponding to different graphic segments using the target weight values. Then, each data graph is dynamically displayed according to the target display rate of different graphic segments. On the one hand, by adjusting the initial weight values corresponding to different graphic segments in each data graph using custom weight values for each dimension, the importance of the data is highlighted or weakened, resulting in strong or weak contrast results for each data item. On the other hand, by dynamically displaying each data graph according to the target display rate of different graphic segments, the variable speed display of each data item is achieved, enhancing the data comparison effect and enabling users to perceive or ignore the importance of the data in a short time.
[0080] like Figure 10 As shown in the above exemplary embodiment, determining the initial weight values corresponding to different graphic segments in each data graphic further includes at least steps S1010 to S1020, which are described in detail below:
[0081] Step S1010: Determine the target data from the multiple data to be compared, determine the target graphic segment in the data graphic corresponding to the target data, and determine the target sub-data corresponding to the target graphic segment.
[0082] The target data is the data that needs to be highlighted or weakened among multiple data sets. For example, Figure 2 Voting data for "Character 4" in the middle.
[0083] The target graphic segment is the graphic segment in the target data that needs to be highlighted or weakened. For example, Figure 8 If Data1 is the target data that needs to be highlighted or weakened, then SortData4, which is mapped to Data1, is the target graphic segment.
[0084] The target sub-data refers to the data values of the target graphic segment; in other words, the target sub-data refers to the quantized values of the target graphic segment. Figure 9 The value of the graphic segment corresponding to BaseData*(w1+w2+w3+w4).
[0085] To highlight or weaken the target data, the server determines the target data from multiple data sets to be compared, and identifies the target graphic segment in the corresponding data graph. Then, the server uses the target graphic segment to divide the data graphs corresponding to each data set into dimensions, obtaining at least one graphic segment to compose each data graph.
[0086] Step S1020: Determine the initial weight values corresponding to different graphic segments in each data graphic based on the target sub-data corresponding to the target graphic segment.
[0087] The server uses the target sub-data corresponding to the target graphic segment to determine the initial weight value corresponding to different graphic segments in each data graphic.
[0088] Alternatively, the following can also be used: Figure 11 Steps S1110 to S1130 are implemented as follows: Step S1110 is implemented in detail below:
[0089] Step S1110: Obtain the dynamic adjustment coefficients and adjust the target sub-data according to the dynamic adjustment coefficients to obtain the dynamic adjustment data.
[0090] The dynamic adjustment coefficient is used to adjust the target sub-data corresponding to the target graphic segment. The dynamic adjustment coefficient α ranges from (0, +∞). Specifically, if it is necessary to highlight the target sub-data corresponding to the target graphic segment, the dynamic adjustment coefficient α ranges from (1, +∞). If it is necessary to weaken the target sub-data corresponding to the target graphic segment, the dynamic adjustment coefficient α ranges from (0, 1).
[0091] The dynamically adjusted data is obtained by adjusting the target sub-data using dynamic adjustment coefficients.
[0092] The server obtains dynamically adjusted data that satisfies the following formula:
[0093] BaseData = SortData k *α
[0094] Among them, SortData k The target sub-data is represented by α, the dynamic adjustment coefficient is represented by α, and the dynamic adjustment data is represented by BaseData.
[0095] Step S1120: Determine the weight values to be split for different image segments in each data graph based on the ratio between the sub-data corresponding to different image segments in each data graph and the dynamically adjusted data.
[0096] The sub-data corresponding to different image segments in each data graph are the data values of those segments. In other words, the sub-data are the quantized values of different image segments. Figure 9In the diagram, BaseData*w1 corresponds to the value of the graphic segment, BaseData*(w1+w2) corresponds to the value of the graphic segment, BaseData*(w1+w2+w3) corresponds to the value of the graphic segment, and BaseData*(w1+…+w n The corresponding value of the graphic segment.
[0097] The weight values to be split are determined based on the ratio between the sub-data corresponding to different image segments in each data graph and the dynamically adjusted data. For example... Figure 9 In the figure, BaseData*w1 corresponds to w1 in the figure segment, BaseData*(w1+w2) corresponds to w1+w2 in the figure segment, BaseData*(w1+w2+w3) corresponds to w1+w2+w3 in the figure segment, and BaseData*(w1+…+w n The corresponding figure segment contains w1+…+w n .
[0098] The server determines the weight values to be split for different graphic segments in each data graphic based on the ratio between the sub-data corresponding to different graphic segments in each data graphic and the dynamically adjusted data.
[0099] The weight values to be split satisfy the following formula:
[0100]
[0101] in, Characterize the weight values to be split. It represents the ratio between the sub-data corresponding to different graphic segments in each data graphic and the dynamically adjusted data.
[0102] Step S1130: Decompose the weight values to be decomposed for different graphic segments in each data graphic to obtain the initial weight values for different graphic segments in each data graphic.
[0103] Based on the weight relationships between the weight values to be split for different graphic segments in each data graph, the server splits the weight values to be split for each graphic segment to obtain the initial weight values for different graphic segments in each data graph. Specifically, the server obtains the weight values to be split for the first and second graphic segments of adjacent graphic segments in each data graph, and calculates the difference between the weight values to be split for the first and second graphic segments as the initial weight value for the first graphic segment.
[0104] The initial weight values corresponding to different graphic segments in each data graph satisfy the following formula:
[0105]
[0106] w1+w2+…+w k =1
[0107] 0≤w l ≤1 (1≤l≤k)
[0108] 0≤w l (l>k)
[0109] in, The weight value to be split in the first graphic segment represents the weight value to be split. The weight value to be split for the second graphic segment, w k The initial weight value represents the target graphic segment corresponding to the target data, where k is the index of the target graphic segment corresponding to the target data, and SortData0 = 0.
[0110] The following uses specific examples to illustrate this embodiment. If each data item... i(i=1,2,…n) Mapping the corresponding SortData i(i=1,2,…n) Given the data as [1, 5, 10, 20, 30], let the target sub-data be 20, and let the dynamic adjustment coefficient α be 1. Then, SortData4 represents the target graphic segment, and the dynamically adjusted data BaseData = SortData4 * α = 20 * 1 = 20. The data for each item is Data. i(i=1,2,…n) The corresponding initial weight values satisfy the following formula:
[0111] BaseData = SortData k *α = SortData4 * 1 = 20
[0112]
[0113]
[0114]
[0115]
[0116]
[0117] The initial weight values corresponding to different graphic segments in each data graphic are derived from the above formula: w1+w2+…+w k =1.
[0118] As can be seen, the data comparison and display method in this embodiment determines the target data from multiple data sets to be compared, identifies the target graphic segment in the corresponding data graphic, and determines the target sub-data corresponding to the target graphic segment. Then, it adjusts the target sub-data using dynamic adjustment coefficients to obtain dynamically adjusted data. Finally, based on the ratio between the sub-data corresponding to different image segments in each data graphic and the dynamically adjusted data, it determines the initial weight value corresponding to different graphic segments in each data graphic. By dynamically adjusting the target sub-data using dynamic adjustment coefficients, the importance of the target data is highlighted or weakened, resulting in strong or weak contrast effects among the various data sets.
[0119] like Figure 12 As shown, Figure 12 yes Figure 6 The flowchart of step S630 in the illustrated embodiment is shown in an exemplary embodiment. In the above exemplary embodiment, adjusting the initial weight values corresponding to different graphic segments according to the custom weight values of each dimension to obtain the target weight values corresponding to different graphic segments in each data graphic further includes at least steps S1210 to S1230, which are described in detail below:
[0120] Step S1210: In order of increasing weight for each dimension, determine whether the custom weight value of each dimension is equal to the corresponding initial weight value.
[0121] Since the initial weight values of the graphic segments corresponding to the same dimension in each data graphic are the same, the server sequentially determines whether the custom weight value of each dimension is equal to the corresponding initial weight value in ascending order of each dimension. If they are equal, step S1220 is executed. If they are not equal, step S1230 is executed.
[0122] In step S1220, the initial weight value corresponding to the current dimension is taken as the target weight value.
[0123] If the custom weight value is equal to the corresponding initial weight value, the server will use the initial weight value corresponding to the current dimension as the target weight value.
[0124] In step S1230, the custom weight value corresponding to the current dimension is taken as the target weight value, and the target weight values of the other dimensions besides the current dimension are redefined.
[0125] If the custom weight value is not equal to the corresponding initial weight value, the server will use the custom weight value corresponding to the current dimension as the target weight value and redetermine the target weight values for the other dimensions besides the current dimension.
[0126] As can be seen, the data comparison and display method in this embodiment determines whether the custom weight value of each dimension is equal to the corresponding initial weight value in ascending order of each dimension. If they are equal, the initial weight value corresponding to the current dimension is taken as the target weight value. If they are not equal, the custom weight value corresponding to the current dimension is taken as the target weight value, and the target weight values of the other dimensions are redefined. By adaptively adjusting the initial weight values of each dimension through user-defined custom weight values, the data is no longer displayed and drawn in a uniform motion, avoiding the slight visual difference caused by uniform motion, and preventing users from perceiving or ignoring the importance of the target data in a short period of time.
[0127] like Figure 13 As shown, Figure 13 yes Figure 12 The flowchart of step S1230 in the illustrated embodiment is shown in an exemplary embodiment. In the above exemplary embodiment, redetermining the target weight values of the dimensions other than the current dimension further includes at least steps S1310 to S1320, which are described in detail below:
[0128] Step S1310: Determine whether the current dimension is lower than or equal to the dimension corresponding to the target graphic segment.
[0129] If the custom weight values for each dimension are not equal to the corresponding initial weight values, the server determines that the custom weight value is the target weight value and checks whether the current dimension is lower than or equal to the corresponding dimension of the target graphic segment. If so, step S1320 is executed. If not, the initial weight value is determined to be the target weight value.
[0130] In step S1320, the initial weight values corresponding to each dimension to be determined are adjusted using the custom weight values of the current dimension, and the adjusted initial weight values are used as the target weight values of each dimension to be determined.
[0131] Each dimension to be determined is a dimension lower than the current dimension. For example... Figure 9 As shown, the dimension of the graph segment corresponding to BaseData*(w1+w2+w3+w4) is the current dimension, the dimension of the graph segment corresponding to BaseData*w1 is the same as the current dimension, the dimension of the graph segment corresponding to BaseData*(w1+w2) is the same as the current dimension, and the dimension of the graph segment corresponding to BaseData*(w1+w2+w3) is lower than the current dimension.
[0132] The server uses the custom weight value of the current dimension to adjust the initial weight value of the dimensions that are lower than the current dimension, and uses the adjusted initial weight value of the dimensions that are lower than the current dimension as the target weight value.
[0133] Specifically, the server determines the sum of the initial weight values corresponding to each dimension to be determined, determines the custom adjustment data based on the custom weight value of the current dimension, determines the ratio between the custom adjustment data and the sum, and then adjusts the initial weight values corresponding to each dimension to be determined according to the ratio to obtain the target weight value of each dimension to be determined.
[0134] The adjusted initial weight values satisfy the following formula:
[0135]
[0136] Among them, w j β' represents the target weight value for each dimension to be determined. i For the current dimension, the custom weight value is 1-β. i To customize and adjust the data, w is the sum of the initial weights for each dimension to be determined. j Let k be the initial weight value corresponding to each dimension to be determined, and k is the index of the target sub-data corresponding to the target graphic segment in the target data.
[0137] It should be noted that the custom weight values for the current dimension satisfy the following formula:
[0138]
[0139] The following is Figure 9 Let's take an example from the Chinese text to illustrate. Specifically, Figure 9 Initial weight values in Custom weight value β i(i=1,2,…5) It can be represented as follows:
[0140]
[0141]
[0142]
[0143]
[0144]
[0145] It should be noted that if the server determines that the custom weight value β4 and its corresponding initial weight value w4, as well as the custom weight value β5 and its corresponding initial weight value w5 are not equal, the server needs to use the custom weight value β4 and the custom weight value β5 to adjust their corresponding initial weight values w4 and w5 respectively.
[0146] For the adjustment of the initial weight value w4, the server determines the initial weight value w4 to be its corresponding custom weight value β4, which is the target weight value, and uses the custom weight value β4 to adjust the initial weight values w1, w2 and w3 respectively.
[0147] The adjustment of the initial weight values satisfies the following formula:
[0148]
[0149] For the adjustment of the initial weight value w5, the server determines that the initial weight value w5 is its corresponding custom weight value β5, which is also the target weight value.
[0150] The adjustment of the initial weight values satisfies the following formula:
[0151]
[0152] As can be seen, the data comparison and display method in this embodiment determines whether the current dimension is lower than or equal to the dimension corresponding to the target graphic segment. If so, it adjusts the initial weight values corresponding to each dimension to be determined using the custom weight value of the current dimension, and uses the adjusted initial weight values as the target weight values for each dimension to be determined. Specifically, it adjusts the initial weight values corresponding to dimensions smaller than the current dimension using the custom weight value of the current dimension. This ensures that the data is no longer displayed and drawn at a uniform speed, avoiding the slight visual difference caused by uniform motion, and preventing users from perceiving or ignoring the importance of the target graphic segment corresponding to the target data in a short time.
[0153] like Figure 14 As shown, Figure 14 yes Figure 6 The flowchart of step S640 in the illustrated embodiment is shown in an exemplary embodiment. In the above exemplary embodiment, determining the target display rate of different graphic segments according to the target weight values corresponding to different graphic segments in each data graphic, so as to dynamically display each data graphic according to the target display rate of different graphic segments, at least includes steps S1410 to S1420, which are described in detail below:
[0154] Step S1410: Determine the rate control coefficient, acceleration coefficient, and initial display rate for each dimension, and adjust the initial display rate for each dimension according to the rate control coefficient, acceleration coefficient, and target weight value for each dimension to obtain the target display rate for each dimension.
[0155] The rate control factor is user-defined. Specifically, the rate control factor ε iWhen >0, the graph segment [SortData] i-1 SortData i [Relative to the graph segment [SortData]] i-2 SortData i-1 [Accelerated motion extends the display drawing; when ε] i When <0, the graph segment [SortData] i-1 SortData i [Relative to the graph segment [SortData]] i-2 SortData i-1 The deceleration motion is extended and drawn.
[0156] The acceleration coefficient is user-defined. Specifically, the acceleration coefficient 'a'... i When = 0, the graphic segment [SortData] i-1 SortData i [Relative to the graph segment [SortData]] i-2 SortData i-1 Perform uniformly accelerated extended motion; when a i When ≠0, the graph segment [SortData] i-1 SortData i [Relative to the graph segment [SortData]] i-2 SortData i-1 Perform variable speed extension drawing motion.
[0157] It should be noted that when the rate control coefficient and acceleration coefficient are not user-defined, both the rate control coefficient and acceleration coefficient are 1.
[0158] The initial display rate is preset. Specifically, it is the rate at which multiple data points are drawn and displayed at a constant speed.
[0159] The server adjusts the initial display rate of each dimension based on the speed control coefficient, acceleration coefficient, and target weight value corresponding to each dimension, thereby obtaining the target display rate corresponding to each dimension.
[0160] Step S1420: Display each data graph dynamically according to the order of the dimensions corresponding to different graph segments in each data graph from low to high, and according to the target display rate corresponding to each dimension.
[0161] The server dynamically displays each data graph according to the target display rate corresponding to each dimension, arranged from low to high for different graph segments within each graph.
[0162] like Figure 9 As shown, the data for each item is... i(i=1,2,…n)The order of different graphic segment dimensions from high to low is as follows: BaseData*w1 corresponds to the dimension of the graphic segment, BaseData*(w1+w2) corresponds to the dimension of the graphic segment, BaseData*(w1+w2+w3) corresponds to the dimension of the graphic segment, BaseData*(w1+w2+w3+w4) corresponds to the dimension of the graphic segment, and so on down to BaseData*(w1+w2+w3+w4). n The order of the corresponding graphic segments is determined by the dimension. A target display rate is assigned to the graphic segment corresponding to BaseData*w1, for example, v1. A target display rate is assigned to the graphic segment corresponding to BaseData*(w1+w2), for example, v2. A target display rate is assigned to the graphic segment corresponding to BaseData*(w1+w2+w3), for example, v3. A target display rate is assigned to the graphic segment corresponding to BaseData*(w1+w2+w3+w4), for example, v4. n The corresponding graphic segment corresponds to a target display rate, for example, v. n There exists a Data segment corresponding to BaseData*w1 in the graph. i(i=1,2,…n) After all are displayed as v1, at this time Data n Display complete; Data exists corresponding to the graphic segment BaseData*(w1+w2). i(i=1,2,…n-1) After all the data is displayed as v2, Data4 is now complete; there exists a Data segment corresponding to BaseData*(w1+w2+w3). i(i=1,2,3,5…n) After all data is displayed in v3, Data1 is now fully displayed, until Data2 contains BaseData*(w1+…+w n The corresponding graphic segment is v n Completed.
[0163] As can be seen, the data comparison and display method in this embodiment adjusts the initial display rate of each dimension according to the speed control coefficient, acceleration coefficient, and target weight value corresponding to each dimension to obtain the target display rate corresponding to each dimension. Then, it dynamically displays each data graph according to the target display rate corresponding to each dimension, following the ascending order of the dimensions corresponding to different graph segments. By dynamically displaying each data graph according to the target display rate of different graph segments, it achieves variable-speed display of various data, enhances the data comparison effect, and enables users to perceive or ignore the importance of the target data in a short time.
[0164] like Figure 15 As shown, Figure 15 yes Figure 14The flowchart of step S1410 in the illustrated embodiment is shown in an exemplary embodiment. In the above exemplary embodiment, determining the rate control coefficient, acceleration coefficient, and initial display rate corresponding to each dimension, and adjusting the initial display rate of each dimension according to the rate control coefficient, acceleration coefficient, and target display rate corresponding to each dimension, to obtain the target display rate corresponding to each dimension, at least includes steps S1510 to S1520, which are described in detail below:
[0165] Step S1510: Determine the first rate adjustment data for each dimension based on the product of the rate control coefficient and the target display rate for each dimension, and determine the second rate adjustment data based on the acceleration coefficient and the preset time for each dimension.
[0166] The first rate adjustment data is determined based on the product of the rate control coefficients for each dimension and the target display rate.
[0167] The second rate adjustment data is determined based on the product of the acceleration coefficients in each dimension and the preset time.
[0168] The server determines the first rate adjustment data for each dimension based on the product of the rate control coefficient of each dimension and the target display rate, and determines the second rate adjustment data based on the acceleration coefficient of each dimension and the preset time.
[0169] Step S1520: Adjust the initial display rate according to the first rate adjustment data of each dimension to obtain the third rate adjustment data, and determine the target display rate corresponding to each dimension according to the second rate adjustment data and the third rate adjustment data.
[0170] The third rate adjustment data is obtained by adjusting the initial display rate based on the first rate adjustment data for each dimension.
[0171] The target display rate for each dimension satisfies the following formula:
[0172]
[0173] Where v′ is the target display rate corresponding to each dimension, v is the rate at which multiple data are uniformly extended and displayed, (1+ε i *w′ l ) represents the first rate adjustment data determined based on the product of the rate control coefficients for each dimension and the target display rate. i *t represents the second rate adjustment data determined based on the acceleration coefficients of each dimension and a preset time. The third rate adjustment data is obtained by adjusting the initial display rate based on the first rate adjustment data of each dimension.
[0174] As can be seen, the data comparison and display method in this embodiment determines the first rate adjustment data for each dimension based on the product of the rate control coefficient and the target display rate, and determines the second rate adjustment data based on the acceleration coefficient and preset time for each dimension. The initial display rate is then adjusted based on the first rate adjustment data for each dimension to obtain the third rate adjustment data. Finally, the target display rate corresponding to each dimension is determined based on the second and third rate adjustment data. By dynamically displaying each data graph according to the target display rate of different graphic segments, the variable-speed display of various data points is achieved, enhancing the data comparison effect and enabling users to perceive or ignore the importance of the target data in a short time.
[0175] Figure 16 This is a block diagram illustrating a data comparison display device according to an exemplary embodiment of this application. This data comparison display device can be applied to... Figure 5 The implementation environment shown is different from that described above. This data comparison and display device can also be applied to other exemplary implementation environments and specifically configured in other devices. This embodiment does not limit the implementation environment to which the device is applicable.
[0176] like Figure 16 As shown, the exemplary data comparison display device 1600 includes: an acquisition module 1610, a dimension division module 1620, a weight determination module 1630, and a display module 1640. Specifically:
[0177] The acquisition module 1610 is configured to acquire data graphs corresponding to multiple data items to be compared, wherein the quantization value of the data graph corresponding to each data item is used to characterize the data value of each data item.
[0178] The dimension partitioning module 1620 is configured to partition the data graphs corresponding to each data item into dimensions, and obtain at least one graphic segment used to compose each data graph, wherein different graphic segments used to compose the data graphs correspond to different dimensions.
[0179] The weight determination module 1630 is configured to determine the initial weight values corresponding to different graphic segments in each data graph, and adjust the initial weight values corresponding to different graphic segments according to the custom weight values of each dimension, so as to obtain the target weight values corresponding to different graphic segments in each data graph.
[0180] The display module 1640 is configured to determine the target display rate of different graphic segments based on the target weight values corresponding to different graphic segments in each data graphic, so as to dynamically display each data graphic according to the target display rate of different graphic segments.
[0181] In this exemplary data comparison and display device, data graphs corresponding to various data items are divided by dimensions. Initial weight values for different segments within each graph are determined, and the initial weight values for different segments are adjusted using custom weight values for each dimension to obtain target weight values. Furthermore, the target display rate for each segment is determined using these target weight values, and the data graphs are dynamically displayed according to these target display rates. On one hand, adjusting the initial weight values for different segments within each graph through custom weight values for each dimension highlights or weakens the importance of the data, resulting in strong or subtle contrasts. On the other hand, dynamically displaying the data graphs according to the target display rates of different segments achieves variable-speed display of the data, enhancing the data comparison effect and enabling users to perceive or ignore the importance of the data in a short time.
[0182] Based on the above exemplary embodiments, the weight determination module 1630 further includes:
[0183] The target sub-data determination module is configured to determine target data from multiple data sets to be compared, determine the target graphic segment in the corresponding data graphic, and determine the target sub-data corresponding to the target graphic segment. The data value of the target sub-data is used to characterize the quantization value of the target graphic segment.
[0184] The initial weight determination module is configured to determine the initial weight values corresponding to different graphic segments in each data graphic based on the target sub-data corresponding to the target graphic segment.
[0185] Based on the above exemplary embodiments, the initial weight determination module further includes:
[0186] The dynamic adjustment data acquisition module is configured to acquire dynamic adjustment coefficients and adjust the target sub-data according to the dynamic adjustment coefficients to obtain dynamic adjustment data.
[0187] The module for determining the weight to be split is configured to determine the weight value to be split for different graphic segments in each data graphic based on the ratio between the sub-data corresponding to different image segments in each data graphic and the dynamically adjusted data.
[0188] The weight value splitting module is configured to split the weight values to be split for different graphic segments in each data graph, thereby obtaining the initial weight values for different graphic segments in each data graph.
[0189] Based on the above exemplary embodiments, the weight value splitting module further includes:
[0190] The adjacent graphic segment acquisition module is configured to acquire the weight values to be split for adjacent graphic segments in each data graphic, and the adjacent graphic segments include the first graphic segment and the second graphic segment.
[0191] The module for determining the initial weight value of the first graphic segment is configured to determine the difference between the weight value to be split of the first graphic segment and the weight value to be split of the second graphic segment as the initial weight value of the first graphic segment.
[0192] Based on the above exemplary embodiments, the weight determination module 1630 further includes:
[0193] The first judgment module is configured to judge whether the custom weight value of each dimension is equal to the corresponding initial weight value in ascending order of each dimension.
[0194] The weight equality module is configured such that if the weights are equal, the initial weight value corresponding to the current dimension will be used as the target weight value.
[0195] The module for unequal weights is configured such that if the weights are not equal, the custom weight value corresponding to the current dimension is used as the target weight value, and the target weight values of the other dimensions besides the current dimension are redefined.
[0196] Based on the above exemplary embodiments, the unequal weight module further includes:
[0197] The second judgment module is configured to determine whether the current dimension is lower than or equal to the corresponding dimension of the target graphic segment.
[0198] If the dimension determination module is configured as such, it will adjust the initial weight values of each dimension to be determined using the custom weight value of the current dimension, and use the adjusted initial weight values as the target weight values of each dimension to be determined. The dimension to be determined is lower than the dimension of the current dimension.
[0199] Based on the above exemplary embodiments, the dimension determination module further includes:
[0200] The weighting and determination module is configured to determine the sum of the initial weight values corresponding to each dimension to be determined.
[0201] The ratio determination module is configured to determine custom adjustment data based on the custom weight values of the current dimension, and to determine the ratio between the custom adjustment data and the sum.
[0202] The target weight value determination module is configured to adjust the initial weight values corresponding to each dimension to be determined based on the ratio, so as to obtain the target weight values of each dimension to be determined.
[0203] Based on the above exemplary embodiments, the display module 1640 further includes:
[0204] The target display rate determination module is configured to determine the rate control coefficient, acceleration coefficient, and initial display rate corresponding to each dimension, and adjust the initial display rate of each dimension according to the rate control coefficient, acceleration coefficient, and target weight value corresponding to each dimension to obtain the target display rate corresponding to each dimension.
[0205] The dynamic display module is configured to dynamically display each data graph according to the order of the dimensions corresponding to different graph segments in each data graph from low to high, and according to the target display rate corresponding to each dimension.
[0206] Based on the above exemplary embodiments, the target display rate determination module further includes:
[0207] The rate adjustment data determination module is configured to determine the first rate adjustment data for each dimension based on the product of the rate control coefficient for each dimension and the target display rate, and to determine the second rate adjustment data based on the acceleration coefficient for each dimension and the preset time.
[0208] The target display rate determination submodule is configured to adjust the initial display rate based on the first rate adjustment data for each dimension, obtain the third rate adjustment data, and determine the target display rate corresponding to each dimension based on the second rate adjustment data and the third rate adjustment data.
[0209] It should be noted that the data comparison and display device provided in the above embodiments and the data comparison and display method provided in the above embodiments belong to the same concept. The specific ways in which each module and unit performs its operation have been described in detail in the method embodiments, and will not be repeated here. In practical applications, the data comparison and display device provided in the above embodiments can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above, and this is not a limitation.
[0210] Embodiments of this application also provide an electronic device, including: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the electronic device to implement the data comparison and display method provided in the above embodiments.
[0211] Figure 17 A schematic diagram of a computer system suitable for implementing the embodiments of this application is shown. It should be noted that... Figure 17 The computer system 1700 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0212] like Figure 17As shown, the computer system 1700 includes a Central Processing Unit (CPU) 1701, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 1702 or programs loaded from storage portion 1708 into Random Access Memory (RAM) 1703, such as performing the methods described in the above embodiments. Various programs and data required for system operation are also stored in RAM 1703. The CPU 1701, ROM 1702, and RAM 1703 are interconnected via bus 1704. An Input / Output (I / O) interface 1705 is also connected to bus 1704.
[0213] The following components are connected to I / O interface 1705: an input section 1706 including a keyboard, mouse, etc.; an output section 1707 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1708 including a hard disk, etc.; and a communication section 1709 including a network interface card such as a LAN (Local Area Network) card, modem, etc. Communication section 1709 performs communication processing via a network such as the Internet. Drive 1710 is also connected to I / O interface 1705 as needed. Removable media 1711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 1710 as needed so that computer programs read from them can be installed into storage section 1708 as needed.
[0214] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 1709, and / or installed from removable medium 1711. When the computer program is executed by central processing unit (CPU) 1701, it performs various functions defined in the system of this application.
[0215] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0216] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0217] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0218] Another aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the data comparison and display method as described above. This computer-readable storage medium may be included in the electronic device described in the above embodiments, or it may exist independently and not assembled into the electronic device.
[0219] Another aspect of this application provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the data comparison and display methods provided in the various embodiments described above.
[0220] The above description is merely a preferred exemplary embodiment of this application and is not intended to limit the implementation of this application. Those skilled in the art can easily make corresponding modifications or alterations based on the main concept and spirit of this application. Therefore, the scope of protection of this application should be determined by the scope of protection claimed in the claims.
Claims
1. A data comparison and display method, characterized in that, The method includes: Obtain the data graphs corresponding to the multiple data points to be compared, where the quantified values of the data graphs corresponding to each data point are used to characterize the data values of each data point; Divide the data graphs corresponding to each data point into dimensions to obtain at least one graph segment that makes up each data graph. Different graph segments that make up the data graphs correspond to different dimensions. Determine the initial weight values corresponding to different graphic segments in each data graph, and adjust the initial weight values corresponding to different graphic segments according to the custom weight values of each dimension to obtain the target weight values corresponding to different graphic segments in each data graph. Determine the rate control coefficient, acceleration coefficient, and initial display rate for each dimension, and adjust the initial display rate of each dimension according to the rate control coefficient, acceleration coefficient, and target weight value to obtain the target display rate for each dimension, so as to dynamically display each data graph according to the target display rate of the dimension corresponding to different graphic segments.
2. The method according to claim 1, characterized in that, The step of determining the initial weight values corresponding to different graphic segments in each data graphic includes: Target data is determined from the multiple data to be compared, and a target graphic segment in the data graphic corresponding to the target data is determined, as well as a target sub-data corresponding to the target graphic segment. The data value of the target sub-data is used to characterize the quantization value of the target graphic segment. The initial weight values corresponding to different graphic segments in each data graphic are determined based on the target sub-data corresponding to the target graphic segment.
3. The method according to claim 2, characterized in that, The step of determining the initial weight values corresponding to different graphic segments in each data graphic based on the target sub-data corresponding to the target graphic segment includes: Obtain the dynamic adjustment coefficients, and adjust the target sub-data according to the dynamic adjustment coefficients to obtain the dynamically adjusted data; Based on the ratio between the sub-data corresponding to different image segments in each data graph and the dynamically adjusted data, determine the weight values to be split for different image segments in each data graph. The initial weight values for different graphic segments in each data graphic are obtained by splitting the weight values to be split into different graphic segments.
4. The method according to claim 3, characterized in that, The step of splitting the weight values corresponding to different graphic segments in each data graphic to obtain the initial weight values corresponding to different graphic segments in each data graphic includes: Obtain the weight values to be split for adjacent graphic segments in each data graphic, wherein the adjacent graphic segments include the first graphic segment and the second graphic segment; The difference between the weight value to be split of the first graphic segment and the weight value to be split of the second graphic segment is determined as the initial weight value of the first graphic segment.
5. The method according to claim 1, characterized in that, The initial weight values of graphic segments corresponding to the same dimension in each data graph are the same; the step of adjusting the initial weight values corresponding to different graphic segments according to the custom weight values of each dimension to obtain the target weight values corresponding to different graphic segments in each data graph includes: In order of increasing weight for each dimension, determine whether the custom weight value of each dimension is equal to the corresponding initial weight value. If they are equal, the initial weight value corresponding to the current dimension will be used as the target weight value; If they are not equal, the custom weight value corresponding to the current dimension will be used as the target weight value, and the target weight values of the other dimensions besides the current dimension will be redefined.
6. The method according to claim 5, characterized in that, The multiple data to be compared include target data, and the data graph corresponding to the target data includes target graph segments; The step of redetermining the target weight values for dimensions other than the current dimension includes: Determine whether the current dimension is lower than or equal to the dimension corresponding to the target graphic segment; If so, the initial weight values corresponding to each dimension to be determined are adjusted using the custom weight value of the current dimension, and the adjusted initial weight values are used as the target weight values of each dimension to be determined, wherein the dimension of each dimension to be determined is lower than the dimension of the current dimension.
7. The method according to claim 6, characterized in that, The step of adjusting the initial weight values corresponding to each dimension to be determined using the custom weight value of the current dimension, and using the adjusted initial weight values as the target weight values of each dimension to be determined, includes: Determine the sum of the initial weight values corresponding to each dimension to be determined; Custom adjustment data is determined based on the custom weight values of the current dimension, and the ratio between the custom adjustment data and the sum of the initial weight values is determined. Adjust the initial weight values corresponding to each dimension to be determined according to the ratio to obtain the target weight values of each dimension to be determined.
8. The method according to claim 1, characterized in that, The step of dynamically displaying each data graphic according to the target display rate of different graphic segments includes: The data graphs are dynamically displayed according to the order of the dimensions corresponding to different graph segments in each graph from low to high, and according to the target display rate corresponding to each dimension.
9. The method according to claim 1, characterized in that, The step of determining the rate control coefficient, acceleration coefficient, and initial display rate corresponding to each dimension, and adjusting the initial display rate of each dimension according to the rate control coefficient, acceleration coefficient, and target weight value to obtain the target display rate corresponding to each dimension, includes: The first rate adjustment data for each dimension is determined by multiplying the rate control coefficient of each dimension with the target weight value, and the second rate adjustment data is determined by multiplying the acceleration coefficient of each dimension with the preset time. The initial display rate is adjusted based on the first rate adjustment data for each dimension to obtain the third rate adjustment data, and the target display rate corresponding to each dimension is determined based on the second rate adjustment data and the third rate adjustment data.
10. A data comparison display device, characterized in that, The data comparison dynamic display device includes: The acquisition module is configured to acquire data graphs corresponding to the multiple data items to be compared, wherein the quantized value of the data graph corresponding to each data item is used to characterize the data value of each data item; The dimension partitioning module is configured to partition the data graphs corresponding to each data item into dimensions, and obtain at least one graphic segment to compose each data graph. Different graphic segments used to compose the data graphs correspond to different dimensions. The weight determination module is configured to determine the initial weight values corresponding to different graphic segments in each data graph, and adjust the initial weight values corresponding to different graphic segments according to the custom weight values of each dimension, so as to obtain the target weight values corresponding to different graphic segments in each data graph. The display module is configured to determine the rate control coefficient, acceleration coefficient, and initial display rate corresponding to each dimension, and adjust the initial display rate of each dimension according to the rate control coefficient, acceleration coefficient, and target weight value corresponding to each dimension to obtain the target display rate corresponding to each dimension, so as to dynamically display each data graph according to the target display rate of the dimension corresponding to different graphic segments.
11. An electronic device, characterized in that, include: Memory, which stores computer-readable instructions; The processor reads computer-readable instructions stored in memory to execute the data comparison and display method as described in any one of claims 1-9.
12. A computer-readable storage medium, characterized in that, It stores computer-readable instructions that, when executed by the computer's processor, cause the computer to perform the data comparison and display method as described in any one of claims 1-9.
13. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the data comparison and display method as described in any one of claims 1-9.
Citation Information
Patent Citations
Data graph display adjustment method and device, storage medium and computer equipment
CN110046184A
Method and device for dynamically displaying two-dimensional code
CN111626390A