Data rendering method and device, equipment and storage medium
By identifying the data type and the parameters of the terminal display device, the rendering parameters are determined, which solves the problem of unreasonable data rendering, realizes the reasonable layout and coordination ratio of data on various terminal devices, and improves the data rendering effect.
Patent Information
- Application Number
- CN202510835625.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-20
- Publication Date
- 2025-11-11
AI Technical Summary
Existing data rendering methods do not fully consider the parameters of the terminal display device and the characteristics of the data to be rendered, resulting in unreasonable layout, crowded data content, or uncoordinated proportions on some devices, which affects the readability and effective communication of the data.
By acquiring the data to be rendered and the display parameters of the terminal display device, the data type is identified, and the rendering parameters are determined based on the data characteristics and display parameters, so as to achieve good adaptation of the data on various terminal devices and ensure the reasonable layout and coordinated proportion of the data display.
It achieves good data adaptation on various terminal devices, ensures reasonable layout and coordinated proportion of data display, and enhances the effect of data rendering.
Smart Images

Figure CN120929033A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a data rendering method, apparatus, device and storage medium. Background Technology
[0002] The display and presentation of data plays a crucial role in users' acquisition of information and understanding of content. With the popularization of various terminal devices such as smartphones, tablets, smart TVs, and wearable devices, there are significant differences in parameters such as screen size and resolution among various devices, which leads to the technical challenge of multi-device adaptation in the data rendering process.
[0003] However, existing data rendering methods often fail to fully consider the parameters of the terminal display device and the characteristics of the data to be rendered, which may lead to problems such as unreasonable layout, crowded data content, or uncoordinated proportions on some devices, affecting the readability and effective communication of the data. Summary of the Invention
[0004] This application provides a data rendering method, apparatus, device, and storage medium, which solves the problems in existing data rendering methods that do not fully consider the parameters of the terminal display device and the data characteristics of the data itself, resulting in unreasonable layout, crowded data content, or uncoordinated proportions on some devices, thereby enhancing the effect of data rendering.
[0005] To achieve the above objectives, this application adopts the following technical solution: Firstly, this application provides a data rendering method, including: The system acquires the data to be rendered and the display parameters of the terminal display device, and identifies the data type of the data to be rendered, wherein the display parameters include resolution and screen size. Determine the data characteristics corresponding to the data type, and determine the rendering parameters of the data to be rendered based on the data characteristics and the display parameters; The data to be rendered is rendered based on the rendering parameters.
[0006] Optionally, the data type includes any one or more of the following: table data type, graph data type, component data type, or text data type; Accordingly, determining the data characteristics corresponding to the data type includes: When the data type is the table data type, determine the row and column count characteristics, cell content density characteristics, and first font characteristics of the table type; When the data type is the graph data type, determine the data distribution characteristics corresponding to the graph data type; When the data type is the component data type, determine the first size parameter feature and the first style attribute feature of the component data type; When the data type is a text data type, the first font information feature and the first typesetting parameter feature of the text data type are determined.
[0007] Optionally, determining the rendering parameters of the data to be rendered based on the data features and the display parameters includes: When the data type is the table data type, the first rendering parameters of the table type are determined based on the ratio of the number of rows and columns to the screen size; Based on the first rendering parameters of the table type, the cell content density characteristics, and the resolution, determine the font adjustment coefficient of the table type; Based on the font adjustment coefficient of the table type and the first font feature, the second rendering parameters of the table type are determined.
[0008] Optionally, determining the rendering parameters of the data to be rendered based on the data features and the display parameters includes: When the data type is the graph data type, the first rendering parameters of the graph data type are determined according to the data distribution characteristics corresponding to the graph data type and the screen size, wherein the graph data type includes line chart type, bar chart type and pie chart type; Based on the first rendering parameters of the graph data type, the original data element information in the graph data type, and the resolution, the second rendering parameters of the graph data type are determined.
[0009] Optionally, determining the first rendering parameters of the graph data type based on the data distribution characteristics corresponding to the graph data type and the screen size includes: When the data type of the graph is the line graph type, the first rendering parameters of the line graph type are determined based on the data point density distribution characteristics, data point change amplitude characteristics, and screen size of the line graph type. When the data type of the graph is the bar chart type, the first rendering parameters of the bar chart type are determined based on the bar number characteristics, bar height distribution characteristics, bar width ratio characteristics of the bar chart type and the screen size; When the data type is the pie chart type, the overall radius of the pie chart type is determined based on the angular distribution ratio characteristics of each sector area of the pie chart type and the diagonal length in the screen size, and the first rendering parameter of the pie chart type is determined based on the overall radius.
[0010] Optionally, determining the rendering parameters of the data to be rendered based on the data features and the display parameters includes: When the data type is the component data type, the scaling ratio of the component data type is calculated based on the ratio of the first size parameter feature of the component data type to the screen size, and the first rendering parameter of the component data type is determined based on the scaling ratio. The second rendering parameters of the component data type are determined based on the first rendering parameters of the component data type, the first style attribute features, and the resolution.
[0011] Optionally, determining the rendering parameters of the data to be rendered based on the data features and the display parameters includes: When the data type is text, the first rendering parameters of the text data type are determined based on the first layout parameter features and the screen size. The second rendering parameters of the text data type are determined based on the first rendering parameters of the text data type, the first font information features, and the resolution.
[0012] Secondly, this application provides a data rendering apparatus, comprising: A type recognition module is used to obtain the data to be rendered and the display parameters of the terminal display device, and to identify the data type of the data to be rendered, wherein the display parameters include resolution and screen size; The parameter determination module is used to determine the data characteristics corresponding to the data type, and to determine the rendering parameters of the data to be rendered based on the data characteristics and the display parameters; The data rendering module is used to render the data to be rendered based on the rendering parameters.
[0013] Thirdly, this application provides a data rendering device, comprising: One or more processors; A memory that stores one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the data rendering method as described in the first aspect.
[0014] Fourthly, this application provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the data rendering method as described in the first aspect.
[0015] In summary, compared with the prior art, the effective effects of the technical solution provided in this application include at least the following: In this application, the data type of the data to be rendered is identified by acquiring the data to be rendered and the display parameters of the terminal display device, wherein the display parameters include resolution and screen size; the data characteristics corresponding to the data type are determined, and the rendering parameters of the data to be rendered are determined based on the data characteristics and display parameters; and the data to be rendered is rendered based on the rendering parameters. In the above technical section, the rendering parameters of the data to be rendered are determined according to the display parameters of the terminal display device and the inherent characteristics of different data types, achieving good data adaptation on various terminal devices, ensuring a reasonable layout and coordinated proportion of the data display, and enhancing the data rendering effect. Attached Figure Description
[0016] Figure 1 This is a flowchart of a data rendering method provided in an embodiment of this application; Figure 2 This is a flowchart illustrating the process of determining the data characteristics corresponding to a data type, as provided in an embodiment of this application. Figure 3 This is a flowchart illustrating the determination of rendering parameters for table data types provided in an embodiment of this application; Figure 4 This is a flowchart illustrating the determination of rendering parameters for graph data types, provided in an embodiment of this application. Figure 5 This is a flowchart illustrating the determination of the first rendering parameters for a graph data type, as provided in an embodiment of this application. Figure 6 This is a flowchart illustrating the determination of rendering parameters for component data types provided in an embodiment of this application; Figure 7 This is a flowchart illustrating the determination of rendering parameters for text data types, provided in an embodiment of this application. Figure 8 This is a schematic diagram of the structure of a data rendering device provided in an embodiment of this application; Figure 9 This is a schematic diagram of the structure of a data rendering device provided in an embodiment of this application. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of this application clearer, specific embodiments of this application will be described in further detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely for explaining this application and not for limiting it. It should also be noted that, for ease of description, only the parts relevant to this application are shown in the drawings, not all of them. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe operations (or steps) as sequential processes, many of these operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. A process can be terminated when its operation is completed, but it may also have additional steps not included in the drawings. A process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0018] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0019] Existing data rendering methods often fail to fully consider the parameters of the terminal display device and the characteristics of the data to be rendered, which may lead to problems such as unreasonable layout, crowded data content, or uncoordinated proportions on some devices, affecting the readability and effective communication of the data.
[0020] To address the shortcomings of existing data rendering methods that fail to adequately consider the parameters of the terminal display device and the characteristics of the data itself, which can lead to issues such as unreasonable layout, crowded data content, or disproportionate proportions on certain devices and affect readability and effective communication, this embodiment provides a data rendering method. This method determines the rendering parameters of the data to be rendered based on the display parameters of the terminal display device and the specific characteristics of different data types. This achieves good data adaptation across various terminal devices, ensures a reasonable layout and harmonious proportion of the data display, and enhances the rendering effect.
[0021] The data rendering method provided in this embodiment can be executed by a data rendering device, which can be implemented by software and / or hardware. The data rendering device can be composed of two or more physical entities, or it can be composed of a single physical entity.
[0022] The data rendering device is equipped with at least one type of operating system, including but not limited to Android, Linux, and Windows. The data rendering device can install at least one application based on the operating system; this application can be a built-in application of the operating system or an application downloaded from a third-party device or server. In this embodiment, the data rendering device has at least one application capable of executing data rendering methods.
[0023] The technical solutions provided by the embodiments of this application are described in detail below with reference to the accompanying drawings.
[0024] Figure 1 A flowchart of a data rendering method provided in an embodiment of this application is given. Please refer to... Figure 1 The data rendering method specifically includes: S110. Obtain the data to be rendered and the display parameters of the terminal display device, and identify the data type of the data to be rendered, wherein the display parameters include resolution and screen size.
[0025] The data to be rendered refers to various types of data that need to be visualized on the terminal display device. Optionally, the data type may include any one or more of the following: tabular data type, graph data type, component data type, or text data type.
[0026] Display parameters of a terminal display device are parameters used to characterize the display characteristics of the terminal display device. Optionally, the display parameters of the terminal display device in this application embodiment include resolution and screen size; wherein, resolution is the total number of pixels that can be displayed on the screen, expressed as the number of horizontal pixels multiplied by the number of vertical pixels, such as 1920×1080. The higher the resolution, the clearer and more detailed the image on the screen; screen size refers to the physical size of the terminal display device, generally measured in inches, such as a 15.6-inch laptop screen, a 6.5-inch mobile phone screen, etc. The screen size determines the number and size of content that can be displayed on the screen simultaneously. In addition, the terminal display device in this application embodiment can be a computer monitor, a mobile phone screen, or a tablet computer, etc.
[0027] For example, the acquired data to be rendered is detected and analyzed to identify the data type of the data to be rendered; if the data to be rendered has a row and column structure or the data is organized and arranged in the form of cells, then the data type of the data to be rendered is a tabular data type; if the data to be rendered has a series of data point coordinates and line information connecting these points or has a graph, then the data type of the data to be rendered is a graph data type; if the data to be rendered has a continuous character sequence, then the data type of the data to be rendered is a text data type; if the data to be rendered has UI elements, then the data type of the data to be rendered is a component data type.
[0028] S120. Determine the data characteristics corresponding to the data type, and determine the rendering parameters of the data to be rendered based on the data characteristics and the display parameters.
[0029] Data characteristics can be understood as the attributes and features that each data type possesses.
[0030] Optional, Figure 2 This is a flowchart illustrating the process of determining the data characteristics corresponding to a data type, as provided in an embodiment of this application. For example... Figure 2 As shown, the steps for determining the data characteristics corresponding to the data type specifically include S1201-S1204: S1201. When the data type is the table data type, determine the row and column quantity characteristics, cell content density characteristics, and first font characteristics of the table type.
[0031] Among them, the row and column count feature reflects the number of rows and columns contained in the table; the cell content density feature reflects the density of the data content in each cell; and the first font feature involves font-related information such as the font style and size of the text content to be rendered in the table.
[0032] S1202. When the data type is the graph data type, determine the data distribution characteristics corresponding to the graph data type.
[0033] Among them, data distribution characteristics can be understood as the distribution features of data points or data elements in graph data.
[0034] S1203. If the data type is the component data type, determine the first size parameter feature and the first style attribute feature of the component data type.
[0035] The first size parameter features include geometric parameters such as the original width and height of the component data; the first style attribute features include visual style parameters such as the border thickness and shadow intensity of the component before rendering.
[0036] S1204. If the data type is a text data type, determine the first font information feature and the first typesetting parameter feature of the text data type.
[0037] The first font information feature refers to the font-related characteristics in the text data used to describe the appearance of the text, including font style, size, font color, and other font information. The first typesetting parameter feature mainly refers to the relevant characteristics of the text data in terms of page layout and arrangement, including line spacing, character spacing, etc.
[0038] Optional, Figure 3 This is a flowchart illustrating the process of determining the data type of a table, as provided in an embodiment of this application. For example... Figure 3 As shown, the steps for determining the data type of the table specifically include S1205-S1207: S1205. When the data type is the table data type, determine the first rendering parameters of the table type according to the ratio of the row and column quantity characteristics to the screen size.
[0039] The first rendering parameter for table types can be understood as the cell size parameter of the table ultimately rendered on the terminal display device. Specifically, taking a 13.3-inch laptop screen as an example, assuming its aspect ratio is 16:9, the screen width is approximately 29.7 cm and the height is approximately 16.7 cm. Dividing the screen width and height by the number of columns and rows of the table respectively gives the approximate width and height of each cell. For example, for a 10-row, 5-column table on a screen with a width of 29.7 cm and a height of 16.7 cm, the width of each cell is approximately 29.7 ÷ 5 ≈ 5.94 cm, and the height is approximately 16.7 ÷ 10 ≈ 1.67 cm.
[0040] S1206. Based on the first rendering parameters of the table type, the cell content density characteristics, and the resolution, determine the font adjustment coefficient of the table type.
[0041] Specifically, the font adjustment factor is the ratio of the actual rendered font size to the original font size.
[0042] S1207. Determine the second rendering parameters of the table type based on the font adjustment coefficient of the table type and the first font feature.
[0043] The second rendering parameter for the table type can be understood as the font features that are ultimately rendered on the terminal display device.
[0044] Based on the first rendering parameters of the table type, cell content density characteristics, and resolution, the font adjustment coefficient of the table type is determined, and the font characteristics rendered on the terminal display device are determined based on the font adjustment coefficient. This ensures that the table can be presented with an appropriate size and layout on various terminal devices, avoiding poor display effects that make it difficult for users to read and understand the table data, thereby improving the user experience.
[0045] Optional, Figure 4 This is a flowchart illustrating the determination of graph data types provided in an embodiment of this application. For example... Figure 4 As shown, the steps for determining the graph data type specifically include S1208-S1209: S1208. When the data type is the graph data type, determine the first rendering parameters of the graph data type according to the data distribution characteristics corresponding to the graph data type and the screen size, wherein the graph data type includes line chart type, bar chart type and pie chart type.
[0046] The first rendering parameter of the graph data type can be understood as the actual size parameter of the graph data type when it is finally rendered on the terminal display device.
[0047] S1209. Based on the first rendering parameters of the graph data type, the original data element information in the graph data type, and the resolution, determine the second rendering parameters of the graph data type.
[0048] The data element information can include geometric parameters, text parameters, and visual style parameters. For example, geometric parameters can be line thickness (such as line width), data point size (such as the diameter of the circle marker in a line chart), column border width, and sector border width; text parameters can be the font size of axis labels, the font size of data labels (such as the numerical labels at the top of a bar chart), and the font size of sector labels in a pie chart.
[0049] Specifically, the second rendering parameter of the graph data type can be understood as the actual data element information of the graph data type that is ultimately rendered in the terminal display device.
[0050] Optional, Figure 5 This is a flowchart illustrating the determination of the first rendering parameters for a graph data type, as provided in an embodiment of this application. For example... Figure 5 As shown, the step of determining the first rendering parameter of the graph data type specifically includes S1210-S1212: S1210. When the data type of the graph is the line graph type, determine the first rendering parameters of the line graph type based on the data point density distribution characteristics, data point change amplitude characteristics, and screen size of the line graph type.
[0051] S1211. When the graph data type is the bar chart type, determine the first rendering parameters of the bar chart type based on the bar number characteristics, bar height distribution characteristics, bar width ratio characteristics of the bar chart type and the screen size.
[0052] S1212. When the data type of the image is the pie chart type, determine the overall radius of the pie chart type based on the angular distribution ratio characteristics of each sector area of the pie chart type and the diagonal length in the screen size, and determine the first rendering parameter of the pie chart type based on the overall radius.
[0053] Optional, Figure 6 This is a flowchart illustrating the determination of rendering parameters for component data types, provided in an embodiment of this application. For example... Figure 6 As shown, the steps for determining the rendering parameters of the component data type specifically include S1213-S1214: S1213. When the data type is the component data type, calculate the scaling ratio of the component data type according to the ratio of the first size parameter feature of the component data type to the screen size, and determine the first rendering parameter of the component data type based on the scaling ratio.
[0054] The first rendering parameter of the component data type is the component size parameter that is finally rendered on the terminal display device.
[0055] Specifically, the scaling factor of the component size parameters rendered on the terminal display device in the width direction is the screen width divided by the original width of the component; the scaling factor in the height direction is the screen height divided by the original height of the component.
[0056] S1214. Determine the second rendering parameters of the component data type based on the first rendering parameters of the component data type, the first style attribute features, and the resolution.
[0057] The first rendering parameter for the component data type is the component style attribute that will be ultimately rendered on the terminal display device. Optionally, the style attributes in this application may include: border thickness and shadow intensity.
[0058] Optional, Figure 7 This is a flowchart illustrating the determination of rendering parameters for text data types, provided in an embodiment of this application. For example... Figure 7 As shown, the steps for determining the rendering parameters of the text data type specifically include S1215-S1216: S1215. If the data type is a text data type, determine the first rendering parameters of the text data type based on the first layout parameter features and the screen size.
[0059] Among them, the first rendering parameter for the text data type is the text layout parameter that is finally rendered on the terminal display device.
[0060] S1216. Determine the second rendering parameters of the text data type based on the first rendering parameters of the text data type, the first font information features, and the resolution.
[0061] The second rendering parameter for the text data type is the text font information that will be ultimately rendered on the terminal display device.
[0062] S130. Render the data to be rendered based on the rendering parameters; Specifically, the rendering parameters for the different data types mentioned above are used to render the data, resulting in the rendered data.
[0063] In summary, the data rendering method provided in this application involves acquiring the data to be rendered and the display parameters of the terminal display device, identifying the data type of the data to be rendered (the display parameters include resolution and screen size), determining the data characteristics corresponding to the data type, determining the rendering parameters of the data to be rendered based on the data characteristics and the display parameters, and rendering the data to be rendered based on the rendering parameters. In the above technical sections, by determining the rendering parameters of the data to be rendered according to the display parameters of the terminal display device and the inherent data characteristics of different data types, good data adaptation is achieved on various terminal devices, ensuring a reasonable layout and coordinated proportion of the data display, and enhancing the data rendering effect.
[0064] Figure 8 This is a schematic diagram of a data rendering apparatus provided in an embodiment of this application. (Reference) Figure 8 The data rendering device provided in this embodiment specifically includes: a type identification module 21, a parameter determination module 22, and a data rendering module 23.
[0065] The type recognition module 21 is used to obtain the data to be rendered and the display parameters of the terminal display device, and to identify the data type of the data to be rendered, wherein the display parameters include resolution and screen size; The parameter determination module 22 is used to determine the data characteristics corresponding to the data type, and to determine the rendering parameters of the data to be rendered based on the data characteristics and the display parameters; The data rendering module 23 is used to render the data to be rendered based on the rendering parameters.
[0066] Based on the above embodiments, the data type includes any one or more of table data type, graph data type, component data type or text data type. Correspondingly, the parameter determination module 22 includes a feature determination unit for determining the data features corresponding to the data type.
[0067] The feature determination unit includes: The first feature determination subunit is used to determine the row and column count feature, cell content density feature, and first font feature of the table type when the data type is the table data type. The second feature determination subunit is used to determine the data distribution characteristics corresponding to the graph data type when the data type is the graph data type. The third feature determination subunit is used to determine the first size parameter feature and the first style attribute feature of the component data type when the data type is the component data type; The fourth feature determination subunit is used to determine the first font information feature and the first typesetting parameter feature of the text data type when the data type is a text data type.
[0068] Based on the above embodiments, the parameter determination module 22 includes a parameter determination unit, which includes: The first parameter determination sub-unit is used to determine the first rendering parameters of the table type based on the ratio of the number of rows and columns to the screen size, when the data type is the table data type. The adjustment coefficient sub-unit is used to determine the font adjustment coefficient of the table type based on the first rendering parameters of the table type, the cell content density characteristics, and the resolution; The second parameter determination sub-unit is used to determine the second rendering parameters of the table type based on the font adjustment coefficient of the table type and the first font feature.
[0069] Based on the above embodiments, the parameter determination unit includes: The first parameter determination subunit is used to determine the first rendering parameters of the graph data type based on the data distribution characteristics corresponding to the graph data type and the screen size when the data type is the graph data type. The graph data type includes line chart type, bar chart type and pie chart type. The second parameter determination subunit is used to determine the second rendering parameters of the graph data type based on the first rendering parameters of the graph data type, the original data element information in the graph data type, and the resolution.
[0070] Based on the above embodiments, the first parameter determining subunit of Figure 1 includes: When the data type of the graph is the line graph type, the first rendering parameters of the line graph type are determined based on the data point density distribution characteristics, data point change amplitude characteristics, and screen size of the line graph type. When the data type of the graph is the bar chart type, the first rendering parameters of the bar chart type are determined based on the bar number characteristics, bar height distribution characteristics, bar width ratio characteristics of the bar chart type and the screen size; When the data type is the pie chart type, the overall radius of the pie chart type is determined based on the angular distribution ratio characteristics of each sector area of the pie chart type and the diagonal length in the screen size, and the first rendering parameter of the pie chart type is determined based on the overall radius.
[0071] Based on the above embodiments, the parameter determination unit includes: The component first parameter determining subunit is used to calculate the scaling ratio of the component data type based on the ratio of the first size parameter feature of the component data type to the screen size when the data type is the component data type, and determine the first rendering parameter of the component data type based on the scaling ratio. The component second parameter determining subunit is used to determine the second rendering parameter of the component data type based on the first rendering parameter of the component data type, the first style attribute feature, and the resolution.
[0072] Based on the above embodiments, the parameter determination unit includes: The text first parameter determination subunit is used to determine the first rendering parameter of the text data type based on the first layout parameter feature and the screen size when the data type is a text data type. The text second parameter determination subunit is used to determine the second rendering parameter of the text data type based on the first rendering parameter of the text data type, the first font information feature, and the resolution.
[0073] In summary, the data rendering apparatus provided in this application obtains the data to be rendered and the display parameters of the terminal display device, identifies the data type of the data to be rendered, wherein the display parameters include resolution and screen size; determines the data characteristics corresponding to the data type, and determines the rendering parameters of the data to be rendered based on the data characteristics and display parameters; and renders the data to be rendered based on the rendering parameters. In the above technical sections, the rendering parameters of the data to be rendered are determined according to the display parameters of the terminal display device and the inherent data characteristics corresponding to different data types, achieving good data adaptation on various terminal devices, ensuring a reasonable layout and coordinated proportion of the data display, and enhancing the data rendering effect.
[0074] The data rendering apparatus provided in this application embodiment can be used to execute the data rendering method provided in the above embodiment, and has corresponding functions and beneficial effects.
[0075] Figure 9 This is a schematic diagram of the structure of a data rendering device provided in an embodiment of this application, with reference to... Figure 9 The data rendering device includes a processor 31, a memory 32, a communication device 33, an input device 34, and an output device 35. The number of processors 31 and the number of memories 32 in the data rendering device can be one or more. The processor 31, memory 32, communication device 33, input device 34, and output device 35 of the data rendering device can be connected via a bus or other means.
[0076] The memory 32, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as program instructions / modules corresponding to the data rendering method in any embodiment of this application (e.g., type identification module 21, parameter determination module 22, and data rendering module 23 in the data rendering apparatus). The memory 32 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function; the data storage area may store data created based on the use of the device, etc. Furthermore, the memory 32 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0077] The communication device 33 is used for data transmission.
[0078] The processor 31 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 32, thereby realizing the above-mentioned data rendering method.
[0079] Input device 34 can be used to receive input digital or character information, and to generate key signal inputs related to user settings and function control of the device. Output device 35 may include display devices such as a display screen.
[0080] The data rendering device provided above can be used to execute the data rendering method provided in the above embodiments, and has corresponding functions and beneficial effects.
[0081] This application also provides a storage medium containing computer-executable instructions. When executed by a computer processor, the computer-executable instructions are used to execute a data rendering method. The data rendering method includes: acquiring data to be rendered and display parameters of a terminal display device; identifying the data type of the data to be rendered, wherein the display parameters include resolution and screen size; determining the data characteristics corresponding to the data type; determining the rendering parameters of the data to be rendered based on the data characteristics and the display parameters; and rendering the data to be rendered based on the rendering parameters.
[0082] Storage medium – any type of memory device or storage device. The term “storage medium” is intended to include: mounting media, such as CD-ROM, floppy disk, or magnetic tape devices; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. Storage medium may also include other types of memory or combinations thereof. Furthermore, storage medium may reside in a first computer system in which the program is executed, or it may reside in a different second computer system connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term “storage medium” can include two or more storage media residing in different locations (e.g., in different computer systems connected via a network). Storage medium may store program instructions (e.g., specifically implemented as a computer program) executable by one or more processors.
[0083] Of course, the computer-executable instructions provided in the embodiments of this application are not limited to the data rendering method described above, but can also execute related operations in the data rendering method provided in any embodiment of this application.
[0084] The data rendering apparatus, storage medium, and data rendering device provided in the above embodiments can execute the data rendering method provided in any embodiment of this application. For technical details not described in detail in the above embodiments, please refer to the data rendering method provided in any embodiment of this application.
[0085] The above description is merely a preferred embodiment and the technical principles employed in this application. This application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions that can be made by those skilled in the art will not depart from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of this application. The scope of this application is determined by the scope of the claims.
Claims
1. A data rendering method, characterized in that, include: The system acquires the data to be rendered and the display parameters of the terminal display device, and identifies the data type of the data to be rendered, wherein the display parameters include resolution and screen size. Determine the data characteristics corresponding to the data type, and determine the rendering parameters of the data to be rendered based on the data characteristics and the display parameters; The data to be rendered is rendered based on the rendering parameters.
2. The data rendering method according to claim 1, characterized in that, The data type includes any one or more of the following: table data type, graph data type, component data type, or text data type; Accordingly, determining the data characteristics corresponding to the data type includes: When the data type is the table data type, determine the row and column count characteristics, cell content density characteristics, and first font characteristics of the table type; When the data type is the graph data type, determine the data distribution characteristics corresponding to the graph data type; When the data type is the component data type, determine the first size parameter feature and the first style attribute feature of the component data type; When the data type is a text data type, the first font information feature and the first typesetting parameter feature of the text data type are determined.
3. The data rendering method according to claim 2, characterized in that, The step of determining the rendering parameters of the data to be rendered based on the data features and the display parameters includes: When the data type is the table data type, the first rendering parameters of the table type are determined based on the ratio of the number of rows and columns to the screen size; Based on the first rendering parameters of the table type, the cell content density characteristics, and the resolution, determine the font adjustment coefficient of the table type; The second rendering parameters of the table type are determined based on the font adjustment coefficient of the table type and the first font feature.
4. The data rendering method according to claim 2, characterized in that, Determining the rendering parameters of the data to be rendered based on the data features and the display parameters includes: When the data type is the graph data type, the first rendering parameters of the graph data type are determined according to the data distribution characteristics corresponding to the graph data type and the screen size, wherein the graph data type includes line chart type, bar chart type and pie chart type; Based on the first rendering parameters of the graph data type, the original data element information in the graph data type, and the resolution, the second rendering parameters of the graph data type are determined.
5. The data rendering method according to claim 4, characterized in that, The step of determining the first rendering parameters of the graph data type based on the data distribution characteristics corresponding to the graph data type and the screen size includes: When the data type of the graph is the line graph type, the first rendering parameters of the line graph type are determined based on the data point density distribution characteristics, data point change amplitude characteristics, and screen size of the line graph type. When the data type of the graph is the bar chart type, the first rendering parameters of the bar chart type are determined based on the bar number characteristics, bar height distribution characteristics, bar width ratio characteristics of the bar chart type and the screen size; When the data type is the pie chart type, the overall radius of the pie chart type is determined based on the angular distribution ratio characteristics of each sector area of the pie chart type and the diagonal length in the screen size, and the first rendering parameter of the pie chart type is determined based on the overall radius.
6. The data rendering method according to claim 2, characterized in that, Determining the rendering parameters of the data to be rendered based on the data features and the display parameters includes: When the data type is the component data type, the scaling ratio of the component data type is calculated based on the ratio of the first size parameter feature of the component data type to the screen size, and the first rendering parameter of the component data type is determined based on the scaling ratio. The second rendering parameters of the component data type are determined based on the first rendering parameters of the component data type, the first style attribute features, and the resolution.
7. The data rendering method according to claim 2, characterized in that, Determining the rendering parameters of the data to be rendered based on the data features and the display parameters includes: When the data type is text, the first rendering parameters of the text data type are determined based on the first layout parameter features and the screen size. The second rendering parameters of the text data type are determined based on the first rendering parameters of the text data type, the first font information features, and the resolution.
8. A data rendering apparatus, characterized in that, include: A type recognition module is used to obtain the data to be rendered and the display parameters of the terminal display device, and to identify the data type of the data to be rendered, wherein the display parameters include resolution and screen size; The parameter determination module is used to determine the data characteristics corresponding to the data type, and to determine the rendering parameters of the data to be rendered based on the data characteristics and the display parameters; The data rendering module is used to render the data to be rendered based on the rendering parameters.
9. A data rendering device, characterized in that, include: One or more processors; A memory that stores one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the data rendering method as described in any one of claims 1-7.
10. A storage medium containing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the data rendering method as described in any one of claims 1-7.