Method and device for generating graph-containing visual report
By generating data exchange format files and component splicing technology, it solves the problems of code redundancy and error risk in the development of graphic visual reports, realizes the rapid generation of high-quality visual reports, reduces the development workload and supports the use of non-R&D personnel.
Patent Information
- Application Number
- CN202410701594.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-08-23
AI Technical Summary
When generating graphic visualization reports, the existing technology needs to frequently introduce tables and graphic components, resulting in heavy development workload, high risk of coding errors, and serious code redundancy.
By generating data exchange format files, combining basic components of graphics and tables, performing logical operations and splicing, we can automatically generate visual reports with graphics, provide template JSON configuration files for personalized modification, and use the command line to generate multiple graphics-rich reports with one click. HTML interface.
It reduces development workload, reduces coding risks caused by code redundancy, improves code quality, and allows non-R&D personnel to quickly build template pages for business display.
Smart Images

Figure CN118536484A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence and can be used in the financial field. Specifically, it is a method and device for generating a graphic visualization report. Background Art
[0002] In the Internet context of the big data era, it is common to use data and graphics to interpret the product operation status over a period of time. In today's business scenarios, there is a great demand for intuitively displaying report data through data and graphics. The current basic solution in the industry is to add visual graphics modules one by one to each basic table to write pages.
[0003] However, to generate a graphic visualization report, it is necessary to introduce table-related components and corresponding graphic module components multiple times on different report pages. During the development process, repeated patchwork coding is required, which increases the development workload and the risk of manual coding errors.
[0004] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section. Summary of the invention
[0005] In view of the problems in the prior art, the present application provides a method and device for generating a graphical visualization report, which can generate a graphical visualization report so that it can be directly applied or provided to developers for code processing.
[0006] In order to solve the above technical problems, this application provides the following technical solutions:
[0007] In a first aspect, the present application provides a method for generating a graphical visualization report, comprising:
[0008] Generate data exchange format files for the data required for reports based on business scenario requirements;
[0009] Calculate and splice the data required for the report in the data exchange format file to obtain a table component;
[0010] The table component is used to generate a graphical visualization report.
[0011] Furthermore, the data exchange format file for generating data required for the report according to the business scenario requirements includes:
[0012] Determine the table header, table body and data content according to the business scenario requirements;
[0013] According to the table header, table body and data content, a data exchange format file of the data required for the report is generated using the basic graphic component.
[0014] Furthermore, the table component includes a graphic component; the calculation and splicing of the data required for the report in the data exchange format file to obtain the table component includes:
[0015] Using a graphics basic component to receive graphics configuration parameters in the data exchange format file;
[0016] The graphic component corresponding to the data exchange format file is generated according to the graphic configuration parameters.
[0017] Furthermore, the data required for the report in the data exchange format file is operated and spliced to obtain a table component, including:
[0018] Using a table basic component to receive table configuration parameters in the data exchange format file;
[0019] Deeply traverse the data required for the report according to the table configuration parameters;
[0020] The data required for the report obtained by traversal is calculated and spliced to obtain the table component.
[0021] Furthermore, the use of the table component to generate a graphical visualization report includes:
[0022] Read table generation commands;
[0023] The output multiple table components are filled into the HTML page according to the table generation command to obtain the graphic visualization report.
[0024] Furthermore, after generating a graphical visualization report using the table component, the method further includes:
[0025] Make coding modifications on the generated report with graphical visualization.
[0026] In a second aspect, the present application provides a device for generating a graphical visualization report, comprising:
[0027] A format file generation unit, used to generate a data exchange format file of data required for the report according to business scenario requirements;
[0028] A table component generating unit is used to perform calculations and splicing on the data required for the report in the data exchange format file to obtain a table component;
[0029] A visual report generation unit is used to generate a visual report containing graphics using the table component.
[0030] Furthermore, the format file generating unit includes:
[0031] A table and data determination module, used to determine the table header, table body and data content according to the business scenario requirements;
[0032] The format file generation module is used to generate a data exchange format file of the data required for the report using the basic graphic component according to the table header, table body and data content.
[0033] Furthermore, the table component includes a graphic component; the table component generating unit includes:
[0034] A graphics parameter receiving module, used for receiving the graphics configuration parameters in the data exchange format file by using the graphics basic component;
[0035] The graphic component generation module is used to generate the graphic component corresponding to the data exchange format file according to the graphic configuration parameters.
[0036] Furthermore, the table component generating unit includes:
[0037] A table parameter receiving module, used for receiving table configuration parameters in the data exchange format file by using a table basic component;
[0038] A data traversal module, used for deeply traversing the data required for the report according to the table configuration parameters;
[0039] The table component generation module is used to perform calculations and splicing on the data required for the report obtained through traversal to obtain the table component.
[0040] Furthermore, the visual report generating unit includes:
[0041] A generation command reading module is used to read table generation commands;
[0042] The visual report filling module is used to fill the output multiple table components into the HTML page according to the table generation command to obtain the graphical visualization report.
[0043] Furthermore, the visual report generating unit further includes:
[0044] Make coding modifications on the generated report with graphical visualization.
[0045] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for generating a graphical visualization report when executing the program.
[0046] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for generating a graphical visualization report.
[0047] In a fifth aspect, the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the method for generating a graphical visualization report.
[0048] In response to the problems in the prior art, the method and device for generating a graphical visualization report provided in the present application can integrate business scenarios, perform personalized modifications based on the provided template JSON configuration file, and customize multiple table configuration units and graphic configuration units at the same time; read the configured JSON file for assembly, and generate multiple graphic-rich report HTML interfaces with one click through the command line; reduce the development workload and the coding risks caused by code redundancy, and also provide non-R&D personnel with a quick way to build template pages for business display. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only 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.
[0050] Figure 1 A flowchart of a method for generating a graphical visualization report in an embodiment of the present application;
[0051] Figure 2 A flowchart for generating a data exchange format file in an embodiment of the present application;
[0052] Figure 3 One of the flow charts for obtaining a table component in an embodiment of the present application;
[0053] Figure 4 This is the second flowchart of obtaining the table component in the embodiment of the present application;
[0054] Figure 5 A flowchart containing a graphical visualization report is generated in the embodiment of the present application;
[0055] Figure 6 It is a structural diagram of a device for generating a graphical visualization report in an embodiment of the present application;
[0056] Figure 7 This is a structural diagram of a format file generating unit in an embodiment of the present application;
[0057] Figure 8 This is one of the structural diagrams of the table component generation unit in the embodiment of the present application;
[0058] Fig. 9 This is the second structural diagram of the table component generation unit in the embodiment of the present application;
[0059] Fig.10 This is a structural diagram of a visual report generation unit in an embodiment of the present application;
[0060] Fig.11 A schematic diagram of the structure of an electronic device in an embodiment of the present application;
[0061] Fig.12 Schematic diagram of the template JSON file configuration in the embodiment of the present application. DETAILED DESCRIPTION
[0062] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0063] The information collected in the technical solution of this application is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0064] Provide users with corresponding operation entrances for them to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.
[0065] It should be noted that the method for generating a graphic visualization report provided in the embodiment of the present invention can be used in the financial field, and can also be used in any technical field other than the financial field. The embodiment of the present invention does not limit the application field of the method for generating a graphic visualization report.
[0066] In one embodiment, see Figure 1 In order to generate a report containing graphic visualization so that it can be directly applied or provided to developers for code processing, the present application provides a method for generating a report containing graphic visualization, including:
[0067] S101: Generate a data exchange format file of data required for the report according to business scenario requirements;
[0068] S102: Calculate and splice the data required for the report in the data exchange format file to obtain a table component;
[0069] S103: Generate a graphical visualization report using the table component.
[0070] It is understandable that with the improvement of user experience requirements, intuitive and graphic-rich visual report display functions are in great demand in today's business scenarios. In the process of business development, the introduction of table-related components and corresponding graphic module components to the report page many times often requires repeated report piecing together processes, serious code redundancy, and increased risk of coding errors. The present application provides a device that can generate multiple related visual reports through flexible configuration items, which can be operated with a simple one-click command line, which can not only simplify the workload of developers, but also reduce the coding risks caused by code redundancy and improve code quality. At the same time, the writing of table components and graphic module codes in the report are based on the same set of core codes, which can reduce the testing workload.
[0071] Specifically, the present invention uses JSON files (also known as data exchange format files) to configure the header, body and numerical content of the required report, combines with graphic basic components, performs certain logical operations and splicing, and thus generates multiple complete template HTML interfaces (.vue files). The template can be used directly or processed and encoded according to the needs of developers, so as to conveniently generate visual reports and facilitate business statistical data analysis.
[0072] From the above description, it can be seen that the method for generating a graphical visualization report provided in this application can integrate business scenarios, perform personalized modifications based on the provided template JSON configuration file, and customize multiple table configuration units and graphic configuration units at the same time; read the configured JSON file for assembly, and generate multiple graphic-rich report HTML interfaces with one click through the command line; reduce development workload, reduce coding risks caused by code redundancy, and also provide non-R&D personnel with the ability to quickly build template pages for business display.
[0073] In one embodiment, see Figure 2 , the data exchange format file for generating the data required for the report according to the business scenario requirements includes:
[0074] S201: Determine the table header, table body and data content according to the business scenario requirements;
[0075] S202: Generate a data exchange format file of data required for the report using basic graphic components according to the table header, table body and data content.
[0076] It is understandable that in this step, the JSON file of the content required by the template page is configured according to business needs. For example, if the business requirement is to generate a personnel relationship topology diagram, the display method can be a tree or a relationship diagram, then a one-to-many or one-to-one correspondence can be configured in the JSON file. Each configuration item has a separate unique ID. For example, under the configured table "Personnel Relationship" ID element, configure the corresponding basic graphic component (relationship graph) by setting a unique ID subnode.
[0077] Fig.12 It is a schematic diagram of the configuration file template. You can selectively add or modify the report header, body, and numerical content related objects. Configuration file objects include: graphic configuration units (for example, pie charts, bar charts, and radar charts, etc.), and you can also configure different chart styles and colors by introducing open source basic graphic components. Table configuration units can be customized according to business scenarios.
[0078] Combine table basic components and open source graphic components to perform logical operations and splicing on the configured JSON files.
[0079] From the above description, it can be seen that the method for generating a report containing graphic visualization provided in the present application can generate a data exchange format file of the data required for the report according to business scenario requirements.
[0080] In one embodiment, see Figure 3 , the table component includes a graphic component; the data required for the report in the data exchange format file is operated and spliced to obtain the table component, including:
[0081] S301: Receive the graphics configuration parameters in the data exchange format file using a graphics basic component;
[0082] S302: Generate the graphic component corresponding to the data exchange format file according to the graphic configuration parameters.
[0083] It can be understood that, similar to the previous embodiment, the parameters of the corresponding basic graphics are configured by setting a unique ID subnode. Through the parameters of the graphics configuration unit configured in the JSON file (graphic type, canvas size, etc., graphics data related configuration, parameters, etc.), the open source graphics component receives the corresponding parameters, performs a deep traversal through the basic loop FOR method, and outputs the graphics configuration unit component B.
[0084] It can be seen from the above description that the method for generating a report containing graphic visualization provided in the present application can perform calculations and splicing on the data required for the report in the data exchange format file to obtain a table component.
[0085] In one embodiment, see Figure 4, the data required for the report in the data exchange format file is operated and spliced to obtain a table component, including:
[0086] S401: using a table basic component to receive table configuration parameters in the data exchange format file;
[0087] S402: deeply traverse the data required for the report according to the table configuration parameters;
[0088] S403: Calculate and splice the data required for the report obtained through the traversal to obtain the table component.
[0089] It is understandable that since IDs must be unique in HTML documents, the deep traversal algorithm can be used to find their one-to-one correspondence. Through the parameters of the table configuration unit configured in the JSON file (table header text configuration, pager configuration, custom related parameter configuration, etc.), the table basic component receives the corresponding parameters and the component B generated in the previous step corresponding to the multiple table content configurations, performs a deep traversal operation and splices the basic loop FOR method to output the table component A.
[0090] It can be seen from the above description that the method for generating a report containing graphic visualization provided in the present application can perform calculations and splicing on the data required for the report in the data exchange format file to obtain a table component.
[0091] In one embodiment, see Figure 5 , the step of using the table component to generate a graphical visualization report includes:
[0092] S501: Read table generation command;
[0093] S502: Filling the outputted multiple table components into the HTML page according to the table generation command to obtain the graphic visualization report.
[0094] It is understandable that the output of multiple A components is sequentially filled into the HTML in the form of command line output (customizable as: npm run templeChart, etc.) Tag to generate a complete template HTML interface (.vue file).
[0095] It can be seen from the above description that the method for generating a graphical visualization report provided in the present application can generate a graphical visualization report using the table component.
[0096] In one embodiment, after the table component is used to generate a visualization report containing graphics, the method further includes: performing coding modification on the generated visualization report containing graphics.
[0097] It is understandable that when using it, developers only need to use a one-click customized command line to directly obtain a graphic-rich visual report on the generated template HTML interface (.vue file). Furthermore, coding adjustments can be made on the generated visual report containing graphics. Among them, when using it, users only need to modify the configuration by customizing the configuration file template, and use the one-click command line to trigger to obtain the template HTML interface (.vue file).
[0098] It can be seen from the above description that the method for generating a report containing graphic visualization provided by the present application can perform coding modification on the generated report containing graphic visualization.
[0099] Based on the same inventive concept, the embodiments of the present application also provide a device for generating a report containing graphic visualization, which can be used to implement the method described in the above embodiments, as described in the following embodiments. Since the principle of solving the problem by the device for generating a report containing graphic visualization is similar to that of the method for generating a report containing graphic visualization, the implementation of the device for generating a report containing graphic visualization can refer to the implementation of the method for determining the software performance benchmark, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0100] In one embodiment, see Figure 6 In order to generate a graphic visualization report so that it can be directly applied or provided to developers for code processing, the present application provides a device for generating a graphic visualization report, including: a format file generation unit 601, a table component generation unit 602 and a visual report generation unit 603.
[0101] A format file generating unit 601 is used to generate a data exchange format file of data required for a report according to business scenario requirements;
[0102] The table component generating unit 602 is used to perform calculations and splicing on the data required for the report in the data exchange format file to obtain a table component;
[0103] The visual report generation unit 603 is used to generate a visual report containing graphics using the table component.
[0104] In one embodiment, see Figure 7 The format file generating unit 601 includes: a table and data determining module 701 and a format file generating module 702.
[0105] Table and data determination module 701, used to determine the table header, table body and data content according to the business scenario requirements;
[0106] The format file generating module 702 is used to generate a data exchange format file of the data required for the report using the basic graphic component according to the table header, table body and data content.
[0107] In one embodiment, see Figure 8 , the table component includes a graphic component; the table component generation unit 602 includes: a graphic parameter receiving module 801 and a graphic component generation module 802.
[0108] A graphics parameter receiving module 801 is used to receive the graphics configuration parameters in the data exchange format file using a graphics basic component;
[0109] The graphic component generating module 802 is used to generate the graphic component corresponding to the data exchange format file according to the graphic configuration parameters.
[0110] In one embodiment, see Fig. 9 The table component generating unit 602 includes: a table parameter receiving module 901, a data traversal module 902 and a table component generating module 903.
[0111] The table parameter receiving module 901 is used to receive the table configuration parameters in the data exchange format file by using the table basic component;
[0112] A data traversal module 902, used for deeply traversing the data required for the report according to the table configuration parameters;
[0113] The table component generation module 903 is used to perform calculations and splicing on the data required for the report obtained through traversal to obtain the table component.
[0114] In one embodiment, see Fig.10 The visual report generation unit 603 includes: a generation command reading module 1001 and a visual report filling module 1002.
[0115] A generation command reading module 1001 is used to read a table generation command;
[0116] The visual report filling module 1002 is used to fill the output multiple table components into the HTML page according to the table generation command to obtain the visual report containing graphics.
[0117] Furthermore, the visual report generating unit further includes:
[0118] Make coding modifications on the generated report with graphical visualization.
[0119] From the hardware level, in order to generate a report containing graphic visualization so that it can be directly applied or provided to developers for code processing, the present application provides an embodiment of an electronic device for implementing all or part of the content of the method for generating a report containing graphic visualization, and the electronic device specifically includes the following content:
[0120] Processor, memory, communication interface and bus; wherein the processor, memory and communication interface communicate with each other through the bus; the communication interface is used to realize information transmission between the device for generating graphic visualization reports and related devices such as core business systems, user terminals and related databases; the logic controller can be a desktop computer, a tablet computer and a mobile terminal, etc., but the present embodiment is not limited thereto. In the present embodiment, the logic controller can be implemented with reference to the embodiment of the method for generating graphic visualization reports and the embodiment of the device for generating graphic visualization reports in the embodiment, and the contents thereof are incorporated herein, and the repeated parts are not repeated.
[0121] It is understandable that the user terminal may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a personal digital assistant (PDA), a vehicle-mounted device, a smart wearable device, etc. Among them, the smart wearable device may include smart glasses, a smart watch, a smart bracelet, etc.
[0122] In practical applications, the part of the method for generating a graphical visualization report can be executed on the electronic device side as described above, or all operations can be completed in the client device. The selection can be made based on the processing capability of the client device and the limitations of the user's usage scenario. This application does not limit this. If all operations are completed in the client device, the client device may also include a processor.
[0123] The client device may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission with the server. The server may include a server on the task scheduling center side, and other implementation scenarios may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, or a server cluster consisting of multiple servers, or a server structure of a distributed device.
[0124] Fig.11 FIG. 9 is a schematic block diagram of the system structure of the electronic device 9600 according to an embodiment of the present application. Fig.11 As shown, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. It is worth noting that Fig.11 is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.
[0125] In one embodiment, the function of the method for generating a report containing graphic visualization can be integrated into the central processing unit 9100. The central processing unit 9100 can be configured to perform the following control:
[0126] S101: Generate a data exchange format file of data required for the report according to business scenario requirements;
[0127] S102: Calculate and splice the data required for the report in the data exchange format file to obtain a table component;
[0128] S103: Generate a graphical visualization report using the table component.
[0129] From the above description, it can be seen that the method for generating a graphical visualization report provided in this application can integrate business scenarios, perform personalized modifications based on the provided template JSON configuration file, and customize multiple table configuration units and graphic configuration units at the same time; read the configured JSON file for assembly, and generate multiple graphic-rich report HTML interfaces with one click through the command line; reduce development workload, reduce coding risks caused by code redundancy, and also provide non-R&D personnel with the ability to quickly build template pages for business display.
[0130] In another embodiment, the device for generating a graphical visualization report can be configured separately from the central processing unit 9100. For example, the device for generating a graphical visualization report of the data composite transmission device can be configured as a chip connected to the central processing unit 9100, and the function of the method for generating a graphical visualization report can be realized through the control of the central processing unit.
[0131] like Fig.11 As shown, the electronic device 9600 may also include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily have to include Fig.11 In addition, the electronic device 9600 may also include Fig.11 For components not shown, reference may be made to the prior art.
[0132] like Fig.11 As shown, the central processing unit 9100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor device and / or logic device. The central processing unit 9100 receives input and controls the operation of various components of the electronic device 9600.
[0133] The memory 9140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 9100 may execute the program stored in the memory 9140 to implement information storage or processing, etc.
[0134] The input unit 9120 provides input to the central processing unit 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used to display display objects such as images and texts. The display may be, for example, an LCD display, but is not limited thereto.
[0135] The memory 9140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 9600 through the central processor 9100.
[0136] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).
[0137] The communication module 9110 is a transmitter / receiver 9110 that sends and receives signals via an antenna 9111. The communication module (transmitter / receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.
[0138] Based on different communication technologies, multiple communication modules 9110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless LAN module. The communication module (transmitter / receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide an audio output via the speaker 9131 and receive an audio input from the microphone 9132, thereby realizing a common telecommunication function. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 9130 is also coupled to the central processor 9100, so that recording can be performed on the local machine through the microphone 9132, and the sound stored on the local machine can be played through the speaker 9131.
[0139] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all steps in the method for generating a graphical visualization report in the above embodiment, where the execution subject is a server or a client. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, all steps in the method for generating a graphical visualization report in the above embodiment are implemented. For example, when the processor executes the computer program, the following steps are implemented:
[0140] S101: Generate a data exchange format file of data required for the report according to business scenario requirements;
[0141] S102: Calculate and splice the data required for the report in the data exchange format file to obtain a table component;
[0142] S103: Generate a graphical visualization report using the table component.
[0143] From the above description, it can be seen that the method for generating a graphical visualization report provided in this application can integrate business scenarios, perform personalized modifications based on the provided template JSON configuration file, and customize multiple table configuration units and graphic configuration units at the same time; read the configured JSON file for assembly, and generate multiple graphic-rich report HTML interfaces with one click through the command line; reduce development workload, reduce coding risks caused by code redundancy, and also provide non-R&D personnel with the ability to quickly build template pages for business display.
[0144] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0145] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (apparatus), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0146] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0147] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0148] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for generating a graphical visualization report, characterized in that: include: Generate data exchange format files for the data required for reports based on business scenario requirements; Calculate and splice the data required for the report in the data exchange format file to obtain a table component; The table component is used to generate a graphical visualization report.
2. The method for generating a report containing graphic visualization according to claim 1, characterized in that: The data exchange format file for generating the data required for the report according to the business scenario requirements includes: Determine the table header, table body and data content according to the business scenario requirements; According to the table header, table body and data content, a data exchange format file of the data required for the report is generated using the basic graphic component.
3. The method for generating a report containing graphic visualization according to claim 1, characterized in that: The table component includes a graphic component; the data required for the report in the data exchange format file is operated and spliced to obtain the table component, including: Using a graphics basic component to receive graphics configuration parameters in the data exchange format file; The graphic component corresponding to the data exchange format file is generated according to the graphic configuration parameters.
4. The method for generating a report containing graphic visualization according to claim 3, characterized in that: The step of computing and splicing the data required for the report in the data exchange format file to obtain a table component includes: Using a table basic component to receive table configuration parameters in the data exchange format file; Deeply traverse the data required for the report according to the table configuration parameters; The data required for the report obtained by traversal is calculated and spliced to obtain the table component.
5. The method for generating a report containing graphic visualization according to claim 1, characterized in that: The step of using the table component to generate a graphical visualization report includes: Read table generation commands; The output multiple table components are filled into the HTML page according to the table generation command to obtain the graphic visualization report.
6. The method for generating a report containing graphic visualization according to claim 1, characterized in that: After generating a graphical visualization report using the table component, the following steps are also included: Make coding modifications on the generated report with graphical visualization.
7. A device for generating a graphical visualization report, characterized in that: include: A format file generation unit, used to generate a data exchange format file of data required for the report according to business scenario requirements; A table component generating unit, used for performing calculation and splicing on the data required for the report in the data exchange format file to obtain a table component; A visual report generation unit is used to generate a visual report containing graphics using the table component.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method for generating a graphical visualization report according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for generating a report containing graphic visualization as described in any one of claims 1 to 6 are implemented.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the method for generating a graphical visualization report described in any one of claims 1 to 6 are implemented.
