A data visualization method, device, equipment and medium

By training the use of template recommendation models and template libraries, and automatically recommending and using appropriate data visualization templates, the problem of low data visualization efficiency in the existing technology is solved, and user experience and operation efficiency are improved.

CN114385940BActive Publication Date: 2025-03-14AISINO CORPORATION
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111619912.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2025-03-14
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

The existing data visualization technology is inefficient, and users need to choose their own charts, which will take more time and effort to visualize each data.

Method used

By obtaining the characteristic information of the target data, input the trained template recommendation model, output the template identification, and obtain the corresponding target template from the template library, and visually display the target data based on this template.

Benefits of technology

It saves user operation time and improves data visualization efficiency. Users do not need to choose templates by themselves. The system analyzes user concerns based on user historical data and automatically recommends appropriate templates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114385940B_ABST
    Figure CN114385940B_ABST
Patent Text Reader

Abstract

The present application relates to the field of visualization technology, and specifically to a data visualization method, device, equipment and medium for improving the efficiency of data visualization. The method includes: obtaining target data, inputting feature information of the target data into a trained template recommendation model, and outputting a template identifier, wherein the trained template recommendation model is obtained by training based on user history data, and the user history data includes feature information of multiple data, and the user's actual use template corresponding to the feature information of each data, and based on the template identifier, obtaining a target template corresponding to the template identifier from multiple modules of the template library, wherein the target template includes multiple first parameter information of at least one first component, each first component represents a visualization chart, and each first parameter information is used to indicate a feature of the visualization chart corresponding to at least one first component, and based on the target template, the target data is visualized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of visualization interface technology, and in particular to a data visualization method, device, equipment and medium. Background Art

[0002] With the advent of the big data era, data, as a foundation, is extremely important to all walks of life. Data visualization refers to converting structured or unstructured data into appropriate visual charts, directly presenting the information hidden in the data to users, allowing users to intuitively perceive the changing trends and classification comparisons of the data, and thus make corresponding product decisions.

[0003] For the same data, some users prefer line charts, while others prefer bar charts. Therefore, different users have different visualization requirements. Each user needs to choose a chart for visualization each time, resulting in low efficiency of data visualization. Summary of the invention

[0004] The embodiments of the present application provide a data visualization method, apparatus, device and medium for improving the efficiency of data visualization.

[0005] In a first aspect, the present application provides a data visualization method, comprising:

[0006] Get target data;

[0007] Inputting the characteristic information of the target data into a trained template recommendation model and outputting a template identifier, wherein the trained template recommendation model is trained based on user history data, and the user history data includes characteristic information of multiple data and a template actually used by the user corresponding to the characteristic information of each data;

[0008] Based on the template identifier, a target template corresponding to the template identifier is acquired from a template library, wherein the target template includes a plurality of first parameter information of at least one first component, each first component represents a visual chart, and each first parameter information is used to indicate a feature of the visual chart corresponding to the at least one first component;

[0009] Based on the target template, the target data is visualized.

[0010] In a possible embodiment, before acquiring the target data, the method further includes:

[0011] In response to a first operation on the at least one first component, determining a plurality of first parameter information of the at least one first component;

[0012] Encapsulating the plurality of first parameter information to obtain a target template;

[0013] The target template and the template identifier of the target template are stored in the template library.

[0014] In a possible embodiment, encapsulating the first parameter information to obtain a target template includes:

[0015] In response to a second operation on at least one second component, a plurality of second parameter information of the at least one second component is determined, wherein each second component represents a decorative material, the decorative material includes a frame and a sticker, and each second parameter information is used to indicate a feature of the decorative material corresponding to the at least one second component;

[0016] The plurality of first parameter information and the plurality of second parameter information are encapsulated to obtain the target template.

[0017] In a possible embodiment, obtaining target data includes:

[0018] Determine the target framework for building the target page;

[0019] The target data is extracted from the target page using a data extraction model corresponding to the target framework.

[0020] In a second aspect, the present application provides a data visualization device, comprising:

[0021] An acquisition module is used to acquire target data;

[0022] A recommendation module, configured to input the characteristic information of the target data into a trained template recommendation model and output a template identifier, wherein the trained template recommendation model is trained based on user historical data, and the user historical data includes characteristic information of multiple data and a template actually used by the user corresponding to the characteristic information of each data;

[0023] The acquisition module is further used to acquire a target template corresponding to the template identifier from a template library based on the template identifier, wherein the target template includes a plurality of first parameter information of at least one first component, each first component represents a visual chart, and each first parameter information is used to indicate a feature of the visual chart corresponding to the at least one first component;

[0024] A display module is used to visually display the target data based on the target template.

[0025] In a possible embodiment, the device further includes a customization module, and the customization module is used to:

[0026] Before acquiring the target data, in response to a first operation on the at least one first component, determining a plurality of first parameter information of the at least one first component;

[0027] Encapsulating the plurality of first parameter information to obtain a target template;

[0028] The target template and the template identifier of the target template are stored in the template library.

[0029] In a possible embodiment, the customization module is specifically used for:

[0030] In response to a second operation on at least one second component, a plurality of second parameter information of the at least one second component is determined, wherein each second component represents a decorative material, the decorative material includes a frame and a sticker, and each second parameter information is used to indicate a feature of the decorative material corresponding to the at least one second component;

[0031] The plurality of first parameter information and the plurality of second parameter information are encapsulated to obtain the target template.

[0032] In a possible embodiment, the acquisition module is specifically used to:

[0033] Determine the target framework for building the target page;

[0034] The target data is extracted from the target page using a data extraction model corresponding to the target framework.

[0035] In a third aspect, the present application provides an electronic device, including:

[0036] A memory for storing program instructions;

[0037] The processor is used to call the program instructions stored in the memory, and execute any one of the methods in the first aspect according to the obtained program instructions.

[0038] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes any one of the methods described in the first aspect.

[0039] In an embodiment of the present application, the characteristic information of the target data is input into a trained template recommendation model, and a template identifier is output. The trained template recommendation model is obtained by training based on user historical data. The user historical data includes characteristic information of multiple data, and the user's actual use template corresponding to the characteristic information of each data. The target template corresponding to the template identifier is obtained from the template library, and the target data is visualized based on the target template. In an embodiment of the present application, the user does not need to select the template by himself. The user's focus is analyzed according to the user's historical data, and the template recommendation model is obtained by training. The template recommendation model recommends suitable templates to the user, which relatively saves user operations and improves the efficiency of data visualization. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0041] Figure 1 An application scenario diagram of a data visualization method provided in an embodiment of the present application;

[0042] Figure 2 A flowchart of a data visualization method provided in an embodiment of the present application;

[0043] Figure 3 An architecture diagram of a data visualization system provided in an embodiment of the present application;

[0044] Figure 4 A structural diagram of a data visualization device provided in an embodiment of the present application;

[0045] Figure 5 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] To make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other arbitrarily. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.

[0047] The terms "first" and "second" in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any variation thereof are intended to cover non-exclusive protection. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0048] In the embodiment of the present application, "multiple" may mean at least two, for example, two, three or more, and the embodiment of the present application does not limit this.

[0049] In order to improve the efficiency of data visualization, an embodiment of the present application provides a data visualization method, which can be performed by a data visualization device, and the data visualization device can be implemented by a terminal or a server. The terminal is, for example, a mobile terminal, a fixed terminal or a portable terminal, such as a mobile phone, a site, a unit, a device, a multimedia computer, a multimedia tablet, an Internet node, a communicator, a desktop computer, a notebook computer, a tablet computer, a personal communication system (PCS) device, a positioning device or any combination thereof, including accessories and peripherals of these devices or any combination thereof. The server can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms, but is not limited to this.

[0050] The following briefly introduces the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of the present application and are not limited. In the specific implementation process, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.

[0051] Please refer to Figure 1 , which is a schematic diagram of an application scenario of a data visualization method provided in an embodiment of the present application, and the application scenario includes target data 110 and a data visualization device 120.

[0052] After the data visualization device 120 acquires the target data 110 , it visualizes the target data 110 . The specific process of visually displaying the target data 110 will be introduced below.

[0053] As described above, the application scenarios of the embodiments of the present application are described below. Figure 1 Taking the data visualization device 120 in the embodiment of the present application as an example to perform the data visualization method, a data visualization method provided in the embodiment of the present application is introduced. Figure 2 , which is a flow chart of a data visualization method provided in an embodiment of the present application.

[0054] S201. Obtain target data.

[0055] There are many ways for data visualization devices to obtain target data, which are introduced below.

[0056] The first method is to obtain target data from the database.

[0057] The data visualization device can provide multiple data sources, respond to the user's selection operation, obtain the configuration file of the target data, and obtain the target data from the corresponding database according to the configuration file. The database includes a local database and a remote database. The local database refers to the database in the data visualization device, and the remote database refers to the database in other devices except the data visualization device. Database types include MySQL, SQL server, Oracle, PostgreSQL and other databases.

[0058] If the target data is data in a local database, for example, the user selects information center data from multiple data source options, and the information center data is data in the local database, then the configuration file of the target data obtained by the data visualization device includes the address of the database where the target data is located, and the target data can be obtained from the corresponding local database according to the address of the database where the target data is located.

[0059] If the target data is data in an off-site database, for example, the user selects business center data from a variety of data source options, and the business center data is data in an off-site database. The configuration file obtained by the data visualization device includes the IP address of the target device where the target data is located, as well as access information such as passwords and connection drivers. The access information such as passwords and connection drivers can be encapsulated in the http request header, and an http request is sent to the target device through the off-site service interface according to the IP address of the target device. After the target device confirms the identity of the data visualization device according to the access information such as passwords and connection drivers in the http request, it obtains the target data from the corresponding off-site database, encrypts the target data, and sends it to the data visualization device.

[0060] The second method is to extract target data from the target page.

[0061] Taking into account the different ways of constructing different pages, the data visualization device can determine the target framework for constructing the target page, and use the data extraction model corresponding to the target framework to extract the target data from the target page, thereby realizing data extraction from different pages.

[0062] Specifically, the data visualization device can be integrated with an existing business system, which may use a vue framework, a react framework, etc. The data visualization device analyzes the framework of the business system to determine the target framework for building the target page of the business system. If the target framework is a vue framework, the data extraction model corresponding to the vue framework is used. If the target framework is a react framework, the data extraction model corresponding to the react framework is used to analyze the element composition of the target page and extract the displayable target data from the target page.

[0063] In the embodiment of the present application, data can be captured from the page through different data extraction models, avoiding the performance consumption of re-acquiring data and saving development work.

[0064] S202: Input feature information of the target data into the trained template recommendation model, and output a template identifier.

[0065] After the data visualization device obtains the target data, it can extract the characteristic information of the target data, which includes the data type and data volume range of the target data. The data type includes the sales volume of the product, the customer distribution of the product, etc. The data volume range includes the sales volume of a certain product in [0, 100), [100, 1000), [1000, 10000), etc. Then, the characteristic information of the target data is input into the trained template recommendation model, and the template identifier of the template corresponding to the characteristic information of the target data is output.

[0066] Among them, template recommendation models include collaborative filtering recommendation models, popularity-based recommendation models, content-based recommendation models, etc. The trained template recommendation model is trained based on user history data, and the user history data includes feature information of multiple data and the user's actual use template corresponding to the feature information of each data.

[0067] The values ​​of the model parameters in the template recommendation model can be sent to the data visualization device after training by other devices, or can be directly obtained by training by the data visualization device. The following takes the model parameters of the template recommendation model obtained by training the data visualization device as an example to introduce the process of training the template recommendation model.

[0068] Specifically, after the data visualization device collects a large amount of user historical data, it uses the characteristic information of each data as the input of the template recommendation model, and uses the target template output by the template recommendation model and the user's actual template corresponding to the characteristic information of the data as the feedback data of the template recommendation model. Through the feedback data, the values ​​of the model parameters are continuously adjusted. After training with the characteristic information of multiple data, the model parameters of the template recommendation model are continuously updated, so that the error between the target template determined by the template recommendation model and the user's actual template is within a preset range, thereby obtaining a trained template recommendation model.

[0069] S203: Based on the template identifier, obtain a target template corresponding to the template identifier from a template library.

[0070] After the data visualization device obtains the template identifier through the template recommendation model, it can obtain the target template corresponding to the template identifier from the template library. The template library can be set in the data visualization device. Considering that the local storage space of the data visualization device is limited, the template library can also be set in a background server connected to the data visualization device. The template library includes multiple templates and a template identifier of each template, and the template identifier is used to uniquely identify each template.

[0071] The multiple templates in the template library can be downloaded from network resources by the data visualization device, or can be customized by the user. The following describes the process of user-defined templates.

[0072] The data visualization device can determine the first parameter information of at least one first component in response to the user's first operation on at least one first component. The first operation can be a single-click operation, a double-click operation, a long-press drag operation, etc., and the embodiments of the present application do not make specific restrictions. Each first component represents a visual chart, and the visual charts include bar charts, pie charts, line charts, hash charts, etc. The components involved in the embodiments of the present application all refer to controls that can be directly operated by the user, such as encapsulating the property interface and method of the line chart into a first component. Each first parameter information is used to indicate a feature of the visual chart corresponding to at least one first component, such as the size, position, title font and color of the visual chart. Further, the data visualization device can directly encapsulate the first parameter information, obtain the target template, and after determining the template identifier of the target template, save the target template and the template identifier of the target template in the template library.

[0073] For example, the data visualization device provides a canvas board for users as an area for component placement and design. Multiple first components and extended attributes of visualization charts are set on both sides of the canvas board, providing users with mouse-drag layout settings and extended attributes that respond to mouse click operations. The first component selects ECharts as the rendering and display basis. ECharts is a JavaScript-based data visualization chart library that provides intuitive, vivid, interactive, and customizable data visualization charts. Commonly used charts such as bar charts, pie charts, and line charts are selected as preset first components. The mouse drag variable attributes include horizontal axis, vertical axis, width, and height. Extended attributes are divided into public attributes and proprietary attributes. Public attributes include: chart size, chart position, and transparency. Proprietary attributes are the characteristics of different first component types, such as: the scale and coordinates of bar charts, the curvature and color of line charts, and the shadow effect and lead placement of pie charts.

[0074] In the embodiment of the present application, the interface parameters and properties at the code level are converted into description configuration items close to natural language through componentization of visual charts. Users can directly click, drag and other mouse operations on the components to design the templates they want. Compared with the prior art, after the developer and the product owner communicate, the developer converts the product owner's needs into programming language and realizes data visualization through coding. The embodiment of the present application can save the intermediate links of demand analysis and development coding implementation, and complete the needs of product owners more efficiently and faithfully.

[0075] Taking into account the user's aesthetic requirements for icons, in a possible embodiment, after determining multiple first parameter information, the data visualization device can determine multiple second parameter information of at least one second component in response to the user's second operation on at least one second component. Among them, the second operation can be a single-click operation, a double-click operation, a long press and drag operation, etc., and the embodiment of the present application does not impose specific restrictions. Each second component represents a decorative material, and the decorative material includes a border and a sticker, etc. The second parameter information is used to indicate the characteristics of the decorative material corresponding to at least one second component. Multiple second parameter information includes size information, position information, etc. of the decorative material. Further, the data visualization device can encapsulate multiple first parameter information and multiple second parameter information, obtain a target template, and after determining the template identifier of the target template, save the target template and the template identifier of the target template in the template library.

[0076] For example, second components of various decorative materials are provided on both sides of the canvas. When the second component of any decorative material is dragged to the canvas, basic Cascading Style Sheets (CSS) attribute assembly such as position and size is supported.

[0077] In the embodiment of the present application, a decoration material management and configuration function is provided, and users can freely configure and combine decoration materials to decorate visual charts to meet the different aesthetic needs of different users and further enhance the user experience.

[0078] Considering that the components provided by the data visualization device may not meet the needs of special users, in a possible embodiment, the data visualization device can automatically load components that meet the agreed conditions. The components that meet the agreed conditions are code files placed by the user in a specified directory. The agreed conditions include methods for executing drag and drop, methods for executing drag and size, methods for loading data, methods for deleting components, etc. For example, if the user uses JavaScript programming and writes code files that meet the agreed conditions into a specified directory, the canvas can be automatically loaded for the user to use.

[0079] In an embodiment of the present application, when the components provided by the data visualization device cannot meet the needs of the user, the user can write a code file according to his or her own needs and in accordance with the agreed conditions, and put the code file into a designated directory to expand the component. More rich components can be expanded through the agreed interface method to meet the needs of different users.

[0080] In a possible embodiment, the data visualization device obtains and loads the first template in response to the user's third operation on the template library, obtains the target template in response to the user's fourth operation on the first template, and saves the target template in the database. Please refer to the content discussed above for the third and fourth operations, which will not be repeated here. For example, after the user obtains a template from the template library, he slightly adjusts the size of the visualization chart corresponding to the template to obtain a new template, and then saves the new template in the template library.

[0081] In the embodiments of the present application, templated configuration is provided for industries and fields with high standardization, and inherent presentation forms and data structures are directly encapsulated as templates. Users can directly obtain existing templates from the template library, and after making minor changes to the existing templates, they can obtain new templates, thereby quickly realizing user data visualization.

[0082] S204: Visually display the target data based on the target template.

[0083] After obtaining the target template and target data, the data visualization device can display the target data based on the target template. For example, if the target data is the sales volume of a product and the target template is a line graph, the sales volume of the product can be visualized based on the position, size and other parameter information of the line graph in the target template.

[0084] As an example, Figure 2 The target data in the embodiment is, for example, Figure 1The target data 110 in the data visualization device is, for example, Figure 1 The data visualization device 120 in the embodiment of the present invention.

[0085] As an embodiment, the present application embodiment provides a data visualization system, which is used to implement the data visualization method discussed above, and the operating environment of the system is Linux or Windows. The system can be deployed independently or embedded in a business system, and directly provides visualization functions after configuring key information of the business system.

[0086] Please refer to Figure 3 , which is an architecture diagram of a data visualization system provided in an embodiment of the present application. The system includes a display layer 301, a business layer 302, and a data layer 303. The display layer 301 is used to display a canvas and a first component and a second component in the canvas. The business layer 302 includes a component encapsulation module, an attribute interface conversion module, and a canvas material management module. The component encapsulation module is used to encapsulate visual charts, decorative materials, etc. into components. The attribute interface conversion module is used to convert the extended attributes of the component into description configuration items. The canvas material management module is used to manage the placement of the first component and the second component in the canvas board. The data layer 303 includes a local database and an external system interface. The local database includes MY SQL, Oracle, etc. The remote service interface is used to connect to other devices and obtain data from the remote database of other devices.

[0087] In summary, the data visualization method provided in the embodiment of the present application can avoid code writing to realize data chart conversion by componentizing the visualization chart, so that more users can design without learning programming. The design displayed through the browser and mouse drag operation improves the design efficiency and reduces the learning cost. At the same time, a template mechanism with a set of preset visualization components is provided. In the use of templates, it is easier to transplant and copy the design results, saving time and cost. And the template recommendation model is trained according to the user's historical data, and the corresponding template is recommended to the user through the template recommendation model, which further saves the user's time cost and improves the efficiency of data visualization.

[0088] Based on the same inventive concept, the embodiment of the present application provides a data visualization device, which can be set in the data visualization device discussed above, please refer to Figure 3 , the device comprises:

[0089] An acquisition module 401 is used to acquire target data;

[0090] The recommendation module 402 is used to input the characteristic information of the target data into the trained template recommendation model and output the template identification, wherein the trained template recommendation model is trained based on the user's historical data, and the user's historical data includes characteristic information of multiple data and the user's actual use template corresponding to the characteristic information of each data;

[0091] The acquisition module 401 is further used to acquire a target template corresponding to the template identifier from the template library based on the template identifier, wherein the target template includes a plurality of first parameter information of at least one first component, each first component represents a visual chart, and each first parameter information is used to indicate a feature of the visual chart corresponding to the at least one first component;

[0092] The display module 403 is used to visualize the target data based on the target template.

[0093] In a possible embodiment, the device further includes a customization module 404, and the customization module 404 is used to:

[0094] Before acquiring the target data, in response to a first operation on the at least one first component, determining a plurality of first parameter information of the at least one first component;

[0095] Encapsulate multiple first parameter information to obtain a target template;

[0096] The target template and the template identifier of the target template are saved in the template library.

[0097] In a possible embodiment, the customization module 404 is specifically used for:

[0098] In response to a second operation on at least one second component, a plurality of second parameter information of at least one second component is determined, wherein each second component represents a decorative material, the decorative material includes a frame and a sticker, and each second parameter information is used to indicate a feature of the decorative material corresponding to the at least one second component;

[0099] The plurality of first parameter information and the plurality of second parameter information are encapsulated to obtain a target template.

[0100] In a possible embodiment, the acquisition module 401 is specifically used for:

[0101] Determine the target framework for building the target page;

[0102] Use the data extraction model corresponding to the target framework to extract target data from the target page.

[0103] As an example, Figure 4 The apparatus described can be used to perform Figure 2Therefore, for the functions that can be realized by each functional module of the device, reference can be made to Figure 2 The description of the illustrated embodiment will not be repeated here.

[0104] Based on the same inventive concept, an electronic device is also provided in the embodiment of the present application, which is equivalent to the data visualization device discussed above. Figure 5 , the electronic device comprises:

[0105] At least one processor 501, and a memory 502 connected to the at least one processor 501. The specific connection medium between the processor 501 and the memory 502 is not limited in the embodiment of the present application. Figure 5 In the example, the processor 501 and the memory 502 are connected via a bus 500. The bus 500 is Figure 5 The connections between other components are shown in bold lines, and are not intended to be limiting. The bus 500 can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, Figure 5 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 501 can also be called a controller, and there is no limitation on the name.

[0106] In the embodiment of the present application, the memory 502 stores instructions that can be executed by at least one processor 501. The at least one processor 501 can execute the instructions stored in the memory 502. Figure 2 The processor 501 can also implement any of the data visualization methods. Figure 4 The functions of each module in the device shown.

[0107] Among them, the processor 501 is the control center of the device, and can use various interfaces and lines to connect the various parts of the entire control device. By running or executing instructions stored in the memory 502 and calling data stored in the memory 502, the various functions of the device and processing data, the device can be monitored as a whole.

[0108] In one possible design, the processor 501 may include one or more processing units, and the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 501. In some embodiments, the processor 501 and the memory 502 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.

[0109] Processor 501 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the data visualization method disclosed in the embodiments of the present application can be directly embodied as a hardware processor to be executed, or a combination of hardware and software modules in the processor can be executed.

[0110] The memory 502 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 502 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 502 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 502 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0111] By programming the processor 501, the code corresponding to the data visualization method described in the above embodiment can be fixed into the chip, so that the chip can execute the code when running. Figure 2 The steps of the data visualization method are shown in FIG. How to design and program the processor 501 is a technique known to those skilled in the art and will not be described in detail here.

[0112] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes any of the data visualization methods discussed above. Since the principle of solving the problem by the above-mentioned computer-readable storage medium is similar to that of the data visualization method, the implementation of the above-mentioned computer-readable storage medium can refer to the implementation of the method, and the repeated parts will not be repeated.

[0113] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt 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 include computer-usable program code.

[0114] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. 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.

[0115] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0116] 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 1The steps of the functions specified in one or more boxes. Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A data visualization method, characterized in that: include: Get target data; Inputting the characteristic information of the target data into a trained template recommendation model and outputting a template identifier, wherein the characteristic information of the target data includes the data type and data volume range of the target data, and the trained template recommendation model is obtained by training based on user historical data, and the user historical data includes characteristic information of multiple data and a template actually used by the user corresponding to the characteristic information of each data; Based on the template identifier, a target template corresponding to the template identifier is acquired from a template library, wherein the target template includes a plurality of first parameter information of at least one first component, each first component represents a visual chart, and each first parameter information is used to indicate a feature of the visual chart corresponding to the at least one first component; Based on the target template, visually display the target data; The method further includes: in response to a third operation of the user on the template library, acquiring and loading the first template; in response to a fourth operation of the user on the first template, obtaining the target template; and saving the target template in the template library.

2. The method according to claim 1, characterized in that Before acquiring the target data, the method further includes: In response to a first operation on the at least one first component, determining a plurality of first parameter information of the at least one first component; Encapsulating the plurality of first parameter information to obtain a target template; The target template and the template identifier of the target template are stored in the template library.

3. The method according to claim 2, characterized in that Encapsulating the first parameter information to obtain a target template includes: In response to a second operation on at least one second component, a plurality of second parameter information of the at least one second component is determined, wherein each second component represents a decorative material, the decorative material includes a frame and a sticker, and each second parameter information is used to indicate a feature of the decorative material corresponding to the at least one second component; The plurality of first parameter information and the plurality of second parameter information are encapsulated to obtain the target template.

4. The method according to any one of claims 1 to 3, characterized in that: Get target data, including: Determine the target framework for building the target page; The target data is extracted from the target page using a data extraction model corresponding to the target framework.

5. A data visualization device, characterized in that: include: An acquisition module is used to acquire target data; A recommendation module, configured to input the characteristic information of the target data into a trained template recommendation model, and output a template identifier, wherein the characteristic information of the target data includes the data type and data volume range of the target data, and the trained template recommendation model is obtained by training based on user historical data, and the user historical data includes characteristic information of multiple data and a template actually used by the user corresponding to the characteristic information of each data; The acquisition module is further used to acquire a target template corresponding to the template identifier from a template library based on the template identifier, wherein the target template includes a plurality of first parameter information of at least one first component, each first component represents a visual chart, and each first parameter information is used to indicate a feature of the visual chart corresponding to the at least one first component; A display module, used for visually displaying the target data based on the target template; The acquisition module is further used to: in response to a third operation of the user on the template library, acquire and load the first template; in response to a fourth operation of the user on the first template, obtain the target template and save the target template in the template library.

6. The device according to claim 5, characterized in that The device further comprises a customization module, wherein the customization module is configured to: Before acquiring the target data, in response to a first operation on the at least one first component, determining a plurality of first parameter information of the at least one first component; Encapsulating the plurality of first parameter information to obtain a target template; The target template and the template identifier of the target template are stored in the template library.

7. The device according to claim 6, characterized in that The customized module is specifically used for: In response to a second operation on at least one second component, a plurality of second parameter information of the at least one second component is determined, wherein each second component represents a decorative material, the decorative material includes a frame and a sticker, and each second parameter information is used to indicate a feature of the decorative material corresponding to the at least one second component; The plurality of first parameter information and the plurality of second parameter information are encapsulated to obtain the target template.

8. The device according to any one of claims 5 to 7, characterized in that: The acquisition module is specifically used for: Determine the target framework for building the target page; The target data is extracted from the target page using a data extraction model corresponding to the target framework.

9. An electronic device, characterized in that: include: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the method according to any one of claims 1 to 4 according to the obtained program instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Intelligent chart generation method and device, computer system and readable storage medium

    CN112597745A