Data visualization processing method and device, storage medium and computer equipment

By receiving data visualization query instructions and determining template information from the template library, the problem of low data visualization processing efficiency in the existing technology is solved, automated data display is realized, operation and maintenance costs and workload are reduced, and data observation efficiency is improved. .

CN118568321APending Publication Date: 2024-08-30PINGAN YIQIANBAO E COMMERCE CO LTD

Patent Information

Application Number
CN202410725728.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the existing technology, data visualization processing is inefficient and difficult to maintain. Operation and maintenance personnel need to manually write codes for data query and display, resulting in low efficiency and duplication of work, and increasing operation and maintenance costs.

Method used

By receiving data visualization query instructions, it determines the template information and data source information from the template library based on the template name, generates charts or reports, establishes the corresponding relationship between the template name and the data source information, reduces the need for manual coding, and realizes automated data display.

Benefits of technology

It improves the efficiency of data visualization processing, reduces the workload of operation and maintenance personnel, reduces operation and maintenance costs, and facilitates operation and maintenance personnel to visually observe database indicators.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568321A
    Figure CN118568321A
Patent Text Reader

Abstract

The invention discloses a data visualization processing method and device, a storage medium and computer equipment, belongs to the technical field of data processing, and mainly solves the problems of low data visualization processing efficiency and difficult maintenance caused by demand change in the prior art. The data visualization query instruction carries a template name of to-be-queried data; based on the template name, determining template information and data source information corresponding to the template name from a template library; and performing chart display or report display on the to-be-queried data in the data source information based on the template information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data visualization processing method and device, a storage medium, and a computer device. Background Art

[0002] With the rapid development of various businesses, the number of database instances continues to increase. In order to observe the various indicators of the database more intuitively, operation and maintenance personnel need to continuously analyze the collected data and generate visual reports or charts.

[0003] In the prior art, operation and maintenance personnel use manually written SQL query texts to query the data in the database to be observed, and then import the query data into an Excel spreadsheet, perform data analysis through the Excel spreadsheet, and generate visual reports or charts for display. However, the above-mentioned manual writing method is affected by the ability of the writing personnel, which is not only inefficient, but also has the risk of different operation and maintenance personnel repeatedly analyzing the same indicator in the same database.

[0004] In order to avoid repeated analysis and display, at present, operation and maintenance personnel develop a report or chart platform, write the query SQL in the background code of the report or chart platform, find the data by calling the query SQL in the background, and then transfer the data to the front end for display to generate a visual report or chart. However, the above method of developing a report or chart platform also requires the front end to write a separate code for data display for each query. When it is necessary to convert between the generated reports or charts, the corresponding code for data display on the front end needs to be rewritten, which is not only inefficient, but also requires a lot of human resources to maintain the platform, increasing the operation and maintenance costs. Summary of the invention

[0005] In view of this, the present invention provides a data visualization processing method and device, a storage medium, and a computer device, the main purpose of which is to solve the problems of low efficiency and difficult maintenance of data visualization processing caused by changes in demand in the prior art.

[0006] According to one aspect of the present invention, a data visualization processing method is provided, comprising:

[0007] Receive a data visualization query instruction, wherein the data visualization query instruction carries a template name of data to be queried;

[0008] Based on the template name, determine the template information and data source information corresponding to the template name from a template library;

[0009] Based on the template information, the data to be queried in the data source information is displayed in a chart or report.

[0010] Furthermore, before receiving the data visualization query instruction, the method further includes:

[0011] Configuring at least one template to be displayed for each data source, wherein the template to be displayed includes a chart template and / or a report template;

[0012] Setting a template name for each of the templates to be displayed;

[0013] In the template library, a corresponding relationship is established between the data source information, the template to be displayed and the template name.

[0014] Furthermore, after establishing a correspondence between the data source information, the template to be displayed and the template name, the method further includes:

[0015] Configuring a template query link for the template name;

[0016] The template query link is associated with a query control of a user interface so that the data visualization query instruction is generated based on a triggering event of the query control.

[0017] Further, the determining, based on the template name, from a template library, template information and data source information corresponding to the template name includes:

[0018] Based on the correspondence between the data source information, the template to be displayed and the template name, determining the template to be displayed and the data source information corresponding to the template name;

[0019] The template SQL display text of the template to be displayed is obtained, and the data source query path is obtained from the data source information.

[0020] Furthermore, based on the template information, displaying the data to be queried in the data source information in a chart or report form includes:

[0021] Acquire the to-be-queried data from the data source based on the data source query path;

[0022] Execute the template SQL display text to display the data to be queried in a chart or report.

[0023] Furthermore, the method further comprises:

[0024] Receive a template debugging instruction, wherein the template debugging instruction carries a name of a template to be debugged;

[0025] Obtain the SQL display text of the template to be debugged corresponding to the name of the template to be debugged and the corresponding data source query path;

[0026] Receive adjustment information for the SQL display text of the template to be debugged, and display a chart or report based on the adjustment information and the data source query path.

[0027] Furthermore, the method further comprises:

[0028] When a template update instruction is received, the adjustment information is updated to the SQL display text of the template to be debugged to obtain an updated template SQL display text;

[0029] The update template SQL display text is used to update the template information in the template library.

[0030] According to another aspect of the present invention, there is provided a data visualization processing device, comprising:

[0031] A query instruction receiving module, used to receive a data visualization query instruction, wherein the data visualization query instruction carries a template name of the data to be queried;

[0032] A determination and acquisition module, used to determine the template information and data source information corresponding to the template name from a template library based on the template name;

[0033] The display module is used to display the to-be-queried data in the data source information in a chart or report based on the template information.

[0034] Furthermore, the device further comprises a configuration module, which is used to configure at least one template to be displayed for each data source, wherein the template to be displayed comprises a chart template and / or a report template;

[0035] Setting a template name for each of the templates to be displayed;

[0036] In the template library, a corresponding relationship is established between the data source information, the template to be displayed and the template name.

[0037] Furthermore, the device also includes a query initiation module, which is used to configure a template query link for the template name;

[0038] The template query link is associated with a query control of a user interface so that the data visualization query instruction is generated based on a triggering event of the query control.

[0039] Furthermore, the determination and acquisition module also includes:

[0040] an information determining unit, configured to determine the template to be displayed and the data source information corresponding to the template name based on a correspondence between the data source information, the template to be displayed and the template name;

[0041] The information acquisition unit is used to acquire the template SQL display text of the template to be displayed, and acquire the data source query path from the data source information.

[0042] Furthermore, the display module also includes:

[0043] A data acquisition unit, configured to acquire the to-be-queried data from the data source based on the data source query path;

[0044] The data display unit is used to execute the template SQL display text and display the data to be queried in a chart or report.

[0045] Furthermore, the device also includes a debugging module, which is used to receive a template debugging instruction, wherein the template debugging instruction carries the name of the template to be debugged;

[0046] Obtain the SQL display text of the template to be debugged corresponding to the name of the template to be debugged and the corresponding data source query path;

[0047] Receive adjustment information for the SQL display text of the template to be debugged, and display a chart or report based on the adjustment information and the data source query path.

[0048] Furthermore, the device further comprises a template updating module, which is used to update the adjustment information into the SQL display text of the template to be debugged when receiving a template updating instruction, so as to obtain an updated template SQL display text;

[0049] The update template SQL display text is used to update the template information in the template library.

[0050] According to another aspect of the present invention, a storage medium is provided, wherein the storage medium stores at least one executable instruction, and the executable instruction enables a processor to execute operations corresponding to the above-mentioned data visualization processing method.

[0051] According to another aspect of the present invention, there is provided a computer device, comprising a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0052] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the above-mentioned data visualization processing method.

[0053] By means of the above technical solution, the technical solution provided by the embodiment of the present invention has at least the following advantages:

[0054] The present invention provides a data visualization processing method and device, a storage medium, and a computer device. Compared with the prior art, the present invention receives a data visualization query instruction, and the data visualization query instruction carries a template name of the data to be queried; based on the template name, the template information and data source information corresponding to the template name are determined from the template library; based on the template information, the data to be queried in the data source information is displayed in a chart or report, thereby realizing the display function of the specified data in the data source as a chart or report, which is convenient for operation and maintenance personnel to observe the various indicators of the data source more intuitively. In the present invention, since the template information of the display template corresponds to the template name in the template library, the template information of the display template corresponding to the template name can be found in the template library each time a query instruction is received, including the code text of the display template, the template type, the template display form and other information, without the need for operation and maintenance personnel to separately write code text for data display, which greatly improves the efficiency of data visualization processing.

[0055] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0057] Figure 1 A schematic diagram of a data visualization processing method provided by an embodiment of the present invention is shown;

[0058] Figure 2 A schematic diagram showing a flow chart of another data visualization processing method provided by an embodiment of the present invention;

[0059] Figure 3 A schematic diagram showing a flow chart of another data visualization processing method provided by an embodiment of the present invention;

[0060] Figure 4 A schematic diagram of the structure of a data visualization processing device provided by an embodiment of the present invention is shown;

[0061] Figure 5 A schematic diagram showing the structure of another data visualization processing device provided by an embodiment of the present invention is shown;

[0062] Figure 6A schematic structural diagram of a computer device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0063] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0064] The embodiment of the present invention provides a data visualization processing method, such as Figure 1 As shown, the method includes:

[0065] 101. Receive a data visualization query instruction, where the data visualization query instruction carries a template name of data to be queried;

[0066] In an embodiment of the present invention, the current execution end receives a data visualization query instruction issued by a user, and the data visualization query instruction carries a template name of the data to be queried. Among them, the data to be queried is used to characterize the data that the user needs to perform data visualization analysis and processing, including pure content data, such as record data of database views, etc., which is not specifically limited in the embodiment of the present invention. It also includes data with numerical values, such as the remaining days of MySQL disk, the number of days of Oracle local retention, etc., which are not specifically limited in the embodiment of the present invention. The template name is a name pre-defined for each data display template, which is used to uniquely identify the corresponding display template. The constituent elements of the template name include text, letters, numbers, symbols, etc., which are not specifically limited in the embodiment of the present invention. Among them, the combination of constituent elements can be one or more, and the order of constituent elements is not limited, such as "aaa", "aaa11", "aa22#", etc., which are not specifically limited in the embodiment of the present invention.

[0067] It should be noted that, since the template name is pre-defined for each display template, in order to more intuitively reflect the relationship between the template name, the data source and the template display type, the name of the data source and the related information of the template display type can be used as fields in the template name, and the embodiment of the present invention does not make specific limitations.

[0068] 102. Based on the template name, determine template information and data source information corresponding to the template name from a template library;

[0069] In the embodiment of the present invention, the current execution end determines the template information and data source information corresponding to the template name from the template library based on the template name. Among them, the template library is used to represent the database storing the template information and data source information corresponding to the template name, which is essentially a pre-created display template code library, which encapsulates the code of the display template in a single text for storage and management. The template information includes the code text of the display template, the template type, the template display form and other information, which are not specifically limited in the embodiment of the present invention. Among them, the template type can be customized according to user needs, such as defining the template as a monitoring class template, a space class template, an object class template, etc., which are not specifically limited in the embodiment of the present invention. The template display form includes two categories: charts and reports, wherein the charts can also be divided into line charts, bar charts, pie charts, ring charts, etc., which are not specifically limited in the embodiment of the present invention. The data source information includes the data source name, data source type, data source query path, etc., which are not specifically limited in the embodiment of the present invention. Among them, the data source type can be divided into system operation data, database view data, observation data, statistical survey data, etc., which are not specifically limited in the embodiment of the present invention.

[0070] 103. Based on the template information, display the to-be-queried data in the data source information in a chart or report.

[0071] In the embodiment of the present invention, the current execution end displays the data to be queried in the data source information in a chart or report based on the template information. Since the template information is an execution file containing the display template code directly obtained from the template library, the current execution end performs an execution operation after obtaining the execution file, and performs visualization processing on the data to be displayed obtained from the data source. The visualization processing process includes the process of report display or the process of chart display, which depends on the user's needs and is not specifically limited in the embodiment of the present invention.

[0072] It should be noted that when the template information is stored in the template library, the corresponding template display form has been determined. When the execution file of the display template code is executed, the data is directly displayed according to the determined template display form, including report display and chart display.

[0073] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to facilitate the user's query of the template and to achieve rapid switching of the display form of the displayed data when the demand changes, another data visualization processing method is provided, such as Figure 2 As shown, before the step of receiving the data visualization query instruction, the method further includes:

[0074] 201. Configure at least one template to be displayed for each data source;

[0075] 202. Setting a template name for each of the templates to be displayed;

[0076] 203. In the template library, a correspondence is established between the data source information, the template to be displayed, and the template name.

[0077] In an embodiment of the present invention, the current execution end configures at least one template to be displayed for each data source, and the template to be displayed includes a chart template and / or a report template. For the same data to be displayed, when it is necessary to display it in different display forms, display templates of different display forms can be configured for the data to be displayed in the template library, and different template names can be defined in advance for display templates of different display forms. In order to avoid confusion when calling the display template, it is also necessary to establish a correspondence between the template name, data source information and the display template in the template library, as shown in Table 1 below:

[0078] Table 1 Correspondence

[0079]

[0080]

[0081] It should be noted that since display templates with different display forms are configured for the data to be displayed, when the user needs to switch between multiple display forms of the same data to be displayed, he only needs to switch directly by calling the method of the template to be displayed, without rewriting the data display code file. Therefore, when the demand changes, the efficiency of data visualization processing is greatly improved.

[0082] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to facilitate user operation, a one-key operation of data visualization is completed on the user interface set at the current execution end, and another data visualization processing method is provided. After establishing a corresponding relationship between the data source information, the template to be displayed and the template name, the method further includes:

[0083] Configuring a template query link for the template name;

[0084] The template query link is associated with a query control of a user interface so that the data visualization query instruction is generated based on a triggering event of the query control.

[0085] In an embodiment of the present invention, the current execution end configures a template query link for the template name, and the template query link is used to characterize the storage path of the display template. The current execution end associates the template query link with the query control of the user interface, and the query control can be named with the template name, or named with information related to the template name, so that the user can quickly select the template to be displayed that needs to be queried through the name of the control. When it is detected that the user clicks, drags, selects, or other triggering events on the query control of the user interface of the current execution end, the current execution end triggers the template query link through the association relationship between the query control and the template query link, so that a data visualization query instruction containing the template name is generated at the current execution end.

[0086] It should be noted that the query controls corresponding to the template names can be placed by category on the above user interface according to the template type, such as taking the type name as the first-level control and taking the specific query controls under the corresponding template type as the second-level controls: first-level control - monitoring type, second-level control - query control 1, query control 2, query control 3, etc.; first-level control - space type, second-level control - query control a, query control b, query control c, etc., which are not specifically limited in the embodiment of the present invention. When the user performs a query operation on the user interface, he can first search for the first-level control of the template type, and then open the first-level control to find the specific query control. When the number of templates is relatively large, the difficulty of the user's search for the displayed template can be reduced, shortening the user's search time.

[0087] Furthermore, as a refinement and extension of the specific implementation of the above embodiment, in order to quickly obtain the data to be displayed and perform visual data display, another data visualization processing method is provided.

[0088] The step of determining the template information and data source information corresponding to the template name from the template library based on the template name includes:

[0089] Based on the correspondence between the data source information, the template to be displayed and the template name, determining the template to be displayed and the data source information corresponding to the template name;

[0090] The template SQL display text of the template to be displayed is obtained, and the data source query path is obtained from the data source information.

[0091] The step of displaying the to-be-queried data in the data source information in a chart or report based on the template information includes:

[0092] Acquire the to-be-queried data from the data source based on the data source query path;

[0093] Execute the template SQL display text to display the data to be queried in a chart or report.

[0094] In an embodiment of the present invention, after the current execution end obtains the template name from the data visualization query instruction, it searches the corresponding relationship in the template library to obtain the data source information and the template information to be displayed corresponding to the template name. For example, when the current execution end obtains the template name "Aaa_table1" in Table 1 from the data visualization query instruction, the data source 1 corresponding to the template name "Aaa_table1" and the information corresponding to the tabular template 1 to be displayed can be determined as the data source information and the template to be displayed through the corresponding relationship. The embodiment of the present invention does not make specific limitations. The current execution end obtains the data source query path from the data source information so as to obtain the data to be displayed based on the path. In addition, the current front end obtains the template SQL display text from the template information to be displayed. The template SQL display text is used to represent the code text for data display. An executable file corresponding to the template SQL display text can be generated by encapsulation to facilitate the execution of data visualization processing operations.

[0095] In the embodiment of the present invention, after the current execution end obtains the data to be queried from the data source based on the data source query path, it displays the data to be queried in a chart or report by executing the template SQL display text.

[0096] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to make the data visualization effect of the template more in line with the needs of users, another data visualization processing method is provided, such as Figure 3 As shown, the method also includes:

[0097] 301. Receive template debugging instructions;

[0098] 302. Obtain the SQL display text of the template to be debugged corresponding to the name of the template to be debugged and the corresponding data source query path;

[0099] 303. Receive adjustment information for the SQL display text of the template to be debugged, and display a chart or report based on the adjustment information and the data source query path.

[0100] In an embodiment of the present invention, the current execution end receives a template debugging instruction, the template debugging instruction carries the name of the template to be debugged, and the template debugging instruction is used to indicate that a debugging operation needs to be performed on the template to be displayed corresponding to the name of the template to be debugged. The current execution end determines the template information to be debugged and the corresponding data source information corresponding to the name of the template to be debugged by searching for the corresponding relationship in Table 1, and then obtains the SQL display text of the template to be debugged from the template information to be debugged, and obtains the data source query path from the data source information. When the adjustment information of the SQL display text of the template to be debugged input by the user is received, the current execution end adjusts the SQL display text of the template to be debugged based on the adjustment information to obtain the adjusted template SQL display text, obtains the data to be displayed through the data source query path, executes the adjusted template SQL display text, and obtains a data display chart or report during the adjustment process.

[0101] It should be noted that after the current execution end obtains the SQL display text of the template to be debugged, it can display the SQL display text of the template to be debugged on the user interface. The user can directly adjust the text on the user interface, including modification, addition, deletion, etc., which is not specifically limited in the embodiment of the present invention.

[0102] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to timely update the template to be displayed that meets the user's needs, another data visualization processing method is provided, and the method also includes:

[0103] When a template update instruction is received, the adjustment information is updated to the SQL display text of the template to be debugged to obtain an updated template SQL display text;

[0104] The update template SQL display text is used to update the template information in the template library.

[0105] In the embodiment of the present invention, after debugging the template SQL display text to be debugged, the current execution end determines whether a template update instruction issued by the user is received. Only when the template update instruction issued by the user is received, the adjustment information is updated to the template SQL display text to be debugged to obtain the updated template SQL display text; otherwise, after one debugging, the adjustment information is not updated to the original template SQL display text. The current execution end uses the updated template SQL display text to update the template information in the template library, so that the latest template SQL display text can be obtained during the next call or debugging.

[0106] The embodiment of the present invention provides a data visualization processing method. Compared with the prior art, the present invention receives a data visualization query instruction, wherein the data visualization query instruction carries a template name of the data to be queried; based on the template name, the template information and data source information corresponding to the template name are determined from the template library; based on the template information, the data to be queried in the data source information is displayed in a chart or report, thereby realizing the display function of the chart or report for the specified data in the data source, which is convenient for operation and maintenance personnel to observe the various indicators of the data source more intuitively. Each time the present invention receives a query instruction, the corresponding display template can be found in the template library, without the need for operation and maintenance personnel to separately write code text for data display, which greatly improves the efficiency of data visualization processing.

[0107] As the above Figure 1 The embodiment of the present invention provides a data visualization processing device, such as Figure 4 As shown, the device comprises:

[0108] A query instruction receiving module 41 is used to receive a data visualization query instruction, wherein the data visualization query instruction carries a template name of the data to be queried;

[0109] A determination and acquisition module 42, configured to determine, based on the template name, template information and data source information corresponding to the template name from a template library;

[0110] The display module 43 is used to display the to-be-queried data in the data source information in a chart or report based on the template information.

[0111] Furthermore, the device further comprises a configuration module, which is used to configure at least one template to be displayed for each data source, wherein the template to be displayed comprises a chart template and / or a report template;

[0112] Setting a template name for each of the templates to be displayed;

[0113] In the template library, a corresponding relationship is established between the data source information, the template to be displayed and the template name.

[0114] Furthermore, the device also includes a query initiation module, which is used to configure a template query link for the template name;

[0115] The template query link is associated with a query control of a user interface so that the data visualization query instruction is generated based on a triggering event of the query control.

[0116] Furthermore, the determination and acquisition module also includes:

[0117] an information determining unit, configured to determine the template to be displayed and the data source information corresponding to the template name based on a correspondence between the data source information, the template to be displayed and the template name;

[0118] The information acquisition unit is used to acquire the template SQL display text of the template to be displayed, and acquire the data source query path from the data source information.

[0119] Furthermore, the display module also includes:

[0120] A data acquisition unit, configured to acquire the to-be-queried data from the data source based on the data source query path;

[0121] The data display unit is used to execute the template SQL display text and display the data to be queried in a chart or report.

[0122] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to make the data visualization effect of the template more in line with the needs of the user and to timely update the template to be displayed that meets the needs of the user, another data visualization processing device is provided, such as Figure 5 As shown, the device also includes:

[0123] The debugging module 44 is used to receive a template debugging instruction, wherein the template debugging instruction carries a name of a template to be debugged;

[0124] Obtain the SQL display text of the template to be debugged corresponding to the name of the template to be debugged and the corresponding data source query path;

[0125] Receive adjustment information for the SQL display text of the template to be debugged, and display a chart or report based on the adjustment information and the data source query path.

[0126] The template updating module 45 is used to update the adjustment information to the SQL display text of the template to be debugged when receiving the template updating instruction, so as to obtain the updated template SQL display text;

[0127] The update template SQL display text is used to update the template information in the template library.

[0128] The embodiment of the present invention provides a data visualization processing device. Compared with the prior art, the present invention receives a data visualization query instruction, wherein the data visualization query instruction carries a template name of the data to be queried; based on the template name, the template information and data source information corresponding to the template name are determined from the template library; based on the template information, the data to be queried in the data source information is displayed in a chart or report, thereby realizing the function of displaying a chart or report on the specified data in the data source, and facilitating operation and maintenance personnel to observe the various indicators of the data source more intuitively. Each time the present invention receives a query instruction, the corresponding display template can be found in the template library, without the need for operation and maintenance personnel to separately write code text for data display, thereby greatly improving the efficiency of data visualization processing.

[0129] According to one embodiment of the present invention, a storage medium is provided, wherein the storage medium stores at least one executable instruction, and the computer executable instruction can execute the data visualization processing method in any of the above method embodiments.

[0130] Figure 6 A schematic diagram of the structure of a computer device provided according to an embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the computer device.

[0131] like Figure 6 As shown, the computer device may include: a processor (processor) 502 , a communication interface (Communications Interface) 504 , a memory (memory) 506 , and a communication bus 508 .

[0132] The processor 502 , the communication interface 504 , and the memory 506 communicate with each other via a communication bus 508 .

[0133] The communication interface 504 is used to communicate with other devices such as clients or other servers.

[0134] The processor 502 is used to execute the program 510, and specifically can execute the relevant steps in the above-mentioned data visualization processing method embodiment.

[0135] Specifically, the program 510 may include program codes, which include computer operation instructions.

[0136] The processor 502 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the computer device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0137] The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0138] The program 510 may be specifically configured to enable the processor 502 to perform the following operations:

[0139] Receive a data visualization query instruction, wherein the data visualization query instruction carries a template name of data to be queried;

[0140] Based on the template name, determine the template information and data source information corresponding to the template name from a template library;

[0141] Based on the template information, the data to be queried in the data source information is displayed in a chart or report.

[0142] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0143] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A data visualization processing method, characterized in that: include: Receive a data visualization query instruction, wherein the data visualization query instruction carries a template name of data to be queried; Based on the template name, determine the template information and data source information corresponding to the template name from a template library; Based on the template information, the data to be queried in the data source information is displayed in a chart or report.

2. The method according to claim 1, characterized in that Before receiving the data visualization query instruction, the method further includes: Configuring at least one template to be displayed for each data source, wherein the template to be displayed includes a chart template and / or a report template; Setting a template name for each of the templates to be displayed; In the template library, a corresponding relationship is established between the data source information, the template to be displayed and the template name.

3. The method according to claim 2, characterized in that After establishing a correspondence between the data source information, the template to be displayed and the template name, the method further includes: Configuring a template query link for the template name; The template query link is associated with a query control of a user interface so that the data visualization query instruction is generated based on a triggering event of the query control.

4. The method according to claim 2, characterized in that: The determining, based on the template name, from a template library the template information and data source information corresponding to the template name includes: Based on the correspondence between the data source information, the template to be displayed and the template name, determining the template to be displayed and the data source information corresponding to the template name; The template SQL display text of the template to be displayed is obtained, and the data source query path is obtained from the data source information.

5. The method according to claim 4, characterized in that The step of displaying the to-be-queried data in the data source information in a chart or report based on the template information includes: Acquire the to-be-queried data from the data source based on the data source query path; Execute the template SQL display text to display the data to be queried in a chart or report.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Receive a template debugging instruction, wherein the template debugging instruction carries a name of a template to be debugged; Obtain the SQL display text of the template to be debugged corresponding to the name of the template to be debugged and the corresponding data source query path; Receive adjustment information for the SQL display text of the template to be debugged, and display a chart or report based on the adjustment information and the data source query path.

7. The method according to claim 6, characterized in that The method further comprises: When a template update instruction is received, the adjustment information is updated to the SQL display text of the template to be debugged to obtain an updated template SQL display text; The update template SQL display text is used to update the template information in the template library.

8. A data visualization processing device, characterized in that: include: A query instruction receiving module, used to receive a data visualization query instruction, wherein the data visualization query instruction carries a template name of the data to be queried; A determination and acquisition module, used to determine the template information and data source information corresponding to the template name from a template library based on the template name; The display module is used to display the to-be-queried data in the data source information in a chart or report based on the template information.

9. A storage medium, wherein at least one executable software is stored in the storage medium, and the executable software executes operations corresponding to the data visualization processing method according to any one of claims 1 to 7.

10. A computer device, comprising a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the data visualization processing method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data visualization method and device, electronic equipment and readable storage medium

    CN112182074A

  • Federated cluster data visualization display method, electronic equipment and storage medium

    CN113641735A

  • Data processing method and apparatus of report system, and computer-readable storage medium

    WO2020000719A1

Cited By

  • Visual analysis method and device for coal mine disaster monitoring and early warning data

    CN119917581A