Data visualization display method and device, electronic equipment and storage medium

By dividing the data set to be displayed into multiple document blocks, and determining the display structure and rendering parameters of the target document block when receiving the display instruction, the display requirements problem in different data display scenarios are solved, and efficient and low-cost data visual display is achieved.

CN119829854APending Publication Date: 2025-04-15KE COM (BEIJING) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411901493.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

In different data display scenarios, it is difficult for the existing technology to achieve efficient and low-cost data visualization display, and it is difficult to adapt to different display needs.

Method used

By unitizing the data set to be displayed, multiple document blocks are obtained, and upon receiving the display instructions in the target display scene, the target standard structure data, target rendering parameters and target rendering template of the target document block are determined, and rendered to achieve visual display.

Benefits of technology

Data display instructions for any target display scenario are implemented, and data can be visualized efficiently and at low cost to meet different data display needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119829854A_ABST
    Figure CN119829854A_ABST
Patent Text Reader

Abstract

The invention provides a data visualization display method and device, electronic equipment and a storage medium. The method comprises the steps of performing unitization processing on a to-be-displayed data set in advance to obtain a plurality of document blocks; each document block is a display unit for performing data visual display on the to-be-displayed data in a preset display scene; determining target standard structure data corresponding to the target display scene under the condition that a display instruction for performing data display in the target display scene is received; determining a target rendering parameter corresponding to the target display scene, and determining a target rendering template corresponding to the target display scene; and inputting the target rendering parameter and the target standard structure data into the target rendering template, rendering the target document block in the target display scene to obtain a target rendering result, and performing visual display based on the target rendering result. According to the invention, the display instruction for data display in the target display scene is realized, and the data can be visually displayed with high efficiency and low cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In the field of data display, the display form and content of the data to be displayed are often different in different scenarios. For example, the data to be displayed under merchant management will be different depending on the management process and the role of the operator.

[0003] Therefore, finding a data visualization method that is efficient and low-cost and suitable for different data display scenarios has become a current research hotspot. Summary of the invention

[0004] The present invention provides a data visualization display method, device, electronic device and storage medium, which realize display instructions capable of displaying data in a target display scenario, and visualize the data efficiently and at low cost.

[0005] The present invention provides a data visualization display method, the method comprising: performing unit processing on a data set to be displayed in advance to obtain a plurality of document blocks, wherein the data set to be displayed includes a plurality of data to be displayed; each of the document blocks is a display unit for performing data visualization display of the data to be displayed in a preset display scene; in the case of receiving a display instruction for performing data display in a target display scene, determining target standard structure data of a target document block corresponding to the target display scene, wherein the target standard structure data is parameter data about a target display standard structure, and the target display standard structure is used to characterize the display structure of the target document block in the visualization display; determining a target rendering parameter corresponding to the target display scene, and determining a target rendering template corresponding to the target display scene, wherein the target rendering parameter is used to control the visualization display effect, and the target rendering parameter is determined according to the display requirements of the target display scene; the target rendering template is a visualization display template of the target standard structure data; inputting the target rendering parameter and the target standard structure data into the target rendering template, rendering the target document block in the target display scene to obtain a target rendering result, and performing visualization display based on the target rendering result.

[0006] According to a data visualization display method provided by the present invention, upon receiving a display instruction for displaying data in a target display scenario, before determining the target standard structure data of the target document block corresponding to the target display scenario, the method further includes: configuring document block configuration information for each document block, wherein the document block configuration information at least includes the display standard structure, rendering parameters and rendering template of the document block in a preset scenario; upon receiving a display instruction for displaying data in a target display scenario, determining the target standard structure data of the target document block corresponding to the target display scenario specifically includes: upon receiving a display instruction for displaying data in a target display scenario, determining the target display standard structure of the target document block corresponding to the target display scenario based on the display standard structure of the document block in the preset scenario included in the document block configuration information; and determining the target standard structure data of the target document block corresponding to the target display scenario based on the target display standard structure and the target display scenario.

[0007] According to a data visualization display method provided by the present invention, the determining of target rendering parameters corresponding to the target display scene, and determining a target rendering template corresponding to the target display scene, specifically include: determining the target rendering parameters corresponding to the target display scene based on the rendering parameters of the document block under a preset scene included in the document block configuration information; determining the target rendering template corresponding to the target display scene based on the rendering template of the document block under a preset scene included in the document block configuration information.

[0008] According to a data visualization display method provided by the present invention, the document block includes a basic document block, wherein the basic document block is a document block that does not need to rely on other document blocks; when the document block is the basic document block, the target standard structure data of the target document block corresponding to the target display scenario is determined based on the target display standard structure and the target display scenario, specifically including: based on the target display standard structure, determining a data filling method that matches the target display standard structure; based on the target display scenario, determining scene data information corresponding to the target display scenario, wherein the scene data information is description information for characterizing the target display scenario; based on the scene data information and the data filling method, determining the target standard structure data of the basic document block.

[0009] According to a data visualization display method provided by the present invention, the document block includes a complex document block, wherein the complex document block is a document block that needs to be formed under a basic document block and depends on other basic document blocks; when the document block is the complex document block, the method further includes: based on the scene data information, determining the first target standard structure data of the basic document block in the complex document block that matches the scene data information and the second target standard structure data of other basic document blocks on which it depends; based on the first target standard structure data and the second target standard structure data, determining the target standard structure data of the complex document block.

[0010] According to a data visualization display method provided by the present invention, when the target document block is a basic document block, the target rendering parameters and the target standard structure data are input into the target rendering template, and the target document block in the target display scenario is rendered to obtain a target rendering result, which specifically includes: inputting the target rendering parameters and the target standard structure data into the target rendering template, rendering and executing the basic document block in the target display scenario through a template engine to obtain a rendering code of the basic document block; and obtaining a target rendering result based on the rendering code of the basic document block.

[0011] According to a data visualization display method provided by the present invention, when the target document block is a complex document block, the target rendering parameters and the target standard structure data are input into the target rendering template, and the target document block in the target display scenario is rendered to obtain a target rendering result, which specifically includes: inputting the target rendering parameters and the target standard structure data into the target rendering template, and sequentially rendering and executing the basic document block and other basic document blocks on which the complex document block in the target display scenario through a template engine to obtain the rendering code of the basic document block and the rendering codes of other basic document blocks on which it depends; determining the target dependency mode in which the complex document block depends on other basic document blocks under the basic document block; obtaining the rendering code of the target document block based on the rendering code of the basic document block, the target dependency mode, and the rendering codes of other basic document blocks on which it depends; and obtaining the target rendering result based on the rendering code of the target document block.

[0012] According to a data visualization display method provided by the present invention, a data set to be displayed is unitized to obtain multiple document blocks, which is implemented in the following manner: the data to be displayed in the data set to be displayed is split according to the minimum business operation granularity to obtain split display data; the display requirements of each preset display scene are determined; based on the display requirements of each preset display scene, the split display data is merged to obtain document blocks under each preset display scene.

[0013] The present invention also provides a data visualization display device, the device comprising: a preprocessing module, used to pre-unitize the data set to be displayed to obtain a plurality of document blocks, wherein the data set to be displayed includes a plurality of data to be displayed; each of the document blocks is a display unit for visualizing the data to be displayed in a preset display scenario; a receiving module, used to determine the target standard structure data of the target document block corresponding to the target display scenario when receiving a display instruction for displaying data in a target display scenario, wherein the target standard structure data is parameter data about the target display standard structure, and the target display standard structure is used to characterize the target document block. The display structure of the block in the visual display; a determination module, used to determine the target rendering parameters corresponding to the target display scene, and determine the target rendering template corresponding to the target display scene, wherein the target rendering parameters are used to control the visual display effect, and the target rendering parameters are determined according to the display requirements of the target display scene; the target rendering template is a visual display template of the target standard structure data; a rendering module, used to input the target rendering parameters and the target standard structure data into the target rendering template, render the target document block under the target display scene to obtain the target rendering result, and perform visual display based on the target rendering result.

[0014] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, any of the data visualization display methods described above is implemented.

[0015] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the data visualization display method as described in any one of the above is implemented.

[0016] The present invention also provides a computer program product, including a computer program, which implements any of the data visualization display methods described above when executed by a processor.

[0017] The data visualization display method, device, electronic device and storage medium provided by the present invention pre-unitize the data set to be displayed to obtain multiple document blocks; when receiving a display instruction for displaying data in a target display scenario, determine the target standard structure data of the target document block corresponding to the target display scenario; determine the target rendering parameters corresponding to the target display scenario, and determine the target rendering template corresponding to the target display scenario; input the target rendering parameters and the target standard structure data into the target rendering template, render the target document block in the target display scenario to obtain the target rendering result, and perform visualization based on the target rendering result. The data display instruction for any target display scenario is realized, and the data can be visualized efficiently and at low cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 It is one of the flow charts of the data visualization display method provided by the present invention.

[0020] Figure 2 This is the second flow chart of the data visualization display method provided by the present invention.

[0021] Figure 3 It is one of the flow charts provided by the present invention, which inputs the target rendering parameters and the target standard structure data into the target rendering template, and renders the target document block in the target display scene to obtain the target rendering result.

[0022] Figure 4 This is the second flow chart of the present invention, which provides inputting the target rendering parameters and the target standard structure data into the target rendering template, and rendering the target document block in the target display scene to obtain the target rendering result.

[0023] Figure 5 It is a flow chart of the present invention for unitizing a data set to be displayed to obtain a plurality of document blocks.

[0024] Figure 6 It is a structural schematic diagram of the data visualization display device provided by the present invention.

[0025] Figure 7 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] In order to solve the demands for data style diversity and differentiated display of different nodes in different display scenarios, the data visualization display method of the present invention is proposed. Through business combing, all data to be presented are divided into multiple document blocks. Each document block stipulates the display standard structure corresponding to the document block and the rendering parameters corresponding to the display scenario of the document block. The final visualization result is presented through rendering processing, which realizes the display instructions for data display in any target display scenario, and can visualize the data efficiently and at low cost.

[0028] Figure 1 It is one of the flow charts of the data visualization display method provided by the present invention.

[0029] The following will be combined Figure 1 The process of the data visualization display method provided by the present invention is explained.

[0030] In an exemplary embodiment of the present invention, Figure 1 It can be seen that the data visualization display method may include steps 110 to 140, and each step will be introduced below.

[0031] In step 110, the data set to be displayed is pre-unitized to obtain a plurality of document blocks.

[0032] In one embodiment, the data set to be displayed may be pre-unitized to obtain multiple document blocks. The data set to be displayed may include multiple data to be displayed; each document block is a display unit for visually displaying the data to be displayed in a preset display scenario.

[0033] Take the application scenario of the merchant management system as an example. In the merchant management system, different nodes in different processes and different login roles see different data contents, or the display forms of the same data are different, that is, there are multiple data to be displayed, and multiple data to be displayed can constitute a data set to be displayed. In order to ensure sufficient versatility of the underlying document block and respond to the ever-changing business data display requirements in the future, data splitting can be performed to split the business data with display requirements (corresponding to the data set to be displayed) into several data units, that is, multiple document blocks are obtained.

[0034] In step 120, when a display instruction for displaying data in a target display scenario is received, target standard structure data of a target document block corresponding to the target display scenario is determined.

[0035] In one embodiment, when a display instruction for displaying data in a target display scenario is received, for example, when different login persons log in to a merchant management system to process different process nodes, it can be considered that a display instruction has been received, and further, the target standard structure data of the target document block corresponding to the target display scenario can be determined. Among them, the target standard structure data can be parameter data about the target display standard structure. The target display standard structure is a standard structure for rendering data in an agreed target document block, and all subsequent visualization actions are performed based on the target display standard structure. Among them, the target display standard structure is used to characterize the display structure of the target document block in the visualization display.

[0036] In step 130, target rendering parameters corresponding to the target presentation scene are determined, and a target rendering template corresponding to the target presentation scene is determined.

[0037] In step 140, the target rendering parameters and the target standard structure data are input into the target rendering template, the target document block in the target display scene is rendered to obtain the target rendering result, and a visual display is performed based on the target rendering result.

[0038] In another embodiment, target rendering parameters corresponding to the target display scene and target rendering template corresponding to the target display scene may also be determined. The target rendering parameters are used to control the visual display effect under the target display scene, and the target rendering parameters may be determined according to the display requirements of the target display scene; the target rendering template is a visual display template of the target standard structure data.

[0039] Furthermore, the target rendering parameters and the target standard structure data can be input into the target rendering template, and the target document block under the target display scenario can be rendered by sequentially executing the FreeMarker template syntax to obtain the target rendering result, and the visual display can be performed based on the target rendering result. In this embodiment, by dividing all the data to be presented into multiple document blocks, and by rendering the target document blocks under the target display scenario, efficient and low-cost visual display of the data can be achieved.

[0040] The data visualization display method provided by the present invention performs unit processing on the data set to be displayed in advance to obtain multiple document blocks; when receiving a display instruction for displaying data in a target display scenario, determines the target standard structure data of the target document block corresponding to the target display scenario; determines the target rendering parameters corresponding to the target display scenario, and determines the target rendering template corresponding to the target display scenario; inputs the target rendering parameters and the target standard structure data into the target rendering template, renders the target document block in the target display scenario to obtain the target rendering result, and performs visualization display based on the target rendering result. The display instruction for displaying data in any target display scenario is realized, and data can be visualized efficiently and at low cost.

[0041] Figure 2 This is the second flow chart of the data visualization display method provided by the present invention.

[0042] The following will be combined Figure 2 The process of another data visualization method is explained.

[0043] In an exemplary embodiment of the present invention, Figure 2 It can be seen that the data visualization display method may include steps 210 to 260, wherein step 210 is the same as or similar to step 110, and steps 250 to 260 are the same as or similar to steps 130 to 140. For the specific implementation methods and beneficial effects thereof, please refer to the previous description, which will not be repeated in this embodiment. Steps 220 to 240 will be introduced separately below.

[0044] In step 220, document block configuration information is configured for each document block, wherein the document block configuration information at least includes a display standard structure, rendering parameters, and a rendering template of the document block in a preset scenario.

[0045] In step 230, when a display instruction for displaying data in a target display scenario is received, a target display standard structure of a target document block corresponding to the target display scenario is determined based on the display standard structure of the document block in the preset scenario included in the document block configuration information; In step 240, based on the target presentation standard structure and the target presentation scenario, target standard structure data of the target document block corresponding to the target presentation scenario is determined.

[0046] In one embodiment, document block configuration information may be configured in advance for each document block, and the document block configuration information may be configured differently for document blocks in different scenarios, so that it may be used for document rendering. The document block configuration information at least includes a display standard structure, rendering parameters, and rendering template of the document block in a preset scenario. It is understandable that the target preset scenario may be one of the preset scenarios.

[0047] In another embodiment, when receiving a display instruction for displaying data in a target display scenario, the real data in the target display scenario can be determined, so that the target display standard structure of the target document block corresponding to the target display scenario can be determined based on the display standard structure of the document block in the preset scenario included in the document block configuration information, and then the target standard structure data of the target document block corresponding to the target display scenario can be determined based on the target display standard structure and the target display scenario. It can be understood that the target display standard structure can be a display standard structure among the display standard structures.

[0048] In another exemplary embodiment of the present invention, the above-mentioned embodiment is continued to be used as an example to describe that determining the target rendering parameters corresponding to the target display scene and determining the target rendering template corresponding to the target display scene can be implemented in the following manner: Determining target rendering parameters corresponding to the target presentation scene based on rendering parameters of the document block under a preset scene included in the document block configuration information; Based on the rendering template of the document block under the preset scenario included in the document block configuration information, a target rendering template corresponding to the target presentation scenario is determined.

[0049] In another embodiment, when a display instruction for displaying data in a target display scenario is received, the real data in the target display scenario can be determined, so that the target rendering parameters corresponding to the target display scenario can be determined based on the rendering parameters of the document block in the preset scenario included in the document block configuration information, and the target rendering template corresponding to the target display scenario can be determined based on the rendering template of the document block in the preset scenario included in the document block configuration information. It can be understood that the target rendering parameter can be a rendering parameter among the rendering parameters; the target rendering template can be a rendering template among the rendering templates.

[0050] In another exemplary embodiment of the present invention, the above-mentioned embodiment is continued as an example for explanation, the document block includes a basic document block, wherein the basic document block is a document block that does not need to rely on other document blocks; in the case where the document block is a basic document block, based on the target display standard structure and the target display scenario, the target standard structure data of the target document block corresponding to the target display scenario is determined, which can be implemented in the following manner: Based on the target display standard structure, determine the data filling method that matches the target display standard structure; Based on the target display scene, determining scene data information corresponding to the target display scene, wherein the scene data information is description information used to characterize the target display scene; Based on the scene data information and the data filling method, the target standard structure data of the basic document block is determined.

[0051] In one embodiment, when the document block is a basic document block, a data filling method matching the target display standard structure can be determined based on the target display standard structure. For each document block, scene data information corresponding to a preset scene can be determined. During the application process, scene data information corresponding to the target display scene can be determined based on the target display scene, wherein the scene data information is descriptive information for characterizing the target display scene. Further, based on the scene data information and the data filling method, the target standard structure data of the basic document block is determined.

[0052] In another embodiment, during the application process, the initial data (corresponding to the scene data information) undergoes a chain transformation through N data filling methods (the output of the previous data filling method is the input of the next data filling method), and the output of the last data filling method is the standard structure data (corresponding to the target standard structure data).

[0053] In another exemplary embodiment of the present invention, the above-mentioned embodiment is used as an example for explanation, and the document block may include a complex document block, wherein the complex document block is a document block formed by relying on other basic document blocks under the basic document block. Wherein, in the case where the document block is a complex document block, the data visualization display method further includes: Based on the scene data information, determine the first target standard structure data of the basic document block in the complex document block matching the scene data information and the second target standard structure data of other basic document blocks on which it depends; Based on the first target standard structure data and the second target standard structure data, target standard structure data of the complex document block is determined.

[0054] In one embodiment, a complex document block is a document block that needs to be formed by relying on other basic document blocks under a basic document block, wherein the complex document block can realize its dependence on other document blocks by combination and reference. It is understandable that the dependence of a basic document block on other basic document blocks in a complex document block can include combination and reference.

[0055] In another embodiment, a complex document block can also reference the contents of other document blocks through relationship instructions to realize the visualization of multiple document blocks in the same interface. In the present invention, the customized relationship instructions include the following reference instructions and combination instructions. Among them, in the reference instruction, when document block A uses the reference instruction to depend on document block B, the visualization effect is to display a jump link in the visualization page of document A, and the content of document block B can be seen by linking to the new page. In the specific implementation, the visualization logic of the document block is encapsulated as an interface, and a link to the interface path is added in the upper-level document block. In the combination instruction, when document block A uses the combination instruction to depend on document block B, the visualization effect is equivalent to rewriting the visualization logic of document block B in document block A. In the specific implementation, the visualization function of the document block is realized through a customized FreeMarker template method, and the rendered html code is returned to the upper-level document block.

[0056] In another embodiment, since the basic document block in the complex document block and other basic document blocks on which it depends have formed a display standard structure by means of the basic document module described in the aforementioned embodiment, under the complex document block, it is passed from the upper-level document block, for example, other basic document blocks on which it depends, and there is no need to define a filling method for the standard data structure. The parameters of the basic document block can also be passed from the parent document block, and there is no need to define a filling method for the standard data structure, and thus there is no need to determine the first target standard structure data of the basic document block in the complex document block and the second target standard structure data of other basic document blocks on which it depends. Therefore, in the application process, based on the scene data information, the first target standard structure data of the basic document block in the complex document block that matches the scene data information and the second target standard structure data of other basic document blocks on which it depends are directly determined; further, based on the first target standard structure data and the second target standard structure data, the target standard structure data of the complex document block is determined.

[0057] Figure 3 It is one of the flow charts provided by the present invention, which inputs target rendering parameters and target standard structure data into a target rendering template, and renders a target document block in a target display scene to obtain a target rendering result.

[0058] The following will be combined Figure 3 The process of inputting target rendering parameters and target standard structure data into a target rendering template and rendering the target document block in a target presentation scenario to obtain a target rendering result is described when the target document block is a base document block.

[0059] In an exemplary embodiment of the present invention, Figure 3It can be seen that when the target document block is a basic document block, the target rendering parameters and the target standard structure data are input into the target rendering template, and the target document block in the target display scene is rendered to obtain the target rendering result, which may include steps 310 and 320. Each step will be introduced below.

[0060] In step 310, the target rendering parameters and the target standard structure data are input into the target rendering template, and the basic document block in the target display scene is rendered and executed by the template engine to obtain the rendering code of the basic document block.

[0061] In step 320, a target rendering result is obtained based on the rendering code of the basic document block.

[0062] In one embodiment, the target rendering parameters and the target standard structure data can be input into the target rendering template, and the basic document block under the target display scene can be rendered and executed by the template engine, thereby obtaining the rendering code of the basic document block. In another example, the rendered HTML code can be obtained by sequentially executing the FreeMarker template syntax, that is, the rendering code of the basic document block can be obtained. Then, based on the rendering code of the basic document block, the target rendering result can be obtained.

[0063] In another embodiment, before rendering, it is also possible to check whether the target display standard structure is the display standard structure of the basic document block in the target display scene. If the check is passed, the above steps 310 to 320 are executed.

[0064] Figure 4 This is the second flow chart of the present invention for inputting target rendering parameters and target standard structure data into a target rendering template, and rendering a target document block in a target display scene to obtain a target rendering result.

[0065] The following will be combined Figure 4 When the target document block is a complex document block, target rendering parameters and target standard structure data are input into a target rendering template, and the target document block in a target display scene is rendered to obtain a target rendering result.

[0066] In an exemplary embodiment of the present invention, Figure 4 It can be seen that when the target document block is a complex document block, inputting the target rendering parameters and the target standard structure data into the target rendering template, and rendering the target document block in the target display scene to obtain the target rendering result may include steps 410 to 440, and each step will be described below: In step 410, the target rendering parameters and the target standard structure data are input into the target rendering template, and the target document block in the target display scene is rendered to obtain the target rendering result. The template engine is used to render and execute the basic document blocks and other dependent basic document blocks of the complex document block in the target display scene in turn to obtain the rendering code of the basic document block and the rendering code of other dependent basic document blocks.

[0067] In step 420, the target dependency mode of the complex document block under the basic document block on other basic document blocks is determined.

[0068] In step 430, the rendering code of the target document block is obtained based on the rendering code of the basic document block, the target dependency mode, and the rendering codes of other dependent basic document blocks.

[0069] In step 440, a target rendering result is obtained based on the rendering code of the target document block.

[0070] In one embodiment, the target rendering parameters and the target standard structure data can be input into the target rendering template, and the target document block in the target display scenario is rendered to obtain the target rendering result. Through the template engine, such as the FreeMarker template, the basic document block and other basic document blocks on which the complex document block depends in the target display scenario are rendered and executed in sequence to obtain the rendering code of the basic document block and the rendering code of other basic document blocks on which it depends.

[0071] Furthermore, the target dependency mode of the complex document block under the basic document block, such as the combination dependency mode and the reference dependency mode, can be determined. Then, based on the rendering code of the basic document block, the target dependency mode, and the rendering code of other dependent basic document blocks, the rendering code of the target document block is obtained, and finally, based on the rendering code of the target document block, the target rendering result is obtained.

[0072] In another embodiment, the code sequence may be executed sequentially. When the reference of document block 1 (corresponding to other basic document blocks it depends on) is executed, the HTML code of document block 1 after rendering will be obtained in sequence according to the execution process of the basic document block. Finally, all references of document blocks and other non-document block reference codes are executed, and finally the HTML code of the complex document block after rendering (corresponding to the rendering code of the target document block) is obtained. Then, based on the rendering code of the target document block, the target rendering result is obtained.

[0073] Figure 5 It is a flow chart of the present invention for unitizing a data set to be displayed to obtain a plurality of document blocks.

[0074] The following will be combined Figure 5The process of unitizing the data set to be displayed to obtain multiple document blocks is described.

[0075] In an exemplary embodiment of the present invention, Figure 5 It can be known that unitizing the data set to be displayed to obtain multiple document blocks may include steps 510 to 530, and each step will be described below.

[0076] In step 510, the data to be displayed in the data set to be displayed is split according to the minimum business operation granularity to obtain split display data.

[0077] In step 520, the display requirements of each preset display scene are determined.

[0078] In step 530, based on the display requirements of each preset display scenario, the split display data is merged to obtain document blocks in each preset display scenario.

[0079] In one embodiment, the data to be displayed in the data set to be displayed can be split according to the minimum business operation granularity to obtain split display data. Continuing to use the merchant management system as an example, data with the same business meaning can be split according to the minimum business meaning principle (that is, according to the minimum business operation granularity). For example, although the quality guarantee deposit collection and the quality guarantee deposit refund are both related to the quality guarantee deposit, they need to be split into two split display data according to the minimum business meaning principle.

[0080] Furthermore, the display requirements of each preset display scene are determined, and based on the display requirements of each preset display scene, the split display data are merged to obtain document blocks in each preset display scene.

[0081] Continuing to use the embodiment described above as an example for explanation, the split display data can be reasonably merged according to the actual business display demands (corresponding to the display requirements of each preset display scenario). For example, when a franchisee moves in, the quality deposit collection is presented to the brand owner, and when a franchisee reduces a store, the quality deposit refund is presented to the brand owner. During the franchisee entity change process, the quality deposit collection and refund are presented to the brand owner. Taking into account the display demands, the quality deposit collection and refund are merged into one data unit, thereby obtaining a document block under the preset display scenario. In this embodiment, all the data to be presented are divided into multiple document blocks through business combing, so that the content that needs to be visualized can be displayed flexibly and at low cost.

[0082] According to the foregoing description, the data visualization display method provided by the present invention pre-unitizes the data set to be displayed to obtain multiple document blocks; upon receiving a display instruction for displaying data in a target display scenario, determines the target standard structure data of the target document block corresponding to the target display scenario; determines the target rendering parameters corresponding to the target display scenario, and determines the target rendering template corresponding to the target display scenario; inputs the target rendering parameters and the target standard structure data into the target rendering template, renders the target document block in the target display scenario to obtain the target rendering result, and performs visualization based on the target rendering result. The display instruction for displaying data in any target display scenario is realized, and data can be visualized efficiently and at low cost.

[0083] The data visualization display device provided by the present invention is described below. The data visualization display device described below and the data visualization display method described above can be referenced to each other.

[0084] Figure 6 It is a structural schematic diagram of the data visualization display device provided by the present invention.

[0085] The following will be combined Figure 6 The structure of the data visualization display device provided by the present invention is described.

[0086] In an exemplary embodiment of the present invention, Figure 6 It can be seen that the data visualization display device may include a preprocessing module 610, a receiving module 620, a determining module 630, and a rendering module 640. Each module will be introduced below.

[0087] The preprocessing module 610 may be configured to perform unit processing on the data set to be displayed in advance to obtain a plurality of document blocks, wherein the data set to be displayed includes a plurality of data to be displayed; each document block is a display unit for visually displaying the data to be displayed in a preset display scenario; The receiving module 620 may be configured to determine target standard structure data of a target document block corresponding to the target display scenario when receiving a display instruction for displaying data in a target display scenario, wherein the target standard structure data is parameter data about a target display standard structure, and the target display standard structure is used to characterize a display structure of the target document block in a visual display; The determination module 630 may be configured to determine a target rendering parameter corresponding to the target display scene, and to determine a target rendering template corresponding to the target display scene, wherein the target rendering parameter is used to control a visualization display effect, and the target rendering parameter is determined according to a display requirement of the target display scene; the target rendering template is a visualization display template of the target standard structure data; The rendering module 640 may be configured to input the target rendering parameters and the target standard structure data into the target rendering template, render the target document block in the target display scene to obtain a target rendering result, and perform visual display based on the target rendering result.

[0088] In an exemplary embodiment of the present invention, the receiving module 620 may also be configured to: Configuring document block configuration information for each of the document blocks, wherein the document block configuration information at least includes a display standard structure, rendering parameters, and a rendering template of the document block in a preset scenario; The receiving module 620 may adopt the following method to determine the target standard structure data corresponding to the target display scene when receiving the display instruction for displaying data in the target display scene: In case of receiving a display instruction for displaying data in a target display scenario, determining a target display standard structure of a target document block corresponding to the target display scenario based on the display standard structure of the document block in a preset scenario included in the document block configuration information; Based on the target presentation standard structure and the target presentation scenario, target standard structure data of a target document block corresponding to the target presentation scenario is determined.

[0089] In an exemplary embodiment of the present invention, the determination module 630 may determine the target rendering parameters corresponding to the target presentation scene and determine the target rendering template corresponding to the target presentation scene in the following manner: Determining target rendering parameters corresponding to the target presentation scene based on the rendering parameters of the document block under the preset scene included in the document block configuration information; Based on the rendering template of the document block under the preset scenario included in the document block configuration information, a target rendering template corresponding to the target presentation scenario is determined.

[0090] In an exemplary embodiment of the present invention, the document block includes a basic document block, wherein the basic document block is a document block that does not need to rely on other document blocks; when the document block is the basic document block, the receiving module 620 can determine the target standard structure data of the target document block corresponding to the target display scenario based on the target display standard structure and the target display scenario in the following manner: Based on the target display standard structure, determining a data filling method that matches the target display standard structure; Based on the target display scene, determining scene data information corresponding to the target display scene, wherein the scene data information is description information for characterizing the target display scene; Based on the scene data information and the data filling method, target standard structure data of the basic document block is determined.

[0091] In an exemplary embodiment of the present invention, the document block includes a complex document block, wherein the complex document block is a document block that needs to be formed under a basic document block and depends on other basic document blocks; when the document block is the complex document block, the receiving module 620 may also be configured to: Based on the scene data information, determining first target standard structure data of a basic document block in the complex document block that matches the scene data information and second target standard structure data of other dependent basic document blocks; Based on the first target standard structure data and the second target standard structure data, target standard structure data of the complex document block is determined.

[0092] In an exemplary embodiment of the present invention, when the target document block is a basic document block, the rendering module 640 may input the target rendering parameters and the target standard structure data into the target rendering template, and render the target document block in the target display scene to obtain a target rendering result in the following manner: Inputting the target rendering parameters and the target standard structure data into the target rendering template, and rendering and executing the basic document block under the target display scene through the template engine to obtain the rendering code of the basic document block; Based on the rendering code of the basic document block, a target rendering result is obtained.

[0093] In an exemplary embodiment of the present invention, when the target document block is a complex document block, the rendering module 640 may input the target rendering parameters and the target standard structure data into the target rendering template, and render the target document block in the target display scene to obtain a target rendering result in the following manner: Input the target rendering parameters and the target standard structure data into the target rendering template, and sequentially render and execute the basic document blocks and other dependent basic document blocks of the complex document block in the target display scenario through the template engine to obtain the rendering code of the basic document block and the rendering code of other dependent basic document blocks; Determine the target dependency mode of the complex document block on other basic document blocks under the basic document block; Based on the rendering code of the basic document block, the target dependency mode, and the rendering codes of other dependent basic document blocks, the rendering code of the target document block is obtained; Based on the rendering code of the target document block, a target rendering result is obtained.

[0094] In an exemplary embodiment of the present invention, the pre-processing module 610 may implement unitization of the data set to be displayed to obtain multiple document blocks in the following manner: Splitting the data to be displayed in the data set to be displayed according to the minimum business operation granularity to obtain split display data; Determine the display requirements of each preset display scene; Based on the display requirements of each of the preset display scenarios, the split display data are merged to obtain document blocks under each of the preset display scenarios.

[0095] Figure 7 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 7As shown, the electronic device may include: a processor (processor) 710 , a communication interface (Communications Interface) 720 , a memory (memory) 730 and a communication bus 740 , wherein the processor 710 , the communication interface 720 , and the memory 730 communicate with each other through the communication bus 740 . The processor 710 may call the logic instructions in the memory 730 to execute a data visualization display method, the method comprising: pre-unitizing a data set to be displayed to obtain a plurality of document blocks, wherein the data set to be displayed includes a plurality of data to be displayed; each of the document blocks is a display unit for displaying the data to be displayed in a preset display scenario; in the case of receiving a display instruction for displaying data in a target display scenario, determining target standard structure data of a target document block corresponding to the target display scenario, wherein the target standard structure data is parameter data about a target display standard structure, and the target display standard structure is used to characterize the display structure of the target document block in the visualization display; determining a target rendering parameter corresponding to the target display scenario, and determining a target rendering template corresponding to the target display scenario, wherein the target rendering parameter is used to control the visualization display effect, and the target rendering parameter is determined according to the display requirements of the target display scenario; the target rendering template is a visualization display template of the target standard structure data; inputting the target rendering parameter and the target standard structure data into the target rendering template, rendering the target document block in the target display scenario to obtain a target rendering result, and performing visualization display based on the target rendering result.

[0096] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0097] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the data visualization display method provided by the above methods, the method including: pre-unitizing the data set to be displayed to obtain a plurality of document blocks, wherein the data set to be displayed includes a plurality of data to be displayed; each of the document blocks is a display unit for performing data visualization display of the data to be displayed under a preset display scenario; when receiving a display instruction for displaying data under a target display scenario, determining target standard structure data of a target document block corresponding to the target display scenario, wherein the target standard The structural data is parameter data about the target display standard structure, and the target display standard structure is used to characterize the display structure of the target document block in the visual display; determine the target rendering parameters corresponding to the target display scene, and determine the target rendering template corresponding to the target display scene, wherein the target rendering parameters are used to control the visual display effect, and the target rendering parameters are determined according to the display requirements of the target display scene; the target rendering template is a visual display template of the target standard structural data; input the target rendering parameters and the target standard structural data into the target rendering template, render the target document block under the target display scene to obtain the target rendering result, and perform visual display based on the target rendering result.

[0098] On the other hand, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it is implemented to execute the data visualization display method provided by the above methods, the method comprising: pre-unitizing a data set to be displayed to obtain a plurality of document blocks, wherein the data set to be displayed includes a plurality of data to be displayed; each of the document blocks is a display unit for visually displaying the data to be displayed in a preset display scene; when receiving a display instruction for displaying data in a target display scene, determining target standard structure data of a target document block corresponding to the target display scene, wherein the target standard structure data is parameter data about a target display standard structure, and the target display standard structure is used to characterize the display structure of the target document block in the visual display; determining a target rendering parameter corresponding to the target display scene, and determining a target rendering template corresponding to the target display scene, wherein the target rendering parameter is used to control the visual display effect, and the target rendering parameter is determined according to the display requirements of the target display scene; the target rendering template is a visual display template of the target standard structure data; The target rendering parameters and the target standard structure data are input into the target rendering template, the target document block in the target display scene is rendered to obtain a target rendering result, and a visual display is performed based on the target rendering result.

[0099] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0100] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0101] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data visualization display method, characterized in that: The method comprises: The data set to be displayed is pre-unitized to obtain a plurality of document blocks, wherein the data set to be displayed includes a plurality of data to be displayed; each document block is a display unit for visually displaying the data to be displayed in a preset display scenario; In the case of receiving a display instruction for displaying data in a target display scenario, determining target standard structure data of a target document block corresponding to the target display scenario, wherein the target standard structure data is parameter data about a target display standard structure, and the target display standard structure is used to characterize a display structure of the target document block in a visual display; Determine a target rendering parameter corresponding to the target display scene, and determine a target rendering template corresponding to the target display scene, wherein the target rendering parameter is used to control a visualization display effect, and the target rendering parameter is determined according to a display requirement of the target display scene; the target rendering template is a visualization display template of the target standard structure data; The target rendering parameters and the target standard structure data are input into the target rendering template, the target document block in the target display scene is rendered to obtain a target rendering result, and a visual display is performed based on the target rendering result.

2. The data visualization display method according to claim 1, characterized in that: When receiving a display instruction for displaying data in a target display scenario, before determining target standard structure data of a target document block corresponding to the target display scenario, the method further includes: Configuring document block configuration information for each of the document blocks, wherein the document block configuration information at least includes a display standard structure, rendering parameters, and a rendering template of the document block in a preset scenario; The step of determining target standard structure data of a target document block corresponding to the target display scenario upon receiving a display instruction for displaying data in the target display scenario specifically includes: In case of receiving a display instruction for displaying data in a target display scenario, determining a target display standard structure of a target document block corresponding to the target display scenario based on the display standard structure of the document block in a preset scenario included in the document block configuration information; Based on the target presentation standard structure and the target presentation scenario, target standard structure data of a target document block corresponding to the target presentation scenario is determined.

3. The data visualization display method according to claim 2, characterized in that: The determining of the target rendering parameters corresponding to the target display scene and the determining of the target rendering template corresponding to the target display scene specifically include: Determining target rendering parameters corresponding to the target presentation scene based on the rendering parameters of the document block under the preset scene included in the document block configuration information; Based on the rendering template of the document block under the preset scenario included in the document block configuration information, a target rendering template corresponding to the target presentation scenario is determined.

4. The data visualization display method according to claim 2, characterized in that: The document block includes a basic document block, wherein the basic document block is a document block that does not need to rely on other document blocks; when the document block is the basic document block, determining the target standard structure data of the target document block corresponding to the target display scenario based on the target display standard structure and the target display scenario specifically includes: Based on the target display standard structure, determining a data filling method that matches the target display standard structure; Based on the target display scene, determining scene data information corresponding to the target display scene, wherein the scene data information is description information for characterizing the target display scene; Based on the scene data information and the data filling method, target standard structure data of the basic document block is determined.

5. The data visualization display method according to claim 4, characterized in that: The document block includes a complex document block, wherein the complex document block is a document block that needs to be formed under a basic document block and depends on other basic document blocks; when the document block is the complex document block, the method further includes: Based on the scene data information, determining first target standard structure data of a basic document block in the complex document block that matches the scene data information and second target standard structure data of other dependent basic document blocks; Based on the first target standard structure data and the second target standard structure data, target standard structure data of the complex document block is determined.

6. The data visualization display method according to claim 1, characterized in that: In the case where the target document block is a basic document block, inputting the target rendering parameters and the target standard structure data into the target rendering template, and rendering the target document block in the target display scene to obtain a target rendering result specifically includes: Inputting the target rendering parameters and the target standard structure data into the target rendering template, and rendering and executing the basic document block under the target display scene through the template engine to obtain the rendering code of the basic document block; Based on the rendering code of the basic document block, a target rendering result is obtained.

7. The data visualization display method according to claim 1, characterized in that: In the case where the target document block is a complex document block, inputting the target rendering parameters and the target standard structure data into the target rendering template, and rendering the target document block in the target display scene to obtain a target rendering result specifically includes: Input the target rendering parameters and the target standard structure data into the target rendering template, and sequentially render and execute the basic document blocks and other dependent basic document blocks of the complex document block in the target display scenario through the template engine to obtain the rendering code of the basic document block and the rendering code of other dependent basic document blocks; Determine a target dependency mode in which the complex document block depends on other basic document blocks under the basic document block; Based on the rendering code of the basic document block, the target dependency mode, and the rendering codes of other dependent basic document blocks, the rendering code of the target document block is obtained; Based on the rendering code of the target document block, a target rendering result is obtained.

8. The data visualization display method according to claim 1, characterized in that: Unitize the data set to be displayed to obtain multiple document blocks, which can be achieved in the following way: Splitting the data to be displayed in the data set to be displayed according to the minimum business operation granularity to obtain split display data; Determine the display requirements of each preset display scene; Based on the display requirements of each of the preset display scenarios, the split display data are merged to obtain document blocks under each of the preset display scenarios.

9. A data visualization display device, characterized in that: The device comprises: A preprocessing module, used for pre-unitizing the data set to be displayed to obtain a plurality of document blocks, wherein the data set to be displayed includes a plurality of data to be displayed; each document block is a display unit for visually displaying the data to be displayed in a preset display scenario; A receiving module, configured to determine target standard structure data of a target document block corresponding to the target display scenario upon receiving a display instruction for displaying data in a target display scenario, wherein the target standard structure data is parameter data about a target display standard structure, and the target display standard structure is used to characterize a display structure of the target document block in a visual display; A determination module, used to determine target rendering parameters corresponding to the target display scene, and to determine a target rendering template corresponding to the target display scene, wherein the target rendering parameters are used to control a visual display effect, and the target rendering parameters are determined according to the display requirements of the target display scene; the target rendering template is a visual display template of the target standard structure data; A rendering module is used to input the target rendering parameters and the target standard structure data into the target rendering template, render the target document block in the target display scene to obtain a target rendering result, and perform visual display based on the target rendering result.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the data visualization display method according to any one of claims 1 to 8 is implemented.

11. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data visualization method according to any one of claims 1 to 8 is implemented.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the data visualization method according to any one of claims 1 to 8 is implemented.