CN114385940A - Data visualization method, device, equipment and medium - Google Patents

Data visualization method, device, equipment and medium Download PDF

Info

Publication number
CN114385940A
CN114385940A CN202111619912.3A CN202111619912A CN114385940A CN 114385940 A CN114385940 A CN 114385940A CN 202111619912 A CN202111619912 A CN 202111619912A CN 114385940 A CN114385940 A CN 114385940A
Authority
CN
China
Prior art keywords
template
target
data
component
parameter information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111619912.3A
Other languages
Chinese (zh)
Inventor
赵飞
解军伟
曹召换
谢建军
林文辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aisino Corp filed Critical Aisino Corp
Priority to CN202111619912.3A priority Critical patent/CN114385940A/en
Publication of CN114385940A publication Critical patent/CN114385940A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9536Search customisation based on social or collaborative filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard

Landscapes

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

Abstract

The application relates to the technical field of visualization, in particular to a data visualization method, device, equipment and medium, which are used for improving the data visualization efficiency. The method comprises the following steps: the method comprises the steps of obtaining target data, inputting feature information of the target data into a trained template recommendation model, outputting a template identifier, training the trained template recommendation model based on user historical data, obtaining a target template corresponding to the template identifier from a plurality of modules of a template library based on the template identifier, wherein the user historical data comprise feature information of a plurality of data and a user actual use template corresponding to the feature information of each data, the target template comprises a plurality of first parameter information of at least one first assembly, each first assembly represents a visual chart, each first parameter information is used for indicating one feature of the visual chart corresponding to the at least one first assembly, and visually displaying the target data based on the target template.

Description

Data visualization method, device, equipment and medium
Technical Field
The application relates to the technical field of visualization interfaces, in particular to a data visualization method, device, equipment and medium.
Background
With the advent of the big data era, data is taken as a basis and is of exceptional importance to various industries. The data visualization means that structural or non-structural data is converted into a proper visual chart, and information hidden in the data is directly displayed in front of a user, so that the user can intuitively perceive the change trend and classification contrast of the data, and corresponding product decisions are made.
For the same data, some users like a line graph, and some users like a bar graph, so that the visualization requirements of different users are different, and each user needs to select a chart for visualization, so that the data visualization efficiency is low.
Disclosure of Invention
The embodiment of the application provides a data visualization method, a data visualization device, data visualization equipment and a data visualization medium, which are used for improving the data visualization efficiency.
In a first aspect, the present application provides a data visualization method, including:
acquiring target data;
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 obtained by training based on user historical data, and the user historical data comprises the characteristic information of a plurality of data and a user actual use template corresponding to the characteristic information of each data;
acquiring a target template corresponding to the template identifier from a template library based on the template identifier, wherein the target template comprises 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 for indicating one characteristic of the visual chart corresponding to the at least one first component;
and visually displaying the target data based on the target template.
In one possible embodiment, before acquiring the target data, the method further comprises:
determining a plurality of first parameter information of the at least one first component in response to a first operation on the at least one first component;
packaging the first parameter information to obtain a target template;
and storing the target template and the template identification of the target template in the template library.
In a possible embodiment, encapsulating the first parameter information to obtain a target template includes:
in response to a second operation on at least one second component, determining a plurality of second parameter information of the at least one second component, wherein each second component represents a decorative material, the decorative material comprises a frame and a sticker, and each second parameter information is used for indicating one characteristic of the decorative material corresponding to the at least one second component;
and packaging the plurality of first parameter information and the plurality of second parameter information to obtain the target template.
In one possible embodiment, obtaining target data comprises:
determining a target frame for constructing a target page;
and extracting the target data from the target page by adopting a data extraction model corresponding to the target frame.
In a second aspect, the present application provides a data visualization apparatus, comprising:
the acquisition module is used for acquiring target data;
the recommendation module is used for inputting the 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 historical data, and the user historical data comprises the feature information of a plurality of data and a user actual use template corresponding to the feature information of each data;
the obtaining module is further configured to obtain, based on the template identifier, a target template corresponding to the template identifier from a template library, where the target template includes a plurality of 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 the at least one first component;
and the display module is used for visually displaying the target data based on the target template.
In a possible embodiment, the apparatus further comprises a customization module for:
determining a plurality of first parameter information of the at least one first component in response to a first operation on the at least one first component before acquiring the target data;
packaging the first parameter information to obtain a target template;
and storing the target template and the template identification of the target template in the template library.
In a possible embodiment, the customization module is specifically configured to:
in response to a second operation on at least one second component, determining a plurality of second parameter information of the at least one second component, wherein each second component represents a decorative material, the decorative material comprises a frame and a sticker, and each second parameter information is used for indicating one characteristic of the decorative material corresponding to the at least one second component;
and packaging the plurality of first parameter information and the plurality of second parameter information to obtain the target template.
In a possible embodiment, the obtaining module is specifically configured to:
determining a target frame for constructing a target page;
and extracting the target data from the target page by adopting a data extraction model corresponding to the target frame.
In a third aspect, the present application provides an electronic device, comprising:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory and executing the method of any of the first aspect according to the obtained program instructions.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method of any of the first aspects.
In the embodiment of the application, the feature information of the target data is input into a trained template recommendation model, a template identifier is output, the trained template recommendation model is obtained by training based on user historical data, the user historical data comprises the feature information of a plurality of data and a user actual use template corresponding to the feature information of each data, a target template corresponding to the template identifier is obtained from a template base, and the target data is visually displayed based on the target template. According to the method and the device, the user does not need to select the template, the user attention point is analyzed according to the historical data of the user, the template recommendation model is obtained through training, the appropriate template is recommended for the user through the template recommendation model, user operation is saved relatively, and the data visualization efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or related technologies, the drawings needed to be used in the description of the embodiments or related technologies are briefly introduced below, it is obvious that the drawings in the following description are only the embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is an application scenario diagram of a data visualization method provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a data visualization method provided in an embodiment of the present application;
fig. 3 is an architecture diagram of a data visualization system provided in an embodiment of the present application;
fig. 4 is a block diagram of a data visualization apparatus according to an embodiment of the present application;
fig. 5 is a structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention will be described clearly and completely in the following with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. In the present application, the embodiments and features of the embodiments may be arbitrarily combined with each other without conflict. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
The terms "first" and "second" in the description and claims of the present application and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the term "comprises" and any variations thereof, which are intended to cover non-exclusive protection. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
In the embodiments of the present application, "a plurality" may mean at least two, for example, two, three, or more, and the embodiments of the present application are not limited.
In order to improve the efficiency of data visualization, embodiments of the present application provide a data visualization method, where the data visualization method may be executed by a data visualization device, and the data visualization device may be implemented by a terminal or a server. A terminal such as a mobile terminal, fixed terminal, or portable terminal such as a mobile handset, station, unit, device, multimedia computer, multimedia tablet, internet node, communicator, desktop computer, notebook computer, tablet computer, Personal Communication Systems (PCS) device, positioning device, or any combination thereof, including accessories and peripherals of these devices, or any combination thereof. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, middleware service, a domain name service, a security service, a CDN, and a big data and artificial intelligence platform, but is not limited thereto.
Some brief descriptions are given below to application scenarios to which the technical solution of the embodiment of the present application can be applied, and it should be noted that the application scenarios described below are only used for describing the embodiment of the present application and are not limited. In a specific implementation process, the technical scheme provided by the embodiment of the application can be flexibly applied according to actual needs.
Referring to fig. 1, a schematic view of an application scenario of a data visualization method provided in an embodiment of the present application is shown, where the application scenario includes target data 110 and a data visualization device 120.
After the data visualization device 120 acquires the target data 110, the target data 110 is visually displayed, wherein a process of how to visually display the target data 110 will be described below.
With the application scenarios of the embodiment of the present application introduced above, taking the data visualization apparatus 120 in fig. 1 as an example to perform a data visualization method, a data visualization method provided by the embodiment of the present application is introduced below. Fig. 2 is a schematic flow chart of a data visualization method according to an embodiment of the present application.
S201, acquiring target data.
There are various ways in which the data visualization device may obtain the target data, which are described below.
In the first way, target data is obtained from a database.
The data visualization device can provide various data sources, respond to the selection operation of a user, acquire the configuration file of the target data, and acquire the target data from the corresponding database according to the configuration file. The database comprises a local database and a remote database, wherein the local database is a database in the data visualization equipment, and the remote database is a database in other equipment except the data visualization equipment. The database types include mysql, SQL server, Oracle, PostgreSQL and other databases.
If the target data is data in the local database, for example, the user selects information center data from various data source options, and the information center data is data in the local database. The configuration file of the target data acquired by the data visualization device includes the address of the database where the target data is located, and the target data can be acquired from the corresponding local database according to the address of the database where the target data is located.
If the target data is data in the different-place database, for example, the user selects the service center data from various data source options, and the service center data is data in the different-place database. The configuration file acquired by the data visualization device includes the IP address of the target device where the target data is located, and access information such as the password and the connection driver, the access information such as the password and the connection driver may be encapsulated in an http request header, an http request is sent to the target device through a different-place service interface according to the IP address of the target device, the target device acquires the target data from a corresponding different-place database after confirming the identity of the data visualization device according to the access information such as the password and the connection driver in the http request, and the target data is encrypted and then sent to the data visualization device.
In the second way, target data is extracted from the target page.
Considering that different pages are constructed in different ways, the data visualization device can determine a target frame for constructing the target page, and extract target data from the target page by adopting a data extraction model corresponding to the target frame, so that data extraction of different pages is realized.
In particular, the data visualization device may integrate existing business systems that may use the vue framework, the acts framework, etc. The data visualization equipment analyzes the frame of the business system so as to determine a target frame for constructing a target page of the business system, if the target frame is an vue frame, a data extraction model corresponding to a vue frame is adopted, if the target frame is a act frame, a data extraction model corresponding to the act frame is adopted, the element composition of the target page is analyzed, and target data capable of being displayed is extracted from the target page.
In the embodiment of the application, data can be captured from the page through different data extraction models, performance consumption of data acquisition is avoided, and development work is saved.
S202, inputting the characteristic information of the target data into the trained template recommendation model, and outputting a template identifier.
After the data visualization device obtains the target data, the feature information of the target data may be extracted, and the feature information of the target data includes a data type of the target data, such as a sales volume of a product, a customer distribution of the product, and the like, and a data amount section, such as a sales volume of a certain product in [0,100 ], [100,1000 ], [1000,10000 ], and the like. And then inputting the characteristic information of the target data into the trained template recommendation model, and outputting the template identification of the template corresponding to the characteristic information of the target data.
The template recommendation model may be, for example, a collaborative filtering recommendation model, a popularity-based recommendation model, a content-based recommendation model, or the like. The trained template recommendation model is obtained by training based on user historical data, wherein the user historical data comprises feature information of a plurality of data and a user actual use template corresponding to the feature information of each data.
The values of the model parameters in the template recommendation model can be sent to the data visualization device after being trained by other devices, or can be obtained by being directly trained by the data visualization device. In the following, taking model parameters of the template recommendation model obtained by training the data visualization device as an example, a process of training the template recommendation model is described as an example.
Specifically, after a large amount of user historical data are collected by the data visualization device, the characteristic information of each data is used as the input of a template recommendation model, a target template output by the template recommendation model and a user actual use template corresponding to the characteristic information of the data are used as feedback data of the template recommendation model, and the values of model parameters are continuously adjusted through the feedback data. And continuously updating model parameters of the template recommendation model through training of characteristic information of a plurality of data, so that the error between the target template determined by the template recommendation model and the template actually used by the user is in a preset range, and thus obtaining the trained template recommendation model.
And S203, acquiring a target template corresponding to the template identifier from the template library based on the template identifier.
After the data visualization device obtains the template identifier through the template recommendation model, a target template corresponding to the template identifier may be obtained from the template library. The template library may be provided in the data visualization device, and in consideration of the limited local storage space of the data visualization device, the template library may also be provided in a background server connected to the data visualization device. The template library comprises a plurality of templates and a template identifier of each template, wherein the template identifier is used for uniquely identifying each template.
The plurality of templates in the template library may be downloaded from a network resource by the data visualization device or may be user-defined. The process of user-defining the template is described below.
The data visualization device may determine first parameter information of the at least one first component in response to a first operation of the user on the at least one first component, where the first operation may be a single-click operation, a double-click operation, a long-press drag operation, and the like, and embodiments of the present application are not limited specifically. Each first component represents a visual chart including a bar graph, a pie graph, a line graph, a hash graph, and the like. The components referred to in the embodiments of the present application all refer to controls that can be directly operated by a user, for example, the attribute interface and method of the line graph are packaged as a first component. Each first parameter information is used for indicating one characteristic of the visual chart corresponding to at least one first component, such as the size, the position, the title font, the color and the like of the visual chart. Further, the data visualization device may directly encapsulate the first parameter information to obtain the target template, and after determining the template identifier of the target template, store the target template and the template identifier of the target template in the template library.
Specifically, for example, the data visualization device provides a canvas board as an area for component placement design for a user, the first components and the extension attributes of a plurality of visual charts are arranged on two sides of the canvas board, and a mouse-dragging type layout placement setting and an extension attribute responding to a mouse click operation are provided for the user. The first component selects ECharts as a rendering display basis, the ECharts is a JavaScript-based data visualization chart library, provides visual, vivid, interactive and personalized data visualization charts, and selects common charts such as column charts, pie charts, line charts and the like as preset first components. The mouse dragging variable attributes comprise a horizontal axis, a vertical axis, a width and a height. The extended attributes are divided into public attributes and proprietary attributes, and the public attributes are as follows: chart size, chart position, transparency, proprietary attributes are characteristic of different first component types, such as: the scale and coordinates of the bar chart, the curvature and color of the line chart, the shadow effect of the pie chart, the lead placement, etc.
In the embodiment of the application, the interface parameters and the attributes at the code level are converted into the description configuration items close to the natural language through visualization chart componentization, and a user can directly click, drag and other mouse operations on the components, so that a template required by the user can be designed. Compared with the prior art that after the communication between the developer and the product owner, the developer converts the requirements of the product owner into a programming language and realizes data visualization through coding. According to the embodiment of the application, an intermediate link for realizing requirement analysis and development coding can be omitted, and the requirements of product owners can be met more efficiently and truly.
In view of the aesthetic requirements of the user for the icon, in one possible embodiment, the data visualization device, after determining the plurality of first parameter information, may determine a plurality of second parameter information for the at least one second component in response to a second operation of the at least one second component by the user. The second operation may be a single-click operation, a double-click operation, a long-press drag operation, and the like, and the embodiment of the present application is not particularly limited. Each second component represents a decorative material, the decorative material comprises a frame, a sticker and the like, and the second parameter information is used for indicating the characteristics of the decorative material corresponding to at least one second component. The plurality of second parameter information includes size information, position information, and the like of the decoration material. Further, the data visualization device may encapsulate the plurality of first parameter information and the plurality of second parameter information to obtain the target template, and after determining the template identifier of the target template, store the target template and the template identifier of the target template in the template library.
For example, second components of various decorative materials are arranged on two sides of the canvas board, and when the second component of any decorative material is dragged to the drawing board, basic Cascading Style Sheets (CSS) attribute assembly of positions, sizes and the like is supported.
In the embodiment of the application, the decoration material management and configuration function is provided, a user can freely configure and combine the decoration materials to decorate the visual chart, different aesthetic requirements of different users are met, and user experience is further improved.
In consideration that the components provided by the data visualization device may not meet the requirements of a particular user, in one possible embodiment, the data visualization device may automatically load components that meet the agreed conditions, where the components that meet the agreed conditions are code files that are put into a specified directory by the user, and the agreed conditions include a method for dragging and dropping execution, a method for dragging and sizing execution, a method for loading data, a method for deleting components, and the like. For example, the user uses JavaScript language programming to write a code file meeting the specified conditions into the specified directory, and then the canvas may be automatically loaded for the user to use.
In the embodiment of the application, when the components provided by the data visualization equipment cannot meet the requirements of users, the users can write code files according to the requirements of the users and the appointed conditions, and the code files are put into the appointed directory, so that the components are expanded, more abundant components can be expanded through an appointed interface method, and the requirements of different users are met.
In a possible embodiment, the data visualization device obtains and loads the first template in response to a third operation of the user on the template library, obtains the target template in response to a fourth operation of the user on the first template, and stores the target template in the database. For the third operation and the fourth operation, reference is made to the contents discussed above, and the details are not repeated here. For example, after a user acquires a certain template from the template library, the size of the visual chart corresponding to the template is slightly adjusted to acquire a new template, and then the new template is saved in the template library.
In the embodiment of the application, for industries and fields with high standardization, templated configuration is provided, the inherent display form and data structure are directly packaged into the template, a user can directly obtain the existing template from the template library, and a new template can be obtained after a small amount of modification is performed on the basis of the existing template, so that the data visualization of the user is quickly realized.
And S204, visually displaying the target data based on the target template.
The data visualization device, after obtaining the target template and the target data, may present the target data based on the target template. For example, if the target data is the sales volume of the product and the target template is a line graph, the sales volume of the product is visually displayed according to parameter information such as the position and the size of the line graph in the target template.
As an example, the target data in the embodiment illustrated in fig. 2 is, for example, the target data 110 in fig. 1, and the data visualization device is, for example, the data visualization device 120 in fig. 1.
As an embodiment, the present application provides a data visualization system, which is used to implement the data visualization method discussed above, and the running environment of the system is Linux or Window. The system can be deployed independently, can also be nested with a service system, and directly provides a visualization function after key information of the service system is configured.
Fig. 3 is an architecture diagram of a data visualization system according to an embodiment of the present application. The system comprises a presentation layer 301, a business layer 302 and a data layer 303, wherein the presentation layer 301 is used for presenting a canvas and a first component and a second component in the canvas. The service layer 302 includes a component packaging module, an attribute interface conversion module, and a canvas material management module, where the component packaging module is used to package visual charts, decoration materials, etc. into components, the attribute interface conversion module is used to convert the extended attributes of the components into description configuration items, and 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., and the remote service interface is used to connect to other devices and obtain data from the remote database of other devices.
In summary, the data visualization method provided by the embodiment of the application can avoid the realization of data chart conversion of code writing by componentizing the visualization chart, so that more users can design without learning programming. The design displayed through the dragging operation of the browser and the mouse improves the design efficiency and reduces the learning cost. Meanwhile, a set of template mechanism capable of presetting a visual component set is provided, so that the design result can be transplanted and copied more easily in the aspect of using the template, and the time cost is saved. And the template recommendation model is trained according to the historical data of the user, and the corresponding template is recommended for the user through the template recommendation model, so that the time cost of the user is further saved, and the data visualization efficiency is improved.
Based on the same inventive concept, an embodiment of the present application provides a data visualization apparatus, which may be disposed in the data visualization device discussed above, and please refer to fig. 3, the apparatus includes:
an obtaining module 401, configured to obtain target data;
a recommending module 402, configured to input feature information of the target data into a trained template recommending model, and output a template identifier, where the trained template recommending model is obtained by training based on user history data, and the user history data includes feature information of multiple data and a user actual usage template corresponding to the feature information of each data;
the obtaining module 401 is further configured to obtain, based on the template identifier, a target template corresponding to the template identifier from a template library, where the target template includes a plurality of 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 the at least one first component;
and a display module 403, configured to perform visual display on the target data based on the target template.
In one possible embodiment, the apparatus further comprises a customization module 404, the customization module 404 being configured to:
determining a plurality of first parameter information of at least one first component in response to a first operation on the at least one first component before acquiring the target data;
packaging the first parameter information to obtain a target template;
and storing the target template and the template identifier of the target template in a template library.
In one possible embodiment, the customization module 404 is specifically configured to:
in response to a second operation on the at least one second component, determining a plurality of second parameter information of the at least one second component, wherein each second component represents a decorative material, the decorative material comprises a frame and a sticker, and each second parameter information is used for indicating a characteristic of the decorative material corresponding to the at least one second component;
and packaging the plurality of first parameter information and the plurality of second parameter information to obtain the target template.
In a possible embodiment, the obtaining module 401 is specifically configured to:
determining a target frame for constructing a target page;
and extracting target data from the target page by adopting a data extraction model corresponding to the target frame.
As an embodiment, the apparatus discussed in fig. 4 may be used to execute the method described in the embodiment shown in fig. 2, and therefore, for functions and the like that can be realized by each functional module of the apparatus, reference may be made to the description of the embodiment shown in fig. 2, and details are not repeated here.
Based on the same inventive concept, the embodiment of the present application further provides an electronic device, which is equivalent to the data visualization device discussed above. Referring to fig. 5, the electronic device includes:
at least one processor 501 and a memory 502 connected to the at least one processor 501, in this embodiment, a specific connection medium between the processor 501 and the memory 502 is not limited in this application, and fig. 5 illustrates an example where the processor 501 and the memory 502 are connected through a bus 500. The bus 500 is shown in fig. 5 by a thick line, and the connection manner between other components is merely illustrative and not limited thereto. The bus 500 may be divided into an address bus, a data bus, a control bus, etc., and is shown with only one thick line in fig. 5 for ease of illustration, but does not represent only one bus or one type of bus. Alternatively, the processor 501 may also be referred to as a controller, without limitation to name a few.
In the embodiment of the present application, the memory 502 stores instructions executable by the at least one processor 501, and the at least one processor 501 may execute any one of the data visualization methods described in fig. 2 by executing the instructions stored in the memory 502. The processor 501 may also implement the functions of the various modules in the apparatus shown in fig. 4.
The processor 501 is a control center of the apparatus, and may connect various parts of the entire control device by using various interfaces and lines, and perform various functions and process data of the apparatus by operating or executing instructions stored in the memory 502 and calling data stored in the memory 502, thereby performing overall monitoring of the apparatus.
In one possible design, processor 501 may include one or more processing units and processor 501 may integrate an application processor that handles primarily operating systems, user interfaces, application programs, and the like, and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 501. In some embodiments, processor 501 and memory 502 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 501 may be a general-purpose processor, such as a Central Processing Unit (CPU), digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof, that may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the data visualization method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
Memory 502, which is a non-volatile computer-readable storage medium, may 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, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and the like. The memory 502 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 502 in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.
By programming the processor 501, the code corresponding to the data visualization method described in the foregoing embodiments may be solidified into the chip, so that the chip can execute the steps of the data visualization method shown in fig. 2 when running. How to program the processor 501 is well known to those skilled in the art and will not be described in detail herein.
Based on the same inventive concept, embodiments of the present application provide a computer-readable storage medium storing a computer program, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform any of the data visualization methods as discussed above. Since the principle of solving the problem of the computer-readable storage medium is similar to that of the data visualization method, the implementation of the computer-readable storage medium can refer to the implementation of the method, and repeated details are not repeated.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such 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 intended to include such modifications and variations as well.

Claims (10)

1. A method of data visualization, comprising:
acquiring target data;
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 obtained by training based on user historical data, and the user historical data comprises the characteristic information of a plurality of data and a user actual use template corresponding to the characteristic information of each data;
acquiring a target template corresponding to the template identifier from a template library based on the template identifier, wherein the target template comprises 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 for indicating one characteristic of the visual chart corresponding to the at least one first component;
and visually displaying the target data based on the target template.
2. The method of claim 1, wherein prior to acquiring the target data, the method further comprises:
determining a plurality of first parameter information of the at least one first component in response to a first operation on the at least one first component;
packaging the first parameter information to obtain a target template;
and storing the target template and the template identification of the target template in the template library.
3. The method of claim 2, wherein encapsulating the first parameter information to obtain a target template comprises:
in response to a second operation on at least one second component, determining a plurality of second parameter information of the at least one second component, wherein each second component represents a decorative material, the decorative material comprises a frame and a sticker, and each second parameter information is used for indicating one characteristic of the decorative material corresponding to the at least one second component;
and packaging the plurality of first parameter information and the plurality of second parameter information to obtain the target template.
4. The method of any of claims 1-3, wherein obtaining target data comprises:
determining a target frame for constructing a target page;
and extracting the target data from the target page by adopting a data extraction model corresponding to the target frame.
5. A data visualization device, comprising:
the acquisition module is used for acquiring target data;
the recommendation module is used for inputting the 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 historical data, and the user historical data comprises the feature information of a plurality of data and a user actual use template corresponding to the feature information of each data;
the obtaining module is further configured to obtain, based on the template identifier, a target template corresponding to the template identifier from a template library, where the target template includes a plurality of 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 the at least one first component;
and the display module is used for visually displaying the target data based on the target template.
6. The apparatus of claim 5, wherein the apparatus further comprises a customization module to:
determining a plurality of first parameter information of the at least one first component in response to a first operation on the at least one first component before acquiring the target data;
packaging the first parameter information to obtain a target template;
and storing the target template and the template identification of the target template in the template library.
7. The apparatus of claim 6, wherein the customization module is specifically configured to:
in response to a second operation on at least one second component, determining a plurality of second parameter information of the at least one second component, wherein each second component represents a decorative material, the decorative material comprises a frame and a sticker, and each second parameter information is used for indicating one characteristic of the decorative material corresponding to the at least one second component;
and packaging the plurality of first parameter information and the plurality of second parameter information to obtain the target template.
8. The apparatus of any one of claims 5-7, wherein the acquisition module is specifically configured to:
determining a target frame for constructing a target page;
and extracting the target data from the target page by adopting a data extraction model corresponding to the target frame.
9. An electronic device, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory and for executing the method of any one of claims 1 to 4 in accordance with the obtained program instructions.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a computer, cause the computer to perform the method according to any one of claims 1-4.
CN202111619912.3A 2021-12-28 2021-12-28 Data visualization method, device, equipment and medium Pending CN114385940A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111619912.3A CN114385940A (en) 2021-12-28 2021-12-28 Data visualization method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111619912.3A CN114385940A (en) 2021-12-28 2021-12-28 Data visualization method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114385940A true CN114385940A (en) 2022-04-22

Family

ID=81198755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111619912.3A Pending CN114385940A (en) 2021-12-28 2021-12-28 Data visualization method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114385940A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115576530A (en) * 2022-11-25 2023-01-06 北京时代凌宇信息技术有限公司 View generation method, system and storage medium
CN116150413A (en) * 2023-02-07 2023-05-23 北京达佳互联信息技术有限公司 Multimedia resource display method and device
CN117216327A (en) * 2023-10-10 2023-12-12 广州红海云计算股份有限公司 Data analysis system based on visual data relationship

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115576530A (en) * 2022-11-25 2023-01-06 北京时代凌宇信息技术有限公司 View generation method, system and storage medium
CN116150413A (en) * 2023-02-07 2023-05-23 北京达佳互联信息技术有限公司 Multimedia resource display method and device
CN116150413B (en) * 2023-02-07 2024-06-04 北京达佳互联信息技术有限公司 Multimedia resource display method and device
CN117216327A (en) * 2023-10-10 2023-12-12 广州红海云计算股份有限公司 Data analysis system based on visual data relationship
CN117216327B (en) * 2023-10-10 2024-02-23 广州红海云计算股份有限公司 Data analysis system based on visual data relationship

Similar Documents

Publication Publication Date Title
US20200401648A1 (en) System integrating a mobile device application creation, editing and distribution system with a website design system
CN114385940A (en) Data visualization method, device, equipment and medium
US9892531B2 (en) Chart data-binding design time user experience with dynamic sample generation
WO2020015166A1 (en) Charting component creation method and device and computer readable storage medium
AU2014202725B2 (en) Methods and apparatus for translating forms to native mobile applications
CN111984902A (en) Visual page configuration method, system, computer equipment and storage medium
CN110837366A (en) Form generation method, electronic device and computer readable storage medium
KR20180121732A (en) Method and system for analyzing data based on block
CN111831258A (en) Method and system for creating application program
CN115098098A (en) Page generation method, page display method and device
CN114238808A (en) Page display method and device, computer equipment and storage medium
CN111752565A (en) Interface generation method and device, computer equipment and readable storage medium
CN105468345B (en) Method for realizing remote change of mobile phone terminal visit operation in quick-elimination system
CN113760285A (en) Page configuration method and device, computer equipment and page display method
US10409575B2 (en) System and method for developing software applications of wearable devices
US11966957B2 (en) Methods and systems for modular personalization center
CN114327395A (en) Webpage design method, device, computer equipment, storage medium and product
CN114138263A (en) Application template publishing method, system, medium and electronic terminal
CN114461960A (en) Page generation method, page display method and device
CN111857715A (en) H5-based linkage pull-down component selection method, device, equipment and storage medium
US9870347B1 (en) Network site conversion with respect to a development toolkit
CN113704593B (en) Operation data processing method and related device
CN114237589A (en) Skeleton screen generation method and device, terminal device and storage medium
US20120233551A1 (en) System Of Spatial Enterprise Solution
CN114741637A (en) Method, device and equipment for generating form page and readable storage medium

Legal Events

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