CN114385676A - Data visualization method, device, equipment and storage medium - Google Patents
Data visualization method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN114385676A CN114385676A CN202111506452.3A CN202111506452A CN114385676A CN 114385676 A CN114385676 A CN 114385676A CN 202111506452 A CN202111506452 A CN 202111506452A CN 114385676 A CN114385676 A CN 114385676A
- Authority
- CN
- China
- Prior art keywords
- data
- target
- display
- template
- interface
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/248—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/26—Visual data mining; Browsing structured data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Artificial Intelligence (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a data visualization method, a device, equipment and a storage medium, wherein the method comprises the following steps: responding to an interface triggering instruction of a target display interface, and acquiring a template data set corresponding to the target display interface; the template data set is pre-configured based on preset template parameters and comprises a plurality of data source identifications associated with the target display interface and a plurality of corresponding data display templates; determining at least one target data display template from a plurality of data display templates, wherein the target data display template is stored in association with at least one data source identifier; respectively sending display data acquisition requests carrying the target data source identifications to the server based on the target data source identifications corresponding to the target data display templates, so that the server respectively feeds back the target display data corresponding to the target data source identifications; and performing collaborative display on each target display data on the target display interface based on each target data display template.
Description
Technical Field
The present application relates to the field of visualization technologies, and in particular, to a data visualization method, apparatus, device, and storage medium.
Background
With the continuous development of computer technology and internet, data is also increased sharply, and the display requirements for various dimensional statistics and combinations of data are also very frequent and urgent.
At present, most enterprises collect a large amount of business data in an application system of basic informatization, but the data needs a large amount of manual summarization and summarization to obtain results, so that a large amount of manpower and time are wasted. In order to realize visualization of data more quickly, a single visualization tool is generally adopted for display in the prior art, after a certain type of requirements are received by the display method, a visualization analysis interface needs to be configured, specifically, the front end and the rear end need to carry out development work according to business requirements, the working period is long, the workload is large, most of configurable visualization interfaces, components and data sources are fixed, the display area is fixed, and the display area cannot be increased or reduced dynamically.
Disclosure of Invention
In order to solve the technical problem, the application discloses a data visualization method, which can realize the collaborative display of data of different data sources on the same display interface without redevelopment of the front end and the rear end, and can dynamically adjust the display mode according to the user requirements.
In order to achieve the above object, the present application provides a data visualization method, including:
responding to an interface triggering instruction of a target display interface, and acquiring a template data set corresponding to the target display interface; the template data set is pre-configured based on preset template parameters, and comprises a plurality of data source identifications associated with the target display interface and a plurality of corresponding data display templates;
determining at least one target data display template from the plurality of data display templates, wherein the target data display template is stored in association with at least one data source identifier;
respectively sending display data acquisition requests carrying the target data source identifications to the server based on the target data source identifications corresponding to the target data display templates, so that the server respectively feeds back the target display data corresponding to the target data source identifications;
and based on the target data display templates, performing collaborative display on the target display data on a target display interface.
In some embodiments, before the acquiring, by the interface trigger instruction in response to the target presentation interface, the template data set corresponding to the target presentation interface, the method further includes:
receiving a reference template data set corresponding to at least one reference data display template of a plurality of display interfaces, wherein the reference template data set comprises a plurality of reference data display templates and a plurality of reference data source identifications, and an association relation is established between a single reference data display template and at least one reference data source identification;
constructing an incidence relation between a display interface and a reference template data set;
performing data format conversion on template data in the reference template data set corresponding to each display interface to obtain a template data set in a target format;
and sending the template data set in the target format to a server so that the server stores the template data set based on the incidence relation between the display interface and a reference template data set.
In some embodiments, the obtaining, in response to the interface trigger instruction of the target presentation interface, the template data set corresponding to the target presentation interface includes:
responding to an interface triggering instruction of the target display interface, and determining a template data set corresponding to the target display interface;
and sending an acquisition instruction of the template data set to the server, wherein the acquisition instruction of the template data set carries template data set identification information, so that the server responds to the acquisition instruction of the template data set to feed back the template data set corresponding to the template data set identification information.
In some embodiments, before the sending, to the server, the display data acquisition request carrying the target data source identifier based on the target data source identifier corresponding to each target data display template, so that the server feeds back the target display data corresponding to each target data source identifier, the method further includes:
and rendering each target data display template to obtain a target template page.
In some embodiments, the target display data acquisition request including each target data source identifier is sent to the server based on each target data source identifier corresponding to each target data display template, so that the server feeds back each target display data; the method comprises the following steps:
judging whether at least one first data display template corresponding to at least two first data source identifications exists in each target data display template;
if so, respectively sending each first display data acquisition request containing each first data source identifier to the server aiming at each first data display template so as to enable the server to feed back each first display data; the number of times of sending target display data acquisition requests to a server is the same as the number of the first data source identifiers;
aiming at each second data display template except for the first data display template in each target data display template, wherein each second data display template corresponds to a second data source identifier respectively, and each second display data acquisition request containing each second data source identifier is sent to the server respectively, so that the server feeds back each target display data; and the number of times of sending target display data acquisition requests to the server is the same as that of the target data display templates.
In some embodiments, the cooperatively displaying the target display data on the target display interface based on the target display templates includes:
analyzing the target display data to obtain the data characteristics of the target display data;
rendering the data characteristics of each target display data to a target data display template corresponding to each target display data to obtain a target data chart corresponding to each target display data;
and cooperatively displaying the target data chart corresponding to each target display data on a target display interface by using a target template page, wherein the target template page is obtained by pre-rendering.
In some embodiments, after the cooperatively presenting the target presentation data on the target presentation interface based on the target data presentation templates, the method further includes:
periodically acquiring updated display data corresponding to each target data display template based on a preset query statement, wherein the preset query statement is associated with a data source identifier;
and updating the target display data currently displayed in the target data display template based on the updated display data.
The application also provides a data visualization device, the device including:
the acquisition module is used for responding to an interface trigger instruction of a target display interface and acquiring a template data set corresponding to the target display interface; the template data set is pre-configured based on preset template parameters, and comprises a plurality of data source identifications associated with the target display interface and a plurality of corresponding data display templates;
a determining module, configured to determine at least one target data presentation template from the plurality of data presentation templates, where the target data presentation template is stored in association with at least one data source identifier;
the request sending module is used for sending display data acquisition requests carrying target data source identifications to the server respectively based on the target data source identifications corresponding to the target data display templates respectively so that the server can feed back the target display data corresponding to the target data source identifications respectively;
and the data display module is used for cooperatively displaying the target display data on a target display interface based on the target data display templates.
The present application further provides a data visualization apparatus comprising a processor and a memory, wherein at least one instruction or at least one program is stored in the memory, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the data visualization method as described above.
The present application further provides a computer-readable storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded by a processor and executes the data visualization method as described above.
The embodiment of the application has the following beneficial effects:
the data visualization method disclosed by the application responds to an interface trigger instruction of a target display interface, and a template data set corresponding to the target display interface is obtained; the template data set is pre-configured based on preset template parameters, and comprises a plurality of data source identifications associated with the target display interface and a plurality of corresponding data display templates; determining at least one target data display template from the plurality of data display templates, wherein the target data display template is stored in association with at least one data source identifier; respectively sending display data acquisition requests carrying the target data source identifications to the server based on the target data source identifications corresponding to the target data display templates, so that the server respectively feeds back the target display data corresponding to the target data source identifications; performing collaborative display on each target display data on a target display interface based on each target data display template; according to the method and the device, through simple configuration at the front end, under the condition that redevelopment is not needed at the rear end of the front end, collaborative display of data of different data sources on the same display interface can be achieved, and the display mode can be dynamically adjusted according to user requirements.
Drawings
In order to more clearly illustrate the data visualization method, apparatus, device and storage medium described in the present application, the drawings required for the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive efforts.
Fig. 1 is a schematic flowchart of a data visualization method provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for configuring a template data set according to an embodiment of the present disclosure;
FIG. 3 is an exemplary diagram of creating a reference template data set according to an embodiment of the present application;
fig. 4 is an exemplary schematic diagram of displaying three types of data on the same display interface according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data visualization apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, which is a schematic flow chart illustrating a data visualization method provided in an embodiment of the present application, the present specification provides the method operation steps as described in the embodiment or the flow chart, but is based on the conventional method; or the inventive process may include additional or fewer steps. The step sequence recited in the embodiments is only one of the execution sequence of the plurality of steps, and does not represent the only execution sequence, and the data visualization method can be executed according to the method sequence shown in the embodiment or the drawings. Specifically, as shown in fig. 1, the method includes:
s101, responding to an interface triggering instruction of a target display interface, and acquiring a template data set corresponding to the target display interface; the template data set is pre-configured based on preset template parameters and comprises a plurality of data source identifications associated with the target display interface and a plurality of corresponding data display templates;
it should be noted that, in the embodiment of the present application, the interface triggering instruction may be an instruction for opening the interface; responding to an opening instruction of the target display interface, and acquiring a template data set corresponding to the target display interface; the template data set can be acquired from a server side; the data source corresponding to each of the plurality of data source identifiers included in the template data set may be a data source of a different source;
the preset template parameters can include but are not limited to data such as condition screening and view screening; correspondingly, a data display template and a corresponding relation between the data source identification and the data display template can be created through data such as condition screening and view screening.
In the embodiment of the application, the favorite can be opened on the web interface, and the display interface can be accessed by further opening the favorite; specifically, the web interface may include a plurality of favorite controls, each favorite control corresponding to a presentation interface;
when data display is carried out, the data source identification corresponding to the display data which can be displayed in the display interface corresponding to the favorite can be determined through the favorite identification corresponding to the favorite control.
In the embodiment of the application, the favorites identifiers, and the association relationship between the display interface of the favorites and the data display template are all configured in advance.
In this embodiment of the application, a data source identifier corresponding to the display interface may be obtained based on the opened target display interface, that is, in response to an opening instruction of the target display interface, a template data set corresponding to the target display interface may be obtained based on each data display template corresponding to each data source identifier.
In the embodiment of the application, before the interface triggering instruction responding to the target display interface acquires the template data set corresponding to the target display interface, the configuration of the template data set is further included;
specifically, as shown in fig. 2, a schematic flow chart of a method for configuring a template data set according to an embodiment of the present application is shown; the method specifically comprises the following steps:
s201, receiving a reference template data set corresponding to at least one reference data display template of a plurality of display interfaces, wherein the reference template data set comprises a plurality of reference data display templates and a plurality of reference data source identifications, and an association relation is established between a single reference data display template and the at least one reference data source identification;
in the embodiment of the application, the display interface can be a display interface corresponding to a favorite control created on a web interface;
each display interface can correspond to reference data source identifications corresponding to a plurality of different data sources, wherein one reference data source identification can correspond to a plurality of reference data display templates; one reference data presentation template may also correspond to multiple reference data source identifications.
Specifically, the reference data display template may be used to display static parameters and/or dynamic parameters, and when configuring, a query statement needs to be configured for the dynamic parameters, specifically, query statement configuration data for the dynamic parameters may be received;
sending the query statement configuration data to a server, so that the server constructs a corresponding relation between a reference data source identifier corresponding to the dynamic parameter and a data source corresponding to the reference data source identifier based on the query statement configuration data; when receiving the display data acquisition request, the server can acquire data based on the data source identifier carried by the display data acquisition request and the configured query statement.
Specifically, when the reference template data set is created, a favorite control can be created on a web interface, a display interface corresponding to the favorite control is opened, and data related to the reference data display template is added;
correspondingly, when the reference data display template is created on the display interface, the corresponding relationship between the data display template and the data source identifier and the data display template can be determined through creating data options such as condition screening and view screening and through data selection.
Specifically, the condition filtering may include, but is not limited to, a drop-down box, a single selection, a multiple selection, a time control, a refresh frequency, and the like; the data source in the condition screening is specified, which may include but is not limited to static parameters and dynamic parameters, specifically, the dynamic parameters are data corresponding to the data source identifier obtained from the server side by configuring the query statement; the time control may support setting time granularity. Correspondingly, the set time control and the refresh frequency can refresh the display data according to the preset time, so that the dynamic display of the dynamic parameters in the display process is realized.
Specifically, the view screening may include various display charts such as broken lines, columns, meters, heat, instantaneous values, tables, and the like; the view can be configured with dynamic query statements and can be linked with the value of condition screening; the view screening can support the coordinate of the configuration view and can also support the display form of a setting legend: such as showing the maximum, minimum, sum, average, etc. of the data.
Specifically, when a "view" is selected in the condition screening, selection of various types of display charts in the view screening may be performed, and a display template of the reference data may be generated.
Specifically, fig. 3a-3b are schematic diagrams illustrating an exemplary method for creating a reference template data set according to an embodiment of the present application;
FIG. 3a is a schematic diagram of creating a presentation template in a favorite control created in a web interface;
FIG. 3b is a diagram illustrating the data options added and the selection method when creating a presentation template;
s202, constructing an incidence relation between a display interface and a reference template data set;
in the embodiment of the application, each display template added in a display interface is combined to form a reference template data set; after each display template is established in the display interface, a reference template data set formed by the combination of the display templates is stored in association with the display interface; so that the reference template data set corresponding to the presentation interface can be determined subsequently when the presentation interface is opened.
S203, performing data format conversion on the template data in the reference template data set corresponding to each display interface to obtain a template data set in a target format;
in the embodiment of the present application, the template data set in the target format may be a template data set in a json format;
s204, sending the template data set in the target format to a server so that the server stores the template data set based on the incidence relation between the display interface and the reference template data set;
in the embodiment of the application, the template data set converted into the json format is sent to a server for storage;
specifically, when the server stores the reference template data set, the server may store the association relationship between the display interface and the reference template data set, and correspondingly, may also store the association relationship between each reference data display template in the reference template data set and each data source identifier in association, so that when the server receives the reference template data set acquisition request, the server may acquire the reference template data set corresponding to the display interface based on the opened display interface.
Specifically, semantic query and data source query interfaces of each data source can be configured in the server; when receiving a data acquisition request corresponding to the data source identifier, the server side can acquire data from the corresponding data source based on the data source identifier.
Specifically, in this embodiment of the present application, in response to an interface trigger instruction of a target display interface, acquiring a template data set corresponding to the target display interface may include:
responding to an interface triggering instruction of the target display interface, and determining a template data set corresponding to the target display interface;
in the embodiment of the application, in response to an interface triggering instruction of the target display interface, the template data set corresponding to the target display interface may be determined based on the association relationship between the display interface and the reference template data set.
Sending an acquisition instruction of the template data set to the server, wherein the acquisition instruction of the template data set carries template data set identification information, so that the server responds to the acquisition instruction of the template data set and feeds back the template data set corresponding to the template data set identification information;
in the embodiment of the application, based on the association relationship between the display interface and the reference template data set, the reference template data set may be the association relationship between the display interface identification information and the reference template data set identification information;
specifically, when the template data set corresponding to the target display interface is determined, an obtaining instruction carrying the identification information of the template data set may be sent to the server, so that the server responds to the obtaining instruction carrying the identification information of the template data set and feeds back the template data set corresponding to the identification information of the template data set.
S102, determining at least one target data display template from a plurality of data display templates, wherein the target data display template is stored in association with at least one data source identifier;
in the embodiment of the application, all the data display templates in the template data set can be displayed, and one or more target data display templates in all the data display templates in the template data set can be selected to be displayed according to requirements;
specifically, the target data display template may be associated with one data source identifier, or may be associated with a plurality of data source identifiers;
if the target data display template is associated with a data source identifier, displaying data corresponding to the data source identifier in the target data display template;
if the target data display template is associated with the multiple data source identifiers, data corresponding to the multiple data source identifiers can be displayed in the target data display template; such a display may facilitate comparison of multiple data;
in another embodiment of the present application, a data source identifier may also be associated with a plurality of target data presentation templates; if one corresponding data source identifier is associated with a plurality of target data display templates, displaying data corresponding to the data source identifier in different graphs in the plurality of data display templates; the display mode can facilitate the user to view the distribution situation of the data.
In this embodiment of the present application, after determining each target display template, the method further includes:
rendering each target data display template to obtain a target template page;
in the embodiment of the present application, the rendering of the target data presentation template may include, but is not limited to, setting a skeleton of each target data presentation template, such as length and width of the presentation template; arranging display areas of the target data display templates in the display interface; further obtaining a target template page; the target template page can be a page of the display interface after the display mode and the display position of each target data display template are determined.
Specifically, the target template page may include, but is not limited to, a position of each target data presentation template, an area of the presented data, and a manner of presenting the data.
S103, respectively sending display data acquisition requests carrying target data source identifications to a server based on the target data source identifications corresponding to the target data display templates, so that the server respectively feeds back the target display data corresponding to the target data source identifications;
in this embodiment of the application, the sending, to the server, each target display data acquisition request including each target data source identifier based on each target data source identifier corresponding to each target data display template, so that the server feeding back each target display data may include the following cases:
in an embodiment of the present application, each target data presentation template may include a first data presentation template and/or a second data presentation template; wherein the first data presentation template may be associated with at least two first data source identifications; the second data presentation template is associated with a second data source identification;
specifically, whether at least one first data display template corresponding to at least two first data source identifiers exists in each target data display template is judged;
if so, respectively sending each first display data acquisition request containing each first data source identifier to the server aiming at each first data display template so as to enable the server to feed back each first display data; the number of times of sending target display data acquisition requests to a server is the same as the number of the first data source identifiers;
specifically, each first data source identifier individually sends a display data acquisition request to the server, and each display data acquisition request comprises a data source identifier;
based on this, if one data display template corresponds to a plurality of data source identifiers, such as the first data display template, then for the first data display template, a display data acquisition request corresponding to each data source identifier is sent to the server based on each data source identifier, so that the server feeds back data corresponding to each data source identifier;
aiming at each second data display template except for the first data display template in each target data display template, wherein each second data display template corresponds to a second data source identifier respectively, and each second display data acquisition request containing each second data source identifier is sent to the server respectively, so that the server feeds back each target display data; and the number of times of sending target display data acquisition requests to the server is the same as that of the target data display templates.
Specifically, if one data display template corresponds to one data source identifier, such as the second data display template described above, a display data acquisition request carrying the second data source identifier is sent to the server for the second data display template, so that the server feeds back data corresponding to the second data source identifier;
in this embodiment of the application, if a plurality of second data presentation templates exist in each target data presentation template, for each second data presentation template, a presentation data acquisition request corresponding to each second data source identifier is sent to the server based on the second data source identifier corresponding to each second data presentation template, so that the server feeds back data corresponding to each second data source identifier.
And S104, performing collaborative display on each target display data on the target display interface based on each target data display template.
In the embodiment of the present application, each target data display template may be arranged and displayed based on the target template page obtained by the rendering;
specifically, after the target display data corresponding to each target data source identifier fed back by the server is obtained, each target display data needs to be analyzed and rendered, so that each target display data is cooperatively displayed by each target data display template.
In this embodiment of the application, the performing, on the basis of the target data display templates, a collaborative display on the target display interface on the basis of the target display templates includes:
analyzing the target display data to obtain the data characteristics of the target display data;
in the embodiment of the present application, the data characteristics of the target presentation data may include, but are not limited to, the size of the data, the time, the trend of the data changing with time, and the like;
rendering the data characteristics of each target display data to a target data display template corresponding to each target display data to obtain a target data chart corresponding to each target display data;
in the embodiment of the application, the data characteristics of each target display data obtained by analysis are rendered into the corresponding target data display template, so that a target data graph can be obtained, wherein the target data graph can be the data display template on which the target display data are displayed;
the object data graph may show one object presentation data or may show a plurality of object presentation data.
And cooperatively displaying the target data chart corresponding to each target display data on a target display interface by using a target template page, wherein the target template page is obtained by pre-rendering.
In the embodiment of the application, the obtained target data charts can be cooperatively displayed in a display mode of each data display template in a target template page; therefore, the display of the data of a plurality of different data sources and the display of the data of one data source in different forms can be realized in one display interface; the data display mode in the application not only can realize the flexibility of data display, but also can quickly realize the display of various forms of data of each data source, and is good in flexibility and high in efficiency.
Fig. 4 is an exemplary schematic diagram illustrating three types of data displayed on the same display interface according to an embodiment of the present application;
wherein, the first row shows a kind of precondition data;
the two charts show system load data and CPU jumps data, respectively.
In an embodiment of the application, after performing the collaborative display on the target display data on the target display interface based on the target data display templates, the method further includes:
periodically acquiring updated display data corresponding to each target data display template based on a preset query statement, wherein the preset query statement is associated with a data source identifier;
in the embodiment of the application, the update cycle of the data can be determined based on the time control and the refresh frequency configured in the data display template, and the display data is periodically updated based on the update cycle;
specifically, when updating data, the server may send a request for obtaining target display data to be updated to the respective servers based on a set update period, so that the server finds the target display data to be updated based on a pre-configured query statement,
and updating the target display data currently displayed in the target data display template based on the updated display data.
In the embodiment of the application, after the updated display data is obtained, the updated display data is analyzed and rendered, so that the target display data currently displayed in the target data display template is updated to the updated display data.
As can be seen from the embodiments of the data visualization method, the data visualization device, the data visualization equipment and the storage medium provided by the present application, in response to an interface trigger instruction of a target display interface, the embodiment of the present application obtains a template data set corresponding to the target display interface; the template data set is pre-configured based on preset template parameters, and comprises a plurality of data source identifications associated with the target display interface and a plurality of corresponding data display templates; determining at least one target data display template from the plurality of data display templates, wherein the target data display template is stored in association with at least one data source identifier; respectively sending display data acquisition requests carrying the target data source identifications to the server based on the target data source identifications corresponding to the target data display templates, so that the server respectively feeds back the target display data corresponding to the target data source identifications; performing collaborative display on each target display data on a target display interface based on each target data display template; by using the technical scheme provided by the embodiment of the specification, the data of different data sources can be cooperatively displayed on the same display interface without redevelopment of the front end and the rear end, and the display mode can be dynamically adjusted according to the user requirements.
An embodiment of the present application further provides a data visualization apparatus, as shown in fig. 5, which is a schematic structural diagram of the data visualization apparatus provided in the embodiment of the present application; the device comprises:
an obtaining module 510, configured to respond to an interface trigger instruction of a target display interface, and obtain a template data set corresponding to the target display interface; the template data set is pre-configured based on preset template parameters, and comprises a plurality of data source identifications associated with the target display interface and a plurality of corresponding data display templates;
a determining module 520, configured to determine at least one target data presentation template from the plurality of data presentation templates, where the target data presentation template is stored in association with at least one data source identifier;
a request sending module 530, configured to send, based on the target data source identifier corresponding to each target data display template, a display data acquisition request carrying the target data source identifier to the server, so that the server feeds back the target display data corresponding to each target data source identifier;
and a data display module 540, configured to perform collaborative display on each target display data on a target display interface based on each target data display template.
In the embodiment of the present application, the method further includes:
the system comprises a receiving module, a display module and a display module, wherein the receiving module is used for receiving a reference template data set corresponding to at least one reference data display template of a plurality of display interfaces, the reference template data set comprises a plurality of reference data display templates and a plurality of reference data source identifications, and an association relation is established between a single reference data display template and the at least one reference data source identification;
the construction module is used for constructing an incidence relation between the display interface and the reference template data set;
the data conversion module is used for performing data format conversion on the template data in the reference template data set corresponding to each display interface to obtain a template data set in a target format;
and the data sending module is used for sending the template data set in the target format to a server so that the server stores the template data set based on the incidence relation between the display interface and a reference template data set.
In this embodiment of the present application, the obtaining module 510 includes:
the first determining unit is used for responding to an interface triggering instruction of the target display interface and determining a template data set corresponding to the target display interface;
a first sending unit, configured to send an obtaining instruction of the template data set to the server, where the obtaining instruction of the template data set carries template data set identification information, so that the server responds to the obtaining instruction of the template data set and feeds back a template data set corresponding to the template data set identification information.
In the embodiment of the present application, the method further includes:
and the page rendering module is used for rendering each target data display template to obtain a target template page.
In this embodiment, the request sending module 530 includes:
the judging unit is used for judging whether at least one first data display template corresponding to at least two first data source identifications exists in each target data display template;
the second sending unit is used for sending each first display data acquisition request containing each first data source identifier to the server respectively aiming at each first data display template if at least one first data display template corresponding to at least two first data source identifiers exists in each target data display template, so that the server feeds back each first display data; the number of times of sending target display data acquisition requests to a server is the same as the number of the first data source identifiers;
a third sending unit, configured to send, to the server, each second display data acquisition request including each second data source identifier, so that the server feeds back each target display data, where each second data display template in each target data display template is different from the first data display template, and each second data display template corresponds to one second data source identifier; and the number of times of sending target display data acquisition requests to the server is the same as that of the target data display templates.
In the embodiment of the present application, the data presentation module 540 includes:
the analysis unit is used for analyzing the target display data to obtain the data characteristics of the target display data;
the rendering unit is used for rendering the data characteristics of each target display data to a target data display template corresponding to each target display data to obtain a target data chart corresponding to each target display data;
and the data display unit is used for cooperatively displaying the target data chart corresponding to each target display data on a target display interface by using a target template page, wherein the target template page is obtained by pre-rendering.
In the embodiment of the present application, the method further includes:
the update data acquisition module is used for periodically acquiring update display data corresponding to each target data display template based on a preset query statement, wherein the preset query statement is associated with the data source identifier;
and the updating processing module is used for updating the target display data currently displayed in the target data display template based on the updated display data.
It should be noted that the device and method embodiments in the device embodiment are based on the same inventive concept.
The embodiment of the present application provides a data visualization apparatus, which includes a processor and a memory, where at least one instruction or at least one program is stored in the memory, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the data visualization method according to the above method embodiment.
Further, fig. 6 shows a hardware structure diagram of an electronic device for implementing the data visualization method provided in the embodiment of the present application, where the electronic device may participate in constituting or including the data visualization apparatus provided in the embodiment of the present application. As shown in fig. 6, the electronic device 60 may include one or more (shown as 602a, 602b, … …, 602 n) processors 602 (the processors 602 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 604 for storing data, and a transmission device 606 for communication functions. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 6 is only an illustration and is not intended to limit the structure of the electronic device. For example, electronic device 60 may also include more or fewer components than shown in FIG. 6, or have a different configuration than shown in FIG. 6.
It should be noted that the one or more processors 602 and/or other data visualization circuitry described above may be generally referred to herein as "data visualization circuitry". The data visualization circuitry may be embodied in whole or in part as software, hardware, firmware, or any combination thereof. Further, the data visualization circuitry may be a single, stand-alone processing module, or incorporated in whole or in part into any of the other elements in the electronic device 60 (or mobile device). As referred to in the embodiments of the present application, the data visualization circuitry is controlled as a type of processor (e.g., selection of a variable resistance termination path connected to an interface).
The memory 604 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the data visualization method described in the embodiments of the present application, and the processor 602 executes various functional applications and data visualization by running the software programs and modules stored in the memory 604, so as to implement one of the data visualization methods described above. The memory 604 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 604 may further include memory located remotely from processor 602, which may be connected to electronic device 60 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 606 is used for receiving or sending data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the electronic device 60. In one example, the transmission device 606 includes a network adapter (NIC) that can be connected to other network devices through a base station so as to communicate with the internet. In one embodiment, the transmission device 606 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the electronic device 60 (or mobile device).
Embodiments of the present application further provide a computer-readable storage medium, which may be disposed in an electronic device to store at least one instruction or at least one program for implementing a data visualization method in the method embodiments, where the at least one instruction or the at least one program is loaded and executed by the processor to implement the data visualization method provided in the method embodiments.
Alternatively, in this embodiment, the storage medium may be located in at least one network server of a plurality of network servers of a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
It should be noted that: the sequence of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternative implementations described above.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device and electronic apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (10)
1. A data visualization method is applied to a terminal, and is characterized in that the method comprises the following steps:
responding to an interface triggering instruction of a target display interface, and acquiring a template data set corresponding to the target display interface; the template data set is pre-configured based on preset template parameters, and comprises a plurality of data source identifications associated with the target display interface and a plurality of corresponding data display templates;
determining at least one target data display template from the plurality of data display templates, wherein the target data display template is stored in association with at least one data source identifier;
respectively sending display data acquisition requests carrying the target data source identifications to the server based on the target data source identifications corresponding to the target data display templates, so that the server respectively feeds back the target display data corresponding to the target data source identifications;
and based on the target data display templates, performing collaborative display on the target display data on a target display interface.
2. The data visualization method according to claim 1, before the obtaining, in response to the interface trigger instruction of the target presentation interface, the template data set corresponding to the target presentation interface, further comprising:
receiving a reference template data set corresponding to at least one reference data display template of a plurality of display interfaces, wherein the reference template data set comprises a plurality of reference data display templates and a plurality of reference data source identifications, and an association relation is established between a single reference data display template and at least one reference data source identification;
constructing an incidence relation between a display interface and a reference template data set;
performing data format conversion on template data in the reference template data set corresponding to each display interface to obtain a template data set in a target format;
and sending the template data set in the target format to a server so that the server stores the template data set based on the incidence relation between the display interface and a reference template data set.
3. The data visualization method according to claim 1, wherein the obtaining of the template data set corresponding to the target presentation interface in response to the interface trigger instruction of the target presentation interface comprises:
responding to an interface triggering instruction of the target display interface, and determining a template data set corresponding to the target display interface;
and sending an acquisition instruction of the template data set to the server, wherein the acquisition instruction of the template data set carries template data set identification information, so that the server responds to the acquisition instruction of the template data set and feeds back the template data set corresponding to the template data set identification information.
4. The data visualization method according to claim 1, wherein before the sending a display data acquisition request carrying the target data source identifier to the server based on the target data source identifier corresponding to each target data display template, so that the server feeds back the target display data corresponding to each target data source identifier, the method further comprises:
and rendering each target data display template to obtain a target template page.
5. The data visualization method according to claim 1, wherein the target data source identifiers corresponding to the target data display templates are used for sending target display data acquisition requests including the target data source identifiers to the server, so that the server feeds back the target display data; the method comprises the following steps:
judging whether at least one first data display template corresponding to at least two first data source identifications exists in each target data display template;
if so, respectively sending each first display data acquisition request containing each first data source identifier to the server aiming at each first data display template so as to enable the server to feed back each first display data; the number of times of sending target display data acquisition requests to a server is the same as the number of the first data source identifiers;
aiming at each second data display template except for the first data display template in each target data display template, wherein each second data display template corresponds to a second data source identifier respectively, and each second display data acquisition request containing each second data source identifier is sent to the server respectively, so that the server feeds back each target display data; and the number of times of sending target display data acquisition requests to the server is the same as that of the target data display templates.
6. The data visualization method according to claim 1, wherein the cooperatively presenting the target presentation data on a target presentation interface based on the target data presentation templates comprises:
analyzing the target display data to obtain the data characteristics of the target display data;
rendering the data characteristics of each target display data to a target data display template corresponding to each target display data to obtain a target data chart corresponding to each target display data;
and cooperatively displaying the target data chart corresponding to each target display data on a target display interface by using a target template page, wherein the target template page is obtained by pre-rendering.
7. The data visualization method according to claim 1, further comprising, after the cooperatively presenting the target presentation data on a target presentation interface based on the target data presentation templates, the following:
periodically acquiring updated display data corresponding to each target data display template based on a preset query statement, wherein the preset query statement is associated with a data source identifier;
and updating the target display data currently displayed in the target data display template based on the updated display data.
8. A data visualization device, said device comprising:
the acquisition module is used for responding to an interface trigger instruction of a target display interface and acquiring a template data set corresponding to the target display interface; the template data set is pre-configured based on preset template parameters, and comprises a plurality of data source identifications associated with the target display interface and a plurality of corresponding data display templates;
a determining module, configured to determine at least one target data presentation template from the plurality of data presentation templates, where the target data presentation template is stored in association with at least one data source identifier;
the request sending module is used for sending display data acquisition requests carrying target data source identifications to the server respectively based on the target data source identifications corresponding to the target data display templates respectively so that the server can feed back the target display data corresponding to the target data source identifications respectively;
and the data display module is used for cooperatively displaying the target display data on a target display interface based on the target data display templates.
9. A data visualization device comprising a processor and a memory, wherein at least one instruction or at least one program is stored in the memory, and wherein the at least one instruction or the at least one program is loaded and executed by the processor to implement the data visualization method according to any one of claims 1 to 7.
10. A computer-readable storage medium, in which at least one instruction or at least one program is stored, which is loaded by a processor and executes a data visualization method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111506452.3A CN114385676A (en) | 2021-12-10 | 2021-12-10 | Data visualization method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111506452.3A CN114385676A (en) | 2021-12-10 | 2021-12-10 | Data visualization method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114385676A true CN114385676A (en) | 2022-04-22 |
Family
ID=81195953
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111506452.3A Pending CN114385676A (en) | 2021-12-10 | 2021-12-10 | Data visualization method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114385676A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115686465A (en) * | 2023-01-04 | 2023-02-03 | 北京安锐卓越信息技术股份有限公司 | Marketing flow creating method and device, electronic equipment and readable storage medium |
CN116150413A (en) * | 2023-02-07 | 2023-05-23 | 北京达佳互联信息技术有限公司 | Multimedia resource display method and device |
-
2021
- 2021-12-10 CN CN202111506452.3A patent/CN114385676A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115686465A (en) * | 2023-01-04 | 2023-02-03 | 北京安锐卓越信息技术股份有限公司 | Marketing flow creating method and device, electronic equipment and readable 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 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114385676A (en) | Data visualization method, device, equipment and storage medium | |
JP2010026542A (en) | Image display renewal method and server client system, and drawing operation echo back script | |
CN108108157B (en) | Method and device for generating page and providing page information | |
CN102457579B (en) | A kind of method and system realizing Business Processing in cloud terminal | |
CN105120006A (en) | Live commenting control method, live commenting server and live commenting control device for electronic readings | |
CN108984496B (en) | Method and device for generating report | |
CN111274302A (en) | Editing method and system of webpage chart component, electronic equipment and storage medium | |
CN111414405A (en) | Data acquisition method and device and electronic equipment | |
CN107104833A (en) | A kind of method to set up of configuration information, source terminal equipment and target terminal equipment | |
CN113190152A (en) | Method and device for switching application program theme | |
CN104572214A (en) | Display and refreshing method and device of display interface | |
CN112416195A (en) | Method and device for generating device control function | |
CN112214701A (en) | Page display method and system, storage medium and electronic device | |
CN105490914B (en) | LED automation server and interaction method | |
CN115857863A (en) | Machine room configuration split-screen rendering method and device based on monitoring software and terminal | |
CN113065319B (en) | Text generation method and device | |
CN108229061A (en) | The processing method and processing device of drawing dynamic generation | |
CN112817593A (en) | Control page display method and device, storage medium and electronic device | |
CN111124482B (en) | Configuration method and device for document information | |
CN113377473A (en) | Task creation method and device, electronic equipment and computer readable storage medium | |
CN113326397A (en) | Service data processing method and device | |
CN113467776A (en) | Access method and device of equipment, storage medium and electronic device | |
CN113342337B (en) | Interface processing method and device, computer readable storage medium and processor | |
CN111046641A (en) | Menu file generation method and device, storage medium and electronic device | |
CN114745435B (en) | Resource display method and device, electronic equipment and 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 |