Data display method and device

The data is transformed and displayed through pre-set data specifications and binding relationships, which solves the problem of secondary development when data display requirements change in the prior art, and achieves lower development and maintenance costs and higher data display flexibility and accuracy.

CN119847468APending Publication Date: 2025-04-18BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311334377.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-16
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

The prior art requires direct modification of the data display logic when the data display requirements change, resulting in high maintenance and development costs.

Method used

The data is converted and displayed through pre-set data specifications and binding relationships, including converting the source data into target data, and determining the target widget based on the binding relationship to display the target data.

Benefits of technology

It improves the configuration of the data display process, reduces development and maintenance costs, and enhances the flexibility of data conversion and the accuracy of data display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847468A_ABST
    Figure CN119847468A_ABST
Patent Text Reader

Abstract

The invention discloses a data display method and device, and relates to the technical field of computers. A specific embodiment of the data display method comprises the steps of responding to acquired source data, and converting the source data into target data according to a preset data specification; determining a target widget bound with the source data according to a preset binding relationship; and pushing the target data to the target widget, and displaying the target data by using the target widget. According to the embodiment, the data is converted and displayed based on the preset data specification and binding relation, the configuration degree of the data display process can be improved, and the development cost and the maintenance cost are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for data display. Background Art

[0002] Visual large-screen display technology is widely used in business analysis, presentations, and production dashboards. Implementing this technology typically requires developing data display logic tailored to specific data display requirements. This logic involves acquiring data from a data source, transforming it, and sending the transformed data to the display component. This data display logic is independent and hard-coded, with the data source, data transformation method, and display component being coupled to the specific data display requirements.

[0003] In the process of implementing the present invention, the inventors discovered that the prior art has at least the following problems:

[0004] When data display requirements change, the corresponding data display logic needs to be modified directly, which is equivalent to secondary development, resulting in high maintenance costs; when there are new data display requirements, a lot of coding work is required, resulting in high development costs. Summary of the Invention

[0005] In view of this, an embodiment of the present invention provides a method and device for data display, which can:

[0006] To achieve the above object, according to a first aspect of an embodiment of the present invention, a method for data presentation is provided, comprising:

[0007] In response to acquiring the source data, converting the source data into target data according to a preset data specification;

[0008] Determining a target widget bound to the source data according to a preset binding relationship;

[0009] The target data is pushed to the target widget, and the target data is displayed using the target widget.

[0010] Optionally, the data specification includes a business logic relationship network between data nodes; converting the source data into target data according to the preset data specification includes:

[0011] Mapping the source data to pre-set data nodes;

[0012] According to the business logic relationship network between the data nodes, the source data mapped to the data nodes are operated, and the operation results of the source data are used as the target data.

[0013] Optionally, before acquiring the source data, the method further includes:

[0014] In response to receiving the data acquisition request, determining corresponding scene information;

[0015] Determining a first data source associated with the scene information from data sources included in a preset configuration file;

[0016] Filtering out a second data source that meets a preset data source validity verification condition from the first data source;

[0017] A data field name associated with the scene information is parsed from the configuration file, and source data corresponding to the data field name is acquired from the second data source.

[0018] Optionally, before acquiring the source data, the method further includes:

[0019] In response to receiving a data acquisition request, determining a corresponding extended interface, the extended interface being associated with a custom script, the custom script including a target data source and a target data field;

[0020] The custom script is called according to the extended interface, and the custom script is used to obtain source data corresponding to the target data field from the target data source.

[0021] Optionally, the target widget is associated with multiple display types; and displaying the target data using the target widget includes:

[0022] determining a target presentation type from the plurality of presentation types;

[0023] The target data is displayed in the target widget using the target display type.

[0024] Optionally, the method further includes:

[0025] In response to receiving the data update request, creating a data update task according to a preset data update cycle;

[0026] The data update task is executed based on the data update period, and the data update task is used to regularly obtain new source data, convert the new source data into new target data, and display the new target data using the target widget.

[0027] Optionally, before pushing the target data to the target widget, the method further includes:

[0028] Target data that meets a preset data validity verification condition is screened out from the target data, and the target data that meets the data validity verification condition is used as the target data pushed to the target widget.

[0029] According to a second aspect of an embodiment of the present invention, there is provided a data display device, including:

[0030] A conversion module, configured to, in response to acquiring source data, convert the source data into target data according to a preset data specification;

[0031] A binding module, configured to determine a target widget bound to the source data according to a preset binding relationship;

[0032] A display module is used to push the target data to the target widget and use the target widget to display the target data.

[0033] Optionally, the data specification includes a business logic relationship network between data nodes; converting the source data into target data according to the preset data specification includes:

[0034] Mapping the source data to pre-set data nodes;

[0035] According to the business logic relationship network between the data nodes, the source data mapped to the data nodes are operated, and the operation results of the source data are used as the target data.

[0036] Optionally, the device further comprises:

[0037] A first determining module, configured to determine corresponding scene information in response to receiving a data acquisition request;

[0038] A second determining module is configured to determine a first data source associated with the scene information from data sources included in a preset configuration file;

[0039] A first screening module, configured to screen out a second data source that meets a preset data source validity verification condition from the first data source;

[0040] The acquisition module is used to parse the data field name associated with the scene information from the configuration file and acquire the source data corresponding to the data field name from the second data source.

[0041] Optionally, the device further comprises:

[0042] a third determining module, configured to determine, in response to receiving a data acquisition request, a corresponding extended interface, wherein the extended interface is associated with a custom script, and the custom script includes a target data source and a target data field;

[0043] A calling module is used to call the custom script according to the extended interface, and the custom script is used to obtain source data corresponding to the target data field from the target data source.

[0044] Optionally, the target widget is associated with multiple display types; and displaying the target data using the target widget includes:

[0045] determining a target presentation type from the plurality of presentation types;

[0046] The target data is displayed in the target widget using the target display type.

[0047] Optionally, the device further comprises:

[0048] A creation module, configured to create a data update task in response to receiving a data update request and according to a preset data update cycle;

[0049] An execution module is used to execute the data update task based on the data update cycle, wherein the data update task is used to regularly obtain new source data, convert the new source data into new target data, and display the new target data using the target widget.

[0050] Optionally, the device further comprises:

[0051] The second screening module is configured to screen out target data that meets a preset data validity verification condition from the target data, and use the target data that meets the data validity verification condition as the target data to be pushed to the target widget.

[0052] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, including:

[0053] one or more processors;

[0054] a storage device for storing one or more programs,

[0055] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of the above embodiments.

[0056] According to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described in any one of the above embodiments is implemented.

[0057] One embodiment of the above invention has the following advantages or beneficial effects: converting and displaying data based on pre-set data specifications and binding relationships can improve the configurability of the data display process and reduce development and maintenance costs; operating on source data according to the business logic relationship network between data nodes can improve the flexibility of the data conversion process, meet different data conversion requirements, avoid secondary development when data conversion requirements change, and reduce maintenance costs; determining a first data source based on scenario information and determining a second data source based on data source validity verification conditions can decouple the data source from the data acquisition process, improve data acquisition efficiency, and avoid acquiring data from unavailable data sources; calling a custom script based on an extended interface can improve the flexibility and configurability of data acquisition; determining a target display type from multiple display types can configure the data display process, avoid secondary development when data display requirements change, and reduce maintenance costs; before pushing the target data, screening out target data that meets the data validity verification conditions can ensure accurate data display and avoid pushing target data with incorrect structure or logic.

[0058] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] The accompanying drawings are provided for a better understanding of the present invention and are not intended to limit the present invention.

[0060] Figure 1 is a schematic diagram of the main process of the data display method according to an embodiment of the present invention;

[0061] Figure 2 is a schematic diagram of a business logic relationship network between data nodes according to a reference embodiment of the present invention;

[0062] Figure 3 is a schematic diagram of determining a target display type according to a reference embodiment of the present invention;

[0063] Figure 4 is a schematic diagram of the overall process of data display according to a reference embodiment of the present invention;

[0064] Figure 5 is a schematic diagram of the main process of data display according to a reference embodiment of the present invention;

[0065] Figure 6 is a schematic diagram of the main process of data display according to another reference embodiment of the present invention;

[0066] Figure 7 is a schematic diagram of main modules of a data display device according to an embodiment of the present invention;

[0067] Figure 8 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;

[0068] Figure 9 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0069] The following description of exemplary embodiments of the present invention is made in conjunction with the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding. These details should be considered as merely exemplary. Therefore, it should be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0070] It should be noted that in the technical solution of the present invention, the collection, use, storage, sharing and transfer of user personal information involved are in compliance with the provisions of relevant laws and regulations, and it is necessary to inform the user and obtain the user's consent or authorization. When applicable, the user's personal information is de-identified and / or anonymized and / or encrypted.

[0071] Visual large-screen display technology is widely used in business analysis, presentations, and production dashboards. Implementing this technology typically requires developing data display logic tailored to specific data display requirements. This logic involves acquiring data from a data source, transforming it, and sending the transformed data to the display component. This data display logic is independent and hard-coded, with the data source, data transformation method, and display component being coupled to the specific data display requirements.

[0072] When data display requirements change, the corresponding data display logic needs to be modified directly, which is equivalent to secondary development and results in high maintenance costs. When there are new data display requirements, a lot of coding work is required, resulting in high development costs and is not conducive to expanding data display requirements. In addition, data acquisition, data conversion, data display and other links are scattered among a large amount of business logic, further increasing the difficulty of development and maintenance.

[0073] In view of this, according to a first aspect of an embodiment of the present invention, a method for data presentation is provided.

[0074] Figure 1 FIG. 1 is a schematic diagram of the main process of the data display method according to an embodiment of the present invention. Figure 1As shown, the data display method according to an embodiment of the present invention mainly includes the following steps S101 to S103.

[0075] Step S101 : in response to acquiring source data, converting the source data into target data according to a preset data specification.

[0076] Source data is data generated by executing various business logics. For example, source data includes product order data, product inventory data, logistics document data, etc. Source data is stored in a database (e.g., MySQL, Oracle, etc.), a cache (e.g., Redis, MongoDB, etc.), or a file (e.g., an XML file, an Excel file, etc.). The execution subject of the embodiments of the present invention obtains source data from the database, cache, or file.

[0077] Data specifications are data conversion rules for converting source data into target data. Data specifications include: the data type of the target data, the data structure, the conversion relationship between the source and target data, etc. Data specifications are associated with the scenario information of data display. Each scenario information of data display has a corresponding data specification. The scenario information of data display includes: data report display, function dashboard display, real-time large-screen display, etc. Specifically, after obtaining the source data, the scenario information is first determined. For example, the data field representing the scenario information is obtained from the source data to determine the scenario information. For another example, the data display method is initiated by a data display request, and the data display request is parsed to determine the scenario information that needs to be displayed.

[0078] After determining the scenario information, the corresponding data specification is determined based on the scenario information. According to the conversion relationship included in the data specification, the source data is converted into the target data; the target data is converted into a data type according to the data type included in the data specification; and the target data is converted into a data structure according to the data structure included in the data specification. For example, the acquired source data includes: logistics document data A1, logistics document data A2, and logistics document data A3. According to the data display request, the corresponding scenario information is determined to be: data report display. According to the data specification corresponding to the scenario information, the source data such as logistics document data A1, logistics document data A2, and logistics document data A3 are converted into target data such as on-time delivery rate, on-time delivery volume, and user feedback; the data types of on-time delivery rate and on-time delivery volume are converted into integers, and the data type of user feedback is converted into a string; finally, the target data after the above data type conversion is encapsulated in a linked list, thereby realizing data structure conversion.

[0079] Converting source data into target data according to data specifications can convert source data more flexibly, meet different data conversion requirements, and improve data conversion efficiency. It should be noted that data specifications are configurable. For different scene information displayed by data and different source data obtained, the same or different data specifications are configured to meet data conversion requirements. When the data conversion requirements associated with a certain scene information change, the execution subject of the embodiment of the present invention returns the data specification associated with the scene information to the R&D personnel, so that the R&D personnel can directly modify the returned data specification, for example, change the data type included in the data specification from integer to string, change the data structure included in the data specification from linked list to mapping table, and modify the business logic involving conversion relationship included in the data specification; the execution subject of the embodiment of the present invention modifies the data specification according to the modification results of the R&D personnel, thereby reducing the maintenance cost of the data specification, avoiding the R&D personnel to locate the data specification that needs to be modified in a large amount of business logic, saving search time, improving the configuration efficiency of the data specification, avoiding the R&D personnel to directly modify the underlying code, ensuring the security of the code, and does not require the R&D personnel to have proficient programming skills, which facilitates the configuration and expansion of the data specification.

[0080] According to a reference embodiment of the present invention, the data specification includes a business logic relationship network between data nodes, wherein the business logic relationship network includes data nodes and business logic relationships. The business logic relationship is a path between data nodes. According to the business logic relationship corresponding to the path connecting the two data nodes, the value of one data node can be determined by the value of the other data node. The values ​​of some data nodes in the business logic relationship network have a mapping relationship with the source data. Preferably, there are multiple business logic relationship networks, and each data display scenario information corresponds to one or more business logic relationship networks.

[0081] When converting source data into target data according to a preset data specification, the source data is mapped to a preset data node. For example, each source data has a corresponding data field name, and the value of each data node also has a data field name. The data field name of the source data is matched with the data field name of the data node, and the source data is temporarily stored in a data node with the same data field name according to the matching result, so that the source data serves as the value of the data node; for another example, the data type of each source data is different, and the value of each data node also has a data type. The data type of the source data is matched with the data type of the data node, and the source data is temporarily stored in a data node with the same data type according to the matching result, so that the source data serves as the value of the data node. According to the business logic relationship network between data nodes, operations are performed on the source data mapped to the data nodes. Specifically, according to the data field name of the data node, the target data node is determined in the business logic relationship network. The value of the target data node is the target data. According to the path between the target data node and the data node that has a mapping relationship with the source data, the business logic relationship between the source data and the target data is determined. According to the determined business logic relationship, the source data is operated, and the operation result of the source data is used as the target data. In the business logic relationship network, it is represented as: starting from the data node that has a mapping relationship with the source data, through one or more paths, to reach the target data node.

[0082] It should be noted that the business logic relationship network is configurable. The execution entity of the embodiment of the present invention displays the business logic relationship network to the R&D personnel based on the relationship network query request. The R&D personnel can add or delete data nodes and adjust the business logic relationship between data nodes (i.e., add or delete paths between data nodes and modify the business logic corresponding to the paths) according to business needs. The execution entity of the embodiment of the present invention modifies the business logic relationship network based on the modification results returned by the R&D personnel.

[0083] Figure 2 FIG is a schematic diagram of a business logic relationship network between data nodes according to a reference embodiment of the present invention. For example, Figure 2As shown, the business logic relationship network includes 9 data nodes, among which data node 1, data node 2, data node 3, data node 4 and data node 5 with shadow effect and not pointed by other data nodes are data nodes with mapping relationship with source data. Specifically, according to the matching relationship between the data field name of the source data and the data field name of the data node, the 5 source data are mapped to data node 1, data node 2, data node 3, data node 4 and data node 5 respectively, and then the value of data node 6 is obtained from the source data of data node 1 and the source data of data node 2 according to the business logic relationship, the value of data node 7 is obtained from the source data of data node 2 and the source data of data node 3 according to the business logic relationship, the value of data node 8 is obtained from the source data of data node 4, the value of data node 6 and the value of data node 7 according to the business logic relationship, and the value of data node 9 is obtained from the source data of data node 5 and the value of data node 8 according to the business logic relationship, and the value of data node 9 is used as the target data.

[0084] Setting up a business logic relationship network allows for more flexible conversion of source data into target data, meeting diverse data conversion requirements and improving data conversion efficiency. Modifying the business logic relationship network based on the modification results can improve its configurability, preventing developers from searching for code related to the business logic relationship network within a large volume of business logic, reducing maintenance costs, and preventing developers from directly modifying the underlying code of the business logic relationship network, thereby ensuring its security. This eliminates the need for developers to possess proficient programming skills, facilitating the configuration and expansion of the business logic relationship network.

[0085] According to another reference embodiment of the present invention, before acquiring the source data, the method further includes: in response to receiving a data acquisition request, parsing the data acquisition request, and determining the corresponding scenario information. The scenario information of the data acquisition is related to the business field of the data display, and the scenario information of the data acquisition includes: order data acquisition, inventory data acquisition, logistics data acquisition, etc. Each scenario information is associated with one or more data sources, and the data sources include: databases, caches, files, etc. The data sources are used to store the source data. A configuration file is pre-set, and the configuration file includes the association relationship between the scenario information and the data source. The configuration file is traversed to find the association relationship between the scenario information and the data source, and the first data source associated with the scenario information is determined based on the association relationship.

[0086] The first data source is verified using the pre-set data source validity verification conditions. Specifically, when the data source is a database and a cache, determine whether the configuration information of the first data source is complete, whether the first data source can be connected based on the first data source configuration information, whether the data of the first data source can be obtained, etc.; when the data source is a file, determine whether the file path is valid, whether the file exists, whether the file format matches, etc. The database and cache in the first data source with complete configuration information, which can be accurately connected and obtain data, as well as the files with valid file paths, existing files, and matching file formats are regarded as data sources that meet the data source validity screening conditions, i.e., the second data source. The association relationship between the scene information and the data source includes: the data field name that should be obtained from the data source according to the scene information, the data field name is obtained from the above association relationship, and the source data corresponding to the data field name is obtained from the second data source.

[0087] For example, the data acquisition request is parsed to determine the scenario information as logistics data acquisition. The first data source associated with the scenario information includes: database C1, cache C2 and file C3. The configuration information of database C1 and cache C2 is complete, but the service of database C1 fails, so it cannot connect to database C1. Cache C2 can connect and obtain data. The file path of file C3 is valid, the file exists and the file format matches the pre-set standard file format set. Therefore, cache C2 and file C3 are used as the second data source; the association relationship includes "{'C2':'D1,D2';'C3':'D3,D4'}", where "'C2':'D1,D2'" indicates that the data field names of the source data obtained from cache C2 include: data field D1 and data field D2, and "'C3':'D3,D4'" indicates that the data field names of the source data obtained from file C3 include: data field D3 and data field D4; the source data corresponding to data field D1 and data field D2 are obtained from cache C2, file C3 is parsed, and the source data corresponding to data field D3 and data field D4 are obtained from file C3.

[0088] It should be noted that the configuration file is configurable. Developers can modify it directly, or the execution entity of the embodiments of the present invention can parse received configuration file modification requests and modify the configuration file based on the results. Specifically, this can include adding or deleting data sources, modifying data source configuration information, adjusting the association between scenario information and data sources, and modifying the names of data fields in the association.

[0089] Determining the first data source based on scenario information and determining the second data source based on data source validity verification conditions can decouple the data source from the data acquisition process, improve data acquisition efficiency, and avoid acquiring data from data sources that are not connected or have invalid file paths; modifying the configuration file can meet different data source configuration requirements and flexibly configure the data source and the source data acquired from the data source.

[0090] According to another reference embodiment of the present invention, before obtaining the source data, the method further includes: in response to receiving a data acquisition request, parsing the data acquisition request and determining the corresponding extended interface. The extended interface is an interface implemented by the R&D personnel under the original system architecture, and the extended interface is part of the execution body of the embodiment of the present invention. For example, after the system architecture is built, in order to meet the needs of obtaining source data from other data sources in different data acquisition methods and improve the scalability of the system architecture, the R&D personnel reserve an extensible base class interface. By implementing the base class interface and writing the necessary data acquisition methods, an extended interface suitable for different data sources and different data acquisition methods can be obtained. The extended interface is associated with a custom script, which includes a target data source and a target data field. The custom script includes the business logic for data acquisition, and the custom script is used to obtain the source data corresponding to the target data field from the target data source. After determining the extended interface, the custom script associated with the extended interface is called, that is, the custom script associated with the extended interface is executed, and then the target data source is instructed to obtain the source data from the custom script.

[0091] For example, a developer writes a Shell script that obtains connection information for a MySQL database (i.e., a data source) storing source data, including connection duration, connection time, number of connections, exception information, and so on. The Shell script's corresponding extended interface calls the Shell script using the command ". / connection.sh," where "connection.sh" is the name of the Shell script. Another example is a developer writes a Python script that obtains user order information from an XML file (i.e., a data source), including product name, price, quantity, delivery address, and so on. The Python script's corresponding extended interface calls the Python script using the command "python fileData.py," where "fileData.py" is the name of the Python script.

[0092] Calling custom scripts based on the extended interface can improve the flexibility and configurability of data acquisition. It should be noted that the extended interface is configurable. The execution subject of the embodiment of the present invention modifies the custom script associated with the extended interface based on the script modification request, making the process of acquiring data based on the custom script more flexible and reducing the maintenance cost of the extended interface.

[0093] Step S102: determining a target widget bound to the source data according to a preset binding relationship.

[0094] A widget (Web widget, abbreviated as Widget) is an application plug-in that can display static data or dynamic data (i.e., real-time data). Widgets can be embedded in pages such as web pages and application interfaces. Multiple widgets are pre-set, and the widgets are bound to the source data based on a binding relationship. The binding relationship between the source data and the widget is used to indicate on which widget the target data corresponding to the source data is displayed. The target widget is determined based on the source data and the pre-set binding relationship. For example, the data code of the source data is obtained, and the binding relationship corresponding to the data code is searched in the binding relationship, thereby determining the target widget bound to the source data. For another example, the data field name of the source data is determined, and the binding relationship corresponding to the data field name is searched in the binding relationship, thereby determining the target widget bound to the target data corresponding to the source data.

[0095] It should be noted that the binding relationship between source data and target widgets is configurable. The execution entity of this embodiment of the present invention parses received binding modification requests, adds or deletes widgets based on the parsing results, and adjusts the target widget bound to the source data, so that the target data corresponding to the source data is displayed on the adjusted target widget. If no target widget with a binding relationship with the source data is found, the source data is bound to a pre-set default widget, and the default widget is used to display the target data converted from the source data.

[0096] Exemplarily, the pre-set binding relationship includes "{'widget_E1':'orderData'; 'widget_E2':'stockData'; 'widget_E3':'transferData'}", wherein "'widget_E1':'orderData'" indicates that the widget E1 has a binding relationship with the product order data, "'widget_E2':'stockData'" indicates that the widget E2 has a binding relationship with the product inventory data, and "'widget_E3':'transferData'" indicates that the widget E3 has a binding relationship with the logistics and transportation data; when the source data is logistics and transportation data, the above binding relationships are traversed to determine that the target widget bound to the source data is the widget E3.

[0097] Determining the target widget bound to the source data based on the binding relationship allows for more flexible selection of the target widget to display the target data, decoupling the source data from the target widget to meet diverse display requirements for the source data. Configuring the binding relationship improves the configurability of the binding relationship, avoiding the need for developers to modify the business logic related to the binding relationship from a large amount of business logic, improving the efficiency of binding relationship configuration, avoiding developers from directly modifying the underlying business logic, ensuring the security of the underlying code, and facilitating the configuration and expansion of binding relationships without requiring developers to possess proficient programming skills.

[0098] Step S103: Push the target data to the target widget, and use the target widget to display the target data.

[0099] After the target data is converted and the target widget is determined, the target data is pushed to the target widget, and the target data is displayed by the target widget. The data structure of the target data is associated with the display type displayed by the target widget. For example, the data structure of the target data is a linked list (i.e., List), and each element of the linked list is a mapping table (i.e., Map). Each mapping table stores a set of indicator data. Specifically, the target data includes "[{'indicator':'OTR'},{'this month':'57%'}][{'indicator':'OTD'},{'this month':'90%'}][{'indicator':'Demand CSI'},{'this month':'5.0'}][{'indicator':'Project CSI'},{'this month':'4.0'}]", among which "[{'indicator':'OTR'},{'this month':'57%'}]" It is the first element of the linked list, that is, the first mapping table. The mapping table includes a set of indicator data such as "this month's OTR (order transaction rate) is 57%." The other elements of the linked list are similar. The display types of the target widget corresponding to the target data are pie charts and bar charts. A pie chart is used to display the target data's OTR and OTD (on-time delivery rate) data for this month, respectively. That is, pie chart F1 shows this month's order transaction rate is 57% and the unsold rate is 43%, and pie chart F2 shows this month's on-time delivery rate is 90% and the unsold rate is 10%. The same bar chart is used to display the demand CSI (customer satisfaction index) and project CSI in the target data, thereby enabling a comparison of this month's demand CSI and project CSI.

[0100] The target data is displayed using the target widget. The data structure of the target data is associated with the display type of the target widget, which can improve the data display efficiency and display effect.

[0101] According to a reference embodiment of the present invention, a target widget is associated with multiple display types, including pie charts, line charts, bar charts, web charts, whiteboards, tables, etc. When the target widget is used to display target data, the target display type is determined from the multiple display types. Exemplarily, the data structure of the target data is determined, and a pre-set display type association table is queried to determine the display type associated with the data structure of the target data. Specifically, the display type associated with a linked list is a line chart, the display type associated with an array is a bar chart, the display type associated with a tree or graph is a mesh chart, and the display type associated with a mapping table is a pie chart. Furthermore, exemplarily, the target data includes a data field representing the display type, and the value of the data field representing the display type is obtained from the target data to determine the display type used to display the target data. Specifically, the display type corresponding to the data field with a value of "bing" is a pie chart, the display type corresponding to the data field with a value of "zhe" is a line chart, the display type corresponding to the data field with a value of "zhu" is a bar chart, the display type corresponding to the data field with a value of "wang" is a mesh chart, the display type corresponding to the data field with a value of "biao" is a table, and the display type corresponding to the data field with a value of "ban" is a whiteboard. After determining the target display type from the multiple display types associated with the target widget, the target data is displayed in the target widget using the target display type.

[0102] Figure 3 FIG. 1 is a schematic diagram of determining a target display type according to a reference embodiment of the present invention. For example, Figure 3 As shown, when the data structure of the target data is a linked list, the value of each element in the linked list is mapped to the coordinate system, and the values ​​mapped to the coordinate system are connected by straight lines according to the arrangement order of the elements in the linked list, so as to obtain a line chart generated by the target data; when the data structure of the target data is an array, the value of each element in the array is mapped to the coordinate system according to the arrangement order, so as to obtain a bar chart generated by the target data; when the target data is a mapping table, the pre-set circle is divided according to the ratio between different elements in the mapping table, so as to obtain a pie chart generated by the target data.

[0103] It should be noted that the association between the target widget and the display type is configurable. The execution entity of the embodiment of the present invention displays the above-mentioned association relationship to the R&D personnel. The R&D personnel modify the displayed association relationship. The execution entity of the embodiment of the present invention modifies the association relationship between the target widget and the display type based on the modification result returned by the R&D personnel. Specifically, it adds or deletes the display type associated with the target widget, adds a new display type and associates it with the target widget, and so on.

[0104] The target widget has an association relationship with multiple display types, which can achieve different data display effects; determining the target display type from multiple display types can display the target data more flexibly; the association relationship between the target widget and the display type is configurable, which can improve the configurability of the association relationship, avoid R&D personnel modifying the business logic related to the association from a large amount of business logic, improve the configuration efficiency of the association relationship, avoid R&D personnel directly modifying the underlying business logic, ensure the security of the underlying code, and do not require R&D personnel to have proficient programming skills, facilitating the configuration and expansion of the association relationship.

[0105] According to another reference embodiment of the present invention, the method further includes: in response to receiving a data update request, creating a data update task according to a preset data update cycle, wherein the data update cycle represents the interval between executing the data display method. The data update cycle can be a fixed time every day, a fixed time every week, a fixed time every month, or a fixed time every month, or the time difference between the start execution of two consecutive data update tasks, for example, 1 minute, 5 minutes, 1 hour, etc. Exemplarily, using the Java-based task scheduling framework Quartz, the data update task is created, the data update cycle is 20:00 every day, that is, the data display method is executed once every day at 20:00. Executing the created data update task, that is, executing the data update task according to the data update cycle. Specifically, when the data update cycle is 5 minutes, executing the data display method every 5 minutes, the method includes: obtaining new source data from a data source, converting the new source data into new target data according to a data specification, determining a target widget bound to the new source data according to a binding relationship, determining a target display type for the new source data according to an association relationship, and using the target widget to display the new target data using a new display class, etc.

[0106] It should be noted that the data update task is configurable. The execution entity of the embodiment of the present invention displays the configurable parameters in the data update task (for example, the data update cycle, the start time of the data update task, the end time of the data update task, whether to generate log information for the data update task, etc.) to the R&D personnel, and the R&D personnel configure the above parameters. The execution entity of the embodiment of the present invention generates and executes the data update task based on the parameters returned by the R&D personnel.

[0107] Generating time-based update tasks based on the data update cycle allows for looping and executing data display methods, thereby periodically updating the target data displayed on the target widget, ensuring the timeliness and accuracy of the target data and improving the user experience of the target widget's viewers. Configuring data update tasks can improve the configurability of data update tasks, eliminating the need for developers to modify and search for business logic related to data update tasks within a large amount of business logic. This improves the configuration efficiency of data update tasks and prevents developers from directly modifying the underlying business logic, ensuring the security of the underlying code. This also eliminates the need for developers to possess proficient programming skills, making it easier to configure and expand data update tasks.

[0108] According to another reference embodiment of the present invention, before pushing the target data to the target widget, the method further includes: verifying the target data using preset data validity verification conditions. Specifically, the data validity verification conditions include: determining whether the target data does not have null values, determining whether the data type of the target data belongs to a standard data type, determining whether the target value range of the target data of a numeric type is greater than or equal to a preset value range, determining whether the length of the target data of a string type is greater than or equal to a preset length threshold, etc. Preferably, if the target data has null values, the null values ​​in the target data are replaced with preset default values. If the data type of the target data does not belong to a standard data type, the data type of the target data is converted to a standard data type.

[0109] Target data that meets the pre-set data validity verification criteria is filtered out from the target data and is used as the target data to be pushed to the target widget. For example, the target data represents the weight of a package to be mailed, including: 3 kg, 5 kg, 7 kg, and 50 kg. The pre-set maximum package weight is 10 kg. Since 50 kg is greater than 10 kg, 50 kg does not meet the data validity verification criteria. Therefore, 3 kg, 5 kg, and 7 kg are used as the target data to be pushed to the target widget.

[0110] It should be noted that the data validity verification conditions are configurable. The executive body of the embodiment of the present invention displays the data validity verification conditions to the R&D personnel, and the R&D personnel modify the data validity verification conditions. The executive body of the embodiment of the present invention modifies the data validity verification conditions according to the modification results. Specifically, it modifies the data type that meets the conditions, the numerical range that the target data of the numerical type should conform to, the length threshold that the target data of the string type should conform to, etc.

[0111] Before pushing target data, filtering out target data that meets the data validation criteria ensures accurate data display and avoids pushing target data with incorrect structure or logic. Configuring data validation criteria improves configuration, eliminating the need for developers to modify and search for business logic related to data validation criteria within a large volume of business logic. This improves configuration efficiency and prevents developers from directly modifying underlying business logic, ensuring the security of the underlying code. This also eliminates the need for developers to possess proficient programming skills, making it easier to configure and expand data validation criteria.

[0112] Figure 4 This is a schematic diagram of the overall process of data display according to a reference embodiment of the present invention. For example, Figure 4 As shown, the execution subject of the embodiment of the present invention receives a configuration request from a developer, configures a data source until the data source meets a pre-set data source validity verification condition, loads a configuration file written by the developer, builds a business logic relationship network, configures a binding relationship between source data stored in the data source and a pre-set widget based on scenario information, configures an extension interface and a custom script associated with the extension interface; after receiving a data display request, determines a target data source, obtains source data from the target data source, converts the source data into target data according to the data specification in the configuration file until the target data meets the pre-set data validity verification condition, filters out a target widget from the pre-set widgets according to the binding relationship, pushes the target data to the target widget, and displays the target data using the target widget.

[0113] Figure 5 FIG. 1 is a schematic diagram of the main process of data display according to a reference embodiment of the present invention. For example, Figure 5 As shown, the data display method may include:

[0114] Step S501, in response to receiving a data acquisition request, determining a corresponding extended interface, and associating the extended interface with a custom script;

[0115] Step S502: calling a custom script according to the extended interface, and using the custom script to obtain source data corresponding to the target data field from the target data source;

[0116] Step S503, in response to acquiring the source data, mapping the source data to a pre-set data node;

[0117] Step S504: performing operations on the source data mapped to the data nodes according to the business logic relationship network between the data nodes, and using the operation results of the source data as the target data;

[0118] Step S505, determine whether the target data meets the data validity verification conditions, if so, jump to step S507, otherwise jump to step S506;

[0119] Step S506, adjusting the target data according to the data validity verification condition;

[0120] Step S507: determining the target widget bound to the source data according to the pre-set binding relationship;

[0121] Step S508: Push the target data to the target widget, and use the target widget to display the target data.

[0122] The specific implementation content of the data display method of the above-mentioned reference embodiment of the present invention has been described in detail in the above-mentioned data display method, so the repeated content will not be described again here.

[0123] Figure 6 FIG. 1 is a schematic diagram of the main process of data display according to another reference embodiment of the present invention. Figure 6 As shown, the data display method may include:

[0124] Step S601, in response to receiving a data acquisition request, determining corresponding scene information;

[0125] Step S602, determining a first data source associated with the scene information from the data sources included in the preset configuration file;

[0126] Step S603, determining whether the first data source meets the data source validity verification condition, if so, jump to step S604, otherwise jump to step S602;

[0127] Step S604: Using the data source that meets the protection data source validity verification condition in the first data source as the second data source;

[0128] Step S605: Parse the data field name associated with the scene information from the configuration file, and obtain source data corresponding to the data field name from the second data source;

[0129] Step S606 , in response to obtaining the source data, converting the source data into target data according to a preset data specification;

[0130] Step S607: determining the target widget bound to the source data according to the pre-set binding relationship;

[0131] Step S608: Push the target data to the target widget, and determine the target display type from multiple display types associated with the target widget;

[0132] Step S609: Display the target data in the target widget using the target display type.

[0133] The specific implementation content of the data display method of another reference embodiment of the present invention has been described in detail in the above-mentioned data display method, so the repeated content will not be described again here.

[0134] Figure 7 is a schematic diagram of the main modules of the data display device according to an embodiment of the present invention, such as Figure 7 As shown, the data display device 700 mainly includes:

[0135] The conversion module 701 is configured to convert the source data into target data according to a preset data specification in response to the source data being acquired;

[0136] A binding module 702 is configured to determine a target widget bound to the source data according to a preset binding relationship;

[0137] The display module 703 is configured to push the target data to the target widget and use the target widget to display the target data.

[0138] According to a reference embodiment of the present invention, the data specification includes a business logic relationship network between data nodes; converting the source data into target data according to the preset data specification includes:

[0139] Mapping the source data to pre-set data nodes;

[0140] According to the business logic relationship network between the data nodes, the source data mapped to the data nodes are operated, and the operation results of the source data are used as the target data.

[0141] According to another reference embodiment of the present invention, the data display device 700 further includes:

[0142] A first determining module, configured to determine corresponding scene information in response to receiving a data acquisition request;

[0143] A second determining module is configured to determine a first data source associated with the scene information from data sources included in a preset configuration file;

[0144] A first screening module, configured to screen out a second data source that meets a preset data source validity verification condition from the first data source;

[0145] The acquisition module is used to parse the data field name associated with the scene information from the configuration file and acquire the source data corresponding to the data field name from the second data source.

[0146] According to another reference embodiment of the present invention, the data display device 700 further includes:

[0147] a third determining module, configured to determine, in response to receiving a data acquisition request, a corresponding extended interface, wherein the extended interface is associated with a custom script, and the custom script includes a target data source and a target data field;

[0148] A calling module is used to call the custom script according to the extended interface, and the custom script is used to obtain source data corresponding to the target data field from the target data source.

[0149] According to another reference embodiment of the present invention, the target widget is associated with multiple display types; and displaying the target data using the target widget includes:

[0150] determining a target presentation type from the plurality of presentation types;

[0151] The target data is displayed in the target widget using the target display type.

[0152] According to yet another reference embodiment of the present invention, the data display device 700 further includes:

[0153] A creation module, configured to create a data update task in response to receiving a data update request and according to a preset data update cycle;

[0154] An execution module is used to execute the data update task based on the data update cycle, wherein the data update task is used to regularly obtain new source data, convert the new source data into new target data, and display the new target data using the target widget.

[0155] According to a reference embodiment of the present invention, the data display device 700 further includes:

[0156] The second screening module is configured to screen out target data that meets a preset data validity verification condition from the target data, and use the target data that meets the data validity verification condition as the target data to be pushed to the target widget.

[0157] It should be noted that the specific implementation content of the data display device in the embodiment of the present invention has been described in detail in the data display method described above, so the repeated content will not be described again here.

[0158] According to the technical solution of the embodiments of the present invention, data is processed and displayed based on pre-set data specifications and binding relationships, which can improve the configurability of the data display process and reduce development costs and maintenance costs; source data is calculated according to the business logic relationship network between data nodes, which can improve the flexibility of the data processing process, meet different data processing requirements, avoid secondary development when data processing requirements change, and reduce maintenance costs; the first data source is determined according to scenario information, and the second data source is determined according to the data source validity verification conditions, which can decouple the data source from the data acquisition process, improve data acquisition efficiency, and avoid acquiring data from unavailable data sources; calling custom scripts according to the extended interface can improve the flexibility and configurability of data acquisition; determining the target display type from multiple display types can configure the data display process, avoid secondary development when data display requirements change, and reduce maintenance costs; before pushing the target data, screening out the target data that meets the data validity verification conditions can ensure that the data display is accurate and avoid pushing target data with incorrect structure or logic.

[0159] According to a third aspect of an embodiment of the present invention, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided by the first aspect of the embodiment of the present invention.

[0160] According to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method provided by the first aspect of the embodiment of the present invention is implemented.

[0161] Figure 8 An exemplary system architecture 800 is shown to which the method or apparatus for data presentation according to an embodiment of the present invention may be applied.

[0162] like Figure 8 As shown, system architecture 800 may include terminal devices 801, 802, 803, a network 804, and a server 805. Network 804 is used to provide a medium for communication links between terminal devices 801, 802, 803 and server 805. Network 804 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0163] Users can use terminal devices 801, 802, and 803 to interact with server 805 via network 804 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 801, 802, and 803, such as data display applications, data query applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0164] The terminal devices 801 , 802 , and 803 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0165] Server 805 can be a server that provides various services, such as a background management server (for example only) that supports data display requests sent by upstream terminal devices 801, 802, and 803. In response to obtaining source data, the background management server can convert the source data into target data according to pre-set data specifications; determine the target widget bound to the source data based on a pre-set binding relationship; push the target data to the target widget, and use the target widget to display the target data; and feedback the data display status (for example only) to the terminal device.

[0166] It should be noted that the data display method provided in the embodiment of the present invention is generally executed by the server 805, and accordingly, the data display device is generally set in the server 805. The data display method provided in the embodiment of the present invention can also be executed by the terminal devices 801, 802, and 803, and accordingly, the data display device can be set in the terminal devices 801, 802, and 803.

[0167] It should be understood that Figure 8 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.

[0168] Reference below Figure 9 , which shows a schematic structural diagram of a computer system 900 of a terminal device suitable for implementing an embodiment of the present invention. Figure 9 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0169] like Figure 9 As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage unit 908 into a random access memory (RAM) 903. Various programs and data required for the operation of the system 900 are also stored in the RAM 903. The CPU 901, ROM 902, and RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0170] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, and the like; an output section 907 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN card or a modem. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 910 as needed, so that computer programs read therefrom can be installed into the storage section 908 as needed.

[0171] In particular, according to the embodiments disclosed in the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present invention include a computer program comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 909, and / or installed from a removable medium 911. When the computer program is executed by the central processing unit (CPU) 901, the above-mentioned functions defined in the system of the embodiment of the present invention are executed.

[0172] It should be noted that the computer-readable medium shown in the embodiments of the present invention may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In embodiments of the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or component. In embodiments of the present invention, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, or any suitable combination thereof.

[0173] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer programs according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0174] The modules described in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be provided in a processor. For example, they may be described as comprising a conversion module, a binding module, and a presentation module. The names of these modules do not, in some cases, limit the modules themselves. For example, the conversion module may also be described as a "module that converts source data into target data."

[0175] As another aspect, embodiments of the present invention further provide a computer-readable medium, which may be included in the device described in the above embodiments, or may exist independently and not be incorporated into the device. The computer-readable medium carries one or more programs. When the one or more programs are executed by a device, the device implements the following method: in response to obtaining source data, converting the source data into target data according to a preset data specification; determining a target widget bound to the source data according to a preset binding relationship; pushing the target data to the target widget, and displaying the target data using the target widget.

[0176] According to the technical solution of the embodiments of the present invention, data is processed and displayed based on pre-set data specifications and binding relationships, which can improve the configurability of the data display process and reduce development costs and maintenance costs; source data is calculated according to the business logic relationship network between data nodes, which can improve the flexibility of the data processing process, meet different data processing requirements, avoid secondary development when data processing requirements change, and reduce maintenance costs; the first data source is determined according to scenario information, and the second data source is determined according to the data source validity verification conditions, which can decouple the data source from the data acquisition process, improve data acquisition efficiency, and avoid acquiring data from unavailable data sources; calling custom scripts according to the extended interface can improve the flexibility and configurability of data acquisition; determining the target display type from multiple display types can configure the data display process, avoid secondary development when data display requirements change, and reduce maintenance costs; before pushing the target data, screening out the target data that meets the data validity verification conditions can ensure that the data display is accurate and avoid pushing target data with incorrect structure or logic.

[0177] The above specific embodiments do not limit the scope of protection of the embodiments of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the embodiments of the present invention should be included in the scope of protection of the embodiments of the present invention.

Claims

1. A method for data presentation, characterized in that: include: In response to acquiring the source data, converting the source data into target data according to a preset data specification; Determine a target widget bound to the source data according to a preset binding relationship; The target data is pushed to the target widget, and the target data is displayed using the target widget.

2. The method according to claim 1, characterized in that The data specification includes a business logic relationship network between data nodes; According to the preset data specification, the source data is converted into target data, including: Mapping the source data to a preset data node; According to the business logic relationship network between the data nodes, the source data mapped to the data nodes are operated, and the operation results of the source data are used as the target data.

3. The method according to claim 1, characterized in that Before acquiring the source data, the method further includes: In response to receiving the data acquisition request, determining corresponding scene information; Determine a first data source associated with the scene information from data sources included in a preset configuration file; Filtering out a second data source that meets a preset data source validity verification condition from the first data source; A data field name associated with the scene information is parsed from the configuration file, and source data corresponding to the data field name is acquired from the second data source.

4. The method according to claim 1, characterized in that Before acquiring the source data, the method further includes: In response to receiving a data acquisition request, determining a corresponding extended interface, the extended interface being associated with a custom script, the custom script including a target data source and a target data field; The custom script is called according to the extended interface, and the custom script is used to obtain source data corresponding to the target data field from the target data source.

5. The method according to claim 1, characterized in that: The target widget is associated with a plurality of display types; Using the target widget to display the target data includes: determining a target presentation type from among the plurality of presentation types; The target data is displayed in the target widget using the target display type.

6. The method according to claim 1, characterized in that The method further comprises: In response to receiving the data update request, creating a data update task according to a preset data update cycle; The data update task is executed based on the data update cycle, and the data update task is used to periodically obtain new source data, convert the new source data into new target data, and use the target widget to display the new target data.

7. The method according to claim 1, characterized in that Before pushing the target data to the target widget, the method further includes: Target data that meets a preset data validity verification condition is screened out from the target data, and the target data that meets the data validity verification condition is used as the target data pushed to the target widget.

8. A device for displaying data, characterized in that: include: A conversion module, configured to convert the source data into target data according to a preset data specification in response to acquiring the source data; A binding module, used to determine a target widget bound to the source data according to a preset binding relationship; The display module is used to push the target data to the target widget and use the target widget to display the target data.

9. An electronic device, characterized in that: include: One or more processors; A storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.