Data processing method and system for strategic mineral resources sankey diagram

CN118733668BActive Publication Date: 2026-10-09SHANGHAI JIAOTONG UNIV
View PDF 3 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

然而该专利无法完全解决目前存在的技术问题,也无法满足本发明的需求

Benefits of technology

[0036] (1) This invention utilizes a data-driven digital twin model to construct a digital mirror of the material flow metabolism evolution of strategic mineral resources throughout their entire life cycle, enabling real-time monitoring and analysis of the spatiotemporal evolution patterns and dynamic indicators of mineral resources. This provides new technical means for the sustainable management and utilization of mineral resources, improves the level of precision in mineral resource management, realizes dynamic monitoring and comprehensive evaluation of the entire life cycle of mineral resources, and provides decision support for the sustainable utilization of mineral resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733668B_ABST
    Figure CN118733668B_ABST
Patent Text Reader

Abstract

The present application provides a kind of strategic mineral resources sink chart data processing method and system, comprising: step 1: user according to the Excel template provided by system, input strategic mineral resources in different stages of flow and quantity data;Step 2: the Excel file filled in is uploaded to system;Step 3: system calculates and integrates the stored strategic mineral resources MFA data, forms the data structure in accordance with the requirements of sink chart drawing;Step 4: the sink chart drawn is presented to user through the front end module of system;Step 5: system provides historical data management function, user checks and downloads the Excel file uploaded historically, and reviews and modifies data.The present application realizes real-time monitoring and analysis of the spatio-temporal evolution law and dynamic index of mineral resources, provides a new technical means for sustainable management and utilization of mineral resources, and improves the fine level of mineral resources management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of strategic mineral resource data processing technology, specifically to a data processing method and system for Sankey maps of strategic mineral resources. Background Technology

[0002] Existing products lack flexible data processing capabilities when handling material flow data of different formats and structures. This results in cumbersome data preparation and preprocessing processes, making it difficult to quickly adapt to the analytical needs of different scenarios.

[0003] While existing products offer some visualization capabilities, there is still room for improvement in terms of visual impact and clarity of information delivery. The aesthetics and readability of charts need to be enhanced to better attract and retain users' attention.

[0004] Some existing products exhibit issues with information distortion or omission when displaying the direction and flow rate of materials. This affects the accuracy and reliability of analytical results and may lead to biased decision-making.

[0005] The existing products have relatively simple interactive functions and lack the ability to attract users to explore and analyze data. Users find it difficult 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, making it difficult to meet users' needs for flexible adjustments to chart displays. This limits users' ability to optimize visualizations according to their preferences and requirements.

[0007] Some existing products have insufficient compatibility across different browsers and devices, affecting their accessibility and usability. Users may encounter display errors, interactive malfunctions, and other issues, reducing user satisfaction.

[0008] When faced with large-scale and complex material flow data, the rendering performance and interactive smoothness of existing products still have room for improvement. When the data volume is large, performance issues such as stuttering and latency may occur, affecting the user's analysis experience.

[0009] The architecture and code design of existing products may have issues such as high coupling and insufficient modularity, making subsequent maintenance and feature expansion more difficult. This limits the product's iteration speed and its ability to adapt to market changes.

[0010] While the basic principles of MFA are universal, the adaptability of existing products to data from different domains in practical applications still needs further verification. When facing new application scenarios, the product may require significant customization and adjustments.

[0011] Patent document CN114943454A discloses a SaaS cloud data service platform based on mining big data, including: a big data center module for acquiring mining information data collected by terminal devices; a data processing and analysis module for processing the mining information data using RPA technology and sending the processed mining information data to the big data center module for distributed storage; a service application module for initializing container resources of the processed mining information data to obtain initialization data, and reading the initialization data into the backend management platform for reading by the backend management platform and external supervision; and a backend business engine module for providing support for various businesses using a BPM engine and preset mapping rules. However, this patent cannot completely solve the existing technical problems, nor can it meet the needs of this invention. Summary of the Invention

[0012] To address the shortcomings of existing technologies, the purpose of this invention is to provide a data processing method and system for Sankey maps of strategic mineral resources.

[0013] The data processing method for the strategic mineral resource Sankey map provided by the present invention includes:

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

[0015] Step 2: Users upload the completed Excel file to the system through the system's backend management interface. The system adopts a user permission management mechanism to ensure the security of data upload. The uploaded Excel file is processed by the system's parsing module to extract key data and store it in the database. At the same time, the original Excel file is also saved for later viewing and download.

[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 Sankey diagram drawing. When drawing the Sankey diagram, the system fully considers the characteristics of MFA, including the direction of material flow and quantity balance 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 system's front-end module. At the same time, the system provides interactive functions, allowing users to obtain detailed data on specific stages or flows through mouse operations, including mining volume, processing loss volume, and recycling volume.

[0018] Step 5: The system provides historical data management functions, allowing users to view and download previously uploaded Excel files, review and modify the data. When a user uploads a new data file, the system automatically updates the Sankey diagram to ensure that the displayed material flow data is always up-to-date.

[0019] Preferably, when drawing the Sankey diagram, rectangular nodes are drawn first. Using the ECharts library, rectangular nodes representing each stage of material flow are drawn based on the prepared data. Specifically, this involves: initializing an ECharts instance and setting the size and position of the chart; configuring the ECharts series and dataset, specifying the position, size, and style attributes of the nodes; setting the interactive functions of the nodes, including displaying detailed information on mouse hover and jumping to the next page on click; and calling the ECharts rendering function to generate the rectangular nodes.

[0020] Preferably, the starting and ending coordinates of the SVG arrow are calculated based on the position and size of the rectangular nodes generated by ECharts. Specifically, the material flow data is traversed to obtain the starting and ending nodes of each flow; the starting and ending coordinates of the SVG arrow are calculated based on the position of the starting and ending nodes; and the thickness of the SVG arrow is calculated based on the flow data.

[0021] Preferably, using SVG technology, arrows representing material flow are drawn based on calculated coordinates and thickness. Specifically, this involves: creating SVG elements, setting the size and position of the SVG to align with the chart generated by ECharts; using the SVG path element to draw the body of the arrow based on the coordinates of the start and end points; using the SVG polygon element to draw the arrowhead; and setting the style of the arrow, including its color and transparency.

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

[0023] The generated Sankey diagram was optimized and debugged to ensure its performance and compatibility. Specifically, the display effect of the Sankey diagram on different browsers and devices was checked, and necessary compatibility processing was performed; the rendering performance of SVG arrows and ECharts nodes was optimized to ensure the smoothness of the chart; and the layout and style of the Sankey diagram were adjusted to improve its readability and aesthetics.

[0024] The data processing system for the strategic mineral resource Sankey map provided by the present invention includes:

[0025] Module M1: Users enter the flow 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 permission management mechanism to ensure the security of data upload. The uploaded Excel file is processed by the system's parsing module to extract key data and store it in the database. At the same time, the original Excel file is also saved for later viewing and download.

[0027] Module M3: The system's data processing module calculates and integrates the stored strategic mineral resource (MFA) data to form a data structure that meets the requirements for Sankey diagram drawing. When drawing the Sankey diagram, the system fully considers the characteristics of MFA, including the direction of material flow and quantity balance 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 system's front-end module. At the same time, the system provides interactive functions, allowing users to obtain detailed data on specific stages or flows through mouse operations, including mining volume, processing loss volume, and recycling volume.

[0029] Module M5: The system provides historical data management functions, allowing users to view and download previously uploaded Excel files, review and modify the data. When a user uploads a new data file, the system automatically updates the Sankey diagram to ensure that the displayed material flow data is always up-to-date.

[0030] Preferably, when drawing the Sankey diagram, rectangular nodes are drawn first. Using the ECharts library, rectangular nodes representing each stage of material flow are drawn based on the prepared data. Specifically, this involves: initializing an ECharts instance and setting the size and position of the chart; configuring the ECharts series and dataset, specifying the position, size, and style attributes of the nodes; setting the interactive functions of the nodes, including displaying detailed information on mouse hover and jumping to the next page on click; and calling the ECharts rendering function to generate the rectangular nodes.

[0031] Preferably, the starting and ending coordinates of the SVG arrow are calculated based on the position and size of the rectangular nodes generated by ECharts. Specifically, the material flow data is traversed to obtain the starting and ending nodes of each flow; the starting and ending coordinates of the SVG arrow are calculated based on the position of the starting and ending nodes; and the thickness of the SVG arrow is calculated based on the flow data.

[0032] Preferably, using SVG technology, arrows representing material flow are drawn based on calculated coordinates and thickness. Specifically, this involves: creating SVG elements, setting the size and position of the SVG to align with the chart generated by ECharts; using the SVG path element to draw the body of the arrow based on the coordinates of the start and end points; using the SVG polygon element to draw the arrowhead; and setting the style of the arrow, including its color and transparency.

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

[0034] The generated Sankey diagram was optimized and debugged to ensure its performance and compatibility. Specifically, the display effect of the Sankey diagram on different browsers and devices was checked, and necessary compatibility processing was performed; the rendering performance of SVG arrows and ECharts nodes was optimized to ensure the smoothness of the chart; and the layout and style of the Sankey diagram were adjusted to improve its readability and aesthetics.

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

[0036] (1) This invention utilizes a data-driven digital twin model to construct a digital mirror of the material flow metabolism evolution of strategic mineral resources throughout their entire life cycle, enabling real-time monitoring and analysis of the spatiotemporal evolution patterns and dynamic indicators of mineral resources. This provides new technical means for the sustainable management and utilization of mineral resources, improves the level of precision in mineral resource management, realizes dynamic monitoring and comprehensive evaluation of the entire life cycle of mineral resources, and provides decision support for the sustainable utilization of mineral resources.

[0037] (2) This invention comprehensively utilizes technologies such as the Internet of Things, big data, and cloud computing to support various forms of data collection and fusion, including locally uploaded data, third-party data, and sensor-collected data. It realizes the fusion application of multi-source heterogeneous data, expands data sources, improves the comprehensiveness and accuracy of data, and provides more reliable data support for mineral resource management.

[0038] (3) This invention utilizes technologies such as the Internet of Things and sensors to monitor the material flow of all links in the entire mineral resource industry chain in real time, including the stages of mining, processing, transportation, consumption, and recycling. It realizes 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, which helps to optimize industrial layout and improve resource utilization efficiency.

[0039] (4) Based on the data-driven digital twin model, this invention constructs a dynamic indicator evaluation system for strategic key mineral resources. It comprehensively considers factors such as mineral resource reserves, grade, mining conditions, and market demand, providing decision support for the development and utilization of mineral resources. It provides comprehensive evaluation and decision support functions for mineral resources, and provides a scientific basis for the rational development and sustainable utilization of mineral resources. It helps to improve the scientific and refined level of mineral resource management. Attached Figure Description

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

[0041] Figure 1 A diagram illustrating the detailed steps for uploading an Excel file to the backend management system;

[0042] Figure 2 This diagram illustrates the specific steps involved in processing data for a Sankey diagram. Detailed Implementation

[0043] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but do not limit the invention in any way. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all fall within the protection scope of the present invention.

[0044] Example 1

[0045] This system adopts a "1+1+N" model, namely 1 big data center + 1 data visualization management and service platform + N application services, to build a comprehensive assessment and decision support service system for strategic key mineral resources. The system consists of a material flow visualization system, a dynamic monitoring system for material flow across the entire industry chain, a comprehensive resource assessment system, a database and model function call system, and a user management and access control system, and adopts a four-layer architecture (acquisition layer, data layer, application layer, and presentation layer).

[0046] This system utilizes a data-driven digital twin model to model, observe, and study the spatiotemporal evolution patterns and dynamic indicator evaluation systems of six energy-type, 14 metal, and four non-metal strategic key mineral resources. By constructing a digital mirror of the material flow and metabolic evolution throughout the entire life cycle of strategic mineral resources, it provides comprehensive big data assessment and decision support services for strategic key mineral resources.

[0047] This system comprehensively utilizes software and hardware technologies such as digital twins, cloud computing, the Internet of Things, big data, and terminal intelligent sensors to fully perceive the characteristic data of minerals at different stages, from upstream mining to intermediate products and even final products and waste recycling. By modeling, it connects the physical space and digital space of industrial plants to generate digital twins, discovers deep-seated relationships, and realizes a digital mirror of the real world.

[0048] System functional modules

[0049] 1. Data Acquisition and Processing

[0050] This system supports the collection of data from various mineral resources in different formats, including locally uploaded data, data acquired from third parties, and data collected by AI cameras and other mainstream IoT sensors. The system integrates efficient and highly compatible data acquisition and sensor acquisition solutions, providing hardware and software support for data sources. The data layer is reliable and secure, includes flexible data retrieval modes, and provides a digital space for realizing data-driven digital twins.

[0051] 2. Material Flow Visualization System

[0052] By constructing a digital mirror of the metabolic evolution of material flow throughout the entire life cycle of strategic mineral resources, we can achieve a visual display of the material flow of mineral resources and intuitively present information such as the spatiotemporal distribution, flow path, and transformation process of mineral resources.

[0053] 3. Dynamic monitoring system for material flow throughout the entire industrial chain

[0054] By utilizing technologies such as the Internet of Things and sensors, the flow of materials in all stages of the mineral resource industry chain can be monitored in real time, including mining, processing, transportation, consumption, and recycling, providing data support for mineral resource management.

[0055] 4. Resource Comprehensive Assessment System

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

[0057] 5. Database and Model Function Call System

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

[0059] 6. User Management and Access Control System

[0060] Implement user registration, login, and permission management functions to ensure the secure operation of the system.

[0061] The system serves as the landing point for the dynamic monitoring system of material flow across the entire industry chain, the comprehensive resource assessment system, and model function calls, providing insights into every stage, scenario, and change in mineral resource development. The system offers multiple data visualization interfaces, supports cross-terminal access, and displays resource distribution diagrams, resource import / export diagrams, and spatiotemporal evolution diagrams of mineral resources.

[0062] The data processing function of the Sankey diagram in this invention's Strategic Critical Mineral Resources Comprehensive Assessment and Decision Support Service System is specifically designed for the study of strategic mineral resources. It employs Material Flow Analysis (MFA) to describe and quantify the flow and transformation processes of strategic mineral resources at each stage of mining, processing, use, and disposal. This reveals the sources, destinations, and changes in stock of strategic mineral resources, providing crucial information for relevant decision-making. The system includes the following steps:

[0063] 1. Data Preparation: Users enter data on the flow and quantity of strategic mineral resources at different stages using the Excel template provided by the system. The Excel template is designed to fully consider the data requirements of MFA, such as the type of mineral resources, mining volume, processing volume, usage volume, waste volume, and recycling volume, ensuring 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 employs a strict user access control mechanism to ensure the security of data uploads. The uploaded Excel files are processed by the system's parsing module, extracting key data and storing it in the database. Simultaneously, the original Excel file is also saved for later viewing and download.

[0065] 3. Data Processing and Sankey Diagram Drawing: The system's data processing module calculates and integrates the stored strategic mineral resource (MFA) data to form a data structure that meets the requirements for Sankey diagram drawing. When drawing the Sankey diagram, the system fully considers the characteristics of MFA, such as the direction of material flow and quantity balance relationships at different stages, ensuring that the generated Sankey diagram accurately and intuitively reflects the material flow of strategic mineral resources.

[0066] 4. Front-end Display and Interaction: The completed Sankey diagram is presented to users through the system's front-end module. Users can intuitively see the complete flow of strategic mineral resources from mining to disposal, understanding the quantity changes and destinations at different stages. Simultaneously, the system provides rich interactive functions, allowing users to obtain detailed data for specific stages or flows through mouse operations, such as mining volume, processing losses, and recycling volume, facilitating in-depth analysis.

[0067] 5. Historical Data Management: The system provides comprehensive historical data management functions, allowing users to easily view and download previously uploaded Excel files for data review and modification. When a user uploads a new data file, the system automatically updates 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, stock, and start, end, and flow rates of each material flow stage. Typically, this data is stored in JSON or CSV format.

[0070] 2. Draw rectangular nodes. Using the ECharts library, draw rectangular nodes representing each stage of the material flow 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 dataset, specifying the position, size, style, and other attributes of the nodes.

[0073] c) Configure interactive features for nodes, such as displaying detailed information on mouse hover and jumping to other nodes on click.

[0074] d) Call ECharts' rendering function to generate rectangle nodes.

[0075] 3. Calculate the arrow coordinates. Based on the position and size of the rectangle node generated by ECharts, calculate the start and end coordinates of the SVG arrow.

[0076] a) Traverse the material flow data to 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 arrows based on the traffic data.

[0079] 4. Draw SVG arrows. Using SVG technology, draw arrows representing the flow of matter 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 the SVG path element to draw the body of the arrow based on the coordinates of the start and end points.

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

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

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

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

[0086] b) Add a mouse hover event to the SVG arrow 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 of Sankey diagrams on different browsers and devices, and perform necessary compatibility processing.

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

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

[0093] Example 2

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

[0095] The implementation method of data processing for the Sankey diagram in the strategic critical mineral resource comprehensive assessment and decision support service system of this invention is as follows: Figure 1 and Figure 2 As shown below, Figure 1 and Figure 2 Detailed explanation:

[0096] 1. Users access the backend management system through a browser. After entering their username and password, their identity is authenticated. User identities include system administrator, administrator, and element account. Once authentication is successful, users can access the backend management system to perform subsequent operations.

[0097] 2. After logging into the corresponding element account, users can upload the corresponding Excel file to the Strategic Mineral Resources Spatiotemporal Evolution System. The backend system will validate the format of the Excel file. If the validation passes, the Excel file will be stored on the server, and the data obtained from the Excel file will be parsed and stored in the MySQL database. If the validation fails, the user will be prompted to re-upload the file, and a modification prompt will be provided.

[0098] 3. Users can select previously uploaded versions from the history to download, ensuring data accuracy.

[0099] 4. When users access the front-end display system in their 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 will understand that, in addition to implementing the system, apparatus, and their modules provided by this invention in purely computer-readable program code, the same program can be implemented 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, apparatus, and their modules provided by this invention can be considered a hardware component, and the modules included therein for implementing various programs can also be considered structures within the hardware component; alternatively, modules for implementing various functions can be considered both software programs implementing the method and structures within the hardware component.

[0101] Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. Unless otherwise specified, the embodiments and features described in this application can be arbitrarily combined with each other.

Claims

1. A data processing method for a Sankey map of strategic mineral resources, characterized in that, include: Step 1: Users enter the flow and quantity data of strategic mineral resources at different stages according to the Excel template provided by the system; Step 2: Users upload the completed Excel file to the system through the system's backend management interface. The system adopts a user permission management mechanism to ensure the security of data upload. The uploaded Excel file is processed by the system's parsing module to extract key data and store it in the database. At the same time, the original Excel file is also saved for later viewing and download. 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 Sankey diagram drawing. When drawing the Sankey diagram, the system fully considers the characteristics of MFA, including the direction of material flow and quantity balance 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 system's front-end module. At the same time, the system provides interactive functions, allowing users to obtain detailed data on specific stages or flows through mouse operations, including mining volume, processing loss volume, and recycling volume. Step 5: The system provides historical data management functions, allowing users to view and download previously uploaded Excel files, review and modify the data. When a user uploads a new data file, the system automatically updates the Sankey diagram to ensure that the displayed material flow data is always up-to-date. When drawing a Sankey diagram, first draw rectangular nodes. Using the ECharts library, draw rectangular nodes representing each stage of material flow based on the prepared data. Specifically: initialize an ECharts instance and set the size and position of the chart; configure the ECharts series and dataset, specifying the position, size, and style attributes of the nodes; set the interactive functions of the nodes, including displaying detailed information on mouse hover and jumping to the next page on click. Call ECharts' rendering function to generate rectangle nodes; Based on the position and size of the rectangular nodes generated by ECharts, the start and end coordinates of the SVG arrows are calculated. Specifically, the material flow data is traversed to obtain the start and end nodes of each flow; the start and end coordinates of the SVG arrows are calculated based on the positions of the start and end nodes; and the thickness of the SVG arrows is calculated based on the flow data. Using SVG technology, arrows representing material flow are drawn based on calculated coordinates and thickness. Specifically, this involves: creating SVG elements, setting the size and position of the SVG to align with the chart generated by ECharts; using SVG path elements to draw the body of the arrow based on the coordinates of the start and end points; using SVG polygon elements to draw the arrowhead; and setting the style of the arrow, including its color and transparency. Seamlessly integrate the drawn SVG arrows and ECharts rectangle nodes to form a complete Sankey diagram, and add interactive features, specifically: add the SVG elements to the container where the ECharts chart is located; add mouse hover events to the SVG arrows to display detailed flow 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; The generated Sankey diagram was optimized and debugged to ensure its performance and compatibility. Specifically, the display effect of the Sankey diagram on different browsers and devices was checked, and necessary compatibility processing was performed; the rendering performance of SVG arrows and ECharts nodes was optimized to ensure the smoothness of the chart; and the layout and style of the Sankey diagram were adjusted to improve its readability and aesthetics.

2. A data processing system for a strategic mineral resource Sankey map, characterized in that, include: Module M1: Users enter the flow 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 permission management mechanism to ensure the security of data upload. The uploaded Excel file is processed by the system's parsing module to extract key data and store it in the database. At the same time, the original Excel file is also saved for later viewing and download. Module M3: The system's data processing module calculates and integrates the stored strategic mineral resource (MFA) data to form a data structure that meets the requirements for Sankey diagram drawing. When drawing the Sankey diagram, the system fully considers the characteristics of MFA, including the direction of material flow and quantity balance 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 system's front-end module. At the same time, the system provides interactive functions, allowing users to obtain detailed data on specific stages or flows through mouse operations, including mining volume, processing loss volume, and recycling volume. Module M5: The system provides historical data management functions, allowing users to view and download previously 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 up-to-date. When drawing a Sankey diagram, first draw rectangular nodes. Using the ECharts library, draw rectangular nodes representing each stage of material flow based on the prepared data. Specifically: initialize an ECharts instance and set the size and position of the chart; configure the ECharts series and dataset, specifying the position, size, and style attributes of the nodes; set the interactive functions of the nodes, including displaying detailed information on mouse hover and jumping to the next page on click. Call ECharts' rendering function to generate rectangle nodes; Based on the position and size of the rectangular nodes generated by ECharts, the start and end coordinates of the SVG arrows are calculated. Specifically, the material flow data is traversed to obtain the start and end nodes of each flow; the start and end coordinates of the SVG arrows are calculated based on the positions of the start and end nodes; and the thickness of the SVG arrows is calculated based on the flow data. Using SVG technology, arrows representing material flow are drawn based on calculated coordinates and thickness. Specifically, this involves: creating SVG elements, setting the size and position of the SVG to align with the chart generated by ECharts; using SVG path elements to draw the body of the arrow based on the coordinates of the start and end points; using SVG polygon elements to draw the arrowhead; and setting the style of the arrow, including its color and transparency. Seamlessly integrate the drawn SVG arrows and ECharts rectangle nodes to form a complete Sankey diagram, and add interactive features, specifically: add the SVG elements to the container where the ECharts chart is located; add mouse hover events to the SVG arrows to display detailed flow 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; The generated Sankey diagram was optimized and debugged to ensure its performance and compatibility. Specifically, the display effect of the Sankey diagram on different browsers and devices was checked, and necessary compatibility processing was performed; the rendering performance of SVG arrows and ECharts nodes was optimized to ensure the smoothness of the chart; and the layout and style of the Sankey diagram were adjusted to improve its readability and aesthetics.

Citation Information

Patent Citations

  • SaaS cloud data service platform based on mining industry big data

    CN114943454A

  • GIS-based real estate data visualization method

    CN113656489A

  • Data visualization analysis method

    CN114036220A