CN111651966A - Data report file generation method and device and electronic equipment - Google Patents

Data report file generation method and device and electronic equipment Download PDF

Info

Publication number
CN111651966A
CN111651966A CN202010498858.0A CN202010498858A CN111651966A CN 111651966 A CN111651966 A CN 111651966A CN 202010498858 A CN202010498858 A CN 202010498858A CN 111651966 A CN111651966 A CN 111651966A
Authority
CN
China
Prior art keywords
data
generating
chart
picture
report file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010498858.0A
Other languages
Chinese (zh)
Inventor
王维
胡斌
周翔
蔡功
王锰
公慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casic Wisdom Industrial Development Co ltd
Original Assignee
Casic Wisdom Industrial Development Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casic Wisdom Industrial Development Co ltd filed Critical Casic Wisdom Industrial Development Co ltd
Priority to CN202010498858.0A priority Critical patent/CN111651966A/en
Publication of CN111651966A publication Critical patent/CN111651966A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides a data report file generation method and device and electronic equipment. The data report file generation method comprises the following steps: acquiring and storing target data at fixed time; calling a browser rendering engine according to the target data to generate a webpage comprising a chart label; and generating a data report file in a preset format corresponding to the target data according to the chart label. The embodiment of the disclosure can automatically generate the data report file of the data chart including the timing target data at regular time.

Description

Data report file generation method and device and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for generating a data report file, and an electronic device.
Background
Application systems relate to data statistics and often require statistics and data reports to be generated at specific points in time.
Because a data report with a high requirement often requires to display a visual data chart, and the visual effect of a picture automatically generated by file generation software often cannot be expected, and special effects such as shadows, halos and the like cannot be realized, the related technology often processes the data chart into a data report file through manual data acquisition, manual data chart generation and manual work. Because the generation of the data report is usually the labor at a plurality of time points, the time cost and the labor cost for generating the data report are greatly increased by frequent manual labor, and in addition, under the scene with higher real-time requirement on the data report, the data report file of real-time data and historical data cannot be provided in time by manual operation unless a large amount of labor and time are utilized.
Accordingly, there is a need for a method of automatically generating a data report including a quality-effective visual data chart.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the present disclosure is to provide a data report file generating method and a data report file generating apparatus for overcoming, at least to some extent, the problem of inefficient generation of data reports containing high quality visual data charts due to the limitations and disadvantages of the related art.
According to a first aspect of the embodiments of the present disclosure, there is provided a data report file generating method, including: acquiring and storing target data at fixed time; calling a browser rendering engine according to the target data to generate a webpage comprising a chart label; and generating a data report file in a preset format corresponding to the target data according to the chart label.
In an exemplary embodiment of the present disclosure, generating a data report file in a preset format corresponding to target data according to a chart label includes: acquiring a picture according to the chart label and generating a picture binary stream corresponding to the picture; embedding the picture binary stream into a file stream with a preset format; and generating a data report file according to the file stream.
In an exemplary embodiment of the present disclosure, acquiring a picture according to a chart label, and generating a picture binary stream corresponding to the picture includes: generating a picture according to the chart label; editing the picture based on a preset rule, wherein the editing comprises positioning and cutting; and generating a picture binary stream according to the edited picture.
In an exemplary embodiment of the present disclosure, invoking a browser rendering engine to generate a web page including a chart tag according to the target data includes: acquiring a preset chart style corresponding to target data; and calling a browser rendering engine, and generating a webpage based on a preset chart style, wherein the webpage comprises a picture which is generated based on the preset chart style and corresponds to the target data.
In an exemplary embodiment of the present disclosure, the target data includes a plurality of sets of data at a plurality of time points, and each data report file corresponds to one or more sets of data.
In an exemplary embodiment of the present disclosure, invoking a browser rendering engine to generate a web page including a chart tag according to the target data includes: and generating a plurality of webpages corresponding to one piece of target data according to a plurality of preset chart styles.
In an exemplary embodiment of the present disclosure, generating a data report file in a preset format corresponding to target data according to a chart label includes: generating a plurality of pictures corresponding to a plurality of preset chart styles according to the chart labels of the plurality of webpages; generating a plurality of picture binary streams according to the plurality of pictures; embedding a plurality of picture binary streams into a plurality of file streams in a preset format; and generating a plurality of data report files corresponding to the preset chart generation schemes according to the plurality of file streams.
According to a second aspect of the embodiments of the present disclosure, there is provided a data report file generating apparatus including: the data automatic storage module is set to acquire and store target data at regular time; the automatic graph rendering module is used for calling a browser rendering engine to generate a webpage comprising a graph label according to the target data; and the file automatic generation module is used for generating a data report file in a preset format corresponding to the target data according to the chart label.
According to a third aspect of the present disclosure, there is provided an electronic device comprising: a memory; and a processor coupled to the memory, the processor configured to perform a method as in any above based on instructions stored in the memory.
According to a fourth aspect of the disclosure, there is provided a computer readable storage medium having a program stored thereon, which when executed by a processor, performs the method of any one of the above.
According to the embodiment of the disclosure, the data report file including the high-quality data chart based on a large amount of target data can be generated at regular time by automatically acquiring and storing the data at regular time, automatically generating the data chart through the browser engine and automatically generating the data report file, so that the generation efficiency of the data report file is effectively improved, and the quality of the data chart contained in the data report file is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 is a flowchart of a data report file generation method in an exemplary embodiment of the present disclosure.
Fig. 2 is a sub-flowchart of step S2 in one embodiment of the present disclosure.
FIG. 3 is a sub-flowchart of step S3 in one embodiment of the present disclosure.
FIG. 4 is a sub-flowchart of step S31 in one embodiment of the present disclosure.
Fig. 5 is a sub-flowchart of step S3 in another embodiment of the present disclosure.
Fig. 6 is a block diagram of a data report file generation apparatus in an exemplary embodiment of the present disclosure.
FIG. 7 is a block diagram of an electronic device in an exemplary embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Further, the drawings are merely schematic illustrations of the present disclosure, in which the same reference numerals denote the same or similar parts, and thus, a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The following detailed description of exemplary embodiments of the disclosure refers to the accompanying drawings.
Fig. 1 schematically illustrates a flow chart of a data report file generation method in an exemplary embodiment of the present disclosure. Referring to fig. 1, a data report file generation method 100 may include:
step S1, acquiring and storing target data regularly;
step S2, calling a browser rendering engine according to the target data to generate a webpage including a chart label;
and step S3, generating a data report file in a preset format corresponding to the target data according to the chart label.
According to the embodiment of the disclosure, the data report file including the high-quality data chart based on a large amount of target data can be generated at regular time by automatically acquiring and storing the data at regular time, automatically generating the data chart through the browser engine and automatically generating the data report file, so that the generation efficiency of the data report file is effectively improved, and the quality of the data chart contained in the data report file is improved.
The steps of the data report file generation method 100 will be described in detail below.
In step S1, the target data is periodically acquired and saved.
In the embodiment of the present disclosure, the target data may be, for example, various statistical data, such as statistics of the number of people, frequency, amount corresponding to various categories, and the like. The target data acquisition entry may be set first, and the target data may be acquired by a timing task, and stored according to the data acquisition time, or stored according to the time corresponding to the data itself. For example, sales statistics obtained on 1/2020 may be recorded as sales statistics-20200101, or sales statistics obtained on 12/2019/2020 may be recorded as sales statistics-201912.
In some embodiments, a real-time statistics portal may be further provided, and when a user clicks the real-time statistics portal, statistics corresponding to a click time may be acquired to automatically generate a data report file including a data chart on site.
In step S2, a browser rendering engine is invoked to generate a web page including chart labels according to the target data.
In the embodiment of the present disclosure, the web page may be generated immediately after the target data is acquired, or the target data may be acquired and stored on time first, and then, in response to the data graph acquisition request, one or more web pages corresponding to the target data at a plurality of time points are generated at one time based on the stored data.
Fig. 2 is a sub-flowchart of step S2 in one embodiment of the present disclosure.
Referring to fig. 2, step S2 may include:
step S21, acquiring a preset chart style corresponding to the target data;
and step S22, calling a browser rendering engine, and generating a webpage based on a preset chart style, wherein the webpage comprises a picture which is generated based on the preset chart style and corresponds to the target data.
The preset chart style may be, for example, a line chart, a bar chart, a pie chart, or other user-set system chart styles or user-added custom chart styles, which are not particularly limited by this disclosure.
And calling a browser rendering engine to generate a webpage based on the target data, and generating a high-quality data chart by using the browser rendering engine to ensure the generation quality of the data chart. The generated web page can be used for continuous processing to generate a data report file and can be stored for later viewing through a browser.
The generated web page may include a plurality of chart labels (DIV) to record, locate and present one or more pictures.
In step S3, a data report file in a preset format corresponding to the target data is generated according to the chart label.
FIG. 3 is a sub-flowchart of step S3 in one embodiment of the present disclosure.
Referring to fig. 3, step S3 may include:
step S31, acquiring pictures according to the chart labels and generating picture binary streams corresponding to the pictures;
step S32, embedding the picture binary stream into the file stream with preset format;
in step S33, a data report file is generated from the file stream.
Referring to fig. 4, step S31 may include:
step S311, generating a picture according to the chart label;
step S312, editing the picture based on preset rules, wherein the editing comprises positioning and cutting;
step 313, generating a picture binary stream according to the edited picture.
In the embodiment shown in fig. 4, a picture in canvas format may first be generated from the DIV (diagram tab) in the webpage. Canvas is an HTML5 new tag that is used to generate images in real time on a web page and can manipulate the image content, basically a bitmap that can be manipulated in JavaScript.
And then, carrying out editing operations such as positioning cutting and the like on the canvas picture to enable the canvas picture to meet the preset length, the preset width or the preset length-width ratio so as to be better embedded into the PDF file or the PowerPoint file and obtain better display effect. The cut picture may be stored in a PNG (Portable Network Graphics) format, for example.
Next, the cut picture in PNG format may be converted into a picture binary stream of base64, and the picture binary stream may be embedded into a file stream in a preset format to generate a data report file.
In the embodiment of the present disclosure, the preset format of the data report file includes, but is not limited to, various picture formats (e.g., PNG format or JPEG format), various image-text file formats (e.g., PDF format, Word format, PowerPoint format, or other formats), various video file formats, and the like. For example, a Graph (GIF) or a video may be automatically generated from a data graph to dynamically show a change in statistical data. The format of the data report file can be set by a person skilled in the art according to the actual situation, and the present disclosure is not limited to this specifically.
The file stream refers to a binary stream of the generated data report file with a preset format. After the picture binary stream is embedded into the file binary stream according to the preset rule, the data report file containing the picture can be generated according to the binary stream, and the picture is automatically rendered by using a browser rendering engine, so that various visualization effects can be realized, and the data report file containing a high-quality datamation chart is provided.
In the embodiment of the present disclosure, one visual chart picture may be generated from a group of target data acquired at one time point, and one data report file may be generated according to the one picture, or multiple visual chart pictures may be generated from multiple groups of target data acquired at multiple time points, and one data report file or multiple data report files corresponding to each group of target data may be generated according to the multiple pictures.
In addition, a plurality of pictures are generated by a group of target data acquired at a time point, and one or more data report files are generated according to the plurality of pictures. For example, in one embodiment, step S2 may be to generate a plurality of web pages corresponding to a target data according to a plurality of preset chart generation schemes.
Fig. 5 is a sub-flowchart of step S3 in another embodiment of the present disclosure.
Referring to fig. 5, in another embodiment, when a plurality of web pages are generated for one piece of target data at step S2, step S3 may include:
step S34, generating a plurality of pictures corresponding to a plurality of preset chart generation schemes according to the chart labels of the plurality of webpages;
step S35, generating a plurality of picture binary streams according to the plurality of pictures;
step S36, embedding the multiple picture binary streams into multiple file streams with preset formats;
step S37, generating a plurality of data report files corresponding to the plurality of preset chart generating schemes according to the plurality of file streams.
A multidimensional data chart can be generated for a group of target data, for example, a data chart is generated according to the attribute A, and a data chart is generated according to the attribute B; alternatively, the target data may be presented using a bar graph, a pie graph, a line graph, respectively; still alternatively, a comparison chart may be generated from data 1, data 2, a comparison chart may be generated from data 2, data 3, and so on.
It should be understood that one data report file may be generated from a plurality of data charts, or a plurality of corresponding data report files may be generated from a plurality of data charts. The scheme for generating the data chart can be various, and the disclosure is not limited thereto.
Corresponding to the above method embodiments, the present disclosure also provides a data report file generating device, which may be used to execute the above method embodiments.
Fig. 6 schematically shows a block diagram of a data report file generation apparatus in an exemplary embodiment of the present disclosure.
Referring to fig. 6, the data report file generating apparatus 600 may include:
a data auto-save module 602 configured to obtain and save target data at regular time;
the automatic chart rendering module 604 is configured to invoke a browser rendering engine to generate a webpage including a chart label according to the target data;
the file automatic generation module 606 is configured to generate a data report file in a preset format corresponding to the target data according to the chart label.
In an exemplary embodiment of the disclosure, the file automatic generation module 606 is configured to: acquiring a picture according to the chart label and generating a picture binary stream corresponding to the picture; embedding the picture binary stream into a file stream with a preset format; and generating a data report file according to the file stream.
In an exemplary embodiment of the disclosure, the file automatic generation module 606 is configured to: generating a picture according to the chart label; editing the picture based on a preset rule, wherein the editing comprises positioning and cutting; and generating a picture binary stream according to the edited picture.
In an exemplary embodiment of the disclosure, the chart auto-rendering module 604 is arranged to: acquiring a preset chart style corresponding to target data; and calling a browser rendering engine, and generating a webpage based on a preset chart style, wherein the webpage comprises a picture which is generated based on the preset chart style and corresponds to the target data.
In an exemplary embodiment of the present disclosure, the target data includes a plurality of sets of data at a plurality of time points, and each data report file corresponds to one or more sets of data.
In an exemplary embodiment of the disclosure, the chart auto-rendering module 604 is arranged to: and generating a plurality of webpages corresponding to one piece of target data according to a plurality of preset chart generation schemes.
In an exemplary embodiment of the disclosure, the file automatic generation module 606 is configured to: generating a plurality of pictures corresponding to a plurality of preset chart generation schemes according to the chart labels of the plurality of webpages; generating a plurality of picture binary streams according to a plurality of pictures; embedding a plurality of picture binary streams into a plurality of file streams in a preset format; and generating a plurality of data report files corresponding to the preset chart generation schemes according to the plurality of file streams.
Since the functions of the apparatus 600 have been described in detail in the corresponding method embodiments, the disclosure is not repeated herein.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 700 according to this embodiment of the invention is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 7, electronic device 700 is embodied in the form of a general purpose computing device. The components of the electronic device 700 may include, but are not limited to: the at least one processing unit 710, the at least one memory unit 720, and a bus 730 that couples various system components including the memory unit 720 and the processing unit 710.
Wherein the storage unit stores program code that is executable by the processing unit 710 such that the processing unit 710 performs the steps according to various exemplary embodiments of the present invention as described in the above section "exemplary method" of the present specification. For example, the processing unit 710 may perform the steps as shown in fig. 1.
The storage unit 720 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)7201 and/or a cache memory unit 7202, and may further include a read only memory unit (ROM) 7203.
The storage unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 730 may be any representation of one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 800 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 700, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 700 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 750. Also, the electronic device 700 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 760. As shown, the network adapter 760 communicates with the other modules of the electronic device 700 via the bus 730. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above section "exemplary methods" of the present description, when said program product is run on the terminal device.
The program product for implementing the above method according to an embodiment of the present invention may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A method for generating a data report file, comprising:
acquiring and storing target data at fixed time;
calling a browser rendering engine according to the target data to generate a webpage comprising a chart label;
and generating a data report file in a preset format corresponding to the target data according to the chart label.
2. The method for generating a data report file according to claim 1, wherein the generating a data report file of a preset format corresponding to the target data according to the graph label comprises:
acquiring a picture according to the chart label, and generating a picture binary stream corresponding to the picture;
embedding the picture binary stream into the file stream with the preset format;
and generating the data report file according to the file stream.
3. The data report file generating method of claim 2, wherein the obtaining a picture according to the chart label and generating a picture binary stream corresponding to the picture comprises:
generating the picture according to the chart label;
editing the picture based on a preset rule, wherein the editing comprises positioning and cutting;
and generating the picture binary stream according to the edited picture.
4. The data report file generation method of claim 1, wherein the invoking a browser rendering engine to generate a web page including a chart tag according to the target data comprises:
acquiring a preset chart style corresponding to the target data;
and calling the browser rendering engine, and generating the webpage based on the preset chart style, wherein the webpage comprises a picture which is generated based on the preset chart style and corresponds to the target data.
5. The data report file generation method of claim 1, wherein the target data includes a plurality of sets of data at a plurality of time points, each of the data report files corresponding to one or more sets of data.
6. The data report file generation method of claim 1, wherein the invoking a browser rendering engine to generate a web page including a chart tag according to the target data comprises:
and generating a plurality of webpages corresponding to one piece of target data according to a plurality of preset chart generation schemes.
7. The method of claim 6, wherein the generating a data report file of a preset format corresponding to the target data according to the graph label comprises:
generating a plurality of pictures corresponding to the preset chart generation schemes according to the chart labels of the plurality of webpages;
generating a plurality of picture binary streams according to the plurality of pictures;
embedding the plurality of picture binary streams into a plurality of file streams in the preset format;
and generating a plurality of data report files corresponding to a plurality of preset chart generation schemes according to the plurality of file streams.
8. A data report file generating apparatus, comprising:
the data automatic storage module is set to acquire and store target data at regular time;
the automatic graph rendering module is used for calling a browser rendering engine to generate a webpage comprising a graph label according to the target data;
and the automatic file generation module is used for generating a data report file in a preset format corresponding to the target data according to the chart label.
9. An electronic device, comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the data report file generation method of any of claims 1-7 based on instructions stored in the memory.
10. A computer-readable storage medium on which a program is stored, the program implementing the data report file generating method according to any one of claims 1 to 7 when executed by a processor.
CN202010498858.0A 2020-06-04 2020-06-04 Data report file generation method and device and electronic equipment Pending CN111651966A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010498858.0A CN111651966A (en) 2020-06-04 2020-06-04 Data report file generation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010498858.0A CN111651966A (en) 2020-06-04 2020-06-04 Data report file generation method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111651966A true CN111651966A (en) 2020-09-11

Family

ID=72344082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010498858.0A Pending CN111651966A (en) 2020-06-04 2020-06-04 Data report file generation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111651966A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112733509A (en) * 2021-01-12 2021-04-30 平安医疗健康管理股份有限公司 Actuarial report generation method, actuarial report generation device, actuarial report generation equipment and actuarial report generation medium
CN113778944A (en) * 2021-08-25 2021-12-10 上海派森诺医学检验所有限公司 Analysis report generation method and device and electronic equipment
CN114911544A (en) * 2021-02-09 2022-08-16 北京同邦卓益科技有限公司 Data analysis report generation method and device, electronic equipment and storage medium
CN114968455A (en) * 2022-04-29 2022-08-30 北京百度网讯科技有限公司 Report generation method and device of application interface and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109309612A (en) * 2017-07-27 2019-02-05 北京京东尚科信息技术有限公司 Mail Contents generation method and device, storage medium and electronic equipment
CN109491743A (en) * 2018-11-05 2019-03-19 上海鋆创信息技术有限公司 Visual Report Forms generation method, device, electronic equipment and storage medium
CN109669853A (en) * 2018-10-23 2019-04-23 深圳壹账通智能科技有限公司 Test report generation method and device, storage medium, electric terminal
CN109740135A (en) * 2018-12-19 2019-05-10 平安普惠企业管理有限公司 Chart generation method and device, electronic equipment and storage medium
CN110781423A (en) * 2019-10-10 2020-02-11 腾讯科技(深圳)有限公司 Webpage generation method and device and electronic equipment
CN111177519A (en) * 2019-12-30 2020-05-19 广州市百果园网络科技有限公司 Webpage content acquisition method and device, storage medium and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109309612A (en) * 2017-07-27 2019-02-05 北京京东尚科信息技术有限公司 Mail Contents generation method and device, storage medium and electronic equipment
CN109669853A (en) * 2018-10-23 2019-04-23 深圳壹账通智能科技有限公司 Test report generation method and device, storage medium, electric terminal
CN109491743A (en) * 2018-11-05 2019-03-19 上海鋆创信息技术有限公司 Visual Report Forms generation method, device, electronic equipment and storage medium
CN109740135A (en) * 2018-12-19 2019-05-10 平安普惠企业管理有限公司 Chart generation method and device, electronic equipment and storage medium
CN110781423A (en) * 2019-10-10 2020-02-11 腾讯科技(深圳)有限公司 Webpage generation method and device and electronic equipment
CN111177519A (en) * 2019-12-30 2020-05-19 广州市百果园网络科技有限公司 Webpage content acquisition method and device, storage medium and equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112733509A (en) * 2021-01-12 2021-04-30 平安医疗健康管理股份有限公司 Actuarial report generation method, actuarial report generation device, actuarial report generation equipment and actuarial report generation medium
CN114911544A (en) * 2021-02-09 2022-08-16 北京同邦卓益科技有限公司 Data analysis report generation method and device, electronic equipment and storage medium
CN114911544B (en) * 2021-02-09 2024-04-05 北京同邦卓益科技有限公司 Method and device for generating data analysis report, electronic equipment and storage medium
CN113778944A (en) * 2021-08-25 2021-12-10 上海派森诺医学检验所有限公司 Analysis report generation method and device and electronic equipment
CN114968455A (en) * 2022-04-29 2022-08-30 北京百度网讯科技有限公司 Report generation method and device of application interface and electronic equipment
CN114968455B (en) * 2022-04-29 2024-02-27 北京百度网讯科技有限公司 Report generation method and device of application interface and electronic equipment

Similar Documents

Publication Publication Date Title
CN110781423B (en) Webpage generation method and device and electronic equipment
CN111651966A (en) Data report file generation method and device and electronic equipment
CN107832045B (en) Method and apparatus for cross programming language interface conversion
CN111241801A (en) File generation method, device, equipment and computer readable storage medium
CN110020329B (en) Method, device and system for generating webpage
CN113504908A (en) Business code generation method and device, electronic equipment and computer readable medium
CN108984070B (en) Method, apparatus, electronic device and readable medium for thermodynamic diagram imaging
CN114647409A (en) Large-screen visualization application creation platform, method, computing device and storage medium
CN114756228A (en) Page processing method, device, equipment and storage medium
CN110162301B (en) Form rendering method, form rendering device and storage medium
CN113220381A (en) Click data display method and device
CN116578795A (en) Webpage generation method and device, storage medium and electronic equipment
CN116245052A (en) Drawing migration method, device, equipment and storage medium
CN108021317B (en) Method and device for screen editing
CN111581402A (en) Method and system for generating content test material, electronic equipment and storage medium
JP2011118497A (en) Device and program for managing guideline
CN113656041A (en) Data processing method, device, equipment and storage medium
CN113849257A (en) Page processing method, device, medium and electronic equipment
US20180090174A1 (en) Video generation of project revision history
CN113220297A (en) Webpage style dynamic generation method and device, storage medium and electronic equipment
CN111913703B (en) Object editing method, device, electronic equipment and readable storage medium
CN113419711A (en) Page guiding method and device, electronic equipment and storage medium
CN113076254A (en) Test case set generation method and device
CN113312568A (en) Web information extraction method and system based on HTML source code and webpage snapshot
CN113703638A (en) Data management page processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination