Data processing method and system for strategic mineral resource mulberry-based graph

Through the strategic mineral resources Sankey diagram data processing system, ECharts library and SVG technology are used to draw Sankey diagrams, combined with user rights management and interactive functions, to solve the flexibility and compatibility problems of material flow data processing in the existing technology, and realize Dynamic monitoring and comprehensive assessment of the entire life cycle of mineral resources improves user experience and analysis efficiency, and provides scientific decision-making support for the sustainable management of mineral resources.

CN118733668AActive Publication Date: 2024-10-01SHANGHAI JIAOTONG UNIV

Patent Information

Application Number
CN202410879096.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-01
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

The existing technology lacks flexibility when processing material flow data of different formats and structures, resulting in cumbersome data preparation and preprocessing, unclear visual impact and information transmission, simple interactive functions, poor compatibility, and insufficient rendering performance and interactive fluency. It is difficult to meet users’ flexible adjustment needs, affecting the accuracy of analysis results and user experience.

Method used

Provide a data processing method and system for Sankey diagram of strategic mineral resources. Data is entered through Excel template, ECharts library and SVG technology are used to draw Sankey diagram, and user rights management and interactive functions are combined to achieve accurate and intuitive display of data, and Provides historical data management and dynamic adjustment functions to optimize performance and compatibility.

Benefits of technology

It achieves dynamic monitoring and comprehensive assessment of the material flow throughout the life cycle of mineral resources, improves the comprehensiveness and accuracy of data, enhances user experience and analysis efficiency, provides scientific decision-making support, and contributes to the sustainable management and management of mineral resources. Utilize new technological means.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733668A_ABST
    Figure CN118733668A_ABST
Patent Text Reader

Abstract

The invention provides a strategic mineral resource mulberry-based graph data processing method and system, and the method comprises the steps: 1, inputting the flow direction and quantity data of strategic mineral resources in different stages by a user according to an Excel template provided by the system; step 2, uploading the filled Excel file to a system; 3, calculating and integrating the stored strategic mineral resource MFA data by the system to form a data structure meeting the mulberry-based diagram drawing requirements; 4, presenting the drawn mulberry-based graph to a user through a front-end module of the system; and 5, the system provides a historical data management function, and the user checks and downloads the historically uploaded Excel file and rechecks and modifies the data. According to the invention, real-time monitoring and analysis of the spatio-temporal evolution laws and dynamic indexes of the mineral resources are realized, a new technical means is provided for sustainable management and utilization of the mineral resources, and the refinement level of mineral resource management is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of strategic mineral resource data processing, and in particular to a data processing method and system for a strategic mineral resource Sankey diagram. Background Art

[0002] Existing products lack flexible data processing capabilities when processing material flow data in different formats and structures. This makes the data preparation and preprocessing process cumbersome and difficult to quickly adapt to the analysis needs of different scenarios.

[0003] Although existing products provide certain visualization functions, there is still room for improvement in terms of visual impact, clarity of information transmission, etc. The aesthetics and readability of charts need to be enhanced to better attract and retain users' attention.

[0004] Some existing products have problems with information distortion or omission when displaying the direction and flow rate of material flow, which affects the accuracy and reliability of the analysis results and may lead to decision-making bias.

[0005] The interactive functions of existing products are relatively simple and lack the ability to attract users to explore and analyze data. It is difficult for users to obtain more detailed information or dynamically adjust visualization parameters through interaction, which affects user experience and analysis efficiency.

[0006] Most existing products offer limited parameter adjustment options, which makes it difficult for users to flexibly adjust the chart display. This limits the ability of users to optimize the visualization effect according to their preferences and needs.

[0007] The compatibility of some existing products on different browsers and devices is not ideal, which affects the accessibility and practicality of the products. Users may encounter problems such as display anomalies and interaction failures, which reduces user satisfaction.

[0008] Faced with large-scale and complex material flow data, there is still room for improvement in the rendering performance and interactive fluency of existing products. When the amount of data is large, performance issues such as freezes and delays may occur, affecting the user's analysis experience.

[0009] The architecture and code design of existing products may have problems such as high coupling and insufficient modularity, which makes subsequent maintenance and function expansion difficult. This limits the product iteration speed and the ability to adapt to market changes.

[0010] Although the basic principles of MFA are universal, the adaptability of existing products to data in different fields in actual applications needs further verification. When facing new application scenarios, products may need more customized development and adjustments.

[0011] Patent document CN114943454A discloses a SaaS cloud data service platform based on mining big data, including: a big data center module, used to obtain mining information data collected by terminal equipment; a data processing and analysis module, used to process mining information data using RPA technology, and send the processed mining information data to the big data center module, so that the big data center module can perform distributed storage on the processed big data mining information data; a service application module, used to initialize container resources for the processed mining information data, obtain initialization data, and read the initialization data into the background management platform for the background management platform to read and external supervision; a background business engine module, used to use the BPM engine and preset mapping rules to provide support for various businesses. However, this patent cannot completely solve the existing technical problems, nor can it meet the needs of the present invention. Summary of the invention

[0012] In view of the defects in the prior art, the object of the present invention is to provide a data processing method and system for a Sankey diagram of strategic mineral resources.

[0013] The data processing method of the strategic mineral resources Sankey diagram provided by the present invention comprises:

[0014] Step 1: The user enters the flow direction and quantity data of strategic mineral resources at different stages according to the Excel template provided by the system;

[0015] Step 2: The user uploads the completed Excel file to the system through the system's backend management interface. The system adopts a user authority management mechanism to ensure the security of data upload. The uploaded Excel file is processed by the system's parsing module, and key data is extracted and stored in the database. At the same time, the original Excel file is also saved for subsequent viewing and downloading;

[0016] Step 3: The system's data processing module calculates and integrates the stored strategic mineral resources MFA data to form a data structure that meets the requirements for drawing the Sankey diagram. When drawing the Sankey diagram, the system fully considers the characteristics of the MFA, including the material flow direction and quantity balance relationship at different stages, to ensure that the generated Sankey diagram accurately and intuitively reflects the material flow of strategic mineral resources;

[0017] Step 4: The completed Sankey diagram is presented to the user through the front-end module of the system. At the same time, the system provides interactive functions. The user can obtain detailed data of a specific stage or flow direction, including mining volume, processing loss volume and recycling volume, by operating the mouse.

[0018] Step 5: The system provides historical data management functions. Users can view and download historically uploaded Excel files to review and modify the data. When users upload new data files, the system automatically updates the Sankey diagram to ensure that the displayed material flow data is always up to date.

[0019] Preferably, when drawing a Sankey diagram, first draw rectangular nodes, and use the ECharts library to draw rectangular nodes representing each material flow stage according to the prepared data, specifically: initialize the ECharts instance, set the size and position of the chart; configure the ECharts series and data set, specify the position, size, and style attributes of the node; set the interactive functions of the node, including displaying detailed information when the mouse hovers and clicking to jump; call the ECharts rendering function to generate rectangular nodes.

[0020] Preferably, the starting and ending coordinates of the SVG arrow are calculated according to the position and size of the rectangular nodes generated by ECharts, specifically: traverse the material flow data to obtain the starting and ending nodes of each flow; calculate the starting and ending coordinates of the SVG arrow according to the positions of the starting and ending nodes; calculate the thickness of the SVG arrow according to the flow data.

[0021] Preferably, SVG technology is used to draw arrows representing the flow of materials according to the calculated coordinates and thickness, specifically: create an SVG element, set the size and position of the SVG, and align it with the chart generated by ECharts; use the path element of SVG to draw the body of the arrow according to the start and end point coordinates; use the polygon element of SVG to draw the arrowhead of the arrow; set the style of the arrow, including color and transparency.

[0022] Preferably, the drawn SVG arrows and ECharts rectangular nodes are seamlessly integrated to form a complete Sankey diagram, and interactive functions are added, specifically: adding SVG elements to the container where the ECharts chart is located; adding mouse hover events to the SVG arrows to display detailed traffic information; adding click events to the ECharts rectangular nodes to jump to the detailed report of the corresponding stage; creating a control panel to allow users to dynamically adjust the display parameters of the Sankey diagram;

[0023] Optimize and debug the generated Sankey diagram to ensure its performance and compatibility. Specifically: check the display effect of the Sankey diagram on different browsers and devices, and perform necessary compatibility processing; optimize the rendering performance of SVG arrows and ECharts nodes to ensure the smoothness of the chart; adjust the layout and style of the Sankey diagram to improve its readability and aesthetics.

[0024] The data processing system of the strategic mineral resources Sankey diagram provided by the present invention comprises:

[0025] Module M1: Users enter the flow direction and quantity data of strategic mineral resources at different stages according to the Excel template provided by the system;

[0026] Module M2: Users upload completed Excel files to the system through the system's backend management interface. The system adopts a user authority management mechanism to ensure the security of data upload. The uploaded Excel files are processed by the system's parsing module, and key data is extracted and stored in the database. At the same time, the original Excel files are also saved for subsequent viewing and downloading;

[0027] Module M3: The system's data processing module calculates and integrates the stored strategic mineral resources MFA data to form a data structure that meets the requirements for drawing the Sankey diagram. When drawing the Sankey diagram, the system fully considers the characteristics of the MFA, including the material flow direction and quantity balance relationship at different stages, to ensure that the generated Sankey diagram accurately and intuitively reflects the material flow of strategic mineral resources;

[0028] Module M4: The completed Sankey diagram is presented to the user through the front-end module of the system. At the same time, the system provides interactive functions. The user can obtain detailed data of a specific stage or flow direction, including mining volume, processing loss volume and recycling volume, by operating the mouse.

[0029] Module M5: The system provides historical data management functions. Users can view and download historically uploaded Excel files, review and modify the data. When users upload new data files, the system automatically updates the Sankey diagram to ensure that the displayed material flow data is always kept up to date.

[0030] Preferably, when drawing a Sankey diagram, first draw rectangular nodes, and use the ECharts library to draw rectangular nodes representing each material flow stage according to the prepared data, specifically: initialize the ECharts instance, set the size and position of the chart; configure the ECharts series and data set, specify the position, size, and style attributes of the node; set the interactive functions of the node, including displaying detailed information when the mouse hovers and clicking to jump; call the ECharts rendering function to generate rectangular nodes.

[0031] Preferably, the starting and ending coordinates of the SVG arrow are calculated according to the position and size of the rectangular nodes generated by ECharts, specifically: traverse the material flow data to obtain the starting and ending nodes of each flow; calculate the starting and ending coordinates of the SVG arrow according to the positions of the starting and ending nodes; calculate the thickness of the SVG arrow according to the flow data.

[0032] Preferably, SVG technology is used to draw arrows representing the flow of materials according to the calculated coordinates and thickness, specifically: create an SVG element, set the size and position of the SVG, and align it with the chart generated by ECharts; use the path element of SVG to draw the body of the arrow according to the start and end point coordinates; use the polygon element of SVG to draw the arrowhead of the arrow; set the style of the arrow, including color and transparency.

[0033] Preferably, the drawn SVG arrows and ECharts rectangular nodes are seamlessly integrated to form a complete Sankey diagram, and interactive functions are added, specifically: adding SVG elements to the container where the ECharts chart is located; adding mouse hover events to the SVG arrows to display detailed traffic information; adding click events to the ECharts rectangular nodes to jump to the detailed report of the corresponding stage; creating a control panel to allow users to dynamically adjust the display parameters of the Sankey diagram;

[0034] Optimize and debug the generated Sankey diagram to ensure its performance and compatibility. Specifically: check the display effect of the Sankey diagram on different browsers and devices, and perform necessary compatibility processing; optimize the rendering performance of SVG arrows and ECharts nodes to ensure the smoothness of the chart; adjust the layout and style of the Sankey diagram to improve its readability and aesthetics.

[0035] Compared with the prior art, the present invention has the following beneficial effects:

[0036] (1) The present invention uses a digitized digital twin model to construct a digital mirror of the metabolic evolution of material flows throughout the life cycle of strategic mineral resources, realizes real-time monitoring and analysis of the temporal and spatial evolution laws and dynamic indicators of mineral resources, provides new technical means for the sustainable management and utilization of mineral resources, improves the level of refinement of mineral resource management, realizes dynamic monitoring and comprehensive evaluation of the entire life cycle of mineral resources, and provides decision-making support for the sustainable utilization of mineral resources;

[0037] (2) The present invention comprehensively utilizes technologies such as the Internet of Things, big data, and cloud computing to support data collection and fusion in various forms, including locally uploaded data, third-party data, and sensor-collected data, thereby realizing the fusion application of multi-source heterogeneous data, expanding data sources, and improving the comprehensiveness and accuracy of data, thus providing more reliable data support for mineral resource management;

[0038] (3) The present invention utilizes technologies such as the Internet of Things and sensors to monitor in real time the material flow of all links in the entire mineral resource industry chain, including mining, processing, transportation, consumption, recycling and other stages, thereby achieving dynamic monitoring of the entire life cycle of mineral resources and real-time monitoring of the material flow of the entire mineral resource industry chain, providing comprehensive and dynamic data support for mineral resource management, helping to optimize industrial layout and improve resource utilization efficiency;

[0039] (4) Based on the digitized digital twin model, the present invention constructs a dynamic indicator evaluation system for strategic key mineral resources, comprehensively considers factors such as the reserves, grade, mining conditions, and market demand of mineral resources, provides decision support for the development and utilization of mineral resources, and provides comprehensive evaluation and decision support functions for mineral resources. It provides a scientific basis for the rational development and sustainable utilization of mineral resources, and helps to improve the scientific and refined level of mineral resource management. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0041] Figure 1 Specific operation process diagram for uploading Excel to the backend management system;

[0042] Figure 2 This is a diagram of the specific operation process of data processing in the Sankey diagram. DETAILED DESCRIPTION

[0043] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0044] Example 1

[0045] This system adopts the "1+1+N" model, that is, 1 big data center + 1 data visualization management and service platform + N application services, to build a strategic key mineral resource comprehensive evaluation and decision support service system. The system consists of a material flow visualization system, a dynamic monitoring system for material flow in the entire industrial chain, a comprehensive resource evaluation system, a database and model function call system, and a user management and authority control system, and adopts a four-layer architecture (collection layer, data layer, application layer, and display layer).

[0046] This system uses a digital twin model to model, observe and study the spatiotemporal evolution laws and dynamic indicator evaluation systems of 6 energy-type, 14 metal and 4 non-metal strategic key mineral resources. By building a digital mirror of the metabolic evolution of material flows throughout the life cycle of strategic mineral resources, it provides big data comprehensive evaluation decision support services for strategic key mineral resources.

[0047] This system comprehensively uses software and hardware technologies such as digitized digital twins, cloud computing, the Internet of Things, big data, and terminal intelligent sensors to comprehensively perceive the characteristic data of minerals at different stages, from upstream mining to intermediate products to final products and scrap recycling. It uses modeling to connect the physical space of industrial factories with the digital space to generate digital twins, discover deep-seated relationships, and realize a digital mirror of the real world.

[0048] System function modules

[0049] 1. Data collection and processing

[0050] This system supports the collection of data of various mineral resources in different forms, including locally uploaded data and data information obtained by third parties, as well as data collected by AI cameras and other mainstream IoT sensors. The system integrates efficient and highly compatible data collection and sensor collection solutions to provide hardware and software support for data sources. The data layer is reliable and secure, and includes flexible data call modes, providing a digital space for the realization of digital twins.

[0051] 2. Material flow visualization system

[0052] By constructing a digital mirror of the metabolic evolution of material flows throughout the entire life cycle of strategic mineral resources, a visual display of the material flow of mineral resources can be achieved, and information such as the temporal and spatial distribution, flow path, and transformation process of mineral resources can be intuitively presented.

[0053] 3. Dynamic monitoring system for material flow in the entire industry chain

[0054] By using technologies such as the Internet of Things and sensors, we can monitor in real time the material flow of all links in the entire mineral resources industry chain, including mining, processing, transportation, consumption, recycling and other stages, to provide data support for mineral resource management.

[0055] 4. Comprehensive resource evaluation system

[0056] Based on the digitized digital twin model, a dynamic indicator evaluation system for strategic key mineral resources is constructed to comprehensively evaluate factors such as mineral resources' reserves, grade, mining conditions, and market demand, providing decision-making support for the development and utilization of mineral resources.

[0057] 5. Database and model function call system

[0058] Establish a basic mineral resources database, a thematic database and a model function library to provide data support and model algorithm support for each functional module of the system.

[0059] 6. User management and authority control system

[0060] Realize functions such as user registration, login, and permission management to ensure the safe operation of the system.

[0061] The dynamic monitoring system of material flow in the entire industry chain, the comprehensive resource evaluation system, and the landing point of the model function call provide insight into every stage, scenario, and change of the mineral resource development business. The system provides multiple sets of data visualization interfaces, supports cross-terminal access, and displays resource distribution diagrams, resource import and export diagrams, mineral resource spatiotemporal evolution diagrams, etc.

[0062] The data processing function of the Sankey diagram of the strategic key mineral resources comprehensive evaluation and decision support service system of the present invention is specially designed for the study of strategic mineral resources. It adopts the material flow analysis (MFA) method to describe and quantify the flow and transformation process of strategic mineral resources in various stages such as mining, processing, use and abandonment, revealing the source, destination and stock change of strategic mineral resources, and providing an important basis for relevant decision-making. It includes the following steps:

[0063] 1. Data preparation: Users enter the flow and quantity data of strategic mineral resources at different stages according to the Excel template provided by the system. The design of the Excel template fully considers the data requirements of MFA, such as the types of mineral resources, mining volume, processing volume, usage volume, waste volume, recycling volume, etc., to ensure the integrity and consistency of the data.

[0064] 2. Data upload and storage: Users upload completed Excel files to the system through the system's backend management interface. The system adopts a strict user authority management mechanism to ensure the security of data upload. The uploaded Excel file is processed by the system's parsing module, and key data is extracted and stored in the database. At the same time, the original Excel file is also saved for subsequent viewing and downloading.

[0065] 3. Data processing and Sankey diagram drawing: The system's data processing module calculates and integrates the stored strategic mineral resources MFA data to form a data structure that meets the requirements of Sankey diagram drawing. When drawing the Sankey diagram, the system fully considers the characteristics of MFA, such as the material flow direction and quantity balance relationship at different stages, to ensure that the generated Sankey diagram can accurately and intuitively reflect the material flow of strategic mineral resources.

[0066] 4. Front-end display and interaction: The completed Sankey diagram is presented to the user through the front-end module of the system. Users can intuitively see the complete flow process of strategic mineral resources from mining to abandonment, and understand the quantity changes and destinations at different stages. At the same time, the system provides a wealth of interactive functions. Users can use mouse operations to obtain detailed data of specific stages or flows, such as mining volume, processing loss, recycling volume, etc., to facilitate in-depth analysis by users.

[0067] 5. Historical data management: The system provides a complete historical data management function. Users can easily view and download historically uploaded Excel files to review and modify the data. When users upload new data files, the system will automatically update the Sankey diagram to ensure that the displayed material flow data is always up to date.

[0068] The specific steps are as follows:

[0069] 1. Data preparation. First, you need to prepare the data for drawing the Sankey diagram. The data should include the name, inventory, and starting point, end point, and flow rate of each material flow stage. Usually, this data is stored in JSON or CSV format.

[0070] 2. Draw rectangular nodes. Use the ECharts library to draw rectangular nodes representing each material flow stage based on the prepared data. The specific steps are as follows:

[0071] a) Initialize the ECharts instance and set the size and position of the chart.

[0072] b) Configure ECharts series and datasets, and specify the node's location, size, style and other properties.

[0073] c) Set the interactive functions of the node, such as displaying detailed information when the mouse hovers, clicking to jump, etc.

[0074] d) Call ECharts' rendering function to generate a rectangular node.

[0075] 3. Calculate the arrow coordinates. According to the position and size of the rectangular node generated by ECharts, calculate the starting and ending coordinates of the SVG arrow.

[0076] a) Traverse the material flow data and obtain the starting and ending nodes of each flow.

[0077] b) Calculate the start and end coordinates of the SVG arrow based on the positions of the start and end nodes.

[0078] c) Calculate the thickness of the SVG arrow based on the flow data.

[0079] 4. Draw SVG arrows. Use SVG technology to draw arrows representing material flow based on the calculated coordinates and thickness.

[0080] a) Create an SVG element, set the size and position of the SVG, and align it with the chart generated by ECharts.

[0081] b) Use SVG's path element to draw the body of the arrow based on the start and end coordinates.

[0082] c) Use the SVG polygon element to draw the arrowhead.

[0083] d) Set the arrow style, such as color, transparency, etc.

[0084] 5. Integration and interaction: seamlessly integrate the drawn SVG arrows and ECharts rectangle nodes to form a complete Sankey diagram and add interactive functions.

[0085] a) Add the SVG element to the container where the ECharts chart is located.

[0086] b) Add mouse hover events to the SVG arrows to display detailed traffic information.

[0087] c) Add a click event to the ECharts rectangle node to jump to the detailed report of the corresponding stage.

[0088] d) Create a control panel that allows users to dynamically adjust the display parameters of the Sankey diagram.

[0089] 6. Optimization and debugging: Optimize and debug the generated Sankey diagram to ensure its performance and compatibility.

[0090] a) Check the display effect of the Sankey diagram on different browsers and devices, and perform necessary compatibility processing.

[0091] b) Optimize the rendering performance of SVG arrows and ECharts nodes to ensure the smoothness of the chart.

[0092] c) Adjust the layout and style of the Sankey diagram to improve its readability and aesthetics.

[0093] Example 2

[0094] Embodiment 2 is a preferred example of Embodiment 1.

[0095] The data processing implementation method of the Sankey diagram of the strategic key mineral resources comprehensive evaluation and decision support service system of the present invention is as follows Figure 1 and Figure 2 As shown below, Figure 1 and Figure 2 For detailed explanation:

[0096] 1. The user accesses the backend management system through the browser, enters the username and password to authenticate the user identity, which includes system administrator, administrator and element account. After the authentication is passed, the user can access the backend management system for subsequent operations.

[0097] 2. After logging into the corresponding element account, the user can upload the corresponding Excel in the strategic mineral resources spatiotemporal evolution system, and the background system will verify the format in Excel. If the verification passes, the Excel will be saved to the server, and the Excel will be parsed at the same time, and the parsed data will be stored in the MySQL database; if the verification fails, the user will be asked to upload again and given a modification prompt.

[0098] 3. Users can select the historical version they uploaded in the history record to download to ensure the accuracy of the data.

[0099] 4. When users access the front-end display system in a browser, they can see the Sankey diagram automatically generated by the system based on Excel data on the page of uploaded elements.

[0100] Those skilled in the art know that, in addition to implementing the system, device and its various modules provided by the present invention in a purely computer-readable program code, it is entirely possible to implement the same program in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, the system, device and its various modules provided by the present invention can be considered as a hardware component, and the modules included therein for implementing various programs can also be considered as structures within the hardware component; the modules for implementing various functions can also be considered as both software programs for implementing the method and structures within the hardware component.

[0101] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.

Claims

1. A data processing method for a Sankey diagram of strategic mineral resources, characterized in that: include: Step 1: The user enters the flow direction and quantity data of strategic mineral resources at different stages according to the Excel template provided by the system; Step 2: The user uploads the completed Excel file to the system through the system's backend management interface. The system adopts a user authority management mechanism to ensure the security of data upload. The uploaded Excel file is processed by the system's parsing module, and key data is extracted and stored in the database. At the same time, the original Excel file is also saved for subsequent viewing and downloading; Step 3: The system's data processing module calculates and integrates the stored strategic mineral resources MFA data to form a data structure that meets the requirements for drawing the Sankey diagram. When drawing the Sankey diagram, the system fully considers the characteristics of the MFA, including the material flow direction and quantity balance relationship at different stages, to ensure that the generated Sankey diagram accurately and intuitively reflects the material flow of strategic mineral resources; Step 4: The completed Sankey diagram is presented to the user through the front-end module of the system. At the same time, the system provides interactive functions. The user can obtain detailed data of a specific stage or flow direction, including mining volume, processing loss volume and recycling volume, by operating the mouse. Step 5: The system provides historical data management functions. Users can view and download historically uploaded Excel files to review and modify the data. When users upload new data files, the system automatically updates the Sankey diagram to ensure that the displayed material flow data is always up to date.

2. The data processing method of the strategic mineral resources Sankey diagram according to claim 1 is characterized in that: When drawing a Sankey diagram, first draw rectangular nodes, and use the ECharts library to draw rectangular nodes representing each material flow stage based on the prepared data. Specifically: initialize the ECharts instance and set the size and position of the chart; configure the ECharts series and data set, specify the position, size, and style attributes of the node; set the node's interactive functions, including displaying detailed information when the mouse hovers and clicking to jump; call the ECharts rendering function to generate rectangular nodes.

3. The data processing method of the strategic mineral resources Sankey diagram according to claim 2 is characterized in that: According to the position and size of the rectangular nodes generated by ECharts, the starting and ending coordinates of the SVG arrow are calculated. Specifically, the material flow data is traversed to obtain the starting and ending nodes of each flow; according to the positions of the starting and ending nodes, the starting and ending coordinates of the SVG arrow are calculated; according to the flow data, the thickness of the SVG arrow is calculated.

4. The data processing method of the strategic mineral resources Sankey diagram according to claim 3 is characterized in that: Using SVG technology, according to the calculated coordinates and thickness, draw arrows representing the flow of materials. Specifically: create an SVG element, set the size and position of the SVG, and align it with the chart generated by ECharts; use SVG's path element to draw the body of the arrow according to the start and end point coordinates; use SVG's polygon element to draw the arrowhead; set the arrow's style, including color and transparency.

5. The data processing method of the strategic mineral resources Sankey diagram according to claim 4 is characterized in that: Seamlessly integrate the drawn SVG arrows and ECharts rectangle nodes to form a complete Sankey diagram, and add interactive functions, specifically: add SVG elements to the container where the ECharts chart is located; add mouse hover events to the SVG arrows to display detailed traffic information; Add click events to ECharts rectangle nodes to jump to the detailed report of the corresponding stage; create a control panel to allow users to dynamically adjust the display parameters of the Sankey diagram; Optimize and debug the generated Sankey diagram to ensure its performance and compatibility. Specifically: check the display effect of the Sankey diagram on different browsers and devices, and perform necessary compatibility processing; optimize the rendering performance of SVG arrows and ECharts nodes to ensure the smoothness of the chart; adjust the layout and style of the Sankey diagram to improve its readability and aesthetics.

6. A data processing system for a strategic mineral resource Sankey diagram, characterized in that: include: Module M1: Users enter the flow direction and quantity data of strategic mineral resources at different stages according to the Excel template provided by the system; Module M2: Users upload completed Excel files to the system through the system's backend management interface. The system adopts a user authority management mechanism to ensure the security of data upload. The uploaded Excel files are processed by the system's parsing module, and key data is extracted and stored in the database. At the same time, the original Excel files are also saved for subsequent viewing and downloading; Module M3: The system's data processing module calculates and integrates the stored strategic mineral resources MFA data to form a data structure that meets the requirements for drawing the Sankey diagram. When drawing the Sankey diagram, the system fully considers the characteristics of the MFA, including the material flow direction and quantity balance relationship at different stages, to ensure that the generated Sankey diagram accurately and intuitively reflects the material flow of strategic mineral resources; Module M4: The completed Sankey diagram is presented to the user through the front-end module of the system. At the same time, the system provides interactive functions. The user can obtain detailed data of a specific stage or flow direction, including mining volume, processing loss volume and recycling volume, by operating the mouse. Module M5: The system provides historical data management functions. Users can view and download historically uploaded Excel files, review and modify the data. When users upload new data files, the system automatically updates the Sankey diagram to ensure that the displayed material flow data is always kept up to date.

7. The data processing system of the strategic mineral resources Sankey diagram according to claim 6 is characterized in that: When drawing a Sankey diagram, first draw rectangular nodes, and use the ECharts library to draw rectangular nodes representing each material flow stage based on the prepared data. Specifically: initialize the ECharts instance and set the size and position of the chart; configure the ECharts series and data set, specify the position, size, and style attributes of the node; set the node's interactive functions, including displaying detailed information when the mouse hovers and clicking to jump; call the ECharts rendering function to generate rectangular nodes.

8. The data processing system of the strategic mineral resources Sankey diagram according to claim 7 is characterized in that: According to the position and size of the rectangular nodes generated by ECharts, the starting and ending coordinates of the SVG arrow are calculated. Specifically, the material flow data is traversed to obtain the starting and ending nodes of each flow; according to the positions of the starting and ending nodes, the starting and ending coordinates of the SVG arrow are calculated; according to the flow data, the thickness of the SVG arrow is calculated.

9. The data processing system of the strategic mineral resources Sankey diagram according to claim 8, characterized in that: Using SVG technology, according to the calculated coordinates and thickness, draw arrows representing the flow of materials. Specifically: create an SVG element, set the size and position of the SVG, and align it with the chart generated by ECharts; use SVG's path element to draw the body of the arrow according to the start and end point coordinates; use SVG's polygon element to draw the arrowhead; set the arrow's style, including color and transparency.

10. The data processing system of the strategic mineral resources Sankey diagram according to claim 9 is characterized in that: Seamlessly integrate the drawn SVG arrows and ECharts rectangle nodes to form a complete Sankey diagram, and add interactive functions, specifically: add SVG elements to the container where the ECharts chart is located; add mouse hover events to the SVG arrows to display detailed traffic information; Add click events to ECharts rectangle nodes to jump to the detailed report of the corresponding stage; create a control panel to allow users to dynamically adjust the display parameters of the Sankey diagram; Optimize and debug the generated Sankey diagram to ensure its performance and compatibility. Specifically: check the display effect of the Sankey diagram on different browsers and devices, and perform necessary compatibility processing; optimize the rendering performance of SVG arrows and ECharts nodes to ensure the smoothness of the chart; adjust the layout and style of the Sankey diagram to improve its readability and aesthetics.

Citation Information

Patent Citations

  • GIS-based real estate data visualization method

    CN113656489A

  • Data visualization analysis method

    CN114036220A

Cited By

  • Passenger flow data visualization method and system based on mulberry-based graph

    CN120525574A