CN111523295A - Data rendering method, device, medium and electronic equipment - Google Patents

Data rendering method, device, medium and electronic equipment Download PDF

Info

Publication number
CN111523295A
CN111523295A CN201910045617.8A CN201910045617A CN111523295A CN 111523295 A CN111523295 A CN 111523295A CN 201910045617 A CN201910045617 A CN 201910045617A CN 111523295 A CN111523295 A CN 111523295A
Authority
CN
China
Prior art keywords
rendering
data
unit
rule
rendered
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
CN201910045617.8A
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.)
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Wodong Tianjun Information Technology 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 Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Wodong Tianjun Information Technology Co Ltd
Priority to CN201910045617.8A priority Critical patent/CN111523295A/en
Publication of CN111523295A publication Critical patent/CN111523295A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention provides a data rendering method, a data rendering device, a data rendering medium and electronic equipment, and relates to the technical field of data processing. The method comprises the following steps: splitting a data report to be rendered into a plurality of data units; determining a rendering rule of each data unit; and rendering each data unit according to the rendering rule to obtain a rendered data report. The invention can improve the flexibility of data rendering.

Description

Data rendering method, device, medium and electronic equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data rendering method, a data rendering apparatus, a storage medium, and an electronic device.
Background
With the popularization of the internet and the development of computer network technology, the dimensionality of data is higher and higher, and the data is more and more complex.
The user can download various data from the server, and the data is converted into a format which is easy to understand by the user after being found, for example, the decimal point reserved number, rounding, the value 0 is converted into a specific Chinese language, and the like, and the process can also be called data rendering. At present, when data of a datagram table is rendered, only one rendering rule is applied to data in the same column, or even if multiple rendering rules exist, the rendering rules are simultaneously applied to the column of data, for example, two rendering rules of decimal point reserved bits and decimal rounding are simultaneously applied to the column of data, and then, for a certain data in the column of data, the decimal point reserved bits of the data are rendered, and the decimal point reserved bits of the data are rounded. Moreover, if a new rendering rule is to be added, the previous rendering rule needs to be changed, which is troublesome.
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 invention and therefore may include information that does not constitute prior art known to a person of ordinary skill in the art.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a data rendering method, a data rendering apparatus, a storage medium, and an electronic device, so as to overcome the problem of low flexibility of a data rendering method at least to a certain extent.
Additional features and advantages of the invention will be set forth in the detailed description which follows, or may be learned by practice of the invention.
According to a first aspect of embodiments of the present invention, there is provided a data rendering method, including:
splitting a data report to be rendered into a plurality of data units; determining a rendering rule of each data unit; and rendering the data unit according to the rendering rule to obtain a rendered data report.
Optionally, determining the rendering rule corresponding to each data unit may include: and acquiring the rendering label of each data unit, and taking the rendering rule corresponding to the rendering label as the rendering rule of the data unit.
Optionally, rendering the data unit according to the rendering rule may include: acquiring a plurality of unit rows of a data report to be rendered, and acquiring a plurality of unit columns in each unit row; arranging rendering rules of the unit columns according to the sequence of the unit columns in the unit rows, and determining a row rendering module; and rendering each unit row according to a row rendering module.
Optionally, before determining the rendering rule of each data unit, the method further includes: and determining a rendering scene of the data report to be rendered so as to determine a rendering rule of each data unit in a rule set corresponding to the rendering scene.
Optionally, rendering the data unit according to the rendering rule may include: analyzing a rendering function module corresponding to a rendering scene from a configuration file of data to be rendered; and determining a rendering function corresponding to the rendering rule from the rendering function module, and calling a rendering function rendering data unit.
Optionally, determining the rendering rule of each data unit may include: and determining the rendering rule of the data unit according to the attribute of the data in the data unit.
Optionally, before obtaining the rendering tag of each data unit, the method may further include: and generating a plurality of rendering labels, and establishing a corresponding relation between the rendering labels and the rendering rules.
According to a second aspect of embodiments of the present invention, there is provided a data rendering apparatus, which may include: the data splitting unit is used for splitting the data report to be rendered into a plurality of data units; a rendering rule determining unit for determining a rendering rule of each data unit; and the rendering unit is used for rendering the data unit according to the rendering rule so as to obtain a rendered data report.
Alternatively, the rendering rule determining unit may include: and the tag acquisition unit is used for acquiring the rendering tag of each data unit and taking the rendering rule corresponding to the rendering tag as the rendering rule of the data unit.
Alternatively, the rendering unit may include: the cell acquisition unit is used for acquiring a plurality of cell rows of the data report to be rendered and acquiring a plurality of cell columns in each cell row; the line rendering rule unit is used for arranging the rendering rules of the unit columns according to the sequence of the unit columns in the unit rows and determining a line rendering module; and the line rendering unit is used for rendering each unit line according to the line rendering module.
Optionally, the data rendering apparatus may further include: and the scene determining unit is used for determining the rendering scene of the data report to be rendered so as to determine the rendering rule of each data unit in the rule set corresponding to the rendering scene.
Alternatively, the rendering unit may include: the analysis unit is used for analyzing a rendering function module corresponding to the rendering scene from the configuration file of the data to be rendered; and the function rendering unit is used for determining a rendering function corresponding to the rendering rule from the rendering function module and calling the rendering function rendering data unit.
Alternatively, the rendering rule determining unit may include: and the attribute determining unit is used for determining the rendering rule of the data unit according to the attribute of the data in the data unit.
Optionally, the data rendering apparatus may further include: and the label generating unit is used for generating a plurality of rendering labels and establishing a corresponding relation between the rendering labels and the rendering rules.
According to a third aspect of embodiments of the present invention, there is provided a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the data rendering method as described in the first aspect of the embodiments above.
According to a fourth aspect of embodiments of the present invention, there is provided an electronic apparatus, including: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a data rendering method as described in the first aspect of the embodiments above.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the technical solutions provided by some embodiments of the present invention, a data report to be rendered is split into a plurality of data units, a rendering rule of each data unit is determined, and then each data unit is rendered according to the rendering rule, so as to obtain a rendered data report. On one hand, the rendering data report can be divided into the minimum data units, so that each minimum data unit can be rendered, and the rendering pertinence is enhanced; and the diversification of rendering can be improved; on the other hand, different rendering rules can be determined for different data units, so that the rendering flexibility is improved; on the other hand, different rendering rules can be combined, so that different rendering effects can be obtained for the same data report to be rendered, and the rendering efficiency 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 invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 schematically shows a system architecture diagram for implementing a data rendering method according to an embodiment of the invention;
FIG. 2 schematically shows a flow diagram of a data rendering method according to an embodiment of the invention;
FIG. 3 schematically shows a flow diagram of a data rendering method according to another embodiment of the invention;
FIG. 4 schematically shows a flow diagram of a data rendering method according to a further embodiment of the invention;
FIG. 5 schematically shows a block diagram of a data rendering apparatus according to an embodiment of the present invention;
FIG. 6 schematically illustrates a block diagram of a computer system suitable for use with an electronic device to implement an embodiment of the invention.
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.
Furthermore, 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 provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations or operations have not been shown or described in detail to avoid obscuring aspects of the invention.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. 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 means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Because the data report can face various display scenes, the rendering requirements of each display scene are different, for example, some scenes need to see rendered data, some scenes need to see real data, some scenes need a specific rendering rule, some scenes need multiple rendering rules, and the like. At present, after a data report needing to be rendered is found out from a bottom database, the data report is directly rendered and inserted into a final display report. Only one fixed rendering rule exists for the same column of data, and when the rendering rule needs to be changed, the rendering rule needs to be modified, and a new rendering rule is edited; or adding the data to be rendered into a new column, and setting a target rendering rule on the added column for rendering, but the method is not flexible enough and also causes data redundancy.
Accordingly, the present exemplary embodiment first provides a system architecture for implementing a data rendering method. Referring to fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send request instructions or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a photo processing application, a shopping application, a web browser application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for shopping-like websites browsed by users using the terminal devices 101, 102, 103. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device.
It should be noted that the data rendering method provided in the embodiment of the present application is generally executed by the server 105, and accordingly, the data rendering apparatus is generally disposed in the terminal device 101.
Based on the system architecture 100 described above, a data rendering method is provided in this example. As shown in fig. 2, the method may include steps S210, S220, S230. Wherein:
step S210, splitting the data report to be rendered into a plurality of data units;
step S220, determining a rendering rule of each data unit;
and step S230, rendering each data unit according to the rendering rule to obtain a rendered data report.
According to the data monitoring method in the exemplary embodiment, the data report to be rendered is divided into a plurality of data units, the rendering rule of each data unit is determined, and then each data unit is rendered according to the rendering rule, so that the rendered data report is obtained. On one hand, the rendering data report can be divided into the minimum data units, so that each minimum data unit can be rendered, and the rendering pertinence is enhanced; and the diversification of rendering can be improved; on the other hand, different rendering rules can be determined for different data units, so that the rendering flexibility is improved; on the other hand, different rendering rules can be combined, so that different rendering effects can be obtained for the same data report to be rendered, and the rendering efficiency is improved.
Hereinafter, each step of the data rendering method in the present exemplary embodiment will be described in more detail with reference to fig. 2 to 4.
As shown in fig. 2, in step S210, the data report to be rendered is split into a plurality of data units.
In the exemplary embodiment, the data report to be rendered may be a data table containing various types of data. The data table may be made by various software tools, such as a table of a database created in the data management system, a table created by a table making tool, and so forth. Alternatively, the to-be-rendered data report may include other types of data tables, such as a table, a list, and the like in a custom format, which is not limited in this example embodiment.
And splitting the data report to be rendered so as to obtain a plurality of data units of the data report to be rendered. The data unit may include a minimum cell in the data report to be rendered, or a cell of a preset size. Taking an EXCEL type data report to be rendered as an example, in an EXCEL table, each cell can be used as a data unit, namely if the EXCEL table is 3 rows and 3 columns, 9 data units exist; or each row can be taken as a data unit, and each column can be taken as a data unit; or other splitting ways to obtain the data units, for example, dividing every 3 cells into one data unit, and so on. Different rendering can be performed on each data unit of the data report to be rendered through various divisions of the data units, so that multiple rendering modes are available, and the rendering flexibility is provided.
In step S220, a rendering rule for each data unit may be determined.
Referring to fig. 2, in the present exemplary embodiment, the rendering rule may include a conversion rule for converting a certain data type into another data type. Such as converting null to default, 2018.10.01 to 2018, 10 month 1, etc. Also, rendering rules may contain certain rules, such as rounding, rounding down, and the like; or other rules may be included, for example, converting a "0" value into "determined" chinese, etc., which is not limited in this example embodiment.
The rendering rules may be predefined by encoding, resulting in a plurality of rendering rules, such that a rendering rule for each data unit is determined from the plurality of rendering rules for that data unit. The data attributes, such as characters, numbers and the like, of each data unit can be determined by analyzing the data in each data unit in the data report to be rendered. The data attributes may then be associated with rendering rules, such that the rendering rule associated with the data unit may be determined based on the data attributes of the data unit. However, the rendering rule of each data unit may also be determined in other manners, for example, determining the rendering rule corresponding to the identification number as the rendering rule of the data unit according to the identification number of the data unit, and the like.
In some embodiments of the present invention, determining the rendering rule corresponding to each data unit may be performed by obtaining a rendering tag of each data unit, and using the rendering rule corresponding to the rendering tag as the rendering rule of the data unit. According to different rendering rules, a rendering tag can be determined for each rendering rule, so that the rendering rule corresponds to the rendering tag. A rendering label can be added to each data unit in the data report to be rendered, and then the rendering rule of the data unit can be determined according to the rendering label of the data unit. After the data report to be rendered is queried by the user, the user can set the rendering tag of each data unit according to own needs, or can pre-configure the rendering tag of each data unit in the data report to be rendered in the configuration file, and then can determine the rendering tag of each data unit of the data report to be rendered according to the configuration file.
Therefore, before the rendering tags of the data units are acquired, a plurality of rendering tags can be generated, and the corresponding relation between each rendering tag and each rendering rule is established. The rendering tag may include information of numbers, words, and symbols, or a combination of the information of numbers, words, and symbols, for example, the rendering tag may be "001", "002", "00A", and the like, which is not limited in this example embodiment.
After the rendering tag is generated, a correspondence between the rendering tag and the rendering rule may be established. One rendering tag may correspond to one rendering rule. And the rendering labels and the rendering rules can correspond to each other according to preset rules, for example, the rendering labels are sorted according to the numerical values, the rendering rules are sorted according to the use frequency, and then the rendering labels and the rendering rules are sequentially corresponding to each other. Alternatively, the rendering tag and the rendering rule may correspond in other manners, for example, a keyword of the rendering rule may be used as the rendering tag, and the rendering tag and the rendering rule may correspond, and if the keyword of the rendering rule that renders a value 0 to a specific value may be "rendered with a value 0", the keyword may be used as a rendering tag to correspond to the rendering rule, and the like.
In addition, in order to make rendering more flexible and applicable to various different scenes, the rendering scene of the data report to be rendered can be determined before the rendering rule of the data unit is determined, so that the rendering rule of each data unit can be determined in the rule set corresponding to the rendering scene. The rendering scene may include rendering classes obtained by dividing different rendering requirements, for example, a rendering class of a report downloaded by a user, a rendering class of a report in a webpage, and the like. However, the rendering scene may also include a rendering class obtained by dividing the rendering requirement according to other manners, for example, different rendering scenes obtained by dividing software of the data source to be rendered.
Rendering rules corresponding to different rendering scenes may be different, and rendering rules corresponding to each rendering scene may form a rule set. However, the same rendering rule may exist in a rule set corresponding to different rendering scenes. For example, the rendering class of the report in the webpage may include an enumerated value rendering rule, in which a value "1" may be rendered as "search", a value "2" may be rendered as "query", a value "3" may be rendered as "non-search", and so on; certain specific rendering classes may also include specific rendering rules, such as rendering preset values into preset characters.
In some embodiments of the present invention, determining the rendering rule for each data unit may also determine the rendering rule for the data unit by the attributes of the data in the data unit. For example, in an Excel table, a data unit with the attribute of "time" can convert digital time format data into a text time format rendering rule; a data unit having an attribute of "gender" may correspond to a rendering rule or the like that converts a value of "0" or "1" into "male" or "female". However, the attributes of different data may correspond to different rendering rules, and the correspondence may be determined according to needs, for example, the rendering rule corresponding to the data unit whose data attribute is "price" is determined as "round", and the like, which is not particularly limited in this example embodiment.
In step S230, each data unit may be rendered according to the rendering rule, so as to obtain a rendered data report.
In this exemplary embodiment, after the rendering rule of each data unit is determined, the data in the data unit may be rendered by the rendering rule, for example, rendering a value of 1 as a specific word, rendering a null value as a default value, and the like. And rendering the data in the data report to be rendered one by one to obtain a rendered data report. The rendered data report can be displayed for a user to view and obtain.
In some embodiments of the present invention, rendering each data unit according to the rendering rule may include steps S301, S302, and S303, as shown in fig. 3, where:
in step S301, a plurality of cell rows of the data report to be rendered may be obtained, and a plurality of cell columns in each cell row may be obtained. If the data report to be rendered has multiple rows and multiple columns of data, each column in each row can be obtained. For example, if there are 3 unit rows in the data report to be rendered and there are 4 unit columns in each row, the 1 st column, the 2 nd column, the 3 rd column and the 4 th column of the 1 st row can be obtained in sequence.
Further, in step S302, the rendering rules of the cell columns may be arranged in the order of the cell columns in the cell rows, and the row rendering module may be determined. Wherein the line rendering module may contain a plurality of rendering rules. For example, if there are 3 unit rows in the to-be-rendered data report and there are 4 unit columns in each row, then there are four sets of rendering rules that can be obtained after the rendering rule of the 1 st column of the 1 st row, the rendering rule of the 2 nd column, the rendering rule of the 3 rd column, and the rendering rule of the 4 th column of the to-be-rendered data report are arranged in sequence, and the set can be used as a row rendering module of the to-be-rendered data report.
Then, in step S303, after the line rendering module is obtained, each unit line may be rendered according to the line rendering module. That is to say, for each row of the data report to be rendered, the rendering rules in the row rendering module can be utilized to sequentially render the columns in each row. Therefore, the rendering rules of all the lines in the data report to be rendered can be kept consistent.
Similarly, for a plurality of unit columns of the data to be rendered, the rendering rules of each unit row may be arranged according to the sequence of each unit row in the unit column, so as to obtain the column rendering module. Furthermore, each column of the data report to be rendered is rendered according to the column rendering module, so that the rendering rules of each column of the data report to be rendered are kept consistent.
In some embodiments of the present invention, rendering each data unit according to the rendering rule may further include step S401 and step S402. As shown in fig. 4, wherein:
in step S401, a rendering function module corresponding to the rendering scene is analyzed from the configuration file of the data report to be rendered. And configuring a corresponding configuration file for each data report to be rendered. The configuration file can configure the rendering scene of the data report to be rendered, and the configuration files corresponding to different data reports to be rendered can be different. Different rendering scenes can correspond to different rendering rules, and the rendering function of the rendering rule can be generated by coding according to the different rendering rules. Therefore, the rendering function module may include a plurality of rendering functions, and each rendering function may represent one rendering rule. That is, the rendering rules may be implemented by executing their corresponding rendering functions.
After the rendering scene of the data report to be rendered and the rendering function module corresponding to the rendering scene are obtained through the configuration file of the data report to be rendered, in step S402, the rendering function corresponding to the rendering rule may be determined from the rendering function module, and the rendering function data unit is called. In detail, when the data unit is rendered, a rendering function corresponding to the rendering rule may be searched in the rendering function module corresponding to the data report to be rendered according to the rendering rule of each data unit, so as to call the rendering function to render the data unit.
Embodiments of the apparatus of the present invention are described below, which may be used to perform the above-described data rendering method of the present invention. As shown in fig. 5, the data rendering apparatus 50 may include:
the data splitting unit 51 is used for splitting the data report to be rendered into a plurality of data units;
a rendering rule determining unit 52, configured to determine a rendering rule for each of the data units;
and the rendering unit 53 is configured to render the data unit according to the rendering rule to obtain a rendered data report.
In one embodiment of the present invention, the rendering rule determining unit 52 may include: a tag obtaining unit 501, configured to obtain a rendering tag of each data unit, and use a rendering rule corresponding to the rendering tag as a rendering rule of the data unit.
In one embodiment of the present invention, the rendering unit 53 may include: a cell obtaining unit 502, configured to obtain multiple cell rows of the data report to be rendered, and obtain multiple cell columns in each cell row; a row rendering rule unit 503, configured to arrange rendering rules of the unit columns according to an order of the unit columns in the unit rows, and determine a row rendering module; a line rendering unit 504, configured to render each unit line according to a line rendering module.
In an embodiment of the present invention, the data rendering apparatus 50 may further include: the scene determining unit 505 is configured to determine a rendering scene of the data report to be rendered, so as to determine a rendering rule of each data unit in a rule set corresponding to the rendering scene.
In one embodiment of the present invention, the rendering unit 53 may include: the parsing unit 506 is configured to parse a rendering function module corresponding to a rendering scene from a configuration file of data to be rendered; and a function rendering unit 507, configured to determine a rendering function corresponding to the rendering rule from the rendering function module, and call a rendering function rendering data unit.
In one embodiment of the present invention, the rendering rule determining unit 52 may include: an attribute determining unit 508, configured to determine a rendering rule of the data unit according to an attribute of the data in the data unit.
In an embodiment of the present invention, the data rendering apparatus 50 may further include: a tag generating unit 509, configured to generate a plurality of rendering tags and establish a corresponding relationship between the rendering tags and rendering rules
Since each functional module of the data rendering device in the exemplary embodiment of the present invention corresponds to the steps of the exemplary embodiment of the data rendering method described above, for details that are not disclosed in the embodiment of the device of the present invention, please refer to the above-described embodiment of the data rendering method of the present invention.
Referring now to FIG. 6, a block diagram of a computer system 60 suitable for use with the electronic device implementing an embodiment of the invention is shown. The computer system 60 of the electronic device shown in fig. 6 is only an example, and should not bring any limitation to the function and the scope of the use of the embodiment of the present invention.
As shown in fig. 6, the computer system 60 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for system operation are also stored. The CPU601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the present application are executed when the computer program is executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer 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 of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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. In the present invention, a computer 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. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer 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 computer readable signal medium may also be any computer readable medium that is not a computer 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 computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the image deduplication method as described in the above embodiments.
For example, the electronic device may implement the following as shown in fig. 2: step S210, splitting the data report to be rendered into a plurality of data units; step S220, determining a rendering rule of each data unit; and step S230, rendering each data unit according to the rendering rule to obtain a rendered data report.
As another example, the electronic device may implement the steps shown in fig. 3.
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 invention. 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.
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 embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can 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 can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A method of data rendering, comprising:
splitting a data report to be rendered into a plurality of data units;
determining a rendering rule of each data unit;
and rendering each data unit according to the rendering rule to obtain a rendered data report.
2. The data rendering method of claim 1, wherein the determining the rendering rule corresponding to each data unit comprises:
and acquiring the rendering label of each data unit, and taking the rendering rule corresponding to the rendering label as the rendering rule of the data unit.
3. The data rendering method of claim 1, wherein the rendering each of the data units according to the rendering rule comprises:
acquiring a plurality of unit rows of the data report to be rendered, and acquiring a plurality of unit columns in each unit row;
arranging the rendering rules of the unit columns according to the sequence of the unit columns in the unit rows, and determining row rendering modules;
and rendering each unit line according to the line rendering module.
4. The data rendering method of claim 1, wherein before determining the rendering rule for each of the data units, further comprising:
and determining a rendering scene of the data report to be rendered so as to determine a rendering rule of each data unit in a rule set corresponding to the rendering scene.
5. The data rendering method of claim 4, wherein the rendering each of the data units according to the rendering rule comprises:
analyzing a rendering function module corresponding to the rendering scene from the configuration file of the data report to be rendered;
and determining a rendering function corresponding to the rendering rule from the rendering function module, and calling the rendering function to render the data unit.
6. The data rendering method of claim 1, wherein determining the rendering rule for each of the data units comprises:
and determining the rendering rule of the data unit according to the attribute of the data in the data unit.
7. The data rendering method of claim 2, further comprising, before obtaining the rendering tag for each of the data units:
and generating a plurality of rendering labels, and establishing a corresponding relation between the rendering labels and the rendering rules.
8. A data rendering apparatus, comprising:
the data splitting unit is used for splitting the data report to be rendered into a plurality of data units;
a rendering rule determining unit, configured to determine a rendering rule for each of the data units;
and the rendering unit is used for rendering the data unit according to the rendering rule so as to obtain a rendered data report.
9. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out a data rendering method according to any one of claims 1-7.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a data rendering method as claimed in any one of claims 1-7.
CN201910045617.8A 2019-01-17 2019-01-17 Data rendering method, device, medium and electronic equipment Pending CN111523295A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910045617.8A CN111523295A (en) 2019-01-17 2019-01-17 Data rendering method, device, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910045617.8A CN111523295A (en) 2019-01-17 2019-01-17 Data rendering method, device, medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN111523295A true CN111523295A (en) 2020-08-11

Family

ID=71899985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910045617.8A Pending CN111523295A (en) 2019-01-17 2019-01-17 Data rendering method, device, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111523295A (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5175810A (en) * 1989-06-19 1992-12-29 Digital Equipment Corporation Tabular data format
US20070229541A1 (en) * 2006-03-31 2007-10-04 Research In Motion Limited Method of displaying labels on maps of wireless communications devices using pre-rendered characters
CN101093477A (en) * 2007-08-14 2007-12-26 金蝶软件(中国)有限公司 Data process method for electronic form, and data process system for electronic form
US20080189602A1 (en) * 2007-01-25 2008-08-07 Microsoft Corporation Streamable interactive rendering-independent page layout
US20080201289A1 (en) * 2007-02-09 2008-08-21 Jaiku Oy Method and arrangement for content prioritization
US20090043804A1 (en) * 2007-08-06 2009-02-12 Apple Inc. Storing table data
EP2090991A1 (en) * 2008-02-14 2009-08-19 Research In Motion Limited System and method for processing and rendering markup language based electronic mail
CN101771681A (en) * 2008-12-30 2010-07-07 北大方正集团有限公司 Page display control method, server and system
CN103164401A (en) * 2011-12-08 2013-06-19 航天信息软件技术有限公司 Page tabular display method
CN103778128A (en) * 2012-10-18 2014-05-07 腾讯科技(深圳)有限公司 List information drawing method and device
CN103778234A (en) * 2014-01-26 2014-05-07 北京恒华伟业科技股份有限公司 Report form generating method and device
CN105138504A (en) * 2015-09-07 2015-12-09 北京恒华伟业科技股份有限公司 Report generation method and report engine
CN105392538A (en) * 2013-06-07 2016-03-09 索尼电脑娱乐公司 Image rendering responsive to user actions in head mounted display
US20160078659A1 (en) * 2014-09-17 2016-03-17 Lett.rs LLC. Mobile Stamp Creation And Management For Digital Communications
CN106372044A (en) * 2016-09-13 2017-02-01 济南浪潮高新科技投资发展有限公司 Method for generating typed dimension XBRL (Extensible Business Reporting Language) report based on report form

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5175810A (en) * 1989-06-19 1992-12-29 Digital Equipment Corporation Tabular data format
US20070229541A1 (en) * 2006-03-31 2007-10-04 Research In Motion Limited Method of displaying labels on maps of wireless communications devices using pre-rendered characters
US20080189602A1 (en) * 2007-01-25 2008-08-07 Microsoft Corporation Streamable interactive rendering-independent page layout
US20080201289A1 (en) * 2007-02-09 2008-08-21 Jaiku Oy Method and arrangement for content prioritization
US20090043804A1 (en) * 2007-08-06 2009-02-12 Apple Inc. Storing table data
CN101093477A (en) * 2007-08-14 2007-12-26 金蝶软件(中国)有限公司 Data process method for electronic form, and data process system for electronic form
EP2090991A1 (en) * 2008-02-14 2009-08-19 Research In Motion Limited System and method for processing and rendering markup language based electronic mail
CN101771681A (en) * 2008-12-30 2010-07-07 北大方正集团有限公司 Page display control method, server and system
CN103164401A (en) * 2011-12-08 2013-06-19 航天信息软件技术有限公司 Page tabular display method
CN103778128A (en) * 2012-10-18 2014-05-07 腾讯科技(深圳)有限公司 List information drawing method and device
CN105392538A (en) * 2013-06-07 2016-03-09 索尼电脑娱乐公司 Image rendering responsive to user actions in head mounted display
CN103778234A (en) * 2014-01-26 2014-05-07 北京恒华伟业科技股份有限公司 Report form generating method and device
US20160078659A1 (en) * 2014-09-17 2016-03-17 Lett.rs LLC. Mobile Stamp Creation And Management For Digital Communications
CN105138504A (en) * 2015-09-07 2015-12-09 北京恒华伟业科技股份有限公司 Report generation method and report engine
CN106372044A (en) * 2016-09-13 2017-02-01 济南浪潮高新科技投资发展有限公司 Method for generating typed dimension XBRL (Extensible Business Reporting Language) report based on report form

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王勇;: "巧让WPS表格中的小数点对齐", 电脑知识与技术(经验技巧), no. 05 *
王永君, 龚健雅: "用于大范围虚拟地形环境的动态场景管理方法", 测绘学院学报, no. 03, 30 September 2003 (2003-09-30) *

Similar Documents

Publication Publication Date Title
CN107832045B (en) Method and apparatus for cross programming language interface conversion
CN108804450B (en) Information pushing method and device
US11758088B2 (en) Method and apparatus for aligning paragraph and video
CN109359194B (en) Method and apparatus for predicting information categories
CN108280200B (en) Method and device for pushing information
CN106919711B (en) Method and device for labeling information based on artificial intelligence
CN109062560B (en) Method and apparatus for generating information
CN113467775A (en) Method and device for generating page
CN112328551A (en) Medical data analysis method, device, medium, and electronic device
US20210182491A1 (en) Summary generation method and apparatus
CN112818026A (en) Data integration method and device
CN110990527A (en) Automatic question answering method and device, storage medium and electronic equipment
CN109614592B (en) Text processing method and device, storage medium and electronic equipment
US20230085684A1 (en) Method of recommending data, electronic device, and medium
CN110705271A (en) System and method for providing natural language processing service
CN113312568B (en) Web information extraction method and system based on HTML source code and webpage snapshot
CN114817297A (en) Method and device for processing data
CN114239501A (en) Contract generation method, apparatus, device and medium
CN111523295A (en) Data rendering method, device, medium and electronic equipment
CN113656737A (en) Webpage content display method and device, electronic equipment and storage medium
CN107368597B (en) Information output method and device
CN113760240A (en) Method and device for generating data model
CN111338621A (en) Data display method and device, electronic equipment and computer readable medium
CN111079185A (en) Database information processing method and device, storage medium and electronic equipment
CN112131287A (en) Method and device for reading data

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