A data display method, device, equipment and medium
By generating data maps and using GPU to generate element information, the problem that game engines in the prior art cannot produce charts is solved, and efficient chart generation and data display effects are achieved.
Patent Information
- Application Number
- CN202011536080.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-23
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2040-12-23
AI Technical Summary
In the prior art, data visualization usually depends on game engines, but game engines cannot be used to make charts and cannot meet the graph production and display needs in data visualization.
By displaying data input items and data display configuration items, obtaining the data to be displayed and determining the data display configuration data, generating data maps and sending chart generation instructions to the GPU, using the GPU to generate literal information and generate data display charts based on the literal information.
It realizes the creation of charts in the game engine, improves the efficiency and effect of chart generation and data display, and meets the needs of chart production and display in data visualization.
Smart Images

Figure CN112494947B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data display method, device, equipment and medium. Background Art
[0002] In the prior art, data visualization is generally implemented based on game engines, but game engines cannot be used to make charts and cannot meet the chart making and display requirements in data visualization.
[0003] In view of this, more effective and efficient data display solutions are needed. Summary of the invention
[0004] The embodiments of this specification provide a data display method, device, equipment and medium to solve the technical problem of how to display data more effectively and efficiently.
[0005] To solve the above technical problems, the embodiments of this specification provide the following technical solutions:
[0006] The present invention provides a data display method, including:
[0007] Display data input items, and obtain data to be displayed through the data input items; and display data display configuration items, obtain data display configuration item feedback data, and determine data display configuration data according to the data display configuration item feedback data;
[0008] After acquiring the data to be displayed, generating a data map for storing the data to be displayed;
[0009] Sending a chart generation instruction including the data map to the GPU, so that after the GPU obtains the data map, it reads the data to be displayed included in the data map and generates primitive information according to the data to be displayed;
[0010] The graphic element information is obtained, and a data display chart is generated and displayed according to the graphic element information and the data display configuration information, wherein the data display chart is used to display the data to be displayed.
[0011] The embodiment of this specification provides a data display device, including:
[0012] A data acquisition module, used to display data input items, acquire data to be displayed through the data input items; and display data display configuration items, acquire data display configuration item feedback data, and determine data display configuration data according to the data display configuration item feedback data;
[0013] A map generation module, used for generating a data map for storing the data to be displayed after acquiring the data to be displayed;
[0014] A primitive generation module, used for sending a chart generation instruction including the data map to the GPU, so that after the GPU obtains the data map, it reads the data to be displayed included in the data map and generates primitive information according to the data to be displayed;
[0015] The chart generation module is used to obtain the graphic element information, generate and display a data display chart according to the graphic element information and the data display configuration information, and the data display chart is used to display the data to be displayed.
[0016] The embodiment of this specification provides a data display device, including:
[0017] at least one processor;
[0018] as well as,
[0019] a memory communicatively coupled to the at least one processor;
[0020] in,
[0021] The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor, so that the at least one processor can execute the above-mentioned data display method.
[0022] An embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the above-mentioned data display method is implemented.
[0023] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:
[0024] In this embodiment, the data to be displayed is stored in a data map, so that the data storage capacity can be increased; the GPU is used to generate the graphic element information corresponding to the data to be displayed, and the data display chart is generated according to the graphic element information. This is a chart generation method that can be applied to various game engines, and it realizes the creation of charts in the game engine, which improves the efficiency and effect of chart generation and data display. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments of this specification or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0026] Figure 1It is a schematic diagram of the execution body of the data display method in the first embodiment of this specification.
[0027] Figure 2 It is a flowchart of the data display method in the first embodiment of this specification.
[0028] Figure 3 It is a data display chart diagram in the first embodiment of this specification.
[0029] Figure 4 It is a structural diagram of the data display device in the second embodiment of this specification. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0031] In the prior art, using charts to display data is an important application in the field of data visualization. Data visualization is generally implemented based on game engines, but game engines cannot be used to make charts and cannot meet the chart making and display requirements in data visualization.
[0032] The first embodiment of this specification (hereinafter referred to as "this embodiment") provides a data display method. The execution subject of this embodiment can be a terminal (including but not limited to mobile phones, computers, pads, televisions) or a server or an operating system or a data display platform or a data display system or an application, etc., that is, the execution subject can be various and can be set, used or changed as needed. In addition, there can also be a third-party application to assist the execution subject in executing this embodiment. For example Figure 1 As shown, the data display method in this embodiment can be executed by a server, and an application corresponding to the server can be installed on a terminal (held by a user). Data can be transmitted between the terminal or the application and the server, and data can be collected, input or output, or pages or information can be displayed or processed (to the user) through the terminal or the application, thereby assisting the server in executing the data display method in this embodiment.
[0033] In particular, the execution subject of this embodiment may be a CPU.
[0034] like Figure 2 As shown, the data display method provided in this embodiment includes:
[0035] S101: (Executing subject) displaying data input items, obtaining data to be displayed through the data input items; and displaying data display configuration items, obtaining data display configuration item feedback data, and determining data display configuration data according to the data display configuration item feedback data;
[0036] In this embodiment, the execution subject may have a display screen. For example, if the execution subject is a terminal or an application on the terminal, the terminal has a display screen; if the execution subject is a server, as mentioned above, the application may communicate with the server by means of the display screen of the terminal where the application is located.
[0037] The execution subject can display the data input items through the above display screen, that is, the execution subject obtains the data to be displayed through the data input items. For example, the user imports or inputs the data to be displayed through the data input items, so that the execution subject obtains the imported data to be displayed. Users generally need to perform certain operations to import data through the terminal or the application on the terminal, which is not limited in this embodiment.
[0038] The execution subject may display data display configuration items through the above display screen, and the data display configuration items are used by the user to set (at least by selection or input) data display configuration data. The data display configuration items may include at least selection items or input items, the selection items are used by the user to select data display configuration data, and the input items are used by the user to input data display configuration data.
[0039] Correspondingly, after the user operates through the data display configuration item (including but not limited to the above-mentioned selection or input operation, the same below), the execution subject will generate feedback data for the data display configuration item according to the user's operation, that is, the execution subject will obtain the data display configuration item feedback data, and determine the data display configuration data according to the data display configuration item feedback data. Among them, if the execution subject is a terminal or an application on the terminal, the execution subject will obtain the data display configuration item feedback data after the user operates the terminal or the application on the terminal; if the execution subject is a server, after the user operates the terminal or the application on the terminal, the terminal or the application on the terminal will generate the data display configuration item feedback data and send it to the server, so that the server obtains the data display configuration item feedback data.
[0040] The data display configuration data may include data display panel parameters, which are used to define various attributes or parameters of the data display panel, and the data display panel parameters include but are not limited to position parameters and / or size parameters of the data display panel. By playing the panel configuration parameters, the execution subject can generate a data display panel (or data display window) of a corresponding size at a corresponding position on the display screen.
[0041] In this embodiment, the execution subject may preset a data display condition, and when the user triggers the data display condition (for example, the user clicks a button on the terminal or application page to trigger the data display condition), the above-mentioned data input items and / or data display configuration items are displayed. This embodiment does not limit how to trigger the data display condition.
[0042] S103: (Executing body) after acquiring the data to be displayed, generates a data map for storing the data to be displayed;
[0043] As described above, the execution subject obtains the data to be displayed through the data input item. After the execution subject obtains the data to be displayed, a data map can be generated, and the data map is used to store the data to be displayed, that is, the data to be displayed is stored in the format of a picture. Among them, the data map can be composed of a matrix of four float values: red, green, blue, and transparency. The data map contains at least one color value channel.
[0044] In this embodiment, generating a data map for storing the data to be displayed may include:
[0045] The data to be displayed is normalized, and a data map for storing the normalized data to be displayed is generated. By normalizing the data, the space occupied by the data can be effectively reduced, and the data storage capacity of the data map can be increased.
[0046] After the execution subject obtains the data to be displayed and before generating the data map, it may perform some necessary operations on the data to be displayed, such as data cleaning or encryption, etc., which is not limited in this embodiment.
[0047] S105: (Executing body) sending a chart generation instruction including the data map to the GPU, so that after the GPU obtains the data map, it reads the data to be displayed included in the data map and generates primitive information according to the data to be displayed;
[0048] After generating the above data map, the execution subject may send a chart generation instruction containing the data map to the GPU, so that after the GPU obtains the data map, it reads the data to be displayed contained in the data map and generates primitive information according to the data to be displayed.
[0049] Specifically, after the GPU obtains the above-mentioned chart generation instruction, it also obtains the data map contained in the chart generation instruction. The GPU reads the data (data to be displayed) contained in the data map, and generates primitive information based on the read data to be displayed, and the primitive information is used to generate a data display chart. Among them, the primitive information is a component unit or component structure of the chart, such as various types of line segments (including but not limited to straight line segments, curve segments and broken lines), various types of graphics (including but not limited to circles, rings, rectangles), etc. It can be seen that the primitive information can be of multiple types.
[0050] In this embodiment, the GPU may determine which type or types of primitive information to generate based on the chart generation instruction. Specifically, the chart generation instruction may include chart style information, and the chart style information is used to limit the style of the data display chart. The style of the data display chart includes but is not limited to a line chart, a bar chart, and a pie chart. For example, if the data display chart is a line chart, the primitive information may include a straight line segment or a broken line; if the data display chart is a pie chart, the primitive information may include a circular shape, which is not limited in this embodiment.
[0051] As can be seen from the above, generating the graphic element information according to the data to be displayed may include: generating the graphic element information conforming to the chart style information according to the data to be displayed.
[0052] In addition, the GPU can also determine the data interpolation method based on the chart style information.
[0053] In this embodiment, the user can decide the chart style. Specifically, the data display configuration data may include the chart style information, that is, the user can set the chart style information through the data display configuration item.
[0054] S107: (Executing entity) Obtaining the graphic element information, generating and displaying a data display chart according to the graphic element information and the data display configuration information, wherein the data display chart is used to display the data to be displayed.
[0055] After the GPU generates the above-mentioned primitive information, the execution subject can obtain the primitive information generated by the GPU, generate and display a data display chart according to the primitive information and the data display configuration information, and the data display chart is used to display the data to be displayed.
[0056] It should be noted that if the execution subject is a terminal or an application on the terminal (or the execution subject is the CPU of the terminal), the execution subject directly displays the data display chart on its display screen; if the execution subject is a server, then as mentioned above, the application can communicate with the server, and the server sends instructions to the application, and the data display chart is displayed with the help of the display screen of the terminal where the application is located.
[0057] Specifically, generating a data display chart according to the graphic element information and the data display configuration information may include:
[0058] A data display chart is generated according to the graphic element information, and the data display chart is displayed in a data display panel defined by the data display panel parameters. The step of generating a data display chart according to the graphic element information may include: assembling the graphic element information into a data display chart.
[0059] The present embodiment is further described below by an example:
[0060] Assume that the data to be displayed is the performance data from January to December of a certain year, and the performance data is shown in Table 1:
[0061] January February March April May June July August September October November December 75 63 98 10 55 87 42 61 82 34 91 56
[0062] Table 1
[0063] Among them, the maximum value of performance data is 100.
[0064] After the execution subject obtains the above data to be displayed, the data to be displayed can be normalized according to the maximum value of the performance data (divided by the maximum value), and the normalized data to be displayed is shown in Table 2:
[0065] January February March April May June July August September October November December 0.75 0.63 0.98 0.10 0.55 0.87 0.42 0.61 0.82 0.34 0.91 0.56
[0066] Table 2
[0067] Of course, the execution subject may also obtain data display configuration item feedback data, and determine the data display configuration data according to the data display configuration item feedback data.
[0068] The execution subject stores the normalized data to be displayed in a picture format, and generates a data map for storing the normalized data to be displayed. In this example, the generated picture occupies one color value channel, as shown below:
[0069] [Red(0.75), Green(0), Blue(0), Transparency(0)];
[0070] [Red(0.63), Green(0), Blue(0), Transparency(0)];
[0071] [Red(0.98), Green(0), Blue(0), Transparency(0)];
[0072] [Red(0.10), Green(0), Blue(0), Transparency(0)];
[0073] [Red(0.55), Green(0), Blue(0), Transparency(0)];
[0074] [Red(0.87), Green(0), Blue(0), Transparency(0)];
[0075] [Red(0.42), Green(0), Blue(0), Transparency(0)];
[0076] [Red(0.61), Green(0), Blue(0), Transparency(0)];
[0077] [Red(0.82), Green(0), Blue(0), Transparency(0)];
[0078] [Red(0.34), Green(0), Blue(0), Transparency(0)];
[0079] [Red(0.91), Green(0), Blue(0), Transparency(0)];
[0080] [Red(0.56), Green(0), Blue(0), Transparency(0)];
[0081] A chart generation instruction including the data map is sent to the GPU, wherein the chart generation instruction includes chart style information, and the chart style defined by the chart style information is a line chart.
[0082] After acquiring the data map, the GPU reads the data to be displayed contained in the data map, and generates graphic element information that conforms to the chart style information according to the data to be displayed.
[0083] The execution subject obtains the primitive information generated by the GPU, generates a data display chart according to the primitive information and the data display configuration information, and displays the data display chart in the data display panel defined by the data display panel parameters in the data display configuration data, wherein the data display chart is used to display the data to be displayed, such as Figure 3 shown.
[0084] It should be noted that, in this embodiment, the above-mentioned primitive information can be obtained by rendering using a game engine. Specifically, Unreal Engine and HLSL shader can be used to render and obtain the primitive information corresponding to the data to be displayed.
[0085] In this embodiment, the data to be displayed is stored by the data map, which can increase the data storage capacity, so that the data map can be used to store the data to be displayed. Figure 1 More data is given to the GPU for GPU processing at one time; this embodiment uses the GPU to generate graphic element information corresponding to the data to be displayed, and generates a data display chart based on the graphic element information. This is a chart generation method that can be applied to various game engines, and realizes the creation of charts in game engines.
[0086] In this embodiment, a GPU is used to generate graphic element information, and a data display chart is generated based on the graphic element information generated by the GPU. Due to the high graphics processing performance of the GPU, the generation efficiency and generation effect of the data display chart can be improved, thereby improving the data display efficiency and effect.
[0087] In this embodiment, the user can set a variety of data display configuration data and data display effects through the data display configuration items, thereby realizing personalized customization of data display and further improving the efficiency and effect of data display.
[0088] like Figure 4 As shown, the second embodiment of this specification provides a data display device, including:
[0089] The data acquisition module 202 is used to display data input items, obtain data to be displayed through the data input items; and display data display configuration items, obtain data display configuration item feedback data, and determine data display configuration data according to the data display configuration item feedback data;
[0090] A map generation module 204 is used to generate a data map for storing the data to be displayed after acquiring the data to be displayed;
[0091] The primitive generation module 206 is used to send a chart generation instruction containing the data map to the GPU, so that after the GPU obtains the data map, it reads the data to be displayed contained in the data map and generates primitive information according to the data to be displayed;
[0092] The chart generation module 208 is used to obtain the graphic element information, generate and display a data display chart according to the graphic element information and the data display configuration information, and the data display chart is used to display the data to be displayed.
[0093] Optionally, generating a data map for storing the data to be displayed includes:
[0094] The data to be displayed is normalized to generate a data map for storing the normalized data to be displayed.
[0095] Optionally, the data display configuration data includes data display panel parameters, and the data display panel parameters are used to limit the data display panel.
[0096] Optionally, the data display panel parameters include position and / or size parameters of the data display panel.
[0097] Optionally, generating a data display chart according to the graphic element information and the data display configuration information includes:
[0098] A data display chart is generated according to the graphic element information, and the data display chart is displayed in a data display panel defined by the data display panel parameters.
[0099] Optionally, the chart generation instruction further includes chart style information, and the chart style information is used to limit the style of the data display chart.
[0100] Optionally, the data display configuration data includes the chart style information.
[0101] Optionally, generating the graphic element information according to the data to be displayed includes:
[0102] Generate graphic element information that conforms to the chart style information according to the data to be displayed.
[0103] Optionally, generating the graphic element information according to the data to be displayed includes:
[0104] The game engine is used for rendering to obtain the graphic element information corresponding to the data to be displayed.
[0105] Optionally, the data map includes at least one color value channel.
[0106] The third embodiment of this specification provides a data display device, including:
[0107] at least one processor;
[0108] as well as,
[0109] a memory communicatively coupled to the at least one processor;
[0110] in,
[0111] The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor, so that the at least one processor can execute the data display method described in the first embodiment.
[0112] The fourth embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the data display method described in the first embodiment is implemented.
[0113] The above embodiments may be used in combination, and modules with the same name between different embodiments or within the same embodiment may be the same or different modules.
[0114] The above describes specific embodiments of the present specification, and other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily have to be performed in the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0115] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer-readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0116] The apparatus, device, non-volatile computer-readable storage medium and method provided in the embodiments of this specification correspond to each other, and therefore, the apparatus, device, and non-volatile computer storage medium also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the corresponding apparatus, device, and non-volatile computer storage medium will not be repeated here.
[0117] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0118] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0119] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0120] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0121] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification may be in the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the embodiments of this specification may be in the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0122] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0123] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0124] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0125] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0126] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0127] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0128] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0129] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0130] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0131] The above is only an embodiment of this specification and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A data display method, characterized in that: Used to create graphs in game engines, including: Acquire multiple data to be displayed according to the data input items displayed in the interface; and acquire data display configuration item feedback data according to the data display configuration items displayed in the interface, wherein the data display configuration items are used by the user to configure the data display information, and the data display configuration item feedback data is used to determine the data display configuration information; Performing normalization processing on the plurality of data to be displayed respectively to obtain reference data respectively matching the plurality of data to be displayed; When a target color value channel is determined from a plurality of color value channels, the plurality of reference data are respectively determined as channel values of the target color value channels of a plurality of pixel points in the data map; Sending a chart generation instruction including the data map to the GPU according to the data display configuration information, wherein the chart generation instruction is used to instruct the GPU to read the multiple data to be displayed stored in the data map, and generate multiple primitive information of the target primitive type according to the multiple data to be displayed; the chart generation instruction carries chart style information for indicating the target primitive type; Acquire a plurality of the graphic primitive information from the GPU, and splice the plurality of the graphic primitive information to obtain a data display chart; The data display chart is displayed in a data display panel according to the data display configuration information.
2. According to the method of claim 1, the data display configuration information includes data display panel parameters, and the data display panel parameters are used to limit the data display panel. 3 . The method according to claim 2 , wherein the data display panel parameters include position and / or size parameters of the data display panel.
4. The method according to claim 2 or 3, wherein displaying the data display chart in the data display panel according to the data display configuration information comprises: A data display chart is generated according to the graphic element information, and the data display chart is displayed in a data display panel defined by the data display panel parameters. The method according to claim 4 , wherein the data presentation configuration information includes the chart style information.
6. The method according to claim 4, generating a plurality of primitive information of a target primitive type according to the plurality of data to be displayed, respectively, comprises: Generate graphic element information that conforms to the chart style information according to the data to be displayed.
7. The method according to claim 1, generating a plurality of primitive information of a target primitive type according to the plurality of data to be displayed, comprising: The game engine is used for rendering to obtain the graphic element information corresponding to the data to be displayed. The method of claim 1 , wherein the data map comprises at least one color value channel.
9. A data display device, characterized in that: Used to create graphs in game engines, including: A data acquisition module, used to acquire a plurality of data to be displayed according to the data input items displayed in the interface; and to acquire data display configuration item feedback data according to the data display configuration items displayed in the interface, wherein the data display configuration items are used by the user to configure the data display configuration information, and the data display configuration item feedback data is used to determine the data display configuration information; A primitive generation module, configured to send a chart generation instruction including the data map to the GPU according to the data display configuration information, wherein the chart generation instruction is used to instruct the GPU to read the data to be displayed stored in the data map, and to generate a plurality of primitive information of a target primitive type according to the plurality of data to be displayed; the chart generation instruction carries chart style information for indicating the target primitive type; A chart generation module, used for obtaining a plurality of the graphic element information from the GPU, and splicing the plurality of the graphic element information to obtain a data display chart; generating and displaying a data display chart according to the data display configuration information; The device is also used to: perform normalization processing on the multiple data to be displayed respectively to obtain reference data that match the multiple data to be displayed respectively; when a target color value channel is determined from the multiple color value channels, the multiple reference data are respectively determined as the channel values of the target color value channels of the multiple pixel points in the data map.
10. A data display device, comprising: at least one processor; as well as, a memory communicatively coupled to the at least one processor; in, The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor to enable the at least one processor to perform the data presentation method according to any one of claims 1 to 8.
11. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the data display method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Data display method, data display device, computer equipment and storage medium
CN110227262A
Mutual information generating system
CN201540593U
KR20200102238A