Data visualization method and device, electronic equipment and storage medium

By obtaining user configuration information and generating target configuration json files, the problem of low dashboard configuration efficiency in the existing technology is solved, and fast and accurate dashboard configuration is achieved, which significantly improves configuration efficiency.

CN119646062APending Publication Date: 2025-03-18DUXIAOMAN TECH (BEIJING) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411592537.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

In the prior art, the dashboard configuration is inefficient and requires a lot of manual configuration, resulting in large amounts of manpower consumption and low efficiency.

Method used

By obtaining user configuration information, including target dashboard templates and replacement variable information, the target configuration json file is generated, and the file is parsed through preset parsing scripts to generate and display the target dashboard.

Benefits of technology

It greatly reduces the content that users need to configure, reduces manual consumption, reduces dashboard configuration time, and improves dashboard configuration efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119646062A_ABST
    Figure CN119646062A_ABST
Patent Text Reader

Abstract

The invention provides a data visualization method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a target instrument panel template selected by a user and replacement variable information defined by the user, and the information comprises a replacement variable identifier and a configuration json file corresponding to the replacement variable identifier; and generating a target configuration json file based on a preset configuration json file of the target instrument panel template and the replacement variable information, analyzing the target configuration json file, generating a target instrument panel, and displaying the target instrument panel. According to the invention, the user can realize the instrument panel configuration by selecting the target instrument panel and the replacement variables, and it can be understood that the number of the replacement variables is less than the number of variables contained in the whole instrument panel, so that the content required to be configured by the user is greatly reduced, the labor consumption is reduced, and the instrument panel configuration efficiency is improved. And the user can change the instrument panel only by modifying the corresponding variable and configuring the json file without uniformly modifying the whole instrument panel template, so that the configuration efficiency of the instrument panel is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In order to intuitively represent data, it is usually necessary to visualize the data. When visualizing data, it is usually necessary to configure a dashboard. Dashboard configuration can convert large amounts of data into visual charts and indicators that are easy to understand and analyze. Through intuitive charts and indicator displays, users can understand data more quickly, discover trends, and gain in-depth business insights. The importance of dashboard configuration lies in making complex data easy to understand and interpret, helping users make more informed decisions.

[0003] In dashboard configuration, users usually need to configure chart types, chart style details, product line information, app information, monitoring item information, monitoring item calculation information, display configuration information, etc. As business logic increases, multiple services may need to monitor the same monitoring items, which results in a large amount of manual configuration required by personnel involved in different services, which is very labor-intensive and has low dashboard configuration efficiency. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a data visualization method, device, electronic device and storage medium to improve the efficiency of instrument panel configuration.

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

[0006] Acquire user configuration information, wherein the user configuration information includes a target dashboard template selected by the user and replacement variable information defined by the user, wherein the replacement variable information includes a replacement variable identifier and a configuration json file corresponding to the replacement variable identifier; the target dashboard template includes predefined variables, wherein the predefined variables include display components and display data;

[0007] Generate a target configuration json file based on the preset configuration json file of the target dashboard template and the replacement variable information;

[0008] The target configuration json file is parsed by a preset parsing script to generate and display the target dashboard.

[0009] In a possible embodiment, the user configuration information includes: a target dashboard template identifier, and the method further includes:

[0010] Based on the target dashboard template identifier, a target dashboard template is determined from preset dashboard templates, wherein the preset dashboard template is a dashboard preset for different businesses and / or display data, and the preset dashboard template is stored corresponding to a preset configuration json file of the dashboard template, and the preset configuration json file includes each predefined variable included in the preset dashboard template and a configuration json file corresponding to each of the predefined variables.

[0011] In a possible embodiment, the preset dashboard template is pre-generated by the following steps:

[0012] Obtaining a dashboard history usage record for each business and / or display data, wherein the dashboard history usage record includes the dashboard usage time, variables included in the dashboard, and a configuration json file of the dashboard;

[0013] Based on the historical usage records of the dashboard, determine the dashboard with the highest usage frequency for each business and / or display data as a preset dashboard template for the corresponding business and / or display data, or,

[0014] Determine the most frequently used variables for each business and / or display data to form a preset dashboard template for each business and / or display data;

[0015] The preset dashboard template, the business identifier, the display data identifier, and the configuration json file of the preset dashboard template are stored in a preset storage space correspondingly, and the preset storage space is pre-divided for different departments;

[0016] The determining the target dashboard template from the preset dashboard templates based on the target dashboard template identifier includes:

[0017] Based on the department identifier of the user, a target dashboard template and a preset configuration json file corresponding to the target dashboard template are obtained from a corresponding storage space based on the target dashboard template identifier.

[0018] In a possible embodiment, the preset configuration json file includes a correspondence between preset variables and configuration json files corresponding to the preset variables;

[0019] The generating a target configuration json file based on the preset configuration json file of the target dashboard template and the replacement variable information includes:

[0020] Traversing the preset variables in the target dashboard template based on the replacement variable identifier, and determining a preset variable consistent with the replacement variable identifier;

[0021] The json file corresponding to the preset variable consistent with the replacement variable identifier in the preset configuration json file is replaced with the configuration json file corresponding to the corresponding replacement variable to obtain the target configuration json file.

[0022] In a possible embodiment, the method further includes:

[0023] Access different data sources, and store the data in each of the data sources into a preset storage space, wherein the preset storage space is pre-set for different departments;

[0024] The target configuration json file is parsed by a preset parsing script to generate and display the target dashboard, including

[0025] Based on the variables contained in the target configuration json file, corresponding data is obtained from the storage space corresponding to the user's department identifier and displayed.

[0026] In a possible embodiment, the method further includes:

[0027] The configuration json file of the target dashboard is stored in correspondence with the department identifier, business identifier and display data identifier of the user, so as to update the preset dashboard template corresponding to each business and / or display data.

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

[0029] An acquisition module is used to acquire user configuration information, wherein the user configuration information includes a target dashboard template selected by the user and replacement variable information defined by the user, wherein the replacement variable information includes a replacement variable identifier and a configuration json file corresponding to the replacement variable identifier; the target dashboard template includes predefined variables, wherein the predefined variables include display components and display data;

[0030] A replacement module, used to generate a target configuration json file based on the preset configuration json file of the target dashboard template and the replacement variable information;

[0031] The parsing module is used to parse the target configuration json file through a preset parsing script, generate a target dashboard and display it.

[0032] In a possible embodiment, the user configuration information includes: a target dashboard template identifier, and the device further includes:

[0033] A determination module, configured to determine a target dashboard template from preset dashboard templates based on the target dashboard template identifier, wherein the preset dashboard template is a dashboard preset for different businesses and / or display data, and the preset dashboard template is stored corresponding to a preset configuration json file of the dashboard template, wherein the preset configuration json file includes each predefined variable included in the preset dashboard template and a configuration json file corresponding to each of the predefined variables;

[0034] The preset dashboard template is pre-generated through the following steps:

[0035] Obtaining a dashboard history usage record for each business and / or display data, wherein the dashboard history usage record includes the dashboard usage time, variables included in the dashboard, and a configuration json file of the dashboard;

[0036] Based on the historical usage records of the dashboard, determine the dashboard with the highest usage frequency for each business and / or display data as a preset dashboard template for the corresponding business and / or display data, or,

[0037] Determine the most frequently used variables for each business and / or display data to form a preset dashboard template for each business and / or display data;

[0038] The preset dashboard template, the business identifier, the display data identifier, and the configuration json file of the preset dashboard template are stored in a preset storage space correspondingly, and the preset storage space is pre-divided for different departments;

[0039] The determining the target dashboard template from the preset dashboard templates based on the target dashboard template identifier includes:

[0040] Based on the department identifier of the user, a target dashboard template and a preset configuration json file corresponding to the target dashboard template are obtained from a corresponding storage space based on the target dashboard template identifier;

[0041] The preset configuration json file includes a correspondence between preset variables and configuration json files corresponding to the preset variables;

[0042] The generating a target configuration json file based on the preset configuration json file of the target dashboard template and the replacement variable information includes:

[0043] Traversing the preset variables in the target dashboard template based on the replacement variable identifier, and determining a preset variable consistent with the replacement variable identifier;

[0044] Replace the json file corresponding to the preset variable in the preset configuration json file that is consistent with the replacement variable identifier with the configuration json file corresponding to the corresponding replacement variable to obtain a target configuration json file;

[0045] The device also includes:

[0046] An access module, used to access different data sources and store the data in each of the data sources into a preset storage space, wherein the preset storage space is pre-set for different departments;

[0047] The target configuration json file is parsed by a preset parsing script to generate and display the target dashboard, including

[0048] Based on the variables contained in the target configuration json file, corresponding data is obtained from the storage space corresponding to the department identifier of the user and displayed;

[0049] The device also includes:

[0050] The storage module is used to store the configuration json file of the target dashboard in correspondence with the department identifier, business identifier and display data identifier of the user, so as to update the preset dashboard template corresponding to each business and / or display data.

[0051] According to another aspect of the present invention, there is provided an electronic device, comprising:

[0052] Processor; and

[0053] Memory for storing programs,

[0054] The program includes instructions, which, when executed by the processor, enable the processor to perform any of the above-mentioned data visualization methods.

[0055] According to another aspect of the present invention, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute any of the above-mentioned data visualization methods.

[0056] One or more technical solutions provided in the embodiments of the present invention enable the user to configure the dashboard by selecting the target dashboard and replacing the variables. It is understandable that the number of replacement variables is less than the number of variables contained in the entire dashboard, which greatly reduces the content that the user needs to configure, reduces labor consumption, reduces the dashboard configuration time, and greatly improves the dashboard configuration efficiency. In addition, the dashboard is configured by configuring the json file. The user only needs to modify the corresponding variables and configure the json file to change the dashboard without the need to uniformly modify the entire dashboard template, further improving the dashboard configuration efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Further details, features and advantages of the invention are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:

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

[0059] Figure 2 A schematic diagram of a process for configuring a dashboard template in a data visualization method provided in an embodiment of the present invention;

[0060] Figure 3 An architecture diagram of a data visualization method provided by an embodiment of the present invention;

[0061] Figure 4 A further flow chart of a data visualization method provided by an embodiment of the present invention;

[0062] Figure 5 A schematic diagram of the structure of a data visualization device provided by an embodiment of the present invention;

[0063] Figure 6 A block diagram of an exemplary electronic device that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0064] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.

[0065] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.

[0066] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0067] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0068] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.

[0069] Although manually configuring dashboards one by one can achieve personalized configuration, it also has some disadvantages. The following are some common disadvantages of manually configuring dashboards:

[0070] 1. Time consumption: Manually configuring a dashboard requires setting up each indicator and chart one by one, including selecting data sources, defining indicators, setting filters, adjusting styles, etc. For complex dashboards, this may take a lot of time and effort, especially when adding and adjusting multiple components. The disadvantage of manual configuration is that it is time-consuming, which may limit the efficiency and productivity of users.

[0071] 2. Human error: Manually configuring dashboards one by one is prone to human error. During the tedious configuration process, users may overlook some settings or make mistakes, resulting in inaccurate or incomplete data displayed on the dashboard. These errors may affect users' interpretation and decision-making of data, reducing the reliability and effectiveness of the dashboard.

[0072] 3. Uniformity and consistency: Manually configuring dashboards one by one may lead to a lack of uniformity and consistency. Different users or teams may use different settings and layouts when configuring dashboards, resulting in different dashboard appearances and functions. This may reduce communication and collaboration between users and make it difficult to establish consistent data presentation standards across the organization.

[0073] 4. Limited flexibility: Manually configuring dashboards one by one may limit the flexibility of users. In the case of manual configuration, users may be limited to the options and functions provided by the software tool or platform. If users require customized or highly personalized dashboard layout and functions, manual configuration may not meet their needs.

[0074] 5. Difficulty in maintainability and updating: Dashboards that are manually configured one by one may be difficult to maintain and update. When data sources or indicators change, users need to manually update each component, which can be very tedious and error-prone. In large-scale dashboards, this can become a huge challenge and increase the complexity and cost of maintenance.

[0075] To overcome the shortcomings of manually configuring dashboards, many dashboard tools and platforms provide templates and automated configuration features. These features can help users configure dashboards more quickly and accurately, and improve overall efficiency and consistency.

[0076] In order to improve the efficiency of dashboard configuration and thus improve the efficiency of data visualization, the embodiments of the present invention provide a data visualization method, device, electronic device and storage medium. The data visualization method provided by the embodiments of the present invention can be applied to any electronic device with data visualization function, which can be a server, a computer or a mobile terminal. The scheme of the present invention is described below with reference to the accompanying drawings:

[0077] Figure 1 A schematic flow chart of a data visualization method provided by an embodiment of the present invention may include the following steps:

[0078] S101, obtaining user configuration information, wherein the user configuration information includes a target dashboard template selected by a user and replacement variable information defined by the user, wherein the replacement variable information includes a replacement variable identifier and a configuration json file corresponding to the replacement variable identifier; the target dashboard template includes predefined variables, wherein the predefined variables include display components and display data;

[0079] S102, generating a target configuration json file based on the preset configuration json file of the target dashboard template and the replacement variable information;

[0080] S103: Parse the target configuration json file through a preset parsing script, generate a target dashboard and display it.

[0081] By applying the embodiment of the present invention, the user can configure the dashboard by selecting the target dashboard and replacing the variables. It can be understood that the number of replacement variables is less than the number of variables contained in the entire dashboard, which greatly reduces the content that the user needs to configure, reduces labor consumption, reduces the dashboard configuration time, and greatly improves the dashboard configuration efficiency. In addition, by configuring the json file to configure the dashboard, the user only needs to modify the corresponding variables and configure the json file to change the dashboard, without the need to uniformly modify the entire dashboard template, further improving the dashboard configuration efficiency.

[0082] The above S101-S103 are exemplarily described below:

[0083] In S101, the user can configure the dashboard through the preset configuration page. As a possible implementation, the preset configuration page can display an optional dashboard logo, which can be a business name, a data name, or a preset type name, wherein the preset type name can be set by relevant personnel when configuring the dashboard based on the variables contained in the dashboard. The user can determine the target dashboard by selecting the corresponding dashboard logo.

[0084] Exemplarily, the user configuration information includes: a target dashboard template identifier, and the method further includes:

[0085] Based on the target dashboard template identifier, a target dashboard template is determined from preset dashboard templates, wherein the preset dashboard template is a dashboard preset for different businesses and / or display data, and the preset dashboard template is stored corresponding to a preset configuration json file of the dashboard template, and the preset configuration json file includes each predefined variable included in the preset dashboard template and a configuration json file corresponding to each of the predefined variables.

[0086] In a possible embodiment, the optional dashboard can be a dashboard template pre-set for different businesses, each dashboard template includes variables pre-set for different businesses and configuration json files corresponding to the variables. In a possible embodiment, the preset dashboard template is pre-generated by the following steps:

[0087] S11, obtaining a dashboard history usage record for each business and / or display data, wherein the dashboard history usage record includes the dashboard usage time, variables included in the dashboard, and a configuration json file of the dashboard;

[0088] S12, based on the historical usage record of the dashboard, determining the dashboard with the highest usage frequency for each business and / or display data as a preset dashboard template for the corresponding business and / or display data, or determining that the variables with the highest usage frequency for each business and / or display data constitute the preset dashboard template for each business and / or display data;

[0089] S13, storing the preset dashboard template, the business identifier, the display data identifier, and the configuration json file of the preset dashboard template in a preset storage space correspondingly, wherein the preset storage space is pre-divided for different departments;

[0090] The determining the target dashboard template from the preset dashboard templates based on the target dashboard template identifier includes:

[0091] Based on the department identifier of the user, a target dashboard template and a preset configuration json file corresponding to the target dashboard template are obtained from a corresponding storage space based on the target dashboard template identifier.

[0092] As a possible implementation, the dashboard template identifier and the variable identifier contained in the dashboard template and the corresponding configuration json file can be stored in correspondence. The variable can include a display component, a font type, etc. The display component can include a display chart, a dialog box, a text box, and a picture, etc. Each dashboard template can include multiple display components, such as one or more display charts, dialog boxes, text boxes, and pictures.

[0093] The variables contained in the above-mentioned preset dashboard template and the corresponding configuration json file can be flexibly set according to the actual needs of the corresponding business. In a possible embodiment, the dashboard template of each business can be configured according to the historical usage record of the template of each business. For example, after each use of the template, the variables contained in the template and the configuration json file corresponding to the variables can be stored accordingly. After that, based on the historical usage record of the template, the components with the highest usage rate can be determined as the components included in the dashboard template set for the business. After determining the preset template, the business identifier and the configuration json file of the dashboard template can be stored in the database accordingly, wherein the configuration json file of the dashboard template includes the configuration json files of the variables contained in the dashboard template.

[0094] In a possible embodiment, the preset dashboard template can also be configured according to the display data type, and the display data type can be set according to the data that may appear within the enterprise, such as operation data, monitoring data, offline calculation data, etc. Exemplarily, after each use of the dashboard, the data type displayed by the dashboard, the variables contained in the dashboard, and the configuration json file corresponding to the variable can be stored accordingly. Subsequently, for each data type, the most frequently used variable can be determined as the variable contained in the dashboard template corresponding to the data type. After determining the preset template, the display data type and the configuration json file of the dashboard can be stored in the database accordingly.

[0095] In actual applications, for data security reasons, data from different departments may not be able to be shared with each other. Therefore, in a possible embodiment, different dashboard templates can be preset for different departments within the enterprise, and the department's data source can be connected. In this way, during the process of generating the dashboard, data processing is carried out within the department, thereby improving the security of department data.

[0096] As a possible implementation method, a dashboard template for the business lines or display data types included in each department can be configured according to the above configuration method, and the department, dashboard identifier, and dashboard configuration json file can be stored in the database accordingly. Exemplarily, the database can be pre-divided into different storage tables or storage partitions for different departments. The storage tables or storage partitions are used to store all data generated or used in the department. The storage tables or storage partitions may or may not be interoperable, and can be specifically set according to the read and write permissions of the department data. After obtaining the dashboard template configured for the department, the dashboard template, the dashboard template configuration json file, and the corresponding business identifier and display data type identifier can be stored in the storage table or storage partition of the corresponding department.

[0097] like Figure 2 As shown, Figure 2 A flow chart of configuring a dashboard template in a data visualization method provided in an embodiment of the present invention. Specifically, a user can configure a basic dashboard, and configure the association between variables and the corresponding configuration json file, wherein the variable association can be the association between the variable and the specific data or database, that is, the data to be displayed can be obtained based on the variable. The front end can determine the key-value based on the user configuration and generate the dashboard configuration json and store it in the back end.

[0098] In a possible embodiment, the preset configuration page may also include replacement variable information that supports users to fill in by themselves. The replacement variable refers to the changes that the user needs to make to the target dashboard, such as changing the display components, monitoring data, etc. in the target dashboard, wherein the display component may be a chart style, a text display style, etc. The chart style may include a bar chart, a pie chart, etc. The text display style may include a cursive font, Song font, etc. The replacement variable information may include a replacement variable identifier and a configuration json file corresponding to the replacement variable identifier. The replacement variable identifier may be the name of the replacement variable, a preset number, etc. The json file corresponding to the replacement variable identifier refers to a configuration file in json format. The configuration json file may define the specific configuration corresponding to the replacement variable, such as the chart type, the position in the target dashboard, etc. The specific content of the configuration json file can be flexibly defined by the user according to their own needs.

[0099] As a possible implementation, the configuration json file of each display component that may be included in the target dashboard can be pre-configured, and the configuration json file can be stored in correspondence with the corresponding variable identifier. Each variable identifier can be displayed in the above-mentioned preset configuration page, and the user can select the replacement variable and its corresponding configuration json file based on the displayed variable identifier.

[0100] In a possible embodiment, after obtaining the replacement variable selected by the user and the corresponding json file, a target configuration json file is generated based on the json file of the replacement variable and the configuration json file of the target dashboard. Specifically, the preset variables in the target dashboard template can be traversed based on the replacement variable identifier to determine the preset variable consistent with the replacement variable identifier; the json file corresponding to the preset variable consistent with the replacement variable identifier in the preset configuration json file is replaced with the configuration json file corresponding to the corresponding replacement variable to obtain the target configuration json file.

[0101] As a possible implementation, the configuration json file of the preset dashboard template may include multiple groups of key-value pairs, and the key and value in each key-value pair can be customized. For example, the key can be the display position in the dashboard, and the value can be the component configuration. The key-value pair can describe the configuration of the component displayed in the specific display position in the target dashboard. For another example, the key can be the component configuration, and the value can be the display data configuration to be displayed by the corresponding component. The json file of the above-mentioned replacement variable may also include corresponding key-value pairs, wherein the key is the key value to be replaced, and the value is the data value corresponding to the key after the replacement. The key-value type of the replacement variable can be determined according to the key-value type of the target dashboard template.

[0102] Correspondingly, after obtaining the configuration json of the replacement variable, the keys contained in the target dashboard template can be traversed based on the keys in the configuration json file of the replacement variable, the key in the target dashboard template that is consistent with the replacement variable can be determined, and the value corresponding to the key can be replaced with the value contained in the replacement variable to obtain the target configuration json file of the target dashboard.

[0103] Afterwards, the target configuration json file can be parsed by a pre-written parsing script to obtain a target visualization page, and the visualization page can be displayed to the user. The parsing script can specifically be a json parsing script, which can implement parsing and display of the json file.

[0104] In a possible embodiment, the data visualization method provided by the embodiment of the present invention can be implemented by a data visualization system, and the data visualization system may include a front-end page, a back-end server, etc. The data visualization system can access different data sources, and the data source may include data generated or stored by different big data engines. The big data engine may include spark, presto, etc. The data source may also be data generated or stored by different businesses. As a possible implementation method, the data visualization system can be connected to different data sources through the preset interface of each data source, or by obtaining the data of the data source from the database used to store data in each data source.

[0105] In a possible embodiment, the data in each of the data sources may be stored in a preset storage space, and the preset storage space is pre-set for different departments;

[0106] The target configuration json file is parsed by a preset parsing script to generate and display the target dashboard, including

[0107] Based on the variables contained in the target configuration json file, corresponding data is obtained from the storage space corresponding to the user's department identifier and displayed.

[0108] In the process of parsing the target configuration json file using the parsing script, data can be obtained from the corresponding data source based on value, and the data can be displayed according to the display logic of the component, wherein the display logic of the component can be pre-set according to the display characteristics of the component and written in the corresponding configuration json file. For example, for a line chart, the horizontal axis and the vertical axis of the line chart can be set to represent the meaning, such as defining the horizontal axis to represent time and the vertical axis to represent data values. For a pie chart, the pie chart representation items, the representation colors of different items, and so on can be set.

[0109] In a possible embodiment, after the target dashboard is generated, the target dashboard and the target dashboard configuration json file can be stored in correspondence with the business identifier and the display data type identifier to achieve timely update of the preset dashboard template. There can be multiple business identifiers and display data type identifiers corresponding to the target dashboard, that is, one target dashboard can display data of multiple businesses and multiple display data types.

[0110] like Figure 3 As shown, Figure 3 An architecture diagram of a data visualization method provided in an embodiment of the present invention, specifically, an architecture diagram of the above-mentioned data visualization system, the data visualization system may include an access layer, a user layer, a backend, and a data display layer, wherein the access layer is used to access dashboards of different data sources and different group spaces, wherein different group spaces refer to storage spaces of different departments, and exemplarily, the different group spaces may be different folders, such as one folder belongs to department A, and another folder belongs to department B. Different departments have their own dashboard file requirements, and some of these requirements may be repeated. The user layer supports users to configure replacement variables, configure json files, and select existing dashboards, that is, supports users to configure dashboard templates and use dashboard templates. The backend can store user-configured information, exemplarily, can store user-configured variables and corresponding configuration json files, and label the configured dashboard with business or data display type, and can also store user-configured replacement variables, and generate a target dashboard for data display based on the content stored in the backend. The data display layer can render and display the target dashboard.

[0111] like Figure 4 As shown, Figure 4A flow chart of a data visualization method provided in an embodiment of the present invention. Specifically, a user can select an existing dashboard template and modify the configuration or variable mapping as needed to obtain a target dashboard configuration json file, obtain corresponding monitoring data from the access layer based on the configuration json file, and generate a target dashboard based on the configuration json file and the monitoring data for display.

[0112] By applying the embodiments of the present invention, users only need to pay attention to the variables and configuration json that need to be configured in various application scenarios, that is, various business needs, and configure the corresponding mapping relationship between the two. The backend will store the variables and configurations configured by the user separately, and use the corresponding string replacement method to quickly complete the replacement of all variables in the dashboard template json, store the latest configurations, and obtain the corresponding monitoring data based on this configuration. Users only need to quickly refresh multiple variables and configurations through scripts, without the need for manual configuration one by one. By setting a json pseudo-template, users only need to configure the replacement variables to quickly configure a new dashboard, which greatly improves the efficiency of dashboard configuration. The backend service stores dashboard variables and types, which is convenient for rapid modification and configuration when reused for the second time.

[0113] Based on the same inventive concept, the embodiment of the present invention also provides a data visualization device, such as Figure 5 As shown, the apparatus 500 may include:

[0114] The acquisition module 501 is used to acquire user configuration information, wherein the user configuration information includes a target dashboard template selected by the user and replacement variable information defined by the user, wherein the replacement variable information includes a replacement variable identifier and a configuration json file corresponding to the replacement variable identifier; the target dashboard template includes predefined variables, wherein the predefined variables include display components and display data;

[0115] A replacement module 502, configured to generate a target configuration json file based on the preset configuration json file of the target dashboard template and the replacement variable information;

[0116] The parsing module 503 is used to parse the target configuration json file through a preset parsing script, generate a target dashboard and display it.

[0117] In a possible embodiment, the user configuration information includes: a target dashboard template identifier, and the device further includes:

[0118] A determination module, configured to determine a target dashboard template from preset dashboard templates based on the target dashboard template identifier, wherein the preset dashboard template is a dashboard preset for different businesses and / or display data, and the preset dashboard template is stored corresponding to a preset configuration json file of the dashboard template, wherein the preset configuration json file includes each predefined variable included in the preset dashboard template and a configuration json file corresponding to each of the predefined variables;

[0119] The preset dashboard template is pre-generated through the following steps:

[0120] Obtaining a dashboard history usage record for each business and / or display data, wherein the dashboard history usage record includes the dashboard usage time, variables included in the dashboard, and a configuration json file of the dashboard;

[0121] Based on the historical usage records of the dashboard, determine the dashboard with the highest usage frequency for each business and / or display data as a preset dashboard template for the corresponding business and / or display data, or,

[0122] Determine the most frequently used variables for each business and / or display data to form a preset dashboard template for each business and / or display data;

[0123] The preset dashboard template, the business identifier, the display data identifier, and the configuration json file of the preset dashboard template are stored in a preset storage space correspondingly, and the preset storage space is pre-divided for different departments;

[0124] The determining the target dashboard template from the preset dashboard templates based on the target dashboard template identifier includes:

[0125] Based on the department identifier of the user, a target dashboard template and a preset configuration json file corresponding to the target dashboard template are obtained from a corresponding storage space based on the target dashboard template identifier;

[0126] The preset configuration json file includes a correspondence between preset variables and configuration json files corresponding to the preset variables;

[0127] The generating a target configuration json file based on the preset configuration json file of the target dashboard template and the replacement variable information includes:

[0128] Traversing the preset variables in the target dashboard template based on the replacement variable identifier, and determining a preset variable consistent with the replacement variable identifier;

[0129] Replace the json file corresponding to the preset variable in the preset configuration json file that is consistent with the replacement variable identifier with the configuration json file corresponding to the corresponding replacement variable to obtain a target configuration json file;

[0130] The device also includes:

[0131] An access module, used to access different data sources and store the data in each of the data sources into a preset storage space, wherein the preset storage space is pre-set for different departments;

[0132] The target configuration json file is parsed by a preset parsing script to generate and display the target dashboard, including

[0133] Based on the variables contained in the target configuration json file, corresponding data is obtained from the storage space corresponding to the department identifier of the user and displayed;

[0134] The device also includes:

[0135] The storage module is used to store the configuration json file of the target dashboard in correspondence with the department identifier, business identifier and display data identifier of the user, so as to update the preset dashboard template corresponding to each business and / or display data.

[0136] Among them, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved in the present invention are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0137] The exemplary embodiment of the present invention further provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to enable the electronic device to perform a method according to an embodiment of the present invention when executed by the at least one processor.

[0138] Exemplary embodiments of the present invention also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform a method according to an embodiment of the present invention.

[0139] An exemplary embodiment of the present invention further provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor of a computer, the computer is used to enable the computer to perform a method according to an embodiment of the present invention.

[0140] refer to Figure 6, a block diagram of an electronic device 600 that can be used as a server or client of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0141] like Figure 6 As shown, the electronic device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0142] A plurality of components in the electronic device 600 are connected to the I / O interface 605, including: an input unit 606, an output unit 607, a storage unit 608, and a communication unit 609. The input unit 606 may be any type of device capable of inputting information to the electronic device 600, and the input unit 606 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 607 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 608 may include, but is not limited to, a disk, an optical disk. The communication unit 609 allows the electronic device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0143] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above. For example, in some embodiments, the above-mentioned data visualization method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 600 via the ROM 602 and / or the communication unit 609. In some embodiments, the computing unit 601 may be configured to perform the above-mentioned data visualization method in any other appropriate manner (e.g., by means of firmware).

[0144] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0145] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0146] As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0147] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0148] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0149] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

Claims

1. A data visualization method, characterized in that: The method comprises: Acquire user configuration information, wherein the user configuration information includes a target dashboard template selected by the user and replacement variable information defined by the user, wherein the replacement variable information includes a replacement variable identifier and a configuration json file corresponding to the replacement variable identifier; the target dashboard template includes predefined variables, wherein the predefined variables include display components and display data; Generate a target configuration json file based on the preset configuration json file of the target dashboard template and the replacement variable information; The target configuration json file is parsed by a preset parsing script to generate and display the target dashboard.

2. The method according to claim 1, characterized in that The user configuration information includes: a target dashboard template identifier, and the method further includes: Based on the target dashboard template identifier, a target dashboard template is determined from preset dashboard templates, wherein the preset dashboard template is a dashboard preset for different businesses and / or display data, and the preset dashboard template is stored corresponding to a preset configuration json file of the dashboard template, and the preset configuration json file includes each predefined variable included in the preset dashboard template and a configuration json file corresponding to each of the predefined variables.

3. The method according to claim 2, characterized in that The preset dashboard template is pre-generated through the following steps: Obtaining a dashboard history usage record for each business and / or display data, wherein the dashboard history usage record includes the dashboard usage time, variables included in the dashboard, and a configuration json file of the dashboard; Based on the historical usage records of the dashboard, determine the dashboard with the highest usage frequency for each business and / or display data as a preset dashboard template for the corresponding business and / or display data, or, Determine the most frequently used variables for each business and / or display data to form a preset dashboard template for each business and / or display data; The preset dashboard template, the business identifier, the display data identifier, and the configuration json file of the preset dashboard template are stored in a preset storage space correspondingly, and the preset storage space is pre-divided for different departments; The determining the target dashboard template from the preset dashboard templates based on the target dashboard template identifier includes: Based on the department identifier of the user, a target dashboard template and a preset configuration json file corresponding to the target dashboard template are obtained from a corresponding storage space based on the target dashboard template identifier.

4. The method according to claim 1, characterized in that The preset configuration json file includes a correspondence between preset variables and configuration json files corresponding to the preset variables; The generating a target configuration json file based on the preset configuration json file of the target dashboard template and the replacement variable information includes: Traversing the preset variables in the target dashboard template based on the replacement variable identifier, and determining a preset variable consistent with the replacement variable identifier; The json file corresponding to the preset variable consistent with the replacement variable identifier in the preset configuration json file is replaced with the configuration json file corresponding to the corresponding replacement variable to obtain the target configuration json file.

5. The method according to claim 1, characterized in that The method further comprises: Access different data sources, and store the data in each of the data sources into a preset storage space, wherein the preset storage space is pre-set for different departments; The target configuration json file is parsed by a preset parsing script to generate and display the target dashboard, including Based on the variables contained in the target configuration json file, corresponding data is obtained from the storage space corresponding to the user's department identifier and displayed.

6. The method according to claim 1, characterized in that The method further comprises: The configuration json file of the target dashboard is stored in correspondence with the department identifier, business identifier and display data identifier of the user, so as to update the preset dashboard template corresponding to each business and / or display data.

7. A data visualization device, characterized in that: The device comprises: An acquisition module is used to acquire user configuration information, wherein the user configuration information includes a target dashboard template selected by the user and replacement variable information defined by the user, wherein the replacement variable information includes a replacement variable identifier and a configuration json file corresponding to the replacement variable identifier; the target dashboard template includes predefined variables, wherein the predefined variables include display components and display data; A replacement module, used to generate a target configuration json file based on the preset configuration json file of the target dashboard template and the replacement variable information; The parsing module is used to parse the target configuration json file through a preset parsing script, generate a target dashboard and display it.

8. The device according to claim 7, characterized in that The user configuration information includes: a target dashboard template identifier, and the device also includes: A determination module, configured to determine a target dashboard template from preset dashboard templates based on the target dashboard template identifier, wherein the preset dashboard template is a dashboard preset for different businesses and / or display data, and the preset dashboard template is stored corresponding to a preset configuration json file of the dashboard template, wherein the preset configuration json file includes each predefined variable included in the preset dashboard template and a configuration json file corresponding to each of the predefined variables; The preset dashboard template is pre-generated through the following steps: Obtaining a dashboard history usage record for each business and / or display data, wherein the dashboard history usage record includes the dashboard usage time, variables included in the dashboard, and a configuration json file of the dashboard; Based on the historical usage records of the dashboard, determine the dashboard with the highest usage frequency for each business and / or display data as a preset dashboard template for the corresponding business and / or display data, or, Determine the most frequently used variables for each business and / or display data to form a preset dashboard template for each business and / or display data; The preset dashboard template, the business identifier, the display data identifier, and the configuration json file of the preset dashboard template are stored in a preset storage space correspondingly, and the preset storage space is pre-divided for different departments; The determining the target dashboard template from the preset dashboard templates based on the target dashboard template identifier includes: Based on the department identifier of the user, a target dashboard template and a preset configuration json file corresponding to the target dashboard template are obtained from a corresponding storage space based on the target dashboard template identifier; The preset configuration json file includes a correspondence between preset variables and configuration json files corresponding to the preset variables; The generating a target configuration json file based on the preset configuration json file of the target dashboard template and the replacement variable information includes: Traversing the preset variables in the target dashboard template based on the replacement variable identifier, and determining a preset variable consistent with the replacement variable identifier; Replace the json file corresponding to the preset variable in the preset configuration json file that is consistent with the replacement variable identifier with the configuration json file corresponding to the corresponding replacement variable to obtain a target configuration json file; The device also includes: An access module, used to access different data sources and store the data in each of the data sources into a preset storage space, wherein the preset storage space is pre-set for different departments; The target configuration json file is parsed by a preset parsing script to generate and display the target dashboard, including Based on the variables contained in the target configuration json file, corresponding data is obtained from the storage space corresponding to the department identifier of the user and displayed; The device also includes: The storage module is used to store the configuration json file of the target dashboard in correspondence with the department identifier, business identifier and display data identifier of the user, so as to update the preset dashboard template corresponding to each business and / or display data.

9. An electronic device, comprising: processor; as well as Memory for storing programs, The program includes instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 6.

10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to make a computer execute the method according to any one of claims 1-6.

Citation Information

Cited By

  • Configuration method and device of dashboard component

    CN121116424A