Data visualization method, apparatus, server

By configuring the initial cache mapping and updating the mapping relationship between view row numbers and data index numbers, the problem of low efficiency in data visualization operations is solved, enabling efficient data display and hiding, reducing view refresh time, and improving user experience.

CN115328606BActive Publication Date: 2026-01-23HANGZHOU CHANGCHUAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211062791.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-01
Publication Date
2026-01-23
Estimated Expiration
2042-09-01

AI Technical Summary

Technical Problem

Existing technologies are inefficient for data visualization operations when the model data remains unchanged, especially when hiding or showing parts of the model data. This requires frequent view refreshes or loading data from the data source, resulting in low response efficiency.

Method used

By configuring the initial cache mapping, a mapping relationship is established between the view row number of the data display view and the data index number of the model data. After receiving data operation instructions, the cache mapping is updated, and the view is refreshed according to the updated mapping to display the target model data without having to repeatedly read data from the data source.

Benefits of technology

It significantly improves the response efficiency of data visualization operations, reduces user waiting time, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115328606B_ABST
    Figure CN115328606B_ABST
Patent Text Reader

Abstract

The application provides a data visualization method, device and server, comprising: displaying a plurality of initial model data based on a configured initial cache mapping, wherein the initial cache mapping is used to represent a mapping relationship between a view row number of a data display view and a data index number corresponding to the initial model data; receiving a data operation instruction for the model data, updating the initial cache mapping to obtain a target cache mapping; wherein the target cache mapping is used to represent a mapping relationship between the view row number of the data display view and the data index number corresponding to the target model data; and refreshing the data display view according to the target cache mapping to display the target model data. The application can significantly improve the response efficiency of data visualization related operations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a data visualization method, apparatus, and server. Background Technology

[0002] Currently, traditional model-view frameworks can synchronize data (model) and display (view). When the data is updated, the display will also be updated accordingly, and vice versa. However, there are scenarios where some model data is displayed while the model data remains unchanged, meaning that changes in the model data do not need to be persisted. Related technologies propose the following two solutions: (1) Hide the corresponding view display items to ensure that the model data remains unchanged. This solution requires traversing all the rows and columns that need to be hidden or shown, and hiding or showing them one by one on the view. This process will refresh the view multiple times, resulting in a long view refresh time and thus low efficiency; (2) Delete the corresponding view display items. In this case, the corresponding model data will be deleted, and all model data will be reloaded from the data source when updating the view. This solution requires reading data from the data source and loading it into the model every time the view is updated, so it also has the problem of low efficiency. Summary of the Invention

[0003] In view of this, the purpose of the present invention is to provide a data visualization method, apparatus, and server that can significantly improve the response efficiency of data visualization-related operations.

[0004] In a first aspect, embodiments of the present invention provide a data visualization method, comprising: displaying a plurality of initial model data based on a configured initial cache mapping, wherein the initial cache mapping is used to characterize the mapping relationship between the view row number of the data display view and the data index number corresponding to the initial model data; receiving a data operation instruction for the model data, updating the initial cache mapping to obtain a target cache mapping; wherein the target cache mapping is used to characterize the mapping relationship between the view row number of the data display view and the data index number corresponding to the target model data; and refreshing the data display view according to the target cache mapping to display the target model data.

[0005] In one implementation, the step of displaying several initial model data based on the configured initial cache mapping includes: reading several model data from a data source; creating an initial cache mapping according to a preset display rule; wherein the initial cache mapping is used to characterize the mapping relationship between the view row number of the data display view and the data index number corresponding to the initial model data; and displaying the initial model data based on the initial cache mapping.

[0006] In one embodiment, the step of creating an initial cache mapping according to a preset display rule includes: filtering initial model data from several model data within the model according to the preset display rule, and creating an initial cache mapping based on the data index number corresponding to the initial model data and the view row number of the data display view.

[0007] In one implementation, the display rules include one or more of the following: displaying or hiding the model data corresponding to a first data type in the model; displaying or hiding the model data corresponding to a second data type in the model when the total number of model data is greater than a preset number threshold; displaying or hiding the model data containing preset keywords in the model; and displaying or hiding the model data corresponding to a third data type in the model according to the total number of model data and the display weight corresponding to each data type.

[0008] In one implementation, at least one of the initial cache mapping, the target cache mapping, and the preset display rules is stored in local memory.

[0009] In one embodiment, the step of updating the initial cache mapping to obtain the target cache mapping further includes: receiving a data operation instruction carrying a target keyword, and determining model data containing the target keyword as target model data; or, receiving a data operation instruction carrying a target data type, and determining the model data corresponding to the target data type as target model data; or, receiving a data operation instruction carrying a target page number, and determining the model data within the target page number as target model data; and updating the initial cache mapping to obtain the target cache mapping based on the data index number corresponding to the target model data.

[0010] In one implementation, the target cache mapping includes multiple key-value pairs, the number of which matches the number of target model data, wherein the key in the key-value pair is used to represent the view row number of the data display view, and the value in the key-value pair is used to represent the data index number corresponding to the target model data.

[0011] In one embodiment, the step of updating the initial cache mapping based on the data index number corresponding to the target model data to obtain the target cache mapping includes: updating the key-value pairs in the initial cache mapping according to the target model data; determining the view row number corresponding to the key in each key-value pair according to a preset row numbering rule; and assigning a value to the value in each key-value pair according to the data index number corresponding to the target model data to obtain the target cache mapping.

[0012] Secondly, embodiments of the present invention also provide a data visualization device, comprising: a data display module, configured to configure an initial cache mapping and display a plurality of model data through a data display view, wherein the initial cache mapping is used to characterize the mapping relationship between the view row number of the data display view and the data index number corresponding to the initial model data; a mapping update module, configured to receive a data operation instruction for the model data and update the initial cache mapping to obtain a target cache mapping; wherein the target cache mapping is used to characterize the mapping relationship between the view row number of the data display view and the data index number corresponding to the target model data; and a view refresh module, configured to refresh the data display view according to the target cache mapping and display the target model data.

[0013] Thirdly, embodiments of the present invention also provide a server, including a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method described in any of the first aspects.

[0014] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the method described in any of the first aspects.

[0015] This invention provides a data visualization method, apparatus, and server. It configures an initial cache mapping and displays several pieces of model data through a data display view. The initial cache mapping represents the mapping relationship between the view row numbers of the data display view and the data index numbers corresponding to the initial model data. Upon receiving a data operation instruction for the model data, the initial cache mapping is updated to obtain a target cache mapping. This target cache mapping represents the mapping relationship between the view row numbers of the data display view and the data index numbers corresponding to the target model data. The data display view is then refreshed based on the target cache mapping to display the target model data. This method utilizes a cache mapping to represent the mapping relationship between view row numbers and data index numbers. When a data operation instruction is received, only the cache mapping needs to be updated to change the mapping relationship it represents. Based on the target cache mapping, only one refresh of the data display view is needed to display the target model data corresponding to the data operation instruction. The data visualization method provided by this invention does not require repeatedly reading model data from the data source, thus significantly improving the response efficiency of data operation instructions, reducing user waiting time, and effectively improving the user experience.

[0016] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.

[0017] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0018] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0019] Figure 1 A flowchart illustrating a data visualization method provided in an embodiment of the present invention;

[0020] Figure 2 A schematic diagram of a cache mapping provided in an embodiment of the present invention;

[0021] Figure 3 A flowchart illustrating another data visualization method provided in an embodiment of the present invention;

[0022] Figure 4 A flowchart illustrating another data visualization method provided in an embodiment of the present invention;

[0023] Figure 5 A flowchart illustrating a data visualization method provided in an embodiment of the present invention;

[0024] Figure 6 This is a schematic diagram of the structure of a data visualization device provided in an embodiment of the present invention;

[0025] Figure 7 This is a schematic diagram of the structure of a server provided in an embodiment of the present invention. Detailed Implementation

[0026] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0027] Currently, existing technologies suffer from low response efficiency in data visualization-related operations. To address this, this invention provides a data visualization method, apparatus, server, and computer-readable storage medium that can significantly improve the response efficiency of data visualization-related operations.

[0028] To facilitate understanding of this embodiment, a data visualization method disclosed in this invention will first be described in detail, see [link to relevant documentation]. Figure 1 The diagram shows a data visualization method, which mainly includes the following steps S102 to S106:

[0029] Step S102: Display several initial model data entries based on the configured initial cache mapping. The initial cache mapping represents the mapping relationship between the view row number of the data display view and the corresponding data index number of the initial model data. The data display view is the interface used to display the model data. The data display view can be configured with several data display rows, each corresponding to a view row number. There is a correspondence between the view row number and the data index of the model data. The model data is read from the data source and stored in the corresponding model. The model data can be data corresponding to one of several data types, such as function rows, parameter rows, or condition rows. The initial model data is the model data displayed before updating the data display view. The quantity of the initial model data is less than or equal to the quantity of model data in the model. For example, assuming the quantity of model data is 0, the initial cache mapping is determined to be empty, and the display content of the data display view is also empty; or, assuming the quantity of model data is greater than or equal to 1, several initial model data entries are displayed through the data display view according to the mapping relationship represented by the initial cache mapping. Of course, those skilled in the art will understand that the model data displayed before the updated data display view can be the initially displayed model data or the model data displayed in the previous data display view.

[0030] In one implementation, several model data can be read from a specified data source, and based on an initial cache mapping, a data display view can display all or part of the model data, wherein the displayed model data is the initial model data.

[0031] Step S104: Receive data operation instructions for model data and update the initial cache mapping to obtain the target cache mapping. The data operation instructions include model data display instructions or model data hiding instructions. The target cache mapping represents the mapping relationship between the view row number of the data display view and the corresponding data index number of the target model data. The cache mapping acts as a bridge between the model and the view. The target cache mapping includes multiple key-value pairs, the number of which matches the number of target model data. The target model data is the model data that meets the filtering conditions corresponding to the data operation instructions. The key in each key-value pair represents the view row number of the data display view; the key is a consecutive integer starting from zero, and its value represents the view row number. The value in each key-value pair represents the corresponding data index number of the target model data; the value is an integer starting from zero (not required to be consecutive), and its value represents the data index number. This establishes the mapping relationship between view row numbers and data index numbers. Therefore, based on the received data operation instructions, the model data is displayed or hidden, thereby updating the initial cache mapping, i.e., updating the key-value pairs, to obtain the mapping relationship between the view row number of the data display view and the corresponding data index number of the target model data. Optionally, if the number of target model data is 0, that is, the target cache mapping is empty, the display content of the data display view will also be empty; if the number of target model data is greater than or equal to 1, that is, the target cache mapping is not empty, the data display view will display the target model data according to the mapping relationship in the target cache mapping.

[0032] In one implementation, taking a data display instruction as an example, the data display instruction can carry filtering conditions (such as the data type to be displayed, keywords, data index number, page number, etc.), thereby filtering the target model data from the model data according to the filtering conditions, determining the length of the cache mapping (i.e., the number of key-value pairs) according to the number of target model data, and assigning the data index number corresponding to the target model data to the value in the key-value pair. At the same time, the key value in the key-value pair, which is used to represent the view row number of the data display view, increments from zero and achieves a one-to-one correspondence with the value in the key-value pair, thereby updating the initial cache mapping to the target cache mapping.

[0033] Step S106: Refresh the data display view according to the target cache mapping to display the target model data.

[0034] The data display view is refreshed based on the target cache mapping to display the target model data. In one implementation, the target model data can be indexed according to the data index number in the target cache mapping, thereby refreshing the data display view to display the target model data corresponding to the data index number at the data display row corresponding to the view row number that has a mapping relationship with the data index number.

[0035] The data visualization method provided in this invention utilizes a cache mapping to represent the mapping relationship between view row numbers and data index numbers. When a data operation instruction is received, the cache mapping only needs to be updated to change the mapping relationship represented by the cache mapping. Based on the target cache mapping, only one refresh of the data display view is needed to display the target model data corresponding to the data operation instruction. The data visualization method provided in this invention does not need to repeatedly read model data from the data source, thereby significantly improving the response efficiency of data operation instructions, reducing user waiting time, and effectively improving user experience.

[0036] To facilitate understanding of the foregoing embodiments, the embodiments of the present invention provide, as follows: Figure 2 The diagram shown illustrates a cache mapping. Figure 2 This diagram illustrates that the key in the cache mapping is the view row number, the value is the data index number, and the length of the cache mapping is the same as the length of the view, such as... Figure 2 As shown, key1 corresponds to row number 1, key2 corresponds to row number 2, key3 corresponds to row number 3, etc., and value1 corresponds to model data 1, value corresponds to model data 2, value3 corresponds to model data 3, etc. In this embodiment of the invention, when the data display view needs to be updated, the cache mapping is updated first. Since the update of the cache mapping is completed in memory, compared with the frequent UI (User Interface) refreshes caused by hiding view rows one by one in the prior art, or multiple readings of model data, this embodiment of the invention can achieve advantages such as less time consumption and higher efficiency by defining a cache mapping. This advantage is particularly obvious when the data volume is large.

[0037] Based on the foregoing embodiments, this embodiment of the invention provides an implementation method for displaying several initial model data based on a configured initial cache mapping, as shown in steps 1 to 3 below:

[0038] Step 1: Read several pieces of model data from the data source, which can include local data sources or network data sources, such as disk files, databases, or program interfaces.

[0039] Step 2: Create an initial cache mapping based on preset display rules. These preset display rules are stored on the host computer or in memory and can be directly accessed to configure the initial cache mapping. Specifically, the preset display rules can be stored on the host computer's disk as configuration files or embedded in the program for configuring the initial cache mapping. The initial cache mapping represents the mapping relationship between the view row numbers of the data display view and the corresponding data index numbers of the initial model data. The number of initial model data is less than or equal to the number of model data in the model; that is, the length of the initial cache mapping should be less than or equal to the length of the model data. For a related explanation of cache mapping, please refer to the previous section. Figure 2 The embodiments of the present invention will not elaborate further on this. For example, assuming there are 5 pieces of model data, the initial cache mapping can be recorded as map1 = {(0,0),(1,1),(2,2),(3,3),(4,4)}, where x in (x, y) is the aforementioned key and y is the aforementioned value.

[0040] In one alternative implementation, when performing the step of creating an initial cache mapping according to preset display rules, the model data to be displayed, i.e., the initial model data, can be selected from several model data in the model according to the preset display rules, and an initial cache mapping can be created based on the data index number corresponding to the initial model data.

[0041] The display rules include one or more of the following: (1) Display or hide model data corresponding to the first data type in the model, such as displaying function rows and hiding parameter rows and condition rows; (2) Display or hide model data corresponding to the second data type in the model when the total number of model data is greater than a preset threshold, such as folding all parameter rows and condition rows when the total number is greater than a preset threshold (e.g., 1000), and displaying all rows when the total number is less than a preset threshold; (3) Display or hide model data containing preset keywords in the model, such as displaying all rows containing the word "foobar" and hiding other rows; (4) Display or hide model data corresponding to the third data type in the model to be displayed according to the total number of model data and the display weight corresponding to each data type, such as configuring display weights for each data type, such as display weight of 1 for function rows, display weight of 0.8 for parameter rows, display weight of 0.5 for condition rows, displaying all model data when the number of model data is less than or equal to the first preset threshold, and displaying model data with a weight greater than 0.7 when the number of model data is greater than the first preset threshold and less than or equal to the second preset threshold.

[0042] Step 3: Display the initial model data based on the initial cache mapping.

[0043] In one implementation, the initial cache mapping is stored in local memory. Therefore, when performing the step of updating the initial cache mapping to obtain the target cache mapping, the initial cache mapping can be updated in local memory to obtain the target cache mapping. Compared to the prior art of hiding view rows line by line (frequent UI refreshes) and reading model data multiple times, this embodiment of the invention achieves advantages such as less time consumption and higher efficiency by updating the cache mapping in local memory. These advantages are particularly evident when dealing with large amounts of data.

[0044] This invention also provides a specific implementation method for updating the initial cache mapping to obtain the target cache mapping, see [link to relevant documentation]. Figure 3 The flowchart shown is a diagram of another data visualization method. Specifically:

[0045] Step 1.1:

[0046] (a) Receive a data manipulation instruction carrying a target keyword, and identify model data containing the target keyword as target model data. For example, if the target keyword carried by the data manipulation instruction is "foobar", then all model data containing "foobar" can be identified as target model data. Alternatively,

[0047] (b) Receive a data operation instruction carrying a target data type, and determine the model data corresponding to the target data type as the target model data. For example, if the target data type carried by the data operation instruction is a function row and a parameter row, then all model data corresponding to the function row and parameter row are determined as the target model data. Alternatively,

[0048] (c) Receive a data operation instruction carrying a target page number, and determine the model data within the target page number as the target model data. For example, assuming there are 10,000 model data entries, and 50 model data entries are displayed per page, and the target page number is page 1, then model data entries 1-50 are determined as the target model data to hide model data on other pages. Alternatively, assuming the target page number is page 9, then model data entries 451-500 are determined as the target model data to hide model data on other pages.

[0049] Step 1.2: Update the initial cache mapping based on the data index number corresponding to the target model data to obtain the target cache mapping. For example, the user can trigger instructions to hide or show several model data through UI operations (i.e., the aforementioned data operation instructions). For example, if the data operation instruction indicates to hide the model data in rows 2 and 3, then the target model data is determined to be the model data in rows 1, 4, and 5. The target cache mapping is then denoted as map 2 = {(0,0),(1,3),(2,4)}.

[0050] In one alternative implementation, see [link to implementation details]. Figure 4 The flowchart of another data visualization method shown here illustrates that, specifically, when updating the initial cache mapping, the steps to update the initial cache mapping to obtain the target cache mapping based on the data index number corresponding to the target model data include:

[0051] Step 2.1: Update the key-value pairs in the initial cache mapping according to the target model data;

[0052] Step 2.2: Determine the view row number corresponding to the key in each key-value pair according to the preset row numbering rules, and assign a value to the value in each key-value pair according to the data index number corresponding to the target model data, so as to obtain the target cache mapping.

[0053] Specifically, based on the amount of target model data, the number of key-value pairs in the initial cache mapping is updated. For example, if the amount of target model data is 3, then the number of key-value pairs in the target cache mapping will also be 3. The view row number corresponding to the key in each key-value pair is determined according to the preset row numbering rule, and the value in each key-value pair is assigned according to the data index number corresponding to the target model data to obtain the target cache mapping. Optionally, the row numbering rule can be "continuous integers starting from 0", then the value of key0 in the key-value pair is 0, the value of key1 is 1, and the value of key2 is 2. Then, the data index number corresponding to each target model data is assigned to the value in each key-value pair in sequence, such as the value of value0 is 0, the value of value1 is 3, and the value of value2 is 4, thus obtaining the target cache mapping map 2 = {(0,0),(1,3),(2,4)}.

[0054] To facilitate understanding of the foregoing embodiments, this invention also provides an application example of a data visualization method, see [link to example]. Figure 5 The diagram shown illustrates the workflow of a data visualization method, as follows: Figure 5 As shown, during the data loading phase, data is read from the data source into the model, the cache mapping is updated according to the display rules, and the data display view is refreshed based on the updated cache mapping. During the data hiding and display phase, the user sends a data hiding command or a data display command, the cache mapping is updated according to the data hiding command or the data display command, and the data display view is refreshed based on the updated cache mapping.

[0055] In summary, the data visualization method provided by the embodiments of the present invention significantly reduces the time required to respond to data operation commands, thereby improving the response efficiency of commands.

[0056] Regarding the data visualization method provided in the foregoing embodiments, this invention provides a data visualization device, see [link to related document]. Figure 6 The diagram shows the structure of a data visualization device, which mainly includes the following parts:

[0057] The data display module 602 is used to display several initial model data based on the configured initial cache mapping, wherein the initial cache mapping is used to characterize the mapping relationship between the view row number of the data display view and the data index number corresponding to the initial model data;

[0058] The mapping update module 604 is used to receive data operation instructions for the model data and update the initial cache mapping to obtain the target cache mapping; wherein, the target cache mapping is used to represent the mapping relationship between the view row number of the data display view and the data index number corresponding to the target model data;

[0059] The view refresh module 606 is used to refresh the data display view according to the target cache mapping and display the target model data.

[0060] The data visualization device provided in this embodiment of the invention utilizes a cache mapping to represent the mapping relationship between view row numbers and data index numbers. When a data operation instruction is received, the mapping relationship represented by the cache mapping only needs to be updated. Based on the target cache mapping, only one refresh of the data display view is needed to display the target model data corresponding to the data operation instruction. The data visualization method provided in this embodiment of the invention does not need to repeatedly read model data from the data source, thereby significantly improving the response efficiency of data operation instructions, reducing user waiting time, and effectively improving user experience.

[0061] In one embodiment, the data display module 602 is further configured to: read several pieces of model data from a data source; create an initial cache mapping according to a preset display rule; wherein the initial cache mapping is used to characterize the mapping relationship between the view row number of the data display view and the data index number corresponding to the initial model data; and display the initial model data based on the initial cache mapping.

[0062] In one embodiment, the data display module 602 is further configured to: filter initial model data from several model data within the model according to preset display rules, and create an initial cache mapping based on the data index number corresponding to the initial model data and the view row number of the data display view.

[0063] In one implementation, the display rules include one or more of the following: displaying or hiding the model data corresponding to a first data type in the model; displaying or hiding the model data corresponding to a second data type in the model when the total number of model data is greater than a preset number threshold; displaying or hiding the model data containing preset keywords in the model; and displaying or hiding the model data corresponding to a third data type in the model according to the total number of model data and the display weight corresponding to each data type.

[0064] In one implementation, at least one of the initial cache mapping, the target cache mapping, and the preset display rules is stored in local memory.

[0065] In one embodiment, the mapping update module 604 is further configured to: receive a data operation instruction carrying a target keyword, and determine the model data containing the target keyword as target model data; or, receive a data operation instruction carrying a target data type, and determine the model data corresponding to the target data type as target model data; or, receive a data operation instruction carrying a target page number, and determine the model data within the target page number as target model data; and update the initial cache mapping based on the data index number corresponding to the target model data to obtain the target cache mapping.

[0066] In one implementation, the target cache mapping includes multiple key-value pairs, the number of which matches the number of target model data. The key in the key-value pair is used to represent the view row number of the data display view, and the value in the key-value pair is used to represent the data index number corresponding to the target model data.

[0067] In one embodiment, the mapping update module 604 is further configured to: update the key-value pairs in the initial cache mapping according to the target model data; determine the view row number corresponding to the key in each key-value pair according to a preset row numbering rule; and assign a value to the value in each key-value pair according to the data index number corresponding to the target model data, so as to obtain the target cache mapping.

[0068] The device provided in this embodiment of the invention has the same implementation principle and technical effect as the aforementioned method embodiment. For the sake of brevity, any parts not mentioned in the device embodiment can be referred to the corresponding content in the aforementioned method embodiment.

[0069] This invention provides a server, specifically, the server includes a processor and a storage device; the storage device stores a computer program, which, when run by the processor, executes the method described in any of the above embodiments.

[0070] Figure 7This is a schematic diagram of the structure of a server provided in an embodiment of the present invention. The server 100 includes: a processor 70, a memory 71, a bus 72, and a communication interface 73. The processor 70, the communication interface 73, and the memory 71 are connected through the bus 72. The processor 70 is used to execute executable modules, such as computer programs, stored in the memory 71.

[0071] The memory 71 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 73 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc.

[0072] Bus 72 can be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.

[0073] The memory 71 is used to store programs. After receiving an execution instruction, the processor 70 executes the programs. The method executed by the device for defining the flow process disclosed in any of the foregoing embodiments of the present invention can be applied to the processor 70 or implemented by the processor 70.

[0074] The processor 70 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 70 or by instructions in software form. The processor 70 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 71. Processor 70 reads the information in memory 71 and, in conjunction with its hardware, completes the steps of the above method.

[0075] The computer program product of the readable storage medium provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the foregoing method embodiments. For specific implementation, please refer to the foregoing method embodiments, which will not be repeated here.

[0076] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0077] Finally, it should be noted that the above-described embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A data visualization method, characterized in that, include: Displaying several initial model data based on a configured initial cache mapping includes: reading several model data from a data source; creating an initial cache mapping according to preset display rules; and displaying the initial model data based on the initial cache mapping. The initial cache mapping represents the mapping relationship between the view row number of the data display view and the data index number corresponding to the initial model data. The data display view is configured with several data display rows, each corresponding to a view row number. The model data is data corresponding to one of several data types, such as function rows, parameter rows, or condition rows. The initial model data is the model data displayed before updating the data display view. Receiving a data operation instruction for the model data and updating the initial cache mapping to obtain a target cache mapping includes: filtering target model data from the model data according to filtering conditions; determining the length of the cache mapping according to the number of target model data; assigning the data index number corresponding to the target model data to the value in the key-value pair; simultaneously, incrementing the key in the key-value pair from zero to correspond one-to-one with the value in the key-value pair, thereby updating the initial cache mapping to the target cache mapping; wherein, the target cache mapping is used to represent the mapping relationship between the view row number of the data display view and the data index number corresponding to the target model data; the target cache mapping includes multiple key-value pairs; the number of key-value pairs matches the number of target model data; the target model data is model data in the model data that meets the filtering conditions corresponding to the data operation instruction; the key in the key-value pair is used to represent the view row number of the data display view; and the value in the key-value pair is used to represent the data index number corresponding to the target model data. Refreshing the data display view according to the target cache mapping to display the target model data includes: indexing the target model data according to the data index number in the target cache mapping, refreshing the data display view, so as to display the target model data corresponding to the data index number at the data display row corresponding to the view row number that has a mapping relationship with the data index number; The display rules include one or more of the following: Showing or hiding the model data corresponding to the first data type in the model includes: showing the function row and hiding the parameter row and condition row; When the total number of model data is greater than a preset number threshold, the model data corresponding to the second data type in the model is displayed or hidden, including: when the total number is greater than the preset number threshold, all parameter rows and condition rows are collapsed, and when the total number is less than the preset number threshold, all rows are displayed. Show or hide model data containing preset keywords; Based on the total number of model data and the display weight corresponding to each data type, the model data corresponding to the third data type in the model is displayed or hidden, including: when the number of model data items is less than or equal to a first preset threshold, all model data is displayed; when the number of model data items is greater than the first preset threshold and less than or equal to a second preset threshold, the model data with a weight greater than a specified value is displayed.

2. The method according to claim 1, characterized in that, The step of creating an initial cache mapping according to preset display rules includes: According to the preset display rules, initial model data is selected from several model data in the model, and an initial cache mapping is created based on the data index number corresponding to the initial model data and the view row number of the data display view.

3. The method according to any one of claims 1 to 2, characterized in that, At least one of the initial cache mapping, the target cache mapping, and the preset display rules is stored in local memory.

4. The method according to claim 1, characterized in that, The step of updating the initial cache mapping to obtain the target cache mapping further includes: The system receives a data operation instruction carrying a target keyword and determines the model data containing the target keyword as the target model data; or, it receives a data operation instruction carrying a target data type and determines the model data corresponding to the target data type as the target model data; or, it receives a data operation instruction carrying a target page number and determines the model data located within the target page number as the target model data. Based on the data index number corresponding to the target model data, the initial cache mapping is updated to obtain the target cache mapping.

5. The method according to claim 4, characterized in that, The step of updating the initial cache mapping based on the data index number corresponding to the target model data to obtain the target cache mapping includes: Update the key-value pairs in the initial cache mapping based on the target model data; The view row number corresponding to the key in each key-value pair is determined according to the preset row numbering rules, and the value in each key-value pair is assigned a value according to the data index number corresponding to the target model data, so as to obtain the target cache mapping.

6. A data visualization device, characterized in that, include: The data display module is used to display several initial model data based on a configured initial cache mapping, including: reading several model data from a data source; creating an initial cache mapping according to preset display rules; and displaying the initial model data based on the initial cache mapping. The initial cache mapping represents the mapping relationship between the view row number of the data display view and the data index number corresponding to the initial model data. The data display view is configured with several data display rows, each corresponding to a view row number. The model data is data corresponding to one of several data types, such as function rows, parameter rows, or condition rows. The initial model data is the model data displayed before updating the data display view. The mapping update module is used to receive data operation instructions for the model data and update the initial cache mapping to obtain a target cache mapping. This includes: filtering target model data from the model data according to filtering conditions; determining the length of the cache mapping based on the quantity of the target model data; assigning the data index number corresponding to the target model data to the value in a key-value pair; and incrementing the keys in the key-value pairs from zero to correspond one-to-one with the values ​​in the key-value pairs, thereby updating the initial cache mapping to the target cache mapping. The target cache mapping represents the mapping relationship between the view row number of the data display view and the data index number corresponding to the target model data. The target cache mapping includes multiple key-value pairs, the number of which matches the quantity of the target model data. The target model data is the model data in the model data that satisfies the filtering conditions corresponding to the data operation instructions. The keys in the key-value pairs represent the view row number of the data display view, and the values ​​in the key-value pairs represent the data index number corresponding to the target model data. The view refresh module is used to refresh the data display view according to the target cache mapping to display the target model data, including: indexing the target model data according to the data index number in the target cache mapping, refreshing the data display view, so as to display the target model data corresponding to the data index number at the data display row corresponding to the view row number that has a mapping relationship with the data index number; The display rules include one or more of the following: Showing or hiding the model data corresponding to the first data type in the model includes: showing the function row and hiding the parameter row and condition row; When the total number of model data is greater than a preset number threshold, the model data corresponding to the second data type in the model is displayed or hidden, including: when the total number is greater than the preset number threshold, all parameter rows and condition rows are collapsed, and when the total number is less than the preset number threshold, all rows are displayed. Show or hide model data containing preset keywords; Based on the total number of model data and the display weight corresponding to each data type, the model data corresponding to the third data type in the model is displayed or hidden, including: when the number of model data items is less than or equal to a first preset threshold, all model data is displayed; when the number of model data items is greater than the first preset threshold and less than or equal to a second preset threshold, the model data with a weight greater than a specified value is displayed.

7. A server, characterized in that, The method includes a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and system for data transfer

    CN104021123A

  • Method and device for generating page

    CN110413920A