CN115145565A - Rule engine-based data visualization large-screen layout method and device - Google Patents

Rule engine-based data visualization large-screen layout method and device Download PDF

Info

Publication number
CN115145565A
CN115145565A CN202210540132.8A CN202210540132A CN115145565A CN 115145565 A CN115145565 A CN 115145565A CN 202210540132 A CN202210540132 A CN 202210540132A CN 115145565 A CN115145565 A CN 115145565A
Authority
CN
China
Prior art keywords
component
target visualization
components
data
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210540132.8A
Other languages
Chinese (zh)
Inventor
李毅
陈家银
张伟
陈曦
麻志毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced Institute of Information Technology AIIT of Peking University
Hangzhou Weiming Information Technology Co Ltd
Zhejiang Great Shengda Packing Co Ltd
Original Assignee
Advanced Institute of Information Technology AIIT of Peking University
Hangzhou Weiming Information Technology Co Ltd
Zhejiang Great Shengda Packing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Advanced Institute of Information Technology AIIT of Peking University, Hangzhou Weiming Information Technology Co Ltd, Zhejiang Great Shengda Packing Co Ltd filed Critical Advanced Institute of Information Technology AIIT of Peking University
Priority to CN202210540132.8A priority Critical patent/CN115145565A/en
Publication of CN115145565A publication Critical patent/CN115145565A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Abstract

The application relates to the technical field of data visualization and data processing, in particular to a rule engine-based data visualization large-screen layout method and device. The method comprises the following steps: acquiring service data; creating a plurality of target visualization components based on the business data; determining a large-screen layout rule based on the importance degree of the target visualization component in the business data, the size of the target visualization component and the incidence relation among the target visualization components; and creating a large screen according to the view template and the large screen layout rule. According to the method and the device, the data processing efficiency is improved, the dependence on manual operation is reduced, the user can be enabled to be more concentrated on the business of realizing the actual display of the large data screen, the large data screen layout design does not need to be considered in more time, and meanwhile, the enterprise is assisted to face different business scenes and user roles, so that the quick multiplexing of the visual large data screen is realized.

Description

Rule engine-based data visualization large-screen layout method and device
Technical Field
The application relates to the technical field of data visualization and data processing, in particular to a rule engine-based data visualization large-screen layout method and device.
Background
At present, for a development platform or technology for providing a large data visualization screen, whether the development platform is a development platform such as an aricloud DataV, an Tencent cloud picture, a hundred-degree visualization Sugar and the like, or is realized by encoding of developers, reasonable planning and design of layout and typesetting of the large data screen are needed. In addition, the implementation process requires UI designers to participate in the design, developers to access and configure the data of the component, and even to develop component modules and large screens. The function of editing canvas in a data visualization design platform such as DataV is to drag a component layout first and then access service data to complete a data large screen.
However, the above method will cause the user to spend a lot of time in layout, adjustment and design of the whole large screen. Although more large-screen templates are provided for users to use for reference, the actually finished large-screen reusability is poor, and new data large screens cannot be generated quickly by aiming at different service scenes and user role authorities.
Disclosure of Invention
Based on the technical problems, the invention aims to realize the layout of a data visualization large screen by configuring the chart module component of the business data related to the actual business and based on the importance degree, the size and the relevance of the component.
The invention provides a data visualization large-screen layout method based on a rule engine in a first aspect, which comprises the following steps:
acquiring service data;
creating a plurality of target visualization components based on the business data;
determining a large-screen layout rule based on the importance degree of the target visualization component in the business data, the size of the target visualization component and the incidence relation among the target visualization components;
and creating a large screen according to the view template and the large screen layout rule.
In some embodiments of the present invention, before determining the large-screen layout rule, the method further includes: acquiring a view template, and configuring a weight value corresponding to each grid in the view template.
In some embodiments of the present invention, the determining a large screen layout rule includes:
determining the importance degree of the target visualization component in the business data;
determining a position of the target visualization component in a configured view template;
according to different importance degrees, correspondingly adjusting the grid weight value corresponding to the position;
taking the number of grids occupied by each target visualization component in the configured view template as the size of the target visualization component;
and determining the association relation among the target visual components.
In some embodiments of the present invention, the correspondingly adjusting the grid weight value corresponding to the position according to the different importance degrees includes:
dividing the importance degree into three grades of importance, common and unimportant;
if the target visualization component is important, adding 1 to the grid weight value corresponding to the position;
if the target visualization component is common, the grid weight value corresponding to the position is unchanged;
and if the target visualization component is not important, subtracting 1 from the grid weight value corresponding to the position.
In some embodiments of the present invention, after the dividing the importance degree into three levels of important, common and unimportant, the method further includes: and configuring the importance degree of the target visualization component to the target visualization component in a tag form.
In some embodiments of the present invention, the creating a large screen according to the view template and the large screen layout rule includes:
inputting a target visualization component into a view template according to the large screen layout rule and the label, wherein the view template is a preset reference size;
finding grids capable of placing the target visual component on the view template in a traversing mode from left to right and from top to bottom, and if the grids are occupied, skipping the occupied grids;
if the determined size of the target visualization component is not enough placed in the view template, matching the component corresponding to the minimum size;
if the components with the incidence relation are not placed in the view template, matching the components with the incidence relation corresponding to the minimum size;
taking the view templates loaded with all the target visualization components as created large screens;
if all grids in the view template are full and there are still components which are not placed, listing the components which are not placed in the created large screen.
In some embodiments of the present invention, the method for determining the association relationship between the target visualization components includes:
if the first target visualization component and the second target visualization component are adjacent, taking the second target visualization component as an association component of the first target visualization component, wherein the first target visualization component and the second target visualization component are any target visualization component;
the association components of all target visualization components are determined, and one target visualization component has at most two association components.
A second aspect of the present invention provides a control apparatus for database writing data based on a remote dictionary service, the apparatus comprising:
the acquisition module is used for acquiring the service data;
the component creating module is used for creating a plurality of target visualization components based on the business data;
the layout module is used for determining a large-screen layout rule based on the importance degree of the target visualization components in the business data, the size of the target visualization components and the incidence relation among the target visualization components;
and the large screen creating module is used for creating a large screen according to the large screen template and the large screen layout rule.
A third aspect of the invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring service data;
creating a plurality of target visualization components based on the business data;
determining a large-screen layout rule based on the importance degree of the target visualization components in the business data, the size of the target visualization components and the incidence relation among the target visualization components;
and creating a large screen according to the view template and the large screen layout rule.
A fourth aspect of the invention is a computer program product comprising a computer program which, when executed by a processor, performs the steps of:
acquiring service data;
creating a plurality of target visualization components based on the business data;
determining a large-screen layout rule based on the importance degree of the target visualization component in the business data, the size of the target visualization component and the incidence relation among the target visualization components;
and creating a large screen according to the view template and the large screen layout rule.
The technical scheme provided in the embodiment of the application has at least the following technical effects or advantages:
the method comprises the steps of firstly acquiring business data, establishing a plurality of target visual components based on the business data, then establishing a large screen layout rule based on the importance degree of the target visual components in the business data and the incidence relation among the target visual components, and finally establishing a large screen according to a view template and the large screen layout rule, so that the data processing efficiency is improved, the dependence on manual operation is reduced, the large screen is displayed more clearly and more visually, a user can be more concentrated in the business of realizing the actual requirement display of the large data screen, the layout design of the large data screen is not required to be considered for more time, and the enterprise is assisted to face different business scenes and user roles, and the quick multiplexing of the large data visual screen is realized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a schematic diagram illustrating steps of a rule engine-based data visualization large screen layout method in an exemplary embodiment of the present application;
FIG. 2 illustrates a graph of importance of components in an exemplary embodiment of the present application;
FIG. 3 illustrates a component weight dimension diagram in an exemplary embodiment of the present application;
FIG. 4 illustrates a view template diagram in an exemplary embodiment of the present application;
FIG. 5 is a diagram illustrating an association relationship between components in an exemplary embodiment of the present application;
FIG. 6 is a diagram illustrating a process for creating a large screen in an exemplary embodiment of the present application;
FIG. 7 is a diagram illustrating placement of components in respective locations of a view template in an exemplary embodiment of the present application;
FIG. 8 is a schematic view of an exemplary embodiment of the present application showing an insufficient width of a component placed in a view template;
FIG. 9 is a flow diagram illustrating a rules engine based data visualization large screen layout method in an exemplary embodiment of the present application;
FIG. 10 is a schematic diagram of a rule engine based data visualization large screen layout apparatus in an exemplary embodiment of the present application;
FIG. 11 illustrates a schematic structural diagram of a computer device provided in an exemplary embodiment of the present application;
FIG. 12 illustrates a schematic diagram of a storage medium provided by an exemplary embodiment of the present application.
Detailed Description
Hereinafter, embodiments of the present application will be described with reference to the accompanying drawings. It should be understood that the description is intended to be exemplary only, and is not intended to limit the scope of the present application. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present application. It will be apparent to one skilled in the art that the present application may be practiced without one or more of these details. In other instances, well-known features of the art have not been described in order to avoid obscuring the present application.
It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments in accordance with the application. As used herein, the singular is intended to include the plural unless the context clearly dictates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Exemplary embodiments according to the present application will now be described in more detail with reference to the accompanying drawings. These exemplary embodiments may, however, be embodied in many different forms and should not be construed as limited to only the embodiments set forth herein. The figures are not drawn to scale, wherein certain details may be exaggerated and omitted for clarity. The shapes of various regions, layers, and relative sizes and positional relationships therebetween shown in the drawings are merely exemplary, and deviations may occur in practice due to manufacturing tolerances or technical limitations, and a person skilled in the art may additionally design regions/layers having different shapes, sizes, relative positions, as actually required.
Several examples are given below in conjunction with the description of figures 1-12 to describe exemplary embodiments according to the present application. It should be noted that the following application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect. Rather, embodiments of the present application may be applied to any scenario where applicable.
At present, when the enterprise data visualization large screen is oriented to the requirement, complex requirements such as multiple roles and multiple business scenes are generally involved. Different types of role services relate to corresponding service indexes, if in the traditional data visualization design and development process, a large screen of each service scene needs to be designed and developed, and if the data indexes need to be readjusted after the development is finished, a large amount of labor and material cost is often input.
Accordingly, in some exemplary embodiments of the present application, there is provided a rule engine-based data visualization large screen layout method, as shown in fig. 1, the method comprising:
s1, acquiring service data;
s2, creating a plurality of target visualization components based on the business data;
s3, determining a large-screen layout rule based on the importance degree of the target visualization components in the business data, the size of the target visualization components and the incidence relation among the target visualization components;
and S4, creating a large screen according to the view template and the large screen layout rule.
In specific implementation, the service data acquired in S1 may be acquired in the form of a data file, a database, an API interface, or the like, and the acquired data may be displayed on a large screen in the form of a component. And in S2, a plurality of target visualization components are created based on the service data, by configuring charts of the service data, such as bar charts, pie charts, line charts, and the like, and also by configuring a series of elements constituting a data visualization large screen, such as maps, tables, index data, texts, pictures, videos, and the like, it can be understood that the components are used as the minimum granularity for constituting the data large screen, and the types of the components need to be selected when creating the components, and the attribute configuration of the service data of the access components, and the like.
In some specific embodiments, before determining the large-screen layout rule, the method further includes: and acquiring a view template, and configuring a weight value corresponding to each grid in the view template. The weight corresponds to the weight value assigned in each grid of the view template, 5 levels can be assigned, the weight of each component is represented by 5 values from low to high from 1 to 5, and the default weight of each component is 3.
In a specific implementation, determining a large screen layout rule includes: determining the importance degree of the target visualization component in the business data; determining the position of a target visualization component in a configured view template; according to different importance degrees, correspondingly adjusting the grid weight values corresponding to the positions; taking the number of grids occupied by each target visualization component in the configured view template as the size of the target visualization component; and determining the association relation among the target visualization components. Here, as shown in FIG. 2, where a component may be of varying importance in different business data, FIG. 2 shows that the daily inventory histogram component in the production large screen has a weight of 4, while the weight in the marketing large screen becomes 2.
In a specific implementation manner, according to different importance degrees, correspondingly adjusting the grid weight value corresponding to the position includes: dividing the importance degree into three grades of importance, common and unimportant; if the target visualization component is important, adding 1 to the grid weight value corresponding to the position; if the target visualization component is common, the grid weight value corresponding to the position is unchanged; if the target visualization component is unimportant, the grid weight value corresponding to the location is decremented by 1. The importance level here can also be understood as a weight level, which indicates that the three weight levels, i.e. important, normal and unimportant, herein will affect the weight value of each component configuration, in other words, each grid in the view template will define a weight value, but as a component, it will show different weight levels according to its importance level in the service data, and will change the original weight value, i.e. component weight value +1 when important, weight value +0 when normal, and weight value-1 when unimportant, so the actual weight range is between 0-6, and the weight level and the components are configured into the component by tag form. Referring to fig. 3, the default weight of different components is 3, but the weight value changes accordingly according to the importance of different components in the service data. View template as shown in fig. 4, different areas in the view template display different weight values.
In a specific implementation manner, the number of grids occupied by each target visualization component in the configured view template is used as the size of the target visualization component, the size of the component is composed of the horizontal occupied number (width) and the vertical occupied number (height), the number of occupied grids is obtained by multiplying the two numerical values, the configurable minimum value is 1*1, and the maximum value is 24 × 24. The configuration size here also corresponds to the size of the large screen to be created, for example, we set the reference size of the large screen to be 1920 × 1080, and we use the mode of the grid layout to divide the large screen into 24 × 24 grids, that is, each grid is 80px wide and 45px high. Here again as shown in fig. 3, the histogram component default size is 6*6, the maximum size is 6*6, the minimum size is 4*4, the map component default size is 12 x 16, the maximum size is 12 x 16, the minimum size is 10 x 10, and so on. It will be appreciated that if the layout rules specify a size for a component to be displayed, but if the view template is not placed enough when actually matched, then the minimum size for the component is placed.
In a specific implementation manner, an association relationship between target visualization components is determined, and the determination method includes: if the first target visualization component and the second target visualization component are adjacent, taking the second target visualization component as an association component of the first target visualization component, wherein the first target visualization component and the second target visualization component are any target visualization component; the association components of all target visualization components are determined, and one target visualization component has at most two association components. As shown in FIG. 5, the association component of the A component is the B component and the C component, and the B component is between the A component and the C component, representing a master-slave relationship of the components, and one component associates at most two components. When the layouts are matched, the associated component is preferably placed immediately to the right of this component, if there are two associated components one is placed immediately to the right, i.e. aligned up, and one is placed immediately below, i.e. aligned left.
In a specific implementation manner, with reference to fig. 6, fig. 7, and fig. 8, creating a large screen according to a view template and the large screen layout rule includes: inputting the target visual assembly into a view template according to the large-screen layout rule and the label, wherein the view template is a preset reference size; finding grids capable of placing the target visual component on the view template in a traversing mode from left to right and from top to bottom, and if the grids are occupied, skipping the occupied grids; if the determined size of the target visualization component is not enough placed in the view template, matching the component corresponding to the minimum size; if the components with the association relation are not placed in the view template, matching the components with the association relation corresponding to the minimum size, wherein the associated components are preferentially placed along with the main components regardless of the weight; taking the view templates loaded with all the target visualization components as created large screens; if all grids in the view template are full and there are still components which are not placed, listing the components which are not placed in the created large screen. In a specific implementation, after the large screen is determined to be created, the generation of the large screen needs to be confirmed, before the confirmation, a user can edit and adjust the position layout of the components in the large screen, and the components which are not placed according to the rules in the previous steps are placed or discarded. As shown in fig. 6, when the component is input into the view template, according to the layout rule, it is based on the matching of the weight level, i.e. the importance level of the component, if there is an identifier of the importance level, it is added on the basis of the weight value of the grid, and then the matching is performed, i.e. the component is placed at the corresponding position of the view template as shown in fig. 7. Fig. 8 shows a schematic view of an exemplary embodiment of the present application when the width of the component placed in the view template is not sufficient, in other words, the width can be reduced to a size when the width is not sufficient, but the height can be kept unchanged during the specific placement process. As shown in fig. 8, in the rightmost placement process, when the daily inventory situation map component is not wide enough for 6 frames, the width is reduced to 4 frames, but the height still occupies 6 frames. After all the components are placed, the components are traversed again to check whether spare grids are left, right, upper and lower sides of the components or not, the spare grids are filled according to the weight of the components (the components with the large weight are filled preferentially) and the maximum value of the width and the height of the components, the components can be guaranteed to be filled in a large screen as far as possible, if all the grids in the view template are full, the components which are not placed are listed in the created large screen, and if the components which are associated cannot be placed in the minimum size, the associated components which are not placed are listed in the created large screen.
According to the method and the device, the efficiency of data processing is improved, the dependence on manual operation is reduced, the large screen display is clear, more visual data can be displayed, a user can be more concentrated in the service of realizing the actual requirement display of the large data screen, the large data screen layout design does not need to be considered in more time, and meanwhile, the enterprise is helped to face different service scenes and user roles, and the quick multiplexing of the visual large data screen is realized.
In some exemplary embodiments of the present application, there is further provided a rule engine-based data visualization large screen layout method, where a flowchart of the method is shown in fig. 9, and the method includes: adding business data, and creating a required visual chart component based on the business data; establishing a layout rule for the weight, the weight level, the component size and the relevance of the configuration layout rule; self-defining a large-screen template, and creating a large screen on the large-screen template according to a layout rule; and adjusting the created large screen and then confirming the generation. In this case, before the step of generating the confirmation is executed, the user can edit and adjust the position layout of the components in the large screen, and place or discard the components which are not placed according to the rule. The weight here is equal to the weight value corresponding to each mesh in the view template in the above embodiment, the large screen template here is equal to the view template, and the weight level here is equal to the importance degree of the target visualization component in the business data. Differences in the form of individual expressions do not affect the idea of the present technical solution, and it should be understood that the above general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present invention.
In some exemplary embodiments of the present application, there is also provided a data visualization large screen layout apparatus based on a rule engine, as shown in fig. 10, the apparatus including:
an obtaining module 601, configured to obtain service data;
a component creation module 602 for creating a plurality of target visualization components based on the business data;
a layout module 603, configured to determine a large-screen layout rule based on the importance degree of the target visualization component in the business data, the size of the target visualization component, and an association relationship between the target visualization components;
and a large screen creating module 604, configured to create a large screen according to the large screen template and the large screen layout rule.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
It is further emphasized that the system provided in the embodiments of the present application may be based on artificial intelligence techniques for obtaining and processing relevant data. Among them, artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result. The artificial intelligence infrastructure generally includes technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like.
Reference is now made to fig. 11, which is a diagram illustrating a computer device, in accordance with some embodiments of the present application. As shown in fig. 11, the computer device 2 includes: the system comprises a processor 200, a memory 201, a bus 202 and a communication interface 203, wherein the processor 200, the communication interface 203 and the memory 201 are connected through the bus 202; the memory 201 stores a computer program that can be executed on the processor 200, and the processor 200 executes the computer program to execute the rule engine-based data visualization large-screen layout method provided in any of the foregoing embodiments of the present application.
The Memory 201 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 203 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like may be used.
Bus 202 can be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 201 is configured to store a program, and the processor 200 executes the program after receiving an execution instruction, where the rule engine-based data visualization large-screen layout method disclosed in any embodiment of the present application may be applied to the processor 200, or implemented by the processor 200.
The processor 200 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 200. The Processor 200 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 201, and the processor 200 reads the information in the memory 201 and completes the steps of the method in combination with the hardware thereof.
The present embodiment further provides a computer-readable storage medium corresponding to the rule engine-based data visualization large-screen layout method provided in the foregoing embodiment, please refer to fig. 12, where fig. 12 shows a computer-readable storage medium being an optical disc 30, on which a computer program (i.e., a program product) is stored, and when the computer program is executed by a processor, the computer program will execute the rule engine-based data visualization large-screen layout method provided in any of the foregoing embodiments.
In addition, examples of the computer-readable storage medium may further include, but are not limited to, a phase change memory (PRAM), a Static Random Access Memory (SRAM), a Dynamic Random Access Memory (DRAM), other types of Random Access Memories (RAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash memory, or other optical and magnetic storage media, which are not described in detail herein.
The computer-readable storage medium provided by the above-mentioned embodiment of the present application and the quantum key distribution channel allocation method in the spatial division multiplexing optical network provided by the embodiment of the present application have the same inventive concept, and have the same beneficial effects as the method adopted, run, or implemented by the application program stored in the computer-readable storage medium.
The present application further provides a computer program product, including a computer program, which when executed by a processor, implements the steps of the rule engine-based data visualization large-screen layout method provided in any of the foregoing embodiments, including: acquiring service data; creating a plurality of target visualization components based on the business data; determining a large-screen layout rule based on the importance degree of the target visualization component in the business data, the size of the target visualization component and the incidence relation among the target visualization components; and creating a large screen according to the view template and the large screen layout rule.
It should be noted that: the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. Moreover, this application is not intended to refer to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the present application as described herein, and any descriptions of specific languages are provided above to disclose the best modes of the present application. In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the application, various features of the application are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the application and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed to reflect the intent: this application is intended to cover such departures from the present disclosure as come within known or customary practice in the art to which this invention pertains. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this application.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification, and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except that at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification may be replaced by an alternative feature serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Various component embodiments of the present application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the creation apparatus of a virtual machine according to embodiments of the present application. The present application may also be embodied as an apparatus or device program for carrying out a portion or all of the methods described herein. A program implementing the application may be stored on a computer readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
The above description is only for the preferred embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A data visualization large-screen layout method based on a rule engine is characterized by comprising the following steps:
acquiring service data;
creating a plurality of target visualization components based on the business data;
determining a large-screen layout rule based on the importance degree of the target visualization component in the business data, the size of the target visualization component and the incidence relation among the target visualization components;
and creating a large screen according to the view template and the large screen layout rule.
2. The rule engine-based data visualization large-screen layout method according to claim 1, wherein the determining the large-screen layout rule further comprises: acquiring a view template, and configuring a weight value corresponding to each grid in the view template.
3. The data visualization large-screen layout method based on the rule engine as claimed in claim 2, wherein the determining the large-screen layout rule comprises:
determining the importance degree of the target visualization component in the business data;
determining a position of the target visualization component in a configured view template;
according to different importance degrees, correspondingly adjusting the grid weight value corresponding to the position;
taking the number of grids occupied by each target visualization component in the configured view template as the size of the target visualization component;
and determining the association relation among the target visual components.
4. The rule engine-based data visualization large-screen layout method according to claim 3, wherein the adjusting the grid weight value corresponding to the position according to different importance levels comprises:
dividing the importance degree into three grades of importance, common and unimportant;
if the target visualization component is important, adding 1 to the grid weight value corresponding to the position;
if the target visualization component is common, the grid weight value corresponding to the position is unchanged;
and if the target visualization component is not important, subtracting 1 from the grid weight value corresponding to the position.
5. The rules engine based data visualization large screen layout method according to claim 4, further comprising after said classifying the importance level into three levels of importance, normal and unimportant: and configuring the importance degree of the target visualization component to the target visualization component in a tag form.
6. The rule engine-based data visualization large screen layout method according to claim 5, wherein the creating of the large screen according to the view template and the large screen layout rule comprises:
inputting a target visualization component into a view template according to the large screen layout rule and the label, wherein the view template is a preset reference size;
finding grids capable of placing the target visual component on the view template in a traversing mode from left to right and from top to bottom, and if the grids are occupied, skipping the occupied grids;
if the determined size of the target visualization component is not enough to be placed in the view template, matching the component corresponding to the minimum size;
if the components with the incidence relation are not placed in the view template, matching the components with the incidence relation corresponding to the minimum size;
taking the view templates loaded with all the target visualization components as created large screens;
if all grids in the view template are occupied and the components which are not placed still exist, listing the components which are not placed in the created large screen.
7. The rule engine-based data visualization large-screen layout method according to claim 1, wherein the method for determining the association relationship between the target visualization components comprises:
if the first target visualization component and the second target visualization component are adjacent, taking the second target visualization component as an association component of the first target visualization component, wherein the first target visualization component and the second target visualization component are any target visualization component;
the association components of all target visualization components are determined, and one target visualization component has at most two association components.
8. A control apparatus for database writing data based on a remote dictionary service, the apparatus comprising:
the acquisition module is used for acquiring the service data;
the component creating module is used for creating a plurality of target visualization components based on the business data;
the layout module is used for determining a large-screen layout rule based on the importance degree of the target visualization components in the business data, the size of the target visualization components and the incidence relation among the target visualization components;
and the large screen creating module is used for creating a large screen according to the large screen template and the large screen layout rule.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 7 when executed by a processor.
CN202210540132.8A 2022-05-18 2022-05-18 Rule engine-based data visualization large-screen layout method and device Pending CN115145565A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210540132.8A CN115145565A (en) 2022-05-18 2022-05-18 Rule engine-based data visualization large-screen layout method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210540132.8A CN115145565A (en) 2022-05-18 2022-05-18 Rule engine-based data visualization large-screen layout method and device

Publications (1)

Publication Number Publication Date
CN115145565A true CN115145565A (en) 2022-10-04

Family

ID=83406670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210540132.8A Pending CN115145565A (en) 2022-05-18 2022-05-18 Rule engine-based data visualization large-screen layout method and device

Country Status (1)

Country Link
CN (1) CN115145565A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116909582A (en) * 2023-09-13 2023-10-20 云账户技术(天津)有限公司 Visual large-screen service deployment method and device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116909582A (en) * 2023-09-13 2023-10-20 云账户技术(天津)有限公司 Visual large-screen service deployment method and device and electronic equipment
CN116909582B (en) * 2023-09-13 2024-01-30 云账户技术(天津)有限公司 Visual large-screen service deployment method and device and electronic equipment

Similar Documents

Publication Publication Date Title
KR102215766B1 (en) Method and apparatus for generating synthetic picture
CN111475163B (en) Method, device and equipment for generating code file of view template and storage medium
CN106507686B (en) Method and system for designing software architecture of complex cyber-physical systems in different technical fields with its various software artifacts
CN101796538A (en) With the arranging graphic object on the page that is controlled at based on relative area
CN113535165A (en) Interface generation method and device, electronic equipment and computer readable storage medium
CN109308386B (en) Engineering drawing wall body identification method and device and electronic equipment
CN103119624A (en) Inserting content and exclusion zone(s) into a page
CN104615431A (en) Method and device for achieving Web application
CN113282697A (en) Dojo-based GIS (geographic information System) for realizing multi-platform heterogeneous compatibility and design and deployment methods thereof
KR20230163921A (en) Control method, device, equipment and storage medium for interactive reproduction of target object
CN115145565A (en) Rule engine-based data visualization large-screen layout method and device
CN115840567A (en) Application editing method and related equipment
US10621288B2 (en) Interoperable hierarchical model for conducting multiuser CAx operations
CN109213480A (en) A kind of method, storage medium, equipment and system for developing the back-stage management page
CN109961516A (en) Surface acquisition methods, device and non-transient computer-readable recording medium
CN108460003B (en) Text data processing method and device
CN113222874A (en) Data enhancement method, device and equipment applied to target detection and storage medium
CN116226487B (en) Data large screen visualization method and system based on pattern recognition
CN112734900A (en) Baking method, baking device, baking equipment and computer-readable storage medium of shadow map
CN109426458B (en) Method and device for printing relation graph
CN113419806B (en) Image processing method, device, computer equipment and storage medium
CN113254000B (en) Method, device, storage medium and equipment for generating 2D scene based on JSON data
CN115827809A (en) Method and device for generating Geographic Information System (GIS) application
CN115544311A (en) Data analysis method and device
CN106569816B (en) Rendering method and device

Legal Events

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