Data visualization system and method based on graphic editing engine
Through the data visualization system based on the graphics editing engine, the complexity of multiple data sources and single functions are solved, and the editing and preview of user-defined visual views and multi-dimensional data charts is realized, improving the scalability and user experience of the system .
Patent Information
- Application Number
- CN202411122406.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-12-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing data visualization technologies are complex and have single functions when dealing with multiple data sources, making it difficult to achieve easy-to-use visualization views and relationship editing. In particular, the visualization scheme of ER graphs has problems such as unsightly interfaces and unscalability.
Using a data visualization system based on the graphics editing engine, it uses model building modules, node creation modules and configuration modules to provide a graphical drag-and-drop interface, supports user-defined visual view layout and chart configuration, and realizes editing and preview of multidimensional data charts. And improve system scalability through expansion tool components.
It realizes user-defined visual view layout and editing and preview of multi-dimensional data charts, supports real-time presentation of multi-source data, and improves the scalability and user experience of the data visualization system through free editing and preview functions.
Smart Images

Figure CN119065770A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data visualization technology and data application field, and in particular, to a data visualization system based on a graphics editing engine and a method thereof. Background Art
[0002] Various application requirements of data visualization are common in the field of big data. It is a process of studying how to use visual elements such as charts, graphs, maps, etc. to display the implicit information in the data and discover the patterns contained in the data. It usually needs to be implemented through SVG or CANVAS. There are many third-party visualization libraries on the market, but there are various problems: the interface is not beautiful, the functional basis is single, and the scalability is not friendly.
[0003] At present, there are many different technical solutions for implementation. It is common to see multiple visualization libraries with similar functions but different functions on the same platform to meet their respective visualization needs. For example, echarts, highcharts, charts and other different visualization libraries are introduced to realize visualization charts. However, these needs often rely on multiple data sources, which are numerous and complex in type. In addition, the current visualization solutions such as flowcharts, blood relationships, ER diagrams, etc. in data visualization are also relatively messy. For example, flowcharts, ER diagrams, etc., which need to be edited and previewed in different modes, are not easy to find and difficult to refer to.
[0004] Therefore, a technical solution and implementation method for ER diagrams that are easy to use and extendable is needed.
[0005] The above information disclosed in the above Background section is only for enhancement of understanding of the background of the present application and therefore it may contain information that does not constitute the prior art that is already known to a person of ordinary skill in the art. Summary of the invention
[0006] The present invention provides a data visualization system and method based on a graphic editing engine to solve the technical problem that data visualization at the current stage relies on multiple data sources with numerous and complex types.
[0007] A technical solution provided in an embodiment of the present invention is a data visualization system based on a graphics editing engine, comprising:
[0008] A model building module is used to build an instance model according to a graphic editing engine and based on a preset configuration file. The instance model includes a component library and component parameters corresponding to each component, and an extension tool component is mounted on the instance model.
[0009] A node creation module is used to create a data table as a node and provide edges and anchor points corresponding to the node, so as to create a visualization view corresponding to the node on a canvas corresponding to the instance model, and realize the visualization relationship between the visualization views through the anchor points and edges;
[0010] The configuration module provides multiple types of editable configuration items and editable event sets for nodes by reading preset configuration files. The editable configuration items are used to implement custom style settings for visualization views and visualization relationships. The editable event sets are used to implement free editing of visualization views and visualization relationships, so that users can freely edit, place, and create visualization views corresponding to nodes and visualization relationships between visualization views in the canvas corresponding to the instance model.
[0011] The rendering and display module is used to render a directory of metadata table information of the data to be displayed, and according to the graphic editing engine, each data table corresponding to the directory is dragged to the canvas corresponding to the instance model for the user to select, and the data table is created as a node through the node creation module.
[0012] A technical solution provided in an embodiment of the present invention is a data visualization method based on a graphic editing engine, including: a data visualization establishment method and a data visualization use method;
[0013] The data visualization establishment method includes:
[0014] An instance model is established according to the graphic editing engine and based on a preset configuration file, the instance model includes a component library and component parameters corresponding to each component, and an extension tool component is mounted on the instance model;
[0015] Create a data table as a node, and provide edges and anchor points corresponding to the node, so as to create a visualization view corresponding to the node on the canvas corresponding to the instance model, and realize the visualization relationship between the visualization views through the anchor points and edges;
[0016] By reading preset configuration files, multiple types of editable configuration items and editable event sets are provided for nodes. The editable configuration items are used to implement custom style settings for visualization views and visualization relationships, and the editable event sets are used to implement free editing of visualization views and visualization relationships, so that users can freely edit, place, and create visualization views corresponding to nodes and visualization relationships between visualization views in the canvas corresponding to the instance model.
[0017] Among them, data visualization methods include:
[0018] Render a directory of metadata table information of the data to be displayed, and according to the graphic editing engine, provide each data table corresponding to the directory for the user to select and drag to the canvas corresponding to the instance model, so as to create the data table as a node, and display it as a visualization view in the canvas corresponding to the instance model, so that the user can edit and preview the visualization relationship between the visualization views in the canvas by selecting and dragging.
[0019] A technical solution provided in an embodiment of the present invention is an electronic device, comprising:
[0020] at least one processor; and, a memory communicatively coupled to the at least one processor;
[0021] The memory stores instructions that can be executed by at least one processor, and the instructions are configured to execute the above-mentioned multi-sound source localization method based on finite innovation rate sampling.
[0022] A technical solution provided in an embodiment of the present invention is a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the multi-sound source localization method based on finite innovation rate sampling as described above.
[0023] Beneficial effects of the present invention:
[0024] The system of the embodiment of the present invention supports user-defined visualization view layout and chart configuration through a graphical draggable interface, and can support visualization editing and previewing of multidimensional data charts and editing and previewing of relationships between multidimensional data charts;
[0025] In addition, by mounting extension tool components on the instance model in the model building module, the instance model is bound with extension tool components from different sources, and user-defined mounting function components are implemented, thus achieving better scalability of the data visualization system.
[0026] The data table is created as a corresponding node through the node creation module, and the corresponding edges and anchor points are provided, so as to realize the conversion of the data table into a visual view that can be displayed on the canvas, realize the data processing of multi-source data tables, and solve the real-time display of complex data from multiple sources;
[0027] The configuration file module enables free editing of visualization views and the visualization relationships between visualization views on the canvas;
[0028] The rendering display module is used to display the data on the canvas in the form of a visual view, so that the free editing and preview functions can be realized through the above-mentioned model building module, node creation module and configuration file module.
[0029] The above invention content is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Other features, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings. The drawings are only for the purpose of illustrating preferred embodiments and are not to be considered as limiting the present invention. Also, the same reference symbols are used throughout the drawings to represent the same parts.
[0031] Figure 1 A schematic diagram of the structure of an embodiment of a data visualization system based on a graphics editing engine provided by the present invention;
[0032] Figure 2 A workflow diagram of a preview mode and an edit mode of an embodiment of a data visualization system based on a graphics editing engine provided by the present invention. DETAILED DESCRIPTION
[0033] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation method described herein is only an optimal embodiment of the present invention, which is only used to explain the present invention and does not limit the scope of protection of the present invention. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0034] Embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0035] In the description of the present invention, it is necessary to understand that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0036] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0037] A data visualization system and method based on a graphics editing engine according to an embodiment of the present invention will be described below in conjunction with the accompanying drawings.
[0038] Embodiment 1
[0039] The present invention provides a data visualization system based on a graphics editing engine, such as Figure 1 As shown, the system includes a model building module, a node creation module, a configuration module and a rendering display module:
[0040] The model building module is used to build an instance model according to the graphic editing engine and based on a preset configuration file. The instance model includes a component library and component parameters corresponding to each component, and an extension tool component is mounted on the instance model.
[0041] A node creation module is used to create a data table as a node and provide edges and anchor points corresponding to the node, so as to create a visualization view corresponding to the node on a canvas corresponding to the instance model, and realize the visualization relationship between the visualization views through the anchor points and edges;
[0042] The configuration module provides multiple types of editable configuration items and editable event sets for nodes by reading preset configuration files. The editable configuration items are used to implement custom style settings for visualization views and visualization relationships. The editable event sets are used to implement free editing of visualization views and visualization relationships, so that users can freely edit, place, and create visualization views corresponding to nodes and visualization relationships between visualization views in the canvas corresponding to the instance model.
[0043] The rendering and display module is used to render a directory of metadata table information of the data to be displayed, and according to the graphic editing engine, each data table corresponding to the directory is dragged to the canvas corresponding to the instance model for the user to select, and the data table is created as a node through the node creation module.
[0044] In the above embodiment, the system of the embodiment of the present invention supports user-defined visualization view layout and chart configuration through a graphical draggable interface, and can support visualization editing and preview of multidimensional data charts and editing and preview of relationships between multidimensional data charts;
[0045] In addition, by mounting extension tool components on the instance model in the model building module, the instance model is bound with extension tool components from different sources, and user-defined mounting function components are implemented, thus achieving good scalability of the data visualization system.
[0046] The data table is created as a corresponding node through the node creation module, and the corresponding edges and anchor points are provided, so as to realize the conversion of the data table into a visual view that can be displayed on the canvas, realize the data processing of multi-source data tables, and solve the real-time display of complex data from multiple sources;
[0047] The configuration file module enables free editing of visualization views and the visualization relationships between visualization views on the canvas;
[0048] The rendering display module is used to display the data on the canvas in the form of a visual view, so that the free editing and preview functions can be realized through the above-mentioned model building module, node creation module and configuration file module.
[0049] It should be noted that the instance model itself is a component or system that can export (export) and provide the required scene import (import) for use. Using it requires passing in the parameter props. The other components described are all for the instance model (mounted when the instance model is created), providing the instance model with the creation of nodes, edges, anchor units, mini-maps, toolbars, menu bars, etc.
[0050] As a preferred implementation, the instance model created by the model building module is the basic core of the entire ER diagram component. All components or tools involved later are mounted on this instance, which is also the basis for rendering the entire relationship diagram.
[0051] The configuration file in the configuration module contains: editable configuration items such as defaultOptions, port, edge, colors, and editable event sets including the events event binding summary and utils tool functions of the instance model;
[0052] The node creation module is used to customize nodes, customize edge units, and create anchor points for node-specified connection locations.
[0053] Furthermore, in the above embodiment, the model building module includes:
[0054] A component creation unit is used to create an exportable component and set component parameters corresponding to the exportable component, so as to realize fast binding of the exportable component and component parameters;
[0055] An initialization unit, used to create an instance model according to preset configuration files, exportable components and corresponding component parameters;
[0056] The checking unit is used to check whether the instance model exists and to mount the extension tool component to the existing instance model.
[0057] As a preferred implementation, the component creation unit uses react to create exportable components, and designs the props that need to be passed in (using the parameters passed in by the exportable component), such as data (ER relationship graph data, including nodes and edges), mode (node mode), isEdit (whether it is edit mode), options (custom part of the graph configuration items), extra (other extensions), etc.
[0058] The initialization unit declares an initialization function such as initGraph, reads the default configuration item defaultOptions in the config file, merges the options data in props, and calls the initGraph function to create an instance model, which is recorded as a graph instance;
[0059] The inspection unit checks whether the graph instance exists. If it exists, it mounts the extension tool components required by the user, such as toolbar, minimap, menu context and other extension tool components;
[0060] The toolbar extension tool component is a toolbar component with the functions of restore, retract, center, zoom and full screen.
[0061] The minimap extension tool component is a navigator component that assists in moving, positioning and scaling the canvas.
[0062] The menu context extension tool component is a right-click menu function component that has the functions of modifying the style and shape of the edge, adding a title to the visualization view, and deleting the visualization view.
[0063] Furthermore, in the above embodiment, the configuration module includes:
[0064] The configuration item unit is used to read the preset configuration file to provide multiple types of editable configuration items for the node. The editable configuration items include anchor configuration items, edge style configuration items, and palette configuration items.
[0065] The event set configuration unit is used to provide multiple types of editable event sets for the instance model, so that the user can freely edit the visualization views corresponding to the production nodes and the visualization relationships between the visualization views in the canvas.
[0066] As a preferred implementation, the configuration item unit exports many configuration items such as port (anchor configuration item), edge (edge style configuration), colors (palette default configuration), etc. by reading the config configuration file. The event set configuration unit provides multiple types of editable event sets for the instance model, such as mounting events for the instance model (binding events involving canvas, nodes and edges, such as dragging, moving in, removing, single-clicking, double-clicking, right-clicking, etc.) to provide support for subsequent editing interactions, and encapsulating it with utils tool functions, which implement functions such as export and data formatting.
[0067] Furthermore, in the above embodiment, the node creation module includes:
[0068] A node creation unit, used to create a node corresponding to the data table, so as to convert the data table into a visual view on a canvas corresponding to the instance model;
[0069] The edge anchor creation unit provides edges and anchors corresponding to the nodes, and realizes the visualization relationship between the visualization views corresponding to the nodes by connecting lines.
[0070] As a preferred implementation, the built-in nodes, edges and ports of antVX6's SVG cannot meet all user needs. When users have other needs, the node creation module can be used to meet user needs. This part has met the needs. For example, for nodes, SVG can realize simple bitmaps, and complex graphics need to be combined with HTML to be implemented. The node creation unit can be used to declare nodes in different preview modes, such as ER nodes and table nodes, and the editing mode can be specially handled; the edge anchor creation unit is used to provide the edges and anchors corresponding to the nodes, and feedback the user's required custom edge shape color and special status to the configuration file. The style and position of the custom anchor can be fed back to the configuration file.
[0071] An editing unit is used to provide an editing function on a canvas corresponding to an instance model, so as to render a directory of metadata table information of data to be displayed, and according to a graphic editing engine, each data table corresponding to the directory is dragged and dropped into a canvas corresponding to the instance model for the user to select, and the data table is created as a node through a node creation module, and the visual relationship between the visual views corresponding to the nodes is edited, and the custom style setting of the visual view and the visual relationship is realized through a configuration file module, and the visual view is freely edited and placed;
[0072] The preview unit is used to provide a preview function on the canvas corresponding to the instance model to view the visualization view and visualization relationship corresponding to the metadata table information of the data to be displayed.
[0073] As a preferred implementation, the specific workflow of the editing unit includes:
[0074] Step A1, render the directory of metadata table information, then use the drag function of DND based on antVX6 to drag the table to the canvas with instance model (such as graph instance) to generate a node, the table fields on the node are obtained through the interface when dragging, and the table duplication judgment function can be added based on antV X6;
[0075] Step A2, the node generation process needs to extract the parameters such as mode (node mode) and isEdit (whether it is edit mode) passed in by props, and decide which node to use to create the previous node creation unit, which can be the SVG built-in node of antVX6 or a custom node, and whether to display the anchor point, where the position and number of the anchor point need to be calculated according to the table field;
[0076] Step A3, drag and drop to generate multiple nodes, and then create edges to associate them. The edge style is supported by the configuration file;
[0077] Step A4: You can drag the node, and the right-click menu function component menucontext in the extended tool component can provide support for modifying the color, line style and name of the edge, so that the user can customize the color and line style of the line connecting two nodes;
[0078] Step A5: During the editing process of steps A3 and A4, the functions provided by the toolbar component in the extended tool component can be used to assist the editing;
[0079] Step A6, save the entire ER diagram data, obtain all data through the graph instance, use the utils tool formatting function in the configuration file, format the data (including: nodes, edges and recently used colors, others can be saved as needed) and submit it to the server.
[0080] As a preferred implementation, the specific workflow of the preview unit includes:
[0081] Step B1, obtaining the data to be previewed, which is the data previously edited and saved by the user;
[0082] Step B2, reading configuration information in the data to be previewed;
[0083] Step B3, initializing the instance model corresponding to the data to be previewed;
[0084] Step B4, reading components, events and configurations (including edge color, line style and name, etc.) mounted on the instance model;
[0085] Step B5, preview the entire ER diagram.
[0086] It should be noted that if Figure 2 As shown, the process of visualizing the model on the canvas in preview mode and edit mode is not much different, and the edit mode also includes an editing step;
[0087] in Figure 2 The dashed line in the diagram indicates the preview model, and the solid line indicates the edit mode.
[0088] Furthermore, in the above embodiment, a storage module is also included, which is used to store a preset number of color modification history data and provide the color modification history data to the color palette to display the modification history color.
[0089] As a preferred implementation, seesionStorage technology (a client storage mechanism for temporarily saving data in a web browser) is used to store edge color information, and the color information of the most recent historical modifications is stored in the storage module.
[0090] When modifying the color of an edge, you can use the seesionStorage technology to store the most recent color modification records of the edge being edited, which simplifies the process of recording color changes and provides access support when saving to the server later;
[0091] Stores the recent color usage information of the edge obtained from the storage module, and provides color data to the palette to facilitate the palette to display the most recently used colors.
[0092] Furthermore, in the above embodiment, the image editing engine is antV X6. antV X6 provides a series of out-of-the-box interactive components and easy-to-use node customization capabilities, which facilitates the rapid construction of applications such as DAG diagrams, ER diagrams, and flow charts. The antV X6 data-driven image editing engine used in the present invention provides two basic rendering capabilities, html and svg, which can flexibly display visual data.
[0093] Embodiment 2
[0094] Furthermore, in one embodiment of the present invention, a data visualization method based on a graphic editing engine is also proposed. The data visualization method based on a graphic editing engine will be described in detail below, specifically including: a data visualization establishment method and a data visualization use method;
[0095] The data visualization establishment method includes:
[0096] An instance model is established according to the graphic editing engine and based on a preset configuration file, the instance model includes a component library and component parameters corresponding to each component, and an extension tool component is mounted on the instance model;
[0097] Create a data table as a node, and provide edges and anchor points corresponding to the node, so as to create a visualization view corresponding to the node on the canvas corresponding to the instance model, and realize the visualization relationship between the visualization views through the anchor points and edges;
[0098] By reading preset configuration files, multiple types of editable configuration items and editable event sets are provided for nodes. The editable configuration items are used to implement custom style settings for visualization views and visualization relationships, and the editable event sets are used to implement free editing of visualization views and visualization relationships, so that users can freely edit, place, and create visualization views corresponding to nodes and visualization relationships between visualization views in the canvas corresponding to the instance model.
[0099] Among them, data visualization methods include:
[0100] Render a directory of metadata table information of the data to be displayed, and according to the graphic editing engine, provide each data table corresponding to the directory for the user to select and drag to the canvas corresponding to the instance model, so as to create the data table as a node, and display it as a visualization view in the canvas corresponding to the instance model, so that the user can edit and preview the visualization relationship between the visualization views in the canvas by selecting and dragging.
[0101] In the above embodiment, the system of the embodiment of the present invention supports user-defined visualization view layout and chart configuration through a graphical draggable interface, and can support visualization editing and preview of multidimensional data charts and editing and preview of relationships between multidimensional data charts;
[0102] And by mounting extension tool components on the instance model, binding extension tool components from different sources to the instance model, and realizing user-defined mounting function components, the data visualization system has good scalability;
[0103] By creating data tables as corresponding nodes and providing corresponding edges and anchor points, the data tables can be converted into visual views that can be displayed on the canvas, data processing of multi-source data tables can be achieved, and the real-time display of complex data from multiple sources can be solved;
[0104] Implement free editing of visualization views and visualization relationships between visualization views on the canvas;
[0105] The data is displayed on the canvas in the form of a visual view, so that free editing and preview functions can be achieved through the above-mentioned model building module, node creation module and configuration file module.
[0106] In some other embodiments of the present invention, the embodiments of the present invention provide the following technical solution, an electronic device, characterized in that it includes:
[0107] at least one processor; and, a memory communicatively coupled to the at least one processor;
[0108] The memory stores instructions that can be executed by at least one processor, and the instructions are configured to execute the above-mentioned data visualization method based on the graphic editing engine.
[0109] A computer-readable storage medium stores a computer program, which is executed by a processor to implement the data visualization method based on a graphic editing engine as described above.
[0110] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0111] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0112] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0113] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.
[0114] A person skilled in the art may understand that all or part of the steps in the above-mentioned embodiment method may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0115] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A data visualization system based on a graphics editing engine, characterized in that: include: A model building module, used to build an instance model according to a graphic editing engine and based on a preset configuration file, wherein the instance model includes a component library and component parameters corresponding to each component, and mount an extension tool component on the instance model; A node creation module, used to create a data table as a node, and provide edges and anchor points corresponding to the node, so as to create a visualization view corresponding to the node on a canvas corresponding to the instance model, and realize a visualization relationship between the visualization views through the anchor points and edges; The configuration module provides multiple types of editable configuration items and editable event sets for nodes by reading preset configuration files. The editable configuration items are used to implement custom style settings for visualization views and visualization relationships. The editable event sets are used to implement free editing of visualization views and visualization relationships, so that users can freely edit, place, and create visualization views corresponding to nodes and visualization relationships between visualization views in the canvas corresponding to the instance model. The rendering and display module is used to render a directory of metadata table information of the data to be displayed, and according to the graphic editing engine, each data table corresponding to the directory is dragged into the canvas corresponding to the instance model for the user to select, and the data table is created as a node through the node creation module.
2. A data visualization system based on a graphics editing engine as claimed in claim 1, characterized in that: Model building modules include: A component creation unit, used to create the exportable component and set component parameters corresponding to the exportable component, so as to realize fast binding of the exportable component and the component parameters; An initialization unit, used to create the instance model according to a preset configuration file, the exportable component and corresponding component parameters; The checking unit is used to check whether the instance model exists and to mount the extension tool component to the existing instance model.
3. A data visualization system based on a graphics editing engine as claimed in claim 1, characterized in that: The configuration modules include: A configuration item unit, used to read a preset configuration file to provide multiple types of editable configuration items for the node, wherein the editable configuration items include anchor configuration items, edge style configuration items, and palette configuration items; The event set configuration unit is used to provide multiple types of editable event sets for the instance model, so that the user can freely edit the visualization views corresponding to the production nodes and the visualization relationships between the visualization views in the canvas.
4. A data visualization system based on a graphics editing engine as claimed in claim 1, characterized in that: The node creation module includes: The node creation unit is used to create nodes corresponding to the data table so as to convert the data table into a visual view on the canvas corresponding to the instance model; the edge anchor point creation unit provides edges and anchor points corresponding to the nodes so as to connect the visual relationships between the visual views corresponding to the nodes in the form of lines.
5. A data visualization system based on a graphics editing engine as claimed in claim 1, characterized in that: The rendering display module includes: An editing unit, used to provide an editing function on a canvas corresponding to an instance model, so as to render a directory of metadata table information of data to be displayed, and according to a graphic editing engine, each data table corresponding to the directory is dragged and dropped into the canvas corresponding to the instance model for the user to select, and the data table is created as a node through the node creation module, the visual relationship between the visual views corresponding to the nodes is edited, and the custom style setting of the visual view and the visual relationship is realized through the configuration file module, and the visual view is freely edited and placed to make the visual view; The preview unit is used to provide a preview function on the canvas corresponding to the instance model to view the visualization view and visualization relationship corresponding to the metadata table information of the data to be displayed.
6. A data visualization system based on a graphics editing engine as claimed in claim 1, characterized in that: It also includes a storage module for storing a preset number of color modification history data and providing the color modification history data to the palette to display the modification history color.
7. A data visualization system based on a graphics editing engine as claimed in claim 1, characterized in that: The image editing engine is antVX6.
8. A data visualization system based on a graphics editing engine as claimed in claim 1, characterized in that: The extension tool component includes: a right-click menu function component, which has the functions of modifying the style and shape of the edge, adding a title of the visualization view, and deleting the visualization view; Toolbar component, with restore, back, center, zoom and full screen functions; The navigator component has the function of assisting the movement, positioning and scaling of the canvas.
9. A data visualization method based on a graphics editing engine, characterized in that: include: Methods for establishing data visualization and methods for using data visualization; The data visualization establishment method includes: An instance model is established according to the graphic editing engine and based on a preset configuration file, wherein the instance model includes a component library and component parameters corresponding to each component, and an extension tool component is mounted on the instance model; Create a data table as a node, and provide edges and anchor points corresponding to the node, so as to create a visualization view corresponding to the node on a canvas corresponding to the instance model, and realize a visualization relationship between the visualization views through the anchor points and edges; By reading preset configuration files, multiple types of editable configuration items and editable event sets are provided for nodes. The editable configuration items are used to implement custom style settings for visualization views and visualization relationships. The editable event sets are used to implement free editing of visualization views and visualization relationships, so that users can freely edit, place, and create visualization views corresponding to nodes and visualization relationships between visualization views in the canvas corresponding to the instance model. Among them, data visualization methods include: A directory of metadata table information of the data to be displayed is rendered, and each data table corresponding to the directory is provided for the user to select and drag into the canvas corresponding to the instance model according to the graphic editing engine, so that the data table is created as a node, and displayed as a visual view in the canvas corresponding to the instance model, so that the user can edit and preview the visual relationship between the visual views in the canvas by selecting and dragging.
10. An electronic device, characterized in that: include: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions executable by the at least one processor, and the instructions are configured to execute the method of claim 9.
Citation Information
Patent Citations
Dragging-based large screen modularization layout method and device
CN110597586A
Method and system for constructing entity relationship of Internet-of-things based on graphic editing engine
CN113468261A
Graph visualization method and device, equipment, medium and product
CN115129553A
Cited By
Configuration method and system for mxGraph dynamic components
CN119759411A
Online multi-terminal collaborative printing method and device based on MES system
CN121411719A
Graphical file editing system and method
CN121764463A
