A method, device, and medium for constructing a dynamic data flow model based on a canvas.
By using the canvas-based data dynamic flow model method in ERP software, setting and calculating node coordinates, setting icons and annotations, the problem of difficult to intuitively display data association relationships in ERP software is solved, and the intuitive display of data flow directions is realized. Analytical convenience.
Patent Information
- Application Number
- CN202111456751.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-01
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2041-12-01
AI Technical Summary
Existing ERP software displays the relationship between multiple units in a list of data when describing the relationship between multiple units, making it difficult to intuitively clarify the data association relationship, especially when the data volume is large, it is difficult to effectively control it.
Using the canvas-based method to build a dynamic data flow model, by obtaining the data source address, setting the source node and target node, using classic mechanical algorithms to calculate the node coordinates, and setting node icons, pointing icons and labels, dynamic icons to form dynamic data flow Model, intuitively displaying the direction of data flow.
A simple and easy-to-use dynamic visualization model is realized, so that users can intuitively understand the direction of data flow, which is convenient for data analysis and control.
Smart Images

Figure CN114139504B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data display technology, and in particular to a method, device and medium for constructing a data dynamic flow model based on a canvas. Background Art
[0002] With the development of modern information technology, the demand for quickly capturing information from massive data is becoming stronger and stronger. Although text is accurate as a carrier of information, long and tedious texts often lead to low public acceptance. Using pictures or charts as a carrier of information can carry more information and is more intuitive and impactful in expressing emotions, attitudes, revealing status, and describing things.
[0003] At present, a new generation of enterprise integrated management information system has been developed on the basis of modern information technology, namely Enterprise Resource Planning (ERP) enterprise resource planning system. ERP is an enterprise management information system that can provide cross-regional, cross-departmental and even cross-company integrated real-time information. It realizes the integration of internal and external resources of the enterprise, and through software, it closely integrates the enterprise's people, finance, materials, production, supply and marketing, and corresponding logistics, information flow, capital flow, management flow, value-added flow, etc. to achieve resource optimization and sharing.
[0004] However, the existing EPR software mostly displays the relationship between multiple units in the form of list data, which is often not intuitive enough. For example, a large group has a large amount of data on the daily financial transactions with its subordinate units and business units. Although there is ERP software to manage documents, these documents are usually displayed in the form of lists, making it difficult to sort out the relationship between them and control the group's treasurer and funds based on the data.
[0005] Based on this situation, there is an urgent need to develop a new canvas-based method, equipment and medium for building a dynamic data flow model, so as to build a simple, easy-to-use and complete visualization model to better demonstrate data fluidity and facilitate customers to analyze data. Summary of the invention
[0006] The embodiments of this specification provide a method, device, and medium for building a data dynamic flow model based on a canvas, which are used to solve the following technical problems in the prior art: Under the implementation framework of the prior art, since the design layout of the data display page is fixed, it is difficult to meet the needs of data display on a variety of terminal devices.
[0007] The embodiments of this specification adopt the following technical solutions:
[0008] A method for constructing a data dynamic flow model based on a canvas, wherein the method comprises:
[0009] Get the data source address;
[0010] According to the data source address, obtaining at least one data from the data source, wherein the data at least includes data source information, data target information, data type, and data carrier information;
[0011] Setting a source node on the canvas according to the data source information, and setting a target node on the canvas according to the data target information;
[0012] The coordinates of the source nodes and the target nodes on the canvas are calculated using a classical mechanics algorithm according to the number of the source nodes and the number of the target nodes, wherein the classical mechanics algorithm at least includes a classical force-directed layout referenced by d3;
[0013] According to the coordinates of the source node and the target node, a node icon is set, and the source node and the target node are marked on the canvas;
[0014] Setting a pointing icon to connect the source node with the target node on the canvas and point the source node to the target node;
[0015] Setting a label to label the data relationship between the source node and the target node on the canvas, wherein the label at least includes the data type and information carried by the data;
[0016] A dynamic icon is set, and the dynamic icon moves from the source node to the target node along the pointing icon to obtain a data dynamic flow model.
[0017] Further, obtaining at least one data from the data source according to the data source address includes:
[0018] Check whether the data source address conforms to a preset format,
[0019] If it is in compliance, then: AJAX technology is used to asynchronously obtain data from the data source.
[0020] Further, setting a source node on the canvas according to the data source information, and setting a target node on the canvas according to the data target information, includes:
[0021] Arrange the data source information, merge the overlapping data source information into one, and set a corresponding source node; and
[0022] The data target party information is sorted, and the overlapping data target party information is merged into one, and a target node is set accordingly.
[0023] Furthermore, after obtaining the coordinates of the source nodes and the target nodes on the canvas by calculating the coordinates of the source nodes and the target nodes using a classical mechanics algorithm according to the number of the source nodes and the number of the target nodes, the method further includes:
[0024] Adjusting the coordinates of the source node and the target node on the canvas based on a preset mutually exclusive value of the distance between nodes; or
[0025] A drag instruction is obtained, and the coordinates of the source node and the target node on the canvas are adjusted according to the drag instruction.
[0026] Furthermore, the dynamic icon moves from the source node to the target node along the pointing icon, including:
[0027] Calculating the relative position between the dynamic icon and the source node within a preset time period; or
[0028] The relative position between the dynamic icon and the target node is calculated within a preset time period.
[0029] Further, the setting of the node icon includes at least one of the following: setting the node shape, setting the node color, setting the node mouse-in color; and / or
[0030] The setting of the pointing icon includes at least one of the following: setting edge width, setting edge color, setting arrow shape, setting arrow color; and / or
[0031] The setting of the annotation includes at least one of the following: setting the annotation position, setting the annotation font, setting the annotation color; and / or
[0032] The setting of the dynamic icon includes at least one of the following: setting the shape of the dynamic icon, setting the color of the dynamic icon, and setting the movement speed of the dynamic icon.
[0033] Furthermore, the method for constructing a data dynamic flow model based on a canvas further includes:
[0034] Acquire a first setting parameter of the source node, and concatenate the first setting parameter in a key-value pair to obtain a first concatenation result;
[0035] Acquire second setting parameters of the target node, and concatenate the second setting parameters in a key-value pair to obtain a second concatenation result;
[0036] The data source address, the first splicing result and the second splicing result are encrypted in base64 to generate an encrypted URL, and the encrypted URL is used to present the data dynamic flow model in a browser.
[0037] Furthermore, the first setting parameter includes at least one of the following: a setting value of the node icon of the source node, a setting value of the pointing icon, a setting value of the annotation, a setting value of the dynamic icon; and / or
[0038] The second setting parameter includes at least one of the following: a setting value of the node icon of the target node, a setting value of the pointing icon, a setting value of the annotation, and a setting value of the dynamic icon.
[0039] Further, the data type includes at least one of the following: payment, loan, refund, tax payment, repayment of principal and interest, debt; and / or
[0040] The information carried by the data includes at least one of the following: fund value and payment time.
[0041] A device for building a data dynamic flow model based on a canvas, characterized by comprising:
[0042] at least one processor; and,
[0043] a memory communicatively connected to the at least one processor; wherein,
[0044] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0045] Get the data source address;
[0046] According to the data source address, obtaining at least one data from the data source, wherein the data at least includes data source information, data target information, data type, and data carrier information;
[0047] Setting a source node on the canvas according to the data source information, and setting a target node on the canvas according to the data target information;
[0048] The coordinates of the source nodes and the target nodes on the canvas are calculated using a classical mechanics algorithm according to the number of the source nodes and the number of the target nodes, wherein the classical mechanics algorithm at least includes a classical force-directed layout referenced by d3;
[0049] According to the coordinates of the source node and the target node, a node icon is set, and the source node and the target node are marked on the canvas;
[0050] Setting a pointing icon to connect the source node with the target node on the canvas and point the source node to the target node;
[0051] Setting a label to label the data relationship between the source node and the target node on the canvas, wherein the label at least includes the data type and information carried by the data;
[0052] A dynamic icon is set, and the dynamic icon moves from the source node to the target node along the pointing icon to obtain a data dynamic flow model.
[0053] A non-volatile computer storage medium for building a data dynamic flow model based on a canvas, storing computer executable instructions, wherein the computer executable instructions are configured as follows:
[0054] Get the data source address;
[0055] According to the data source address, obtaining at least one data from the data source, wherein the data at least includes data source information, data target information, data type, and data carrier information;
[0056] Setting a source node on the canvas according to the data source information, and setting a target node on the canvas according to the data target information;
[0057] The coordinates of the source nodes and the target nodes on the canvas are calculated using a classical mechanics algorithm according to the number of the source nodes and the number of the target nodes, wherein the classical mechanics algorithm at least includes a classical force-directed layout referenced by d3;
[0058] According to the coordinates of the source node and the target node, a node icon is set, and the source node and the target node are marked on the canvas;
[0059] Setting a pointing icon to connect the source node with the target node on the canvas and point the source node to the target node;
[0060] Setting a label to label the data relationship between the source node and the target node on the canvas, wherein the label at least includes the data type and information carried by the data;
[0061] A dynamic icon is set, and the dynamic icon moves from the source node to the target node along the pointing icon to obtain a data dynamic flow model.
[0062] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:
[0063] The method of constructing a data dynamic flow model based on a canvas as exemplified in the embodiments of this specification can construct a simple, easy-to-use and complete data dynamic visualization model, so that users can obtain an ideal data flow diagram by designing a page, so as to better display the flow direction of various types of data, so that users can obtain the information carried by the data more intuitively and more readily, making it easier for users to analyze the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0065] Figure 1 A schematic flow chart of a method for building a data dynamic flow model based on a canvas provided in an embodiment of this specification;
[0066] Figure 2 A schematic diagram of a data dynamic flow model constructed on a canvas provided in an embodiment of this specification. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this application will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in the specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0068] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings. Figure 1 A flowchart of a method for constructing a data dynamic flow model based on a canvas provided in an embodiment of this specification.
[0069] like Figure 1 The method for constructing a data dynamic flow model based on a canvas includes:
[0070] Get the data source address;
[0071] According to the data source address, obtaining at least one data from the data source, wherein the data at least includes data source information, data target information, data type, and data carrier information;
[0072] Setting a source node on the canvas according to the data source information, and setting a target node on the canvas according to the data target information;
[0073] The coordinates of the source nodes and the target nodes on the canvas are calculated using a classical mechanics algorithm according to the number of the source nodes and the number of the target nodes, wherein the classical mechanics algorithm at least includes a classical force-directed layout referenced by d3;
[0074] According to the coordinates of the source node and the target node, a node icon is set, and the source node and the target node are marked on the canvas;
[0075] Setting a pointing icon to connect the source node with the target node on the canvas and point the source node to the target node;
[0076] Setting a label to label the data relationship between the source node and the target node on the canvas, wherein the label at least includes the data type and information carried by the data;
[0077] A dynamic icon is set, and the dynamic icon moves from the source node to the target node along the pointing icon to obtain a data dynamic flow model.
[0078] The method for constructing a data dynamic flow model based on a canvas in this embodiment obtains data from a data source, constructs source nodes and target nodes on a canvas according to the source information and target information of the data, and then sets node icons, pointing icons, annotations, and dynamic icons, so that users can construct a data dynamic flow model by themselves. Through this data dynamic flow model, users can set the data flow diagrams required according to different design requirements. These data flow diagrams can intuitively display the flow direction of data and the information carried by the data, thereby facilitating customers to analyze large amounts of data.
[0079] In this embodiment, obtaining at least one data from the data source according to the data source address includes:
[0080] Check whether the data source address conforms to a preset format,
[0081] If it is in compliance, then: AJAX technology is used to asynchronously obtain data from the data source.
[0082] In order to make the model simpler and easier to use, the format of the data source interface can be preset during program design. For example, a Restful-style interface that only supports GET request method and the interface content is in json format. When acquiring data, if the interface format of the detected data source address does not meet the requirements, a friendly prompt will be given on the interface. Of course, it is understandable that the format of the preset data source address can be different according to different design requirements, and the format of the data source address that does not meet the preset requirements can also be converted to meet the format requirements.
[0083] In this embodiment, setting a source node on the canvas according to the data source information and setting a target node on the canvas according to the data target information includes:
[0084] Arrange the data source information, merge the overlapping data source information into one, and set a corresponding source node; and
[0085] The data target party information is sorted, and the overlapping data target party information is merged into one, and a target node is set accordingly.
[0086] Before setting the source node and target node on the canvas, you first need to integrate all the source nodes (source) and target nodes (target) in the data source, and then remove the overlapping nodes.
[0087] In this embodiment, after obtaining the coordinates of the source nodes and the target nodes on the canvas by calculating using a classical mechanics algorithm according to the number of the source nodes and the number of the target nodes, the method further includes:
[0088] Adjusting the coordinates of the source node and the target node on the canvas based on a preset mutually exclusive value of the distance between nodes; or
[0089] A drag instruction is obtained, and the coordinates of the source node and the target node on the canvas are adjusted according to the drag instruction.
[0090] After using the classical mechanics algorithm to calculate the coordinates of each node on the canvas, in order to prevent the nodes on the canvas from being too close or overlapping, the mutually exclusive values of the distances between nodes can be preset within the program; the user can also use the mouse to input drag commands to drag the node icon on the canvas to the user's ideal position, so as to achieve the desired effect.
[0091] In this embodiment, the dynamic icon moves from the source node to the target node along the pointing icon, including:
[0092] Calculating the relative position between the dynamic icon and the source node within a preset time period; or
[0093] The relative position between the dynamic icon and the target node is calculated within a preset time period.
[0094] In order to more intuitively display the direction of data flow, a dynamic icon can be set based on the pointing icon. According to the source and target relationship of the data source, the dynamic icon moves along the edge of the pointing icon. Within a preset time period, such as each frame, the relative position between the dynamic icon and the source node or target node is calculated.
[0095] In this embodiment, the setting of the node icon includes at least one of the following: setting the node shape, setting the node color, setting the node mouse-in color; and / or
[0096] The setting of the pointing icon includes at least one of the following: setting edge width, setting edge color, setting arrow shape, setting arrow color; and / or
[0097] The setting of the annotation includes at least one of the following: setting the annotation position, setting the annotation font, setting the annotation color; and / or
[0098] The setting of the dynamic icon includes at least one of the following: setting the shape of the dynamic icon, setting the color of the dynamic icon, and setting the movement speed of the dynamic icon.
[0099] The data dynamic flow model of the example in this embodiment is based on the characteristics of the Canvas element in HTML5, combined with JavaScript code and CSS style library, to form a data dynamic flow diagram with graphics, lines and animation effects. The elements in the model include node icons, pointing icons, annotations and dynamic icons. Among them, the setting of the element can include at least one of the following:
[0100] Node shape: You can set the shape of the node to be rectangular or circular. The sourcename field in the data can be displayed in the node icon. The words in the rectangular node icon can automatically expand the size of the rectangle according to the number of words. If there are many words in the circle, they will be displayed in the form of ellipsis. When the mouse moves in, all the description information can be displayed, and there is an animation effect radiating outwards from the periphery of the circle.
[0101] Node Color: You can set the fill color of the node icon. You can set it by selecting your favorite color through the color picker, or entering a color defined in hexadecimal notation.
[0102] Node mouse-in color: After the mouse moves into the node icon, you can set the node fill color. The setting also supports color picker or input hexadecimal color value.
[0103] Edge width: You can set the width of the edge of the pointing icon by entering a value. The edge displays the label field in the interface data by default. When the mouse moves into the edge, the sourcename, targetname, label, timetamp and other field information are displayed.
[0104] Edge color: You can click the selected edge with the mouse and set the fill color. It supports color picker and hexadecimal color value input.
[0105] Arrow shape: The arrow pointing to the icon can be set to be displayed or not. The direction of the arrow is derived from the direction of the edge.
[0106] Arrow color: You can click the selected arrow with the mouse and then set the arrow fill color. It supports color picker and input hexadecimal color value.
[0107] Dynamic icons: Dynamic icons can be set to support animation or not. If a dynamic icon is displayed, the direction of the animation is consistent with the direction of the arrow pointing to the icon.
[0108] Of course, it is understandable that other parameters can be set according to different design requirements, such as:
[0109] Preview effect button: The configured data and the requested data will be displayed in the preview area on one side of the canvas, and the GSCloud call address can be generated at the same time.
[0110] GSCloud call address: This address is the interface address for displaying configuration information and data. This address encrypts the configuration information in a specific format and puts the encrypted string into the param parameter.
[0111] In this embodiment, the method for constructing a data dynamic flow model based on a canvas further includes:
[0112] Acquire a first setting parameter of the source node, and concatenate the first setting parameter in a key-value pair to obtain a first concatenation result;
[0113] Acquire second setting parameters of the target node, and concatenate the second setting parameters in a key-value pair to obtain a second concatenation result;
[0114] The data source address, the first splicing result and the second splicing result are encrypted in base64 to generate an encrypted URL, and the encrypted URL is used to present the data dynamic flow model in a browser.
[0115] In the method of the example of this embodiment, the user can design the data flow diagram style he wants by setting parameters, including data source address, node shape, color, etc. After the user sets, click Preview, and the data flow diagram will be presented on the canvas with the set parameters, and a URL will be automatically generated. The generated uniform resource locator (URL) is encrypted using base64 to obtain an encrypted URL. Copy the encrypted URL to the browser, and the data flow diagram set by the user will show the effect of the preview.
[0116] Furthermore, the first setting parameter includes at least one of the following: a setting value of the node icon of the source node, a setting value of the pointing icon, a setting value of the annotation, a setting value of the dynamic icon; and / or
[0117] The second setting parameter includes at least one of the following: a setting value of the node icon of the target node, a setting value of the pointing icon, a setting value of the annotation, and a setting value of the dynamic icon.
[0118] To facilitate understanding of the present invention, the specific implementation of the method for building a data dynamic flow model based on canvas is further described below:
[0119] Existing EPR software mostly displays the relationship between multiple units in the form of list data, which is often not intuitive enough. For example, a large group has a large amount of data on the daily financial transactions with its subordinate units and business units. Although there is ERP software to manage documents, these documents are usually displayed in the form of lists, making it difficult to sort out the relationship between them and control the group's treasurer and funds based on the data.
[0120] Therefore, the above-mentioned method of building a data dynamic flow model based on canvas is designed. Through the above-mentioned method, users can obtain a simple, easy-to-use and complete data dynamic flow model to better demonstrate the fluidity of data and facilitate users to analyze data. Figure 2 As shown, taking the fund transactions between companies as an example, the data dynamic flow model constructed by the method of the example in this embodiment can provide a more intuitive understanding of enterprise data and is more conducive to enterprise risk control.
[0121] In this embodiment, the data type may include, for example, at least one of the following: payment, loan, refund, tax payment, repayment of principal and interest, and debt.
[0122] In this embodiment, the information carried by the data may include, for example, at least one of the following: fund value, payment time.
[0123] The method of constructing a data dynamic flow model based on canvas in this embodiment is implemented based on the Canvas feature of HTML5 (using Canvas to create web page background effects), and more intuitively displays the data exchange relationship between multiple nodes in the form of a data dynamic flow diagram.
[0124] The method illustrated in this embodiment is highly portable. As long as the data source provides a standard API interface, the method illustrated in this embodiment can be used to obtain data from the data source and then perform data visualization.
[0125] The method of this embodiment can achieve the effect of multiple function reuse without front-end coding. By designing the canvas interface, customizing the node shape, color and data source, a dedicated encrypted URL can be generated. The browser can access the URL to display the dynamic data flow diagram designed by the user.
[0126] Based on the same idea, some embodiments of the present application also provide devices and non-volatile computer storage media corresponding to the above methods.
[0127] Some embodiments of the present application provide corresponding Figure 1 A device for building a data dynamic flow model based on a canvas, the device comprising:
[0128] at least one processor; and,
[0129] a memory communicatively connected to the at least one processor; wherein,
[0130] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0131] Get the data source address;
[0132] According to the data source address, obtaining at least one data from the data source, wherein the data at least includes data source information, data target information, data type, and data carrier information;
[0133] Setting a source node on the canvas according to the data source information, and setting a target node on the canvas according to the data target information;
[0134] The coordinates of the source nodes and the target nodes on the canvas are calculated using a classical mechanics algorithm according to the number of the source nodes and the number of the target nodes, wherein the classical mechanics algorithm at least includes a classical force-directed layout referenced by d3;
[0135] According to the coordinates of the source node and the target node, a node icon is set, and the source node and the target node are marked on the canvas;
[0136] Setting a pointing icon to connect the source node with the target node on the canvas and point the source node to the target node;
[0137] Setting a label to label the data relationship between the source node and the target node on the canvas, wherein the label at least includes the data type and information carried by the data;
[0138] A dynamic icon is set, and the dynamic icon moves from the source node to the target node along the pointing icon to obtain a data dynamic flow model.
[0139] Some embodiments of the present application provide corresponding Figure 1 A non-volatile computer storage medium for building a data dynamic flow model based on a canvas, storing computer executable instructions, wherein the computer executable instructions are set to:
[0140] Get the data source address;
[0141] According to the data source address, obtaining at least one data from the data source, wherein the data at least includes data source information, data target information, data type, and data carrier information;
[0142] Setting a source node on the canvas according to the data source information, and setting a target node on the canvas according to the data target information;
[0143] The coordinates of the source nodes and the target nodes on the canvas are calculated using a classical mechanics algorithm according to the number of the source nodes and the number of the target nodes, wherein the classical mechanics algorithm at least includes a classical force-directed layout referenced by d3;
[0144] According to the coordinates of the source node and the target node, a node icon is set, and the source node and the target node are marked on the canvas;
[0145] Setting a pointing icon to connect the source node with the target node on the canvas and point the source node to the target node;
[0146] Setting a label to label the data relationship between the source node and the target node on the canvas, wherein the label at least includes the data type and information carried by the data;
[0147] A dynamic icon is set, and the dynamic icon moves from the source node to the target node along the pointing icon to obtain a data dynamic flow model.
[0148] Each embodiment in this application 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 and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0149] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0150] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0151] The present invention is a method, device (system), and computer program product according to an embodiment of the present invention.
[0152] The flowcharts and / or block diagrams of the products are described. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as the combination of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0153] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0154] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0155] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0156] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0157] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0158] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0159] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for constructing a data dynamic flow model based on a canvas, characterized in that: The method comprises: Get the data source address; According to the data source address, obtaining at least one data from the data source, wherein the data at least includes data source information, data target information, data type, and data carrier information; Setting a source node on the canvas according to the data source information, and setting a target node on the canvas according to the data target information; The coordinates of the source nodes and the target nodes on the canvas are calculated using a classical mechanics algorithm according to the number of the source nodes and the number of the target nodes, wherein the classical mechanics algorithm at least includes a classical force-directed layout referenced by d3; According to the coordinates of the source node and the target node, a node icon is set, and the source node and the target node are marked on the canvas; Setting a pointing icon to connect the source node with the target node on the canvas and point the source node to the target node; Setting a label to label the data relationship between the source node and the target node on the canvas, wherein the label at least includes the data type and information carried by the data; Setting a dynamic icon, wherein the dynamic icon moves from the source node to the target node along the pointing icon to obtain a data dynamic flow model; The step of setting a source node on the canvas according to the data source information and setting a target node on the canvas according to the data target information includes: Arrange the data source information, merge the overlapping data source information into one, and set a corresponding source node; and The data target party information is sorted, and the overlapping data target party information is merged into one, and a target node is set accordingly.
2. The method for constructing a data dynamic flow model based on a canvas according to claim 1, characterized in that: The acquiring at least one data from the data source according to the data source address includes: Check whether the data source address conforms to a preset format, If it is in compliance, then: AJAX technology is used to asynchronously obtain data from the data source.
3. The method for constructing a data dynamic flow model based on a canvas according to claim 1, characterized in that: After calculating the coordinates of the source nodes and the target nodes on the canvas using a classical mechanics algorithm according to the number of the source nodes and the number of the target nodes, the method further includes: Adjusting the coordinates of the source node and the target node on the canvas based on a preset mutually exclusive value of the distance between nodes; or A drag instruction is obtained, and the coordinates of the source node and the target node on the canvas are adjusted according to the drag instruction.
4. The method for constructing a data dynamic flow model based on a canvas according to claim 1, characterized in that: The dynamic icon moves from the source node to the target node along the pointing icon, including: Calculating the relative position between the dynamic icon and the source node within a preset time period; or The relative position between the dynamic icon and the target node is calculated within a preset time period.
5. The method for constructing a data dynamic flow model based on a canvas according to claim 1, characterized in that: The setting of the node icon includes at least one of the following: setting the node shape, setting the node color, setting the node mouse-in color; and / or The setting of the pointing icon includes at least one of the following: setting edge width, setting edge color, setting arrow shape, setting arrow color; and / or The setting of the annotation includes at least one of the following: setting the annotation position, setting the annotation font, setting the annotation color; and / or The setting of the dynamic icon includes at least one of the following: setting the shape of the dynamic icon, setting the color of the dynamic icon, and setting the movement speed of the dynamic icon.
6. The method for constructing a data dynamic flow model based on a canvas according to claim 1, characterized in that: The method further comprises: Acquire a first setting parameter of the source node, and concatenate the first setting parameter in a key-value pair to obtain a first concatenation result; Acquire second setting parameters of the target node, and concatenate the second setting parameters in a key-value pair to obtain a second concatenation result; The data source address, the first splicing result and the second splicing result are encrypted in base64 to generate an encrypted URL, and the encrypted URL is used to present the data dynamic flow model in a browser.
7. The method for constructing a data dynamic flow model based on a canvas according to claim 1, characterized in that: The data type includes at least one of the following: payment, loan, refund, tax payment, repayment of principal and interest, debt; and / or The information carried by the data includes at least one of the following: fund value and payment time.
8. A device for building a data dynamic flow model based on a canvas, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Get the data source address; According to the data source address, obtaining at least one data from the data source, wherein the data at least includes data source information, data target information, data type, and data carrier information; Setting a source node on the canvas according to the data source information, and setting a target node on the canvas according to the data target information; The coordinates of the source nodes and the target nodes on the canvas are calculated using a classical mechanics algorithm according to the number of the source nodes and the number of the target nodes, wherein the classical mechanics algorithm at least includes a classical force-directed layout referenced by d3; According to the coordinates of the source node and the target node, a node icon is set, and the source node and the target node are marked on the canvas; Setting a pointing icon to connect the source node with the target node on the canvas and point the source node to the target node; Setting a label to label the data relationship between the source node and the target node on the canvas, wherein the label at least includes the data type and information carried by the data; Setting a dynamic icon, wherein the dynamic icon moves from the source node to the target node along the pointing icon to obtain a data dynamic flow model; The step of setting a source node on the canvas according to the data source information and setting a target node on the canvas according to the data target information includes: Arrange the data source information, merge the overlapping data source information into one, and set a corresponding source node; and The data target party information is sorted, and the overlapping data target party information is merged into one, and a target node is set accordingly.
9. A non-volatile computer storage medium for building a data dynamic flow model based on a canvas, storing computer executable instructions, characterized in that: The computer executable instructions are configured to: Get the data source address; According to the data source address, obtaining at least one data from the data source, wherein the data at least includes data source information, data target information, data type, and data carrier information; Setting a source node on the canvas according to the data source information, and setting a target node on the canvas according to the data target information; The coordinates of the source nodes and the target nodes on the canvas are calculated using a classical mechanics algorithm according to the number of the source nodes and the number of the target nodes, wherein the classical mechanics algorithm at least includes a classical force-directed layout referenced by d3; According to the coordinates of the source node and the target node, a node icon is set, and the source node and the target node are marked on the canvas; Setting a pointing icon to connect the source node with the target node on the canvas and point the source node to the target node; Setting a label to label the data relationship between the source node and the target node on the canvas, wherein the label at least includes the data type and information carried by the data; Setting a dynamic icon, wherein the dynamic icon moves from the source node to the target node along the pointing icon to obtain a data dynamic flow model; The step of setting a source node on the canvas according to the data source information and setting a target node on the canvas according to the data target information includes: Arrange the data source information, merge the overlapping data source information into one, and set a corresponding source node; and The data target party information is sorted, and the overlapping data target party information is merged into one, and a target node is set accordingly.
Citation Information
Patent Citations
A security visual analysis system based on company internal log
CN109299044A
View processing method and device
CN110929189A
Address space management method and device, equipment and medium
CN111651639A
Graph data visualization construction method and device, query method and device
CN113010612A
Ambient light using switchable canvas
US20100238664A1
