A data display method, system and electronic device
By defining data items and content on the display end and generating a data intervention configuration file, the display end can autonomously process data, solving the problems of insufficient flexibility and controllability in traditional systems and achieving autonomous data display without affecting system stability.
Patent Information
- Application Number
- CN202211295234.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-21
- Publication Date
- 2025-12-02
- Estimated Expiration
- 2042-10-21
AI Technical Summary
In traditional data visualization systems, the display end is highly dependent on the data processing end, resulting in insufficient flexibility and controllability of data display, and temporary changes may affect system stability and business continuity.
Define the expected data items and content on the display side, generate an initial data intervention configuration file, and process the data through the data intervention configuration file. The display side can independently decide the content to be displayed, thus avoiding the impact on the business system.
It improves the flexibility and controllability of data display, allowing users on the display end to intervene in the data independently without relying on developers, thus ensuring system stability and continuity.
Smart Images

Figure CN115544333B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of information display technology, and in particular to a data display method, system and electronic device. Background Technology
[0002] In today's information security field, utilizing visualization technology to statistically analyze and display important information security indicators in real time, such as the number of incidents, monitoring thresholds, and changes in the situation, has become a crucial component in reflecting the overall operational and maintenance level of information security. Consequently, many data visualization systems based on real-time communication technologies such as WebSockets and web visualization technologies have emerged.
[0003] These types of data visualization systems typically consist of two parts: a data display end and a data processing end. In the traditional scenario, the data display end passively receives data pushed by the data processing end and presents it as is.
[0004] In some cases, the data processing end may fail to provide accurate data as expected. For example, the display end may have anticipated receiving the number of security events within a certain statistical period, but due to factors such as processing end malfunctions, it may actually receive invalid data values such as "undefined" or "null". Alternatively, some information security systems are in the initial stage of operation and debugging, during which there is often insufficient data volume and frequent data fluctuations. In such cases, in order to ensure the normal display effect of the display end, it is usually necessary to intervene and process the display data.
[0005] Traditional intervention methods typically involve developers operating on the data processing end. This may involve modifications to database content, table structure, and even program code, making it highly dependent on developers. Furthermore, making these changes on the processing end not only impacts the overall stability of the program but also negatively affects the continuity of business operations when redeploying the modified program. Therefore, it's easy to see that this approach has significant drawbacks in terms of the flexibility and controllability of the final data presentation. Summary of the Invention
[0006] To address the aforementioned problems in the existing technology, the present invention provides a data display method, system, and electronic device.
[0007] To achieve the above objectives, the present invention provides the following solution:
[0008] A data visualization method, comprising:
[0009] Define the data items and data content to be displayed;
[0010] An initial data intervention configuration file is generated in the display program based on the predefined data items and data content to be displayed.
[0011] Generate a data intervention configuration file based on the initial data intervention configuration file;
[0012] Retrieve data content pushed by the data processing terminal;
[0013] The data items are obtained by iterating through the data content pushed by the data processing terminal.
[0014] The data items being traversed are processed based on the data intervention configuration file.
[0015] The data items after intervention are pushed to the display end for rendering and display.
[0016] Preferably, the step of generating a data intervention configuration file based on the initial data intervention configuration file specifically includes:
[0017] Add intervention operation data items to the data items in the initial data intervention configuration file; the intervention operation data items include a first intervention marker item and a second intervention marker item;
[0018] When a data item in the initial data intervention configuration file corresponding to the intervention operation data item needs to be interfered with, a Boolean type data value is generated in the intervention operation data item to form a data intervention configuration file; the Boolean type data value includes: a first data value and a second data value.
[0019] Preferably, a preset communication hook method in the display terminal is invoked to obtain the data content pushed by the data processing terminal.
[0020] Preferably, before generating the initial data intervention configuration file in the display program based on the defined expected data items and data content, the following steps are also included:
[0021] The data items to be displayed are defined one by one in the initial data intervention configuration file.
[0022] According to specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0023] The data display method provided by this invention, after defining the data items and data content to be displayed, generates an initial data intervention configuration file in the display end program based on the defined data items and data content. Then, a data intervention configuration file is generated based on the initial data intervention configuration file. After obtaining the data content pushed by the data processing end, the data content pushed by the data processing end is traversed to obtain the traversed data items. Then, the traversed data items are intervened based on the data intervention configuration file and pushed to the display end for rendering and display. This allows the display end to determine the data content to be displayed in a self-operated manner, without affecting the operational stability and continuity of related business systems, thereby significantly improving the flexibility and controllability of data display.
[0024] Corresponding to the data display method provided above, the present invention also provides the following implementation system:
[0025] One type is a data visualization system, which includes:
[0026] The data definition module is used to define the data items and data content to be displayed;
[0027] The first configuration module is used to generate an initial data intervention configuration file in the display program based on the predefined expected data items and data content to be displayed.
[0028] The second configuration module is used to generate a data intervention configuration file based on the initial data intervention configuration file;
[0029] The data acquisition module is used to acquire the data content pushed by the data processing terminal;
[0030] The data traversal module is used to traverse the data content pushed by the data processing terminal to obtain the traversed data items;
[0031] An intervention processing module is used to intervene in the traversed data items based on the data intervention configuration file;
[0032] The rendering and display module is used to push the data items after intervention to the display end for rendering and display.
[0033] Another type is an electronic device, which includes: memory and processor;
[0034] The memory stores logical instructions; the logical instructions are used to implement the data display method provided above; the processor is used to retrieve and execute the logical instructions.
[0035] Preferably, the memory is a computer-readable storage medium.
[0036] Since the technical effects achieved by the two implementation systems provided by this invention are the same as those achieved by the data display method provided above, they will not be described again here. Attached Figure Description
[0037] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 A flowchart of the data display method provided by the present invention;
[0039] Figure 2 A schematic diagram of the structure of the data display system provided by the present invention;
[0040] Figure 3 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0041] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and 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.
[0042] The purpose of this invention is to provide a data display method, system, and electronic device that can significantly improve the flexibility and controllability of data display.
[0043] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0044] like Figure 1 As shown, the data display method provided by the present invention includes:
[0045] Step 100: Define the data items and data content to be displayed. For example, the first screen of the data display system needs to display "number of security events", the data content of which is "integers greater than or equal to 0". Define other data items one by one and use them as the data interaction format between the display end and the data processing end in the future.
[0046] Step 101: Generate an initial data intervention configuration file in the display application based on the defined expected data items and content. For example, define the first screen data as an Object type named "screen1". Designate "security event count" as its first sub-data item "securityEvents", and specify its initial value as an empty Object type. Continue this process, defining each data item to be displayed individually in the data intervention configuration file.
[0047] Step 102: Generate a data intervention configuration file based on the initial data intervention configuration file.
[0048] Step 102 specifically includes:
[0049] Step 1021: Add intervention operation data items to the data items in the initial data intervention configuration file. The intervention operation data items include the first intervention tag "fake" and the second intervention tag "fakeData".
[0050] Step 1022: When a data item in the initial data intervention configuration file corresponding to an intervention operation data item needs to be interfered with, a Boolean type data value is generated in the intervention operation data item to form the data intervention configuration file. The Boolean type data value includes: a first data value and a second data value.
[0051] Taking the data item "securityEvents" defined in step 101 as an example, select it in the visual editing system and choose whether to intervene in this data item. If intervention is selected, a boolean data value "true" (i.e., the first data value) will be generated in the first intervention flag item "fake" under this data item; otherwise, "false" (i.e., the second data value) will be generated.
[0052] Continue generating the corresponding intervention data content "fakeData" through the visual editing system, as follows:
[0053] 1) If the first intervention flag "fake" is set to "true", then execute:
[0054] a) If the expected content of this data is a number, then set the data value to the specified number, such as "10086".
[0055] b) If the expected content of this data is a string, then set the data value to the specified string "xxxxxx".
[0056] 2) If the first intervention flag "fake" is set to "false", then execute:
[0057] a) If the expected content of this data is a number, set the data value to "0".
[0058] b) If the expected content of this data is a string, then set the data value to an empty string.
[0059] Following this process, configure each data item in the data intervention configuration file one by one. Once all settings are complete, a complete intervention configuration file will be generated.
[0060] Step 103: Obtain the data content pushed by the data processing end. Specifically, call the preset communication hook method in the display end to obtain the data content pushed by the data processing end. Assuming that the display end and the data processing end agree to communicate via the message "screen", register a hook method for this message and call the next data intervention processing method within it. The front-end and back-end typically use an implementation based on the WebSocket protocol for communication. Modern browsers have built-in implementations of this protocol and provide corresponding methods for program calls. For example:
[0061] Create a WebSocket instance: var wsInst = new WebSocket();
[0062] wsInst.addEventListener('hook name', function(evt){
[0063] / / This is the communication hook method, where you can process message data pushed from the backend.}
[0064] Step 104: Iterate through the data content pushed by the data processing terminal to obtain the iterated data items.
[0065] Step 105: Perform intervention processing on the traversed data items based on the data intervention configuration file.
[0066] Taking the data item "securityEvents" defined in step 101 as an example, suppose this data item returns an invalid value due to an error in the data processing end. Since the first intervention flag "fake" of "securityEvents" has been set to "true" and the intervention data value has been set to "10086" in step 1022, the received invalid data value will be replaced with "10086". Conversely, if the first intervention flag "fake" is set to "false", the received actual value will be used without any processing.
[0067] Step 106: Push the processed data items to the display platform for rendering and presentation. The preferred rendering method in this step is one that can render the processed data into specific charts, lists, or other data display formats.
[0068] Based on the above description, the data display method provided by this invention predefines a data intervention configuration file, which includes intervention tags and intervention data. After receiving data pushed by the data processing terminal, the display terminal can decide whether to intervene in the data based on the intervention tags. If intervention is required, the received data is replaced with intervention data content, ultimately affecting the displayed content.
[0069] The data display method provided by this invention has the following advantages compared with the prior art:
[0070] 1. Users on the display side can independently configure data intervention according to their needs without the assistance of developers. They can then intervene in the final data display results to achieve the desired display objectives. Furthermore, the intervention process is reversible; by setting different values for the intervention markers, users can arbitrarily switch between using the original data and the data after intervention.
[0071] 2. The operation of data on the display terminal will not interrupt the normal operation of the business system.
[0072] 3. A data editing system is adopted to make it easier for users to operate on the data more intuitively.
[0073] Corresponding to the data display method provided above, the present invention also provides the following implementation system:
[0074] One type is a data visualization system, such as Figure 2 As shown, the system includes:
[0075] The data definition module 200 is used to define the data items and data content to be displayed.
[0076] The first configuration module 201 is used to generate an initial data intervention configuration file in the display program based on the predefined expected data items and data content.
[0077] The second configuration module 202 is used to generate a data intervention configuration file based on the initial data intervention configuration file.
[0078] The data acquisition module 203 is used to acquire the data content pushed by the data processing terminal.
[0079] The data traversal module 204 is used to traverse the data content pushed by the data processing terminal to obtain the traversed data items.
[0080] The intervention processing module 205 is used to perform intervention processing on the traversed data items based on the data intervention configuration file.
[0081] The rendering and display module 206 is used to push the data items after intervention to the display end for rendering and display.
[0082] Another type is electronic devices, such as Figure 3 As shown, the electronic device includes a memory 300 and a processor 301.
[0083] The memory 300 stores logic instructions. These logic instructions are used to implement the data display method described above. The processor 301 is used to retrieve and execute these logic instructions.
[0084] The memory 300 may be a computer-readable storage medium.
[0085] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple; relevant parts can be referred to the method section.
[0086] This document uses specific examples to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. Furthermore, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A data display method, characterized in that, include: Define the data items and data content to be displayed; An initial data intervention configuration file is generated in the display program based on the predefined data items and data content to be displayed. Generate a data intervention configuration file based on the initial data intervention configuration file; Retrieve data content pushed by the data processing terminal; The data items are obtained by iterating through the data content pushed by the data processing terminal. The data items being traversed are processed based on the data intervention configuration file. The data items after intervention are pushed to the display terminal for rendering and display; The process of generating a data intervention configuration file based on the initial data intervention configuration file includes: Add intervention operation data items to the data items in the initial data intervention configuration file; the intervention operation data items include: a first intervention marker item and a second intervention marker item; When a data item in the initial data intervention configuration file corresponding to the intervention operation data item needs to be interfered with, a Boolean type data value is generated in the intervention operation data item to form a data intervention configuration file; the Boolean type data value includes: a first data value and a second data value; After receiving data pushed by the data processing terminal, the display terminal decides whether to intervene in the data based on the intervention flag; if intervention is performed, the received data is replaced with the intervention data content, ultimately affecting the displayed content. The intervention process is reversible, allowing for arbitrary transformations between using raw data and post-intervention data by setting different values for the intervention markers.
2. The data display method according to claim 1, characterized in that, Call the preset communication hook method in the display terminal to obtain the data content pushed by the data processing terminal.
3. The data display method according to claim 1, characterized in that, Before generating the initial data intervention configuration file in the display program based on the defined expected data items and data content, the following is also included: The data items to be displayed are defined one by one in the initial data intervention configuration file.
4. A data display system, characterized in that, The data display system is used to implement the data display method as described in any one of claims 1-3; the data display system includes: The data definition module is used to define the data items and data content to be displayed; The first configuration module is used to generate an initial data intervention configuration file in the display program based on the predefined data items and data content to be displayed. The second configuration module is used to generate a data intervention configuration file based on the initial data intervention configuration file; The data acquisition module is used to acquire the data content pushed by the data processing terminal; The data traversal module is used to traverse the data content pushed by the data processing terminal to obtain the traversed data items; An intervention processing module is used to intervene in the traversed data items based on the data intervention configuration file; The rendering and display module is used to push the data items after intervention to the display end for rendering and display.
5. An electronic device, characterized in that, include: Memory and processor; The memory stores logical instructions; the logical instructions are used to implement the data display method as described in any one of claims 1-3. The processor is used to retrieve and execute the logical instructions.
6. The electronic device according to claim 5, characterized in that, The memory is a computer-readable storage medium.
Citation Information
Patent Citations
Universal dynamic adjustment method for multi-data-item display
CN103488632A
Data table processing method and device, computer equipment and storage medium
CN114675812A