A visual component conversion method and device

Through the combination of layout mapper, component mapper and interactive configuration mapper, automated conversion between intelligent reports and data large screens is realized, solving the problem of conversion relying on manual configuration by engineers in the existing technology, and improving conversion efficiency and flexibility.

CN119739384APending Publication Date: 2025-04-01CHINA UNIONPAY MERCHANT SERVICES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411800096.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-09
Publication Date
2025-04-01

AI Technical Summary

Technical Problem

In the prior art, the conversion between smart reports and large data screens is too dependent on manual configuration by engineers, resulting in insufficient conversion efficiency and flexibility.

Method used

The visual components are layout conversion through the layout mapper. The component mapper reads the data model and fills it into the converted layout. The interactive configuration mapper sets up the filter configuration to realize automated visual component conversion.

Benefits of technology

Without engineer reconfiguration, visualizing the conversion efficiency and flexibility of components is greatly improved, simplifying workflows and reducing repetitive workloads.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119739384A_ABST
    Figure CN119739384A_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for converting a visualization component. In the method, a layout mapper is used to convert the layout of a visualization component to obtain a converted layout; a component mapper is used to read a data model of the visualization component, and the data model is filled into the converted layout according to the format in the detailed statistical configuration to obtain another converted visualization component; an interactive configuration mapper is used to read a filter configuration, and a filter is set for another converted visualization component. The method can improve the conversion efficiency and flexibility between visualization components.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method and device for converting a visualization component. Background Art

[0002] Smart reports and data screens are two commonly used visualization methods in Business Intelligence (BI) tools. Smart reports mainly display more detailed and specific data in the form of tables and lists, and are suitable for decision-making scenarios that require accurate data support. Data screens (such as dashboards and visualization screens) emphasize visual display and macro overviews, and display key indicators and trends in data in a graphic-intensive manner through elements such as charts, graphics, and dynamic effects.

[0003] However, with the increase in the amount of BI business data, the current method of displaying data in a visual way can no longer meet the current visualization needs. More businesses require a combination of the two for display. At this time, BI tool users are required to perform two separate configurations of the report or large screen. For example, when the current visualization component is a large screen, engineers are required to reconfigure the corresponding report based on the content displayed in the current large screen, resulting in conversions between visualization components. This is overly dependent on engineers for reconfiguration, affecting the conversion efficiency and flexibility between visualization components. Summary of the invention

[0004] In view of this, an embodiment of the present application provides a visualization component conversion method and device, aiming to improve the conversion efficiency and flexibility between visualization components.

[0005] In a first aspect, an embodiment of the present application provides a method for converting a visualization component, the method comprising:

[0006] Perform layout transformation on the visual component through the layout mapper to obtain the transformed layout;

[0007] Reading the data model of the visualization component through a component mapper, and filling the data model into the converted layout according to the format in the detailed statistical configuration, to obtain another converted visualization component;

[0008] By interactively configuring a mapper, a filter configuration is read and the filter is set for another visualization component after the transformation.

[0009] In a second aspect, an embodiment of the present application provides a visual component conversion device, the device comprising:

[0010] A layout conversion module, used for performing layout conversion on the visual component through a layout mapper to obtain a converted layout;

[0011] A filling module, used for reading the data model of the visualization component through a component mapper, and filling the data model into the converted layout according to the format in the detailed statistical configuration to obtain another converted visualization component;

[0012] A mapping module is used to configure a mapper through interaction, read a filter configuration, and set the filter for another visualization component after the conversion.

[0013] In a third aspect, an embodiment of the present application provides a visual component conversion device, the device comprising:

[0014] Memory for storing computer programs;

[0015] The processor is used to execute the computer program so that the device executes the visualization component conversion method described in the first aspect.

[0016] In a fourth aspect, an embodiment of the present application provides a computer storage medium, wherein a computer program is stored on the computer-readable storage medium. When the computer program is executed, the device executing the computer program implements the visualization component conversion method described in the first aspect above.

[0017] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0018] The embodiment of the present application provides a method and device for converting a visual component, the method comprising: performing layout conversion on the visual component through a layout mapper to achieve overall structural conversion of two visual components and obtain a converted layout. Then, the data model of the visual component can be read through the component mapper, and the data model can be filled into the converted layout according to the format in the detailed statistical configuration to gradually improve the content presented by the converted visual component and obtain another converted visual component. Finally, the mapper can be interactively configured to read the filter configuration and set a filter for another converted visual component to set a filter function for another converted visual component, so that the other converted visual component has the same filter function as the visual component before the conversion, thereby automatically completing the conversion between visual components through the above method, without the need for engineers to reconfigure based on the visual components, thereby improving the conversion efficiency and flexibility between visual components. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 A schematic diagram of an application scenario of a visualization component conversion method provided in an embodiment of the present application;

[0021] Figure 2 A flowchart of a visualization component conversion method provided in an embodiment of the present application;

[0022] Figure 3 A schematic diagram of the structure of a visualization component conversion method provided in an embodiment of the present application;

[0023] Figure 4 A flow chart of converting a large screen into a report is provided for an embodiment of the present application;

[0024] Figure 5 A flow chart of converting a report into a large screen is provided for the embodiment of the present application;

[0025] Figure 6 A schematic diagram of the structure of a visual component conversion device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0027] In the process of BI visualization development, business personnel can quickly customize intelligent reports that meet current needs. However, when moving from daily analysis to formal reporting and presentation, it is likely that the report needs to be converted into a data screen that is more suitable for presentation, and to display data in a more intuitive graphical form. Currently, this part of the demand usually needs to be submitted to the BI engineer so that the BI engineer can design a matching screen based on the report content.

[0028] Existing report configuration methods include: data preparation and integration, configuring data sources for docking with business databases to obtain the data required for the report. Data modeling, modeling through structured query language (SQL) or dragging data, and defining data dimensions (such as time, geographic location, product category) and metrics (such as sales, profit, quantity, etc.), and setting the data range accessed by different roles through role variable configuration. Design report layout, create new reports and worksheets in reports, and fill in report static information, such as setting headers. Design report data mapping, specify the mapping relationship between report columns and data model fields. Set interactions, such as setting filters and other interactions, such as users can click filters to filter chart data, for example, bank card type filters, the system configures a drop-down box to display various bank card types (debit cards, credit cards, etc.), and when the user selects a specific type, only the data under that type is displayed in the chart. Configure information settings, set timed data refresh and other configurations.

[0029] Existing data screen configuration methods include: data preparation and integration. Data modeling. Designing screen layout: creating a new screen and creating static resources such as screen title and background image. Designing screen statistics components: binding data models and corresponding statistical charts (such as histograms, pie charts, line charts, etc.), and adjusting the statistical chart style. Setting interactions: setting filters and other interactions. Configuration information settings: setting timed data refresh and other configurations.

[0030] When converting a report to a large screen, engineers are required to design the large screen layout and configure various statistical components according to the data model corresponding to the report. Then, they need to drag and drop various statistical components to the large screen layout and re-configure the interaction and parameters for the large screen.

[0031] Or, when presenting or reporting activities, the data analysis conclusions in the data screen usually need to be organized into detailed reports for easy recording and archiving. At this time, engineers still need to reconfigure the corresponding reports. Engineers need to create new reports and sheets in the reports, bind the data model to the sheets, and set the interaction and configuration information. This not only causes overlap in workflows, but also increases unnecessary duplication of work, affects the effective use of resources, and leads to conversions between visualization components. It is overly dependent on engineers for reconfiguration, which affects the conversion efficiency and flexibility between visualization components.

[0032] Based on this, in order to solve the above problems, in an embodiment of the present application, the layout conversion of the visualization component is performed through the layout mapper to realize the overall structural conversion of the two visualization components and obtain the converted layout. Then, the data model of the visualization component can be read through the component mapper, and the data model can be filled into the converted layout according to the format in the detailed statistical configuration, so as to gradually improve the content presented by the converted visualization component and obtain another converted visualization component. Finally, the mapper can be interactively configured to read the filter configuration and set a filter for another converted visualization component, so as to set a filter function for another converted visualization component, so that the other converted visualization component has the same filter function as the visualization component before the conversion, so that the conversion between visualization components can be automatically completed through the above method, without the need for engineers to reconfigure based on the visualization components, thereby improving the conversion efficiency and flexibility between visualization components.

[0033] For example, one of the scenarios of the embodiments of the present application may be applied to Figure 1 In the scenario shown. The scenario includes a database 101 and a server 102, wherein the database 101 includes a data model corresponding to a visualization component, and the server 102 adopts the implementation method provided by the embodiment of the present application to obtain the data model of the visualization component from the database 101, and based on the layout mapper, the component mapper and the interaction configuration mapper, realizes the conversion of the visualization component.

[0034] First, in the above application scenario, although the action description of the implementation method provided in the embodiment of the present application is executed by the server 102; however, the embodiment of the present application is not limited in terms of the execution subject, as long as the actions disclosed in the implementation method provided in the embodiment of the present application are executed.

[0035] Secondly, the above scenario is only an example scenario provided by the embodiment of the present application, and the embodiment of the present application is not limited to this scenario.

[0036] The specific implementation of the visualization component conversion method and device in the embodiment of the present application is described in detail below with reference to the accompanying drawings.

[0037] See also Figure 2 , which is a flowchart of a visualization component conversion method provided by an embodiment of the present application, combined with Figure 2 As shown, it may specifically include:

[0038] S201: Performing layout conversion on the visualization component through a layout mapper to obtain a converted layout.

[0039] The layout mapper is used to realize layout conversion between different visualization components. The visualization components include a first visualization component and a second visualization component. The visualization components can be a data screen and a report. It should be understood that when the first visualization component is a large screen, the second visualization component is a report, and when the first visualization component is a report, the second visualization component is a large screen.

[0040] Please refer to Figure 3 , Figure 3 A structural diagram of the visualization component conversion method provided in an embodiment of the present application. Before the visualization component is converted to a layout through a layout mapper, the large screen and the report are configured using a unified data source, that is, the large screen and the report are constructed based on data in the same database. The large screen and the report reference the same data model, which can be obtained by analyzing SQL, that is, the data in the database can be converted to a corresponding data model through SQL, or it can be obtained through drag-and-drop analysis. The data types in the data model can be divided into data dimensions (such as time, region, and product category, etc.) and metrics (such as sales, profit, and quantity, etc.).

[0041] In a possible implementation, the title data and configuration data can be read from the first visualization component through the layout mapper, that is, the layout of the large screen can be converted into the layout of the report, and the layout of the report can also be converted into the layout of the large screen through the layout mapper. The title data includes the large screen title text configuration and the statistical chart title, and the configuration data includes the number of statistical charts.

[0042] Taking the first visualization component as a large screen and the second visualization component as a report as an example, the layout mapper can read the large screen title text configuration, the statistical chart title and the number of statistical charts from the large screen. Then, the layout template corresponding to the report can be obtained through the template mapper. The template mapper includes a large screen template and a report template. The large screen and the report can be converted into each other in overall structure through the template mapper. For example, the large screen template includes large screens of different styles, such as a bank transaction template with a statistical chart in the middle and 6 statistical charts around. When the user chooses to convert the current report to a large screen of the template, the system can first copy a large screen template of the style, and then fill the read data into the large screen through the layout mapper. In addition, for a statistical report with 7 sheets, the system can filter out the large screen template that supports 7 statistical charts by default, so that the user can choose a suitable large screen template. Similarly, the report template includes various styles of reports for the user to choose. After the selection is completed, a report template can be copied, and the read title data and configuration data can be filled into the report through the layout mapper.

[0043] For example, the large screen in the large screen template mainly includes large screen text content, coordinate layout of various statistical components, and other static components (such as pictures, time tools, videos, and live broadcast components, etc.). The report in the report template includes report name, worksheet and title.

[0044] After determining the report template, you can use the layout mapper to fill the large screen title text into the report name, create the same number of sheets as the number of statistical charts, fill the statistical chart titles in the large screen with the sheet names, and fill in the corresponding text information in the template according to the report template to obtain the basic layout of the converted report. In addition, other static components in the large screen will be discarded during the conversion process and can be configured by the user later.

[0045] In the process of converting a report to a large screen, the report name, sheet name, and number of sheets can be read from the report through the layout mapper. After the corresponding large screen template is selected through the template mapper, the report name can be filled in as the large screen title, and the sheet name can be filled in as the sub-title reserved in the large screen template that matches the number of sheets, to obtain the basic layout of the converted large screen.

[0046] S202: Reading the data model of the visualization component through the component mapper, filling the data model into the converted layout according to the format in the detailed statistical configuration, and obtaining another converted visualization component.

[0047] In the process of converting the first visualization component to the second visualization component, taking the first visualization component as a large screen and the second visualization component as a report as an example, in the process of converting the large screen to the report, the data model referenced by the statistical chart in the large screen can be read through the component mapper, and the data model can be converted into a two-dimensional data table. After that, the fields in the data table can be mapped to the corresponding header names by column in combination with the user's settings for the header. Then, the format in the detailed statistical configuration can be read. The detailed statistical configuration is used to indicate the display form of the data. The detailed statistical configuration includes displaying data, such as the option to display data in a detailed manner, and displaying statistical data, such as the option to display data in a statistical manner. For example, for statistical transaction flows, the data dimensions corresponding to the transaction flows include bank cards, card types, and dates, and the corresponding metrics include the number of transactions, transaction amounts, and the like. On the large screen, the user chooses summation statistics and uses a pie chart to display the percentage of transaction counts. During the conversion to a report, the user can choose to display the transaction flow in detail in the detailed statistics configuration. After the user chooses to display the data in detail, the detailed data involved in the transaction flow can be directly filled into the report, so that the data display method can be more flexible through the detailed statistics configuration.

[0048] Then, according to the format in the detailed statistical configuration, taking the display data as an example, you can directly fill the data corresponding to each column field in the data table into the sheet in the converted report to obtain the converted report.

[0049] Taking the display of statistical data as an example, the data corresponding to the dimension column being counted can be filled into the converted sheet, and the corresponding statistical function can be added to the metric column being counted according to the statistical strategy in the large screen, and then filled into the sheet in the converted report to obtain the converted report. Click Preview to see the statistical report based on the dimension. The above statistical strategy refers to the statistical strategy applied in the large screen, and the statistical functions include but are not limited to the sum function sum, the statistical function count, and the average function avg. For example, if the user chooses to perform statistics based on the time dimension and sets the average function, the content filled into the sheet report includes the transaction date, average amount, and average number of transactions.

[0050] In the process of converting the report to the large screen, the data model referenced by the report can be read through the component mapper, and based on the number of dimensions and the number of measures in the data model, a dimension statistical chart corresponding to the number of dimensions and a metric statistical chart corresponding to the number of measures are generated, and the corresponding chart is generated in combination with the presentation form of the statistical chart selected by the user, such as a pie chart, a tree chart, and a bar chart. In addition, according to the statistical strategy in the detailed statistical configuration, a statistical function is added to the metric statistical chart to obtain an adjusted metric statistical chart, after which the adjusted metric statistical chart and dimension statistical chart can be filled into the converted large screen template. It should be noted that the large screen template includes the reserved coordinates and reserved sizes of each component. During the filling process, the size of the component to be filled needs to be adjusted to the reserved size and then filled to the reserved coordinates.

[0051] S203: Read the filter configuration through the interactive configuration mapper, and set the filter for another converted visualization component.

[0052] The interactive configuration mapper is used to synchronize the configuration information between two visualization components. Through the interactive configuration mapper, the global filter and local filter in the visualization component can be read. The global filter refers to the filter that is applicable to the global part of the visualization component, such as the filter of the entire report in the report, or the filter in the large screen. The local filter refers to the filter that is applicable to the local part of the visualization component, such as the filter in different sheets in the report, or the filter corresponding to different statistical charts in the large screen. For example, the time filter is used to filter the time in the entire large screen, and the filter is a global filter. If the time filter is located above the pie chart, it is only used to filter the time in this pie chart, and the filter is a local filter.

[0053] In the process of converting the large screen into a report, for a single sheet, the global filter in the large screen and the local filter of the large screen component corresponding to the sheet are read through the interactive configuration mapper, and the two types of filters are spliced ​​and set in the corresponding sheet.

[0054] In the process of converting a report to a large screen, you can read all the filter configurations in the report through the interactive configuration mapper, and determine whether the filter is a global filter based on the filter type and filter value, that is, based on the data range filtered by the filter, you can determine whether the filter is a global filter. If it is determined that the filter is a global filter, then set the filter to the position reserved for the global filter in the converted large screen; if it is not a global filter, then set the filter to the position reserved for the local filter in the component corresponding to the converted large screen.

[0055] In addition, you can also configure based on other parameters, for example, you can read the refresh time of a visualization component and set the refresh time to another visualization component. For example, you can read the refresh time in the large screen and synchronize it to the report, or read the refresh time in the report and synchronize it to the large screen to ensure the synchronization of other configuration information in the visualization component.

[0056] Furthermore, the user may fine-tune the style of the converted visualization component, and then publish the fine-tuned visualization component to enhance the user experience and the display effect of the visualization component.

[0057] Take the process of converting a large screen into a report as an example. Figure 4 , Figure 4A flow chart of converting a large screen into a report is provided for the embodiment of the present application. The flow includes a user interaction page, a front-end side and a server side. The interactive interface is used to indicate the interactive operations that the user needs to perform during the conversion process. The front-end side is used to indicate the configuration reading and saving performed by the front-end, and the server side is used to realize the configuration conversion between the report and the large screen. The method may include: the user can click the report conversion button in the page to perform the conversion process, and then the front-end side reads the corresponding data source configuration, data model and large screen configuration data exchange format json from the database and returns it to the interactive page. The user can select the corresponding report template in the interactive interface, such as no title style, title style, single and double line different color style, statistical merging style, etc. After selecting the report template, the front-end side can send the read report template and data model, large screen configuration and other data to the server side for report conversion. The server side reads and parses the received report template and data model, large screen configuration and other data, and then can create a new report according to the report template, create a sheet in the report, and fill in the text title information. In the interactive page, thumbnails of large screen components and corresponding data models can be popped up one by one. Users can check the corresponding components in the interactive page to create the corresponding header for the report. If not set, the field name in the data model can be directly used as the header. In addition, detailed statistical configuration can be set in this page until all large screen components are set up, click Save.

[0058] The server can fill the data model into the corresponding sheet based on user settings, read the filter configuration in the big screen, and concatenate the global filter and the component filter corresponding to the current sheet, and fill it into the report header. It can also synchronize timing parameters, such as synchronizing the refresh time in the big screen to the report, for refreshing the converted report.

[0059] Finally, you can click Save Report on the front end. Users can open the converted report in the interactive page. After fine-tuning the report style, they can click Publish to complete the conversion between the large screen and the report, simplifying the style configuration process. Through a one-time configuration process, the conversion between visual components is realized, reducing the labor cost of reconfiguration and improving configuration efficiency.

[0060] Take the process of converting a report to a large screen as an example. Figure 5 , Figure 5A flow chart of converting a report to a large screen is provided for the embodiment of the present application. The flow includes a user interaction page, a front-end side and a server side. The interactive interface is used to indicate the interactive operations that the user needs to perform during the conversion process. The front-end side is used to indicate the configuration reading and saving performed by the front-end, and the server side is used to realize the configuration conversion between the report and the large screen. The method may include: the user can click the large screen conversion button in the page to perform the conversion process, and then the front-end side reads the corresponding data source configuration, data model and report configuration data of the report from the database and returns it to the interactive page. The user can select the corresponding large screen template in the interactive interface. The large screen template can also recommend a suitable large screen template to the user according to the number of components, data model type, industry information, and the score corresponding to the large screen template, such as the main map large screen template, multi-component large screen template, sales industry large screen template, government industry large screen template, etc. After selecting the large screen template, the front-end side can send the read large screen template and data model, report configuration and other data to the server side for large screen conversion. The server side reads and parses the received large screen template and data model, report configuration and other data, and then can create a new large screen according to the large screen template and fill in the main title and subtitle in the large screen. In the interactive page, the recommended displayable charts based on the number of dimension columns and measure columns in the data model can be popped up one by one, such as line charts, bar charts, pie charts, and scatter charts. Users can check the corresponding statistical charts one by one in the interactive page, and set detailed statistical configurations in the page until all components are set up, and click Save.

[0061] The server side can fill the statistical chart component into the reserved position of the corresponding large-screen template in combination with user settings, and adjust the size of the statistical chart component according to the reserved size. It can also read the filter configuration in the report, and distinguish the filter as a global filter or a local filter according to the type and value range of the filter in the report. The global filter can be spliced ​​into the position reserved for the global filter in the large-screen template, and the local filter can be spliced ​​into the position reserved for the local filter on the statistical chart component. It can also synchronize timing parameters, such as synchronizing the refresh time in the report to the large screen, for refreshing the converted large screen.

[0062] Finally, you can click Save on the front end. Users can open the converted large screen in the interactive page. After fine-tuning the style of the large screen, they can click Publish to complete the conversion between the large screen and the report, simplifying the style configuration process. In addition, in the above process, a recommendation mechanism is introduced. According to the number of components, data types, and industry types, the corresponding large screen template can be recommended. In addition, the corresponding charts can be recommended in combination with the dimension columns and measure columns in the data model, which improves the configuration efficiency and flexibility of the visualization components.

[0063] In an embodiment of the present application, the layout conversion of the visualization component is performed through the layout mapper to achieve the overall structural conversion of the two visualization components and obtain the converted layout. Then, the data model of the visualization component can be read through the component mapper, and the data model can be filled into the converted layout according to the format in the detailed statistical configuration, so as to gradually improve the content presented by the converted visualization component and obtain another converted visualization component. Finally, the mapper can be interactively configured to read the filter configuration and set a filter for another converted visualization component, so as to set a filter function for another converted visualization component, so that the other converted visualization component has the same filter function as the visualization component before the conversion, so that the conversion between visualization components can be automatically completed by the above method, without the need for engineers to reconfigure based on the visualization components, thereby improving the conversion efficiency and flexibility between visualization components.

[0064] The above are some specific implementations of the visualization component conversion method provided in the embodiment of the present application. Based on this, the present application also provides a corresponding device. The device provided in the embodiment of the present application will be introduced from the perspective of functional modularization.

[0065] See also Figure 6 , which is a schematic diagram of the structure of a visualization component conversion device 600 provided in an embodiment of the present application, and the device 600 may include:

[0066] The layout conversion module 601 is used to perform layout conversion on the visualization component through a layout mapper to obtain a converted layout;

[0067] A filling module 602 is used to read the data model of the visualization component through a component mapper, and fill the data model into the converted layout according to the format in the detailed statistical configuration to obtain another converted visualization component;

[0068] The mapping module 603 is used to interactively configure the mapper, read the filter configuration, and set the filter for the converted another visualization component.

[0069] Optionally, the visualization component includes a first visualization component and a second visualization component, and the layout conversion module 601 includes:

[0070] a first reading unit, configured to read title data and configuration data from the first visualization component through the layout mapper;

[0071] A first acquisition unit, configured to acquire a template of the second visualization component through a template mapper;

[0072] The first filling unit is used to fill the title data and the configuration data into the template of the second visualization component through the layout mapper to obtain a converted layout.

[0073] Optionally, when converting the first visualization component into a second visualization component, the mapping module 603 includes:

[0074] A second reading unit, configured to read the data model of the first visualization component through a component mapper to obtain a data table;

[0075] A first mapping unit, configured to map a field in the data table to a table header of the second visualization component;

[0076] The second filling unit is used to fill the data in the data table into the converted layout according to the format in the detailed statistical configuration to obtain the converted second visualization component.

[0077] Optionally, the detailed statistical configuration includes display data and display statistical data. When the detailed statistical configuration is the display data, the second filling unit includes:

[0078] The third filling unit is used to fill the converted layout with data corresponding to each column field in the data table to obtain a converted second visualization component.

[0079] Optionally, the data table includes a dimension column and a metric column. When the detailed statistics are configured as the display statistical data, the second filling unit includes:

[0080] The fourth filling unit is used to fill the data corresponding to the counted dimension column into the converted layout, and add the corresponding statistical function to the counted metric column based on the statistical strategy, and then fill it into the converted layout to obtain the converted second visualization component.

[0081] Optionally, the mapping module 603 includes:

[0082] The first setting unit is used to read the global filter and the local filter through the interactive configuration mapper, and set the global filter and the local filter for the converted another visualization component.

[0083] Optionally, the device further comprises:

[0084] The second setting unit is used to read the refresh time of the visualization component and set the refresh time in another visualization component.

[0085] The embodiments of the present application also provide corresponding devices and computer storage media for implementing the solutions provided by the embodiments of the present application.

[0086] The device includes a memory and a processor, the memory is used to store a computer program, and the processor is used to execute the computer program, so that the device executes the visualization component conversion method described in any embodiment of the present application.

[0087] The computer storage medium stores a computer program. When the code is executed, the device executing the computer program implements the visualization component conversion method described in any embodiment of the present application.

[0088] The "first" and "second" in the names such as "first" and "second" (if any) mentioned in the embodiments of the present application are only used as name identifiers and do not represent the first or second in order.

[0089] Through the description of the above implementation methods, it can be known that those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment method can be implemented by means of software plus a general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a storage medium, such as a read-only memory (ROM) / RAM, a magnetic disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network communication device such as a router) to execute the methods described in each embodiment of the present application or some parts of the embodiments.

[0090] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described above is merely schematic, in which the unit described as a separate component may or may not be physically separated, and the component prompted as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0091] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A visualization component conversion method, characterized in that: The method comprises: Perform layout transformation on the visual component through the layout mapper to obtain the transformed layout; Reading the data model of the visualization component through a component mapper, and filling the data model into the converted layout according to the format in the detailed statistical configuration, to obtain another converted visualization component; By interactively configuring a mapper, a filter configuration is read and the filter is set for another visualization component after the transformation.

2. The method according to claim 1, characterized in that The visualization component includes a first visualization component and a second visualization component, and the visualization component is subjected to layout conversion by a layout mapper to obtain a converted layout, including: reading, by the layout mapper, title data and configuration data from the first visualization component; Obtaining the template of the second visualization component through the template mapper; The title data and configuration data are filled into the template of the second visualization component through the layout mapper to obtain a converted layout.

3. The method according to claim 2, characterized in that When converting the first visualization component to a second visualization component, the component mapper reads the data model of the visualization component, fills the data model into the converted layout according to the format in the detailed statistics configuration, and obtains another converted visualization component, including: Reading the data model of the first visualization component through a component mapper to obtain a data table; Mapping the fields in the data table to the table headers of the second visualization component; According to the format in the detailed statistical configuration, the data in the data table is filled into the converted layout to obtain a converted second visualization component.

4. The method according to claim 3, characterized in that: The detailed statistical configuration includes display data and display statistical data. When the detailed statistical configuration is the display data, the data in the data table is filled into the converted layout according to the format in the detailed statistical configuration to obtain the converted second visualization component, including: The converted layout is filled with data corresponding to each column of the field in the data table to obtain a converted second visualization component.

5. The method according to claim 4, characterized in that The data table includes dimension columns and measure columns. When the detailed statistics configuration is the display statistical data, the data in the data table is filled into the converted layout according to the format in the detailed statistics configuration to obtain the converted second visualization component, including: The data corresponding to the counted dimension column is filled into the converted layout, and the corresponding statistical function is added to the counted metric column based on the statistical strategy, and then filled into the converted layout to obtain the converted second visualization component.

6. The method according to claim 1, characterized in that The interactive configuration mapper, reading the filter configuration, and setting the filter for the converted another visualization component include: By interactively configuring the mapper, the global filter and the local filter are read, and the global filter and the local filter are set for the converted another visualization component.

7. The method according to claim 1, characterized in that The method further comprises: The refresh time of the visualization component is read and the refresh time is set in another visualization component.

8. A visual component conversion device, characterized in that: The device comprises: A layout conversion module, used for performing layout conversion on the visual component through a layout mapper to obtain a converted layout; A filling module, used for reading the data model of the visualization component through a component mapper, and filling the data model into the converted layout according to the format in the detailed statistical configuration to obtain another converted visualization component; A mapping module is used to configure a mapper through interaction, read a filter configuration, and set the filter for another visualization component after the conversion.

9. A visual component conversion device, characterized in that: The device comprises: Memory for storing computer programs; A processor is used to execute the computer program so that the device performs the visualization component conversion method as described in any one of claims 1 to 7.

10. A computer storage medium, characterized in that: The computer storage medium stores a computer program, and when the computer program is executed by a processor, the visual component conversion method according to any one of claims 1 to 7 is implemented.