Water conservancy chart customization display system

By providing a customized display system for water conservancy charts, the existing water conservancy chart development system is solved, the problems of complex operation, high difficulty in use and poor reusability are achieved, and the customized development and display of water conservancy charts are improved, and the popularization of the system and user acceptance are improved. reduces development costs.

CN119493824APending Publication Date: 2025-02-21BEIJING HUITU INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411519515.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

The existing water conservancy chart development system is complex in operation, difficult to use, and poor reusability, resulting in a high repetitive development rate of function, increasing development costs, and affecting project development progress.

Method used

Provide a custom display system for water conservancy charts, including data modules, application modules and display modules. Through chart type setting components, chart attribute setting components, chart generation components, visual interface display components and chart customization components, realizing the customization of water conservancy charts. Chemical development and display.

Benefits of technology

The customized development of water conservancy charts has been realized, which has reduced users' requirements for professional knowledge and skills, improved the popularity of the system and user acceptance, reduced the repeated development of functions, and reduced development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119493824A_ABST
    Figure CN119493824A_ABST
Patent Text Reader

Abstract

The invention relates to a water conservancy chart customized display system, belongs to the technical field of data visualization, and solves the problems of complex operation, high use difficulty and poor reusability of a water conservancy chart development system in the prior art. The data module is used for storing various water conservancy data; the application module comprises a chart type setting component, a chart attribute setting component and a chart generation component; the display module comprises a visual interface display component and a chart customization component; wherein the chart type setting component is used for selecting the type of a to-be-generated chart, the chart attribute setting component is used for setting the display format of X-axis and Y-axis data of the to-be-generated chart, the chart generation component is used for generating a water conservancy chart, and the visual interface display component is used for displaying the generated water conservancy chart; and the chart customization component is used for performing customization operation on the generated water conservancy chart and displaying an execution result of the customization operation on the visual interface display component. The development requirements of different users on the water conservancy chart can be met, and the operability and reusability of the users are 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 data visualization, and in particular to a customized display system for water conservancy charts. Background Art

[0002] A chart visualization system is a software tool used to convert data into graphics or images, which can help users understand the meaning behind the data more intuitively. There are many popular chart visualization systems on the market, such as Echarts, DataEase, SmartChart, and Alibaba Cloud Cloud Charts.

[0003] However, the existing diagram visualization system cannot realize the customized development of water conservancy diagrams for the following reasons: (1) At present, the application standards of water conservancy diagram development systems are not unified among different industries and enterprises, which has affected the promotion and application of the system to a certain extent; (2) Water conservancy diagram development systems may require users to have certain professional knowledge and skills to use them effectively. New users may need some time to familiarize themselves with the software interface and functions, which may affect the popularity of the system and user acceptance; (3) For the simulation and calculation of complex structures, some water conservancy diagram development systems may require additional plug-in support. In addition, when facing the business needs of water conservancy diagrams in different projects, developers need to develop the same business needs, which leads to a high rate of repeated functional development, increases development costs, and can affect the progress of project development, ultimately causing sustainable development problems. Summary of the invention

[0004] In view of the above analysis, an embodiment of the present invention aims to provide a customized display system for water conservancy charts, so as to solve the problems of complex operation, high difficulty in use and poor reusability of existing water conservancy chart development systems.

[0005] The embodiment of the present invention provides a water conservancy chart customized display system, including: a data module for storing various water conservancy data; an application module, including a chart type setting component, a chart attribute setting component, and a chart generation component; a display module, including a visual interface display component and a chart customization component; wherein,

[0006] The chart type setting component is used to select the type of chart to be generated, the chart attribute setting component is used to set the display format of the X and Y axis data of the chart to be generated, the chart generation component generates a water conservancy chart based on the selected chart type and the set X and Y axis data display format, and the water conservancy data read from the data module, and the visual interface display component is used to display the generated water conservancy chart;

[0007] The chart customization component is used to perform customization operations on the generated water conservancy chart, and display the execution results of the customization operations on the visualization interface display component.

[0008] Based on the further improvement of the above system, the chart customization component includes:

[0009] The default data display subcomponent, after clicking this subcomponent, click anywhere on the generated water conservancy chart, even if there is no corresponding data in the data module at the current click position, the X-axis scale value and Y-axis scale value corresponding to the current click position can be displayed;

[0010] Same as the flow water level display subcomponent, after clicking this subcomponent, click any position on the generated water conservancy chart, based on the water level at the currently selected position, all X-axis coordinate values ​​corresponding to the water level in the current water conservancy chart can be displayed at the selected position;

[0011] Synthetic flow display subcomponent. After clicking this subcomponent, click any position on the generated water conservancy chart to display the Y-axis scale value corresponding to each curve at the currently selected position.

[0012] The flood volume display subcomponent is used for the water level flow process line. After clicking on the subcomponent, you can use the mouse to select an area on the visual interface display component to obtain the total flow corresponding to the area.

[0013] Based on further improvements of the above system, the display format of the X-axis includes: time display format, the time display format includes the minimum scale value of the X-axis and the maximum scale value of the X-axis, the minimum scale value of the X-axis and the maximum scale value of the X-axis are determined based on business needs, and the display format of the minimum scale value of the X-axis is year-month-day hour-minute-second, year-month-day hour-minute or year-month-day hour.

[0014] Based on further improvement of the above system, the time display format also includes after determining the display format value of the minimum scale value of the X-axis, the remaining scale values ​​on the X-axis only display the part that is different from the numerical value of the minimum scale value of the X-axis in time format.

[0015] Based on the further improvement of the above system, the display format of the Y axis includes:

[0016] Y-axis maximum scale value, starting point value, Y-axis starting point limit value, step value, preset minimum step value, segment value;

[0017] The starting point value supports custom settings of external input, and the default value is 0;

[0018] The Y-axis starting point limit value supports custom settings of external input, and the default value is 0;

[0019] The step value supports custom settings of external input;

[0020] The preset minimum step size supports custom configuration of external input, and the default value is 0;

[0021] The segment value includes a default segment value or a custom configuration input externally, and the default segment value is 6.

[0022] Based on the further improvement of the above system, the chart generation component generates a water conservancy chart based on the data read by the data module, including:

[0023] A1: Read the business data corresponding to the business requirements from the data module, the business data is (X i , Y i ), X i is time, Y i For X i The corresponding actual value, i = 1, 2, 3, ..., N;

[0024] A2: If each Y in the business data i The actual values ​​of are the same. If they are the same, perform the following steps:

[0025] Determine whether the step value is entered. If it is entered, the input is used as the Y-axis step value. If it is not entered, Step = Y i / The number of digits corresponding to the integer part of 10 is taken as the step value, where Step is the step value;

[0026] Determine whether to enter a starting point value. If a starting point value is entered, the starting point value is used as the initial value of the Y-axis data. If no starting point value is entered, As the initial value of the Y-axis data, and determine whether the FirstPoint is less than the Y-axis starting point limit value, if so, the Y-axis starting point limit value is used as the initial value of the Y-axis data;

[0027] If they are not the same, go to step A3;

[0028] A3: If Y in the business data i If there are different actual values, perform the following steps:

[0029] Determine whether to enter a starting point value. If you enter a starting point value, the input value will be used as the initial value of the Y-axis data; if you do not enter a starting point value, As the initial value of the Y-axis data, and determine the Is it less than the Y-axis starting point limit value? If so, the Y-axis starting point limit value is used as the initial value of the Y-axis data. Min is the X value in the business data. i The minimum value of

[0030] If the difference between adjacent scale values ​​on the Y-axis is limited to 5 or a multiple of 5, the step value is calculated as follows:

[0031]

[0032] Among them, Num is the segment value, Max is the Y in the business data i The maximum value of Step is converted to A*10 n In the numerical form, given the second numerical set {1, 1.5, 2.5, 5, 10}, take the two elements closest to A from the second numerical set as the candidate step values, and bring them into Get NumNew1 and NumNew2, compare |NumNew1-Num| and |NumNew2-Num|, take NumNew corresponding to the minimum value as the optimal number of segments, and obtain the corresponding optimal step value, determine the size of the optimal step value and the preset minimum step value, if less than, take the preset minimum step value as the optimal step value, and calculate the Y-axis scale value, otherwise, calculate the Y-axis scale value with the optimal number of segments and the optimal step value;

[0033] A4: According to the above (X i , Y i ), the step value, the initial value of the Y-axis data, or according to the (X i , Y i ), the initial value of the Y-axis data, the optimal number of segments and the optimal step value generate a water conservancy chart.

[0034] Based on the further improvement of the above system, if FirstPoint is greater than the Y-axis starting point limit, the initial value of the Y-axis data is calculated as follows:

[0035] B1: Calculate the minimum outsourcing scale number Calculate the maximum outsourcing scale number Y min is the minimum value of the business data center Yi, Y max The business data center Y i The maximum value of To round down, To round up;

[0036] B2: If (minVal+maxVal) / 2<Num / 2, the number of segments needs to be updated. The new number of segments is:

[0037]

[0038] Otherwise, there is no need to update the number of segments;

[0039] B3: Calculate the new starting point value FirstPointNew=FirstPoint-Step*NumNew. If FirstPointNew is greater than the Y-axis starting point limit value, FirstPointNew is used as the initial value of the Y-axis data.

[0040] Based on the further improvement of the above system, the default data display subcomponent obtains the Y-axis value at the selected position through the following steps: the currently selected X-axis scale is X i , read from the database module (X i-1 , Y i-1 )、(X i+1 , Y i+1 ), based on the interpolation algorithm to obtain X i The corresponding Y i ;

[0041] The same flow water level display subcomponent obtains the X-axis value with the same flow at the selected position through the following steps: obtain the currently selected water level data Y target The water conservancy chart customized display system will automatically generate a Y value of Y target And parallel to the X-axis, if there is a Y j Equal to Y target , then directly record the corresponding X j Otherwise, read the interval Y corresponding to each intersection point i and Y i+1 , then use the interpolation method to obtain the current Y target The corresponding X tar , the calculated X tar and recorded X j Displayed on hydraulic charts;

[0042] The synthetic flow display subcomponent obtains the flow value on each flow curve at the selected position through the following steps: for each flow curve, determine whether there is a flow corresponding to the selected X-axis scale in the current data module, if so, read it directly, if not, calculate it through interpolation, and finally display the flow corresponding to each flow curve at the X-axis scale;

[0043] The flood display subcomponent obtains the total flow corresponding to the frame selection area through the following steps: obtaining the left endpoint (X left , Y left ), right endpoint (X right , Y right ), the upper boundary of the current selection range is the curve between the left and right endpoints, the lower boundary is the X axis, and the left boundary is X=X left , the right boundary is X=X rightThe formed area is divided into multiple quadrilaterals based on the current selection range of the X-axis step, and the areas of multiple quadrilaterals are calculated. The sum of the areas of all quadrilaterals is the flood volume corresponding to the current selection range.

[0044] Based on the further improvement of the above system, the interpolation method is:

[0045]

[0046] Among them, Xtarget and Ytarget are the interpolated values, Xafter and Yafter are the values ​​of the next coordinate point adjacent to the currently selected position, and Xfront and Yfront are the values ​​of the previous coordinate point adjacent to the currently selected position.

[0047] Based on the further improvement of the above system, the chart customization component also includes: a coaxial display subcomponent, after clicking the subcomponent, the other X-axis or Y-axis can be set to have the same scale value as the X-axis or Y-axis displayed in the current water conservancy chart;

[0048] The chart type setting component also includes a cross-sectional infiltration line diagram, which supports displaying the current water level, seepage pressure water level, infiltration line, and flood season water level. The starting point of the infiltration line is the intersection of the current water level and the dam crest elevation, and the vertices of each seepage pressure water level are connected by a dotted line. The end point is the intersection of the extension line of the seepage pressure water level line and the dam crest elevation.

[0049] The chart customization component also includes: a three-dimensional pie chart display subcomponent, which displays three-dimensional pie charts with different inner diameter sizes based on the inner diameter ratio parameter.

[0050] Compared with the prior art, the present invention can achieve at least one of the following beneficial effects:

[0051] 1. The present invention provides a customized display system for water conservancy charts, and develops corresponding customized functions based on different water conservancy charts, such as water level display with the same flow rate, display of synthetic flow rate, etc., which can meet the development needs of different users for water conservancy charts.

[0052] 2. The present invention provides a customized display system for water conservancy charts and provides data display methods for X-axis and Y-axis, which can meet the needs of different users for water conservancy data; and by judging the relationship between the starting value and the limit value, the chart to be displayed is located in the middle area, so that data can be obtained more clearly and quickly.

[0053] 3. The present invention provides a customized display system for water conservancy charts, which encapsulates the commonly used functions in water conservancy charts. Users can directly select corresponding functions through a visual interface, thereby improving user operability and reusability.

[0054] In the present invention, the above-mentioned technical solutions can also be combined with each other to achieve more preferred combination solutions. Other features and advantages of the present invention will be described in the subsequent description, and some advantages can become obvious from the description, or can be understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained through the contents particularly pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The accompanying drawings are only used for the purpose of illustrating specific embodiments and are not to be considered as limiting the present invention. In the entire drawings, the same reference symbols represent the same components;

[0056] Figure 1 An example diagram of a customized display system for water conservancy diagrams in an embodiment;

[0057] Figure 2 This is an example diagram of a display method of X-axis scale values ​​in an embodiment;

[0058] Figure 3 is an example diagram of a cross-sectional infiltration line diagram in an embodiment;

[0059] Figure 4 An exemplary diagram of an implementation of a coaxial display subassembly according to an embodiment;

[0060] Figure 5 An exemplary diagram of another implementation of a coaxial display subassembly of an embodiment is provided. DETAILED DESCRIPTION

[0061] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.

[0062] A specific embodiment of the present invention discloses a customized display system for water conservancy charts, such as Figure 1 As shown, including:

[0063] The data module is used to store various water conservancy data; the application module includes a chart type setting component, a chart property setting component, and a chart generation component; the display module includes a visual interface display component and a chart customization component; among them,

[0064] The chart type setting component is used to select the type of chart to be generated, the chart attribute setting component is used to set the display format of the X and Y axis data of the chart to be generated, the chart generation component generates a water conservancy chart based on the selected chart type and the set X and Y axis data display format, and the water conservancy data read from the data module, and the visual interface display component is used to display the generated water conservancy chart;

[0065] The chart customization component is used to perform customization operations on the generated water conservancy chart, and display the execution results of the customization operations on the visualization interface display component.

[0066] For the data module, a relational database such as MySQL, PostgreSQL, OracleDatabase, SQLServer, etc. can be used, or a non-relational database such as MongoDB, Cassandra, Redis, Couchbase, etc. can be used. The present invention does not limit the type of database here, as long as the selected database can store water conservancy data.

[0067] Water conservancy data refers to various data related to the management, protection, utilization and planning of water resources. These data types are extensive, including but not limited to the following:

[0068] (1) Infrastructure status monitoring data: This type of data involves real-time status monitoring data of water conservancy infrastructure such as reservoirs, dams, levees, and irrigation systems, including parameters such as water level, flow, seepage, and deformation.

[0069] (2) Maintenance record data, which records the daily maintenance, upkeep and repair activities of water conservancy facilities, including information such as equipment failures, maintenance time, and maintenance personnel.

[0070] (3) Design and construction data, including design drawings, construction progress, material lists, and quality acceptance reports of water conservancy projects, which provide reference for subsequent operation, maintenance, and management.

[0071] (4) Hydrometeorological data, including observation data of meteorological elements such as precipitation, temperature, humidity, wind speed and wind direction, as well as observation data of hydrological elements such as water level, flow and sediment content.

[0072] (5) Water quality monitoring data, including conventional water quality monitoring data (such as pH value, dissolved oxygen, chemical oxygen demand, ammonia nitrogen, etc.) and special pollutant monitoring data, as well as biological monitoring data.

[0073] (6) Water management data, including water resource dispatch data, water rights management data, water project management data, etc., indicating the allocation, use and management of water resources.

[0074] (7) River basin environmental data, including land use data, vegetation cover data, geological and hydrological data, etc., which are used to reflect the environmental characteristics and water cycle processes of the river basin.

[0075] (8) Monitoring data, including data collected through continuous monitoring of the operating status and environmental factors of water conservancy projects through sensors, instruments and other equipment.

[0076] (9) Some unstructured data, including engineering drawings, construction records, operation management records, expert knowledge, etc.

[0077] After obtaining water conservancy data, preprocessing operations are required, including data cleaning, data conversion, data dimension reduction, data reconstruction, etc. Preprocessing can improve data quality, increase data visualization, and increase data comparability and operability. It should be noted that data preprocessing operations can be determined according to business needs, and the present invention is not limited here, and is subject to being able to achieve business needs.

[0078] For the chart type setting component in the application module, the display system proposed in the present invention supports a variety of chart types: including bar charts, line charts, cross-sectional charts, radar charts, dashboards, and pie charts, to meet the different visualization needs of users.

[0079] Among them, the line graphs include: water level, reservoir capacity and water surface area relationship curve, water level and reservoir capacity relationship curve, water level flow process line, water level-inflow and outflow process line, water level-water storage capacity process line, soil moisture process line, groundwater level process line, water level query with same flow, synthetic flow, historical water level process comparison for the same period, real-time historical flood peak water level comparison, real-time forecast water level flow process line, etc.

[0080] The bar charts include: rainfall bar chart and cumulative line, rainfall and flood chart, groundwater level depth change, bar chart, bar chart comparison, deviation chart, and 3D bar chart.

[0081] The cross-section diagram includes: river cross-section diagram, water surface line, and cross-section infiltration line. For example, for the cross-section infiltration line diagram, the cross-section infiltration line diagram supports the display of the current water level, seepage water level, infiltration line, and flood season water level. The starting point of the infiltration line is the intersection of the current water level and the dam crest elevation, and the vertices of each seepage water level are connected by a dotted line. The end point is the intersection of the extension line of the seepage water level line and the dam crest elevation. The cross-section infiltration line diagram is as follows: Figure 3 described.

[0082] Radar charts include: ordinary radar charts; pie charts include: ordinary pie charts, basic Nightingale rose charts, and 3D pie charts; dashboards include: ordinary dashboards.

[0083] For the chart property setting component in the application module, it includes X-axis display format setting and Y-axis display format setting.

[0084] The content of the X-axis display format setting includes: time display format, the time display format includes the X-axis minimum scale value and the X-axis maximum scale value, the X-axis minimum scale value and the X-axis maximum scale value are determined based on business needs, and the display format of the X-axis minimum scale value is year-month-day hour-minute-second, year-month-day hour-minute or year-month-day hour.

[0085] Preferably, after determining the display format value of the minimum scale value of the X-axis, the remaining scale values ​​on the X-axis only display the part that is different from the minimum scale value of the X-axis in time format, such as Figure 2 As shown in the figure, the first X-axis scale value is 2023-01-0309, and the second X-axis scale value is only 10 o'clock because the year, month and day are the same as the first X-axis scale value. This simplified method can greatly improve the data display effect, allowing users to more clearly and conveniently obtain the time corresponding to the current X.

[0086] Exemplarily, the coordinate system requirements of the water conservancy chart are that the x-axis is the time axis, the axis label of the time axis can display 0 o'clock or 8 o'clock, and the axis label can be displayed in the format of year-month-day-hour-minute-second or year-month-day-hour-minute or year-month-day-hour.

[0087] In addition, the display format of the X-axis data can also be determined according to the data read from the data module.

[0088] The contents of the Y-axis display format settings include: Y-axis maximum scale value, starting point value, Y-axis starting point limit value, step value, preset minimum step value, and segment value.

[0089] The starting point value supports custom settings of external input, and the default value is 0;

[0090] The Y-axis starting point limit value supports custom settings of external input, and the default value is 0;

[0091] The step value supports custom settings of external input;

[0092] The preset minimum step size supports custom configuration of external input, and the default value is 0;

[0093] The segment value includes a default segment value or a custom configuration input externally, and the default segment value is 6.

[0094] Before creating a water conservancy chart, users can set the display format of the X-axis and Y-axis to meet the customized display requirements of the water conservancy chart.

[0095] For the chart generation component in the application module, a water conservancy chart is generated based on the selected chart type and the set X, Y axis data display format, as well as the water conservancy data read from the data module, and the visual interface display component is used to display the generated water conservancy chart.

[0096] Specifically, after the user selects the required chart type and sets the display format according to business requirements, the chart generation component generates a chart based on business data. The specific steps are as follows:

[0097] A1: Read the business data corresponding to the business requirements from the data module, the business data is (Xi , Y i ), X i is time, Y i For X i The corresponding actual value is i=1, 2, 3, ..., N.

[0098] A2: If each Y in the business data i The actual values ​​of are the same. If they are the same, perform the following steps:

[0099] Determine whether the step value is entered. If it is entered, the input is used as the Y-axis step value. If it is not entered, Step = Y i / The number of digits corresponding to the integer part of 10 is taken as the step value, where Step is the step value;

[0100] Exemplarily, given a set of data sequences (98, 98, 98, 98, 98), then Step=98 / 10=9.8, the number of bits in the integer part of the value 9.8 is 1, so the step value=1.

[0101] Determine whether to enter a starting point value. If a starting point value is entered, the starting point value is used as the initial value of the Y-axis data. If no starting point value is entered, As the initial value of the Y-axis data, and determine whether the FirstPoint is less than the Y-axis starting point limit value, if so, the Y-axis starting point limit value is used as the initial value of the Y-axis data;

[0102] For example, given a set of data sequences (0.5, 0.5, 0.5, 0.5, 0.5), if the configured step parameter or the calculated step parameter is 0.1, the step value is 0.1. According to the starting point calculation formula It can be obtained that (0.5 / 0.1-5 / 2)=2.5≈2(round down)*0.1=0.2, so the final step value is 0.1 and the starting value is 0.2.

[0103] If they are not the same, go to step A3.

[0104] A3: If Y in the business data i If there are different actual values, perform the following steps:

[0105] Determine whether to enter a starting point value. If you enter a starting point value, the input value will be used as the initial value of the Y-axis data; if you do not enter a starting point value, As the initial value of the Y-axis data, and determine the Is it less than the Y-axis starting point limit value? If so, the Y-axis starting point limit value is used as the initial value of the Y-axis data. Min is the X value in the business data. i The minimum value of

[0106] If the difference between adjacent scale values ​​on the Y-axis is limited to 5 or a multiple of 5, the step value is calculated as follows:

[0107]

[0108] Among them, Num is the segment value, Max is the Y in the business data i The maximum value of Step is converted to A*10 n In the numerical form, given the second numerical set {1, 1.5, 2.5, 5, 10}, take the two elements closest to A from the second numerical set as the candidate step values, and bring them into Get NumNew1 and NumNew2, compare |NumNew1-Num| and |NumNew2-Num|, take NumNew corresponding to the minimum value as the optimal number of segments, and find the corresponding optimal step value, determine the size of the optimal step value and the preset minimum step value, if less than, take the preset minimum step value as the optimal step value, and calculate the Y-axis scale value, otherwise, calculate the Y-axis scale value with the optimal number of segments and the optimal step value; if FirstPoint is greater than the Y-axis starting point limit value, the initial value of the Y-axis data is calculated as follows:

[0109] B1: Calculate the minimum outsourcing scale number Calculate the maximum outsourcing scale number Y min is the minimum value of the business data center Yi, Y max is the maximum value of the business data center Yi, To round down, To round up;

[0110] B2: If (minVal+maxVal) / 2<Num / 2, the number of segments needs to be updated. The new number of segments is:

[0111]

[0112] Otherwise, there is no need to update the number of segments;

[0113] B3: Calculate the new starting point value FirstPointNew=FirstPoint-Step*NumNew. If FirstPointNew is greater than the Y-axis starting point limit value, FirstPointNew is used as the initial value of the Y-axis data.

[0114] For example, if the finally calculated A=1.2, the closest elements in the second numerical value set are 1 and 1.5.

[0115] Through the above-mentioned method B1-B3, that is, through the relationship between the coordinate axis range and the numerical range, the problem of the chart distribution being biased upward or downward is solved by increasing or decreasing N steps, so that the final displayed chart is located in the middle position of the coordinate system.

[0116] If the difference between adjacent Y-axis scale values ​​is not limited to 5 or a multiple of 5, the step value is calculated as follows:

[0117] Determine whether a step value is input. If input, use the input as the step value to be selected for the Y-axis. If not input, round up Step = (Max-FirstPoint) / (Num-1) to an element in the third numerical set (2, 4, 5, 8, 10), and use the element as the step value to be selected. Determine the size of the step value to be selected and the preset minimum step value. If it is less than, use the preset minimum step value as the optimal step value and calculate the Y-axis scale value. Otherwise, use the step value to be selected as the optimal step value, and calculate the Y-axis scale value with the optimal number of segments and the optimal step value.

[0118] Exemplarily, when Step=4.5, it is rounded up to element 5 in the third numerical set, and therefore, 5 is used as the step value to be selected; when Step=3.2, it is rounded up to element 4 in the third numerical set, and therefore, 4 is used as the step value to be selected; when Step=6.1, it is rounded up to element 8 in the third numerical set, and therefore, 8 is used as the step value to be selected.

[0119] A4: According to the above (X i , Y i ), the step value, the initial value of the Y-axis data, or according to the (X i , Y i ), the initial value of the Y-axis data, the optimal number of segments and the optimal step value generate a water conservancy chart.

[0120] It is worth mentioning that if the X-axis is not a time axis but a value axis, the method of calculating the starting point value and the step value is the same as that described for the Y-axis, but does not include the case of calculating the starting point and the step value when the difference between adjacent scale values ​​of the Y-axis is limited to 5 or a multiple of 5.

[0121] The chart customization component in the display module is used to customize the generated water conservancy chart and display the execution result of the customization operation on the visual interface display component. The chart customization component includes:

[0122] The default data display subcomponent, after clicking this subcomponent, click any position on the generated water conservancy chart, even if there is no corresponding data in the data module at the current click position, it can still display the X-axis scale value and Y-axis scale value corresponding to the current click position. The default data display subcomponent obtains the Y-axis value at the selected position through the following steps: the currently selected X-axis scale is X i , read from the database module (X i-1 , Y i-1 )、(X i+1 , Y i+1 ), based on the interpolation algorithm to obtain X i The corresponding Y i .

[0123] The same flow water level display subcomponent, after clicking this subcomponent, click any position on the generated water conservancy chart, based on the water level at the currently selected position, all X-axis coordinate values ​​corresponding to the water level in the current water conservancy chart can be displayed at the selected position. The same flow water level display subcomponent obtains the X-axis value with the same flow at the selected position through the following steps: obtain the currently selected water level data Y target The water conservancy chart customized display system will automatically generate a Y value of Y target And parallel to the X-axis, if there is a Y j Equal to Y target , then directly record the corresponding X j Otherwise, read the interval Y corresponding to each intersection point i and Y i+1 , then use the interpolation method to obtain the current Y target The corresponding X tar , the calculated X tar and recorded X j Shown on the hydraulic diagram.

[0124] The synthetic flow display subcomponent, after clicking on the subcomponent, click on any position on the generated water conservancy chart to display the Y-axis scale value corresponding to each curve at the currently selected position. The synthetic flow display subcomponent obtains the flow value on each flow curve at the selected position through the following steps: for each flow curve, determine whether there is a flow corresponding to the selected X-axis scale in the current data module, if so, read it directly, if not, calculate it through interpolation, and finally display the flow corresponding to each flow curve at the X-axis scale.

[0125] The flood volume display subcomponent is used for the water level flow process line. After clicking on the subcomponent, you can use the mouse to select an area on the visual interface display component to obtain the total flow corresponding to the area. The flood volume display subcomponent obtains the total flow corresponding to the selected area through the following steps: Get the left endpoint (X left , Y left ), right endpoint (X right , Y right ), the upper boundary of the current selection range is the curve between the left and right endpoints, the lower boundary is the X axis, and the left boundary is X=X left , the right boundary is X=X right The formed area is divided into multiple quadrilaterals based on the current selection range of the X-axis step, and the areas of multiple quadrilaterals are calculated. The sum of the areas of all quadrilaterals is the flood volume corresponding to the current selection range.

[0126] The interpolation method is:

[0127]

[0128] Among them, Xtarget and Ytarget are the interpolated values, Xafter and Yafter are the values ​​of the next coordinate point adjacent to the currently selected position, and Xfront and Yfront are the values ​​of the previous coordinate point adjacent to the currently selected position.

[0129] Coaxial display subcomponent. After clicking on this subcomponent, the other X-axis or Y-axis can be set to have the same scale value as the X-axis or Y-axis displayed in the current water conservancy chart; the coaxial display subcomponent obtains the same scale value of the X-axis or Y-axis in the following way:

[0130] (1) Read two or more groups of data from the data module based on business requirements. For the convenience of explanation, two groups of data (XA1, YA1) and (XB1, YB1) are selected here.

[0131] (2) Based on business requirements, select the same X-axis or the same Y-axis. Here, the same Y-axis is used as an example for explanation. The method for the same X-axis is the same as that for the Y-axis.

[0132] (3) Setting the display format of the X or Y axis, combining YA1 and YB1 to obtain YC, and calculating YC based on the above method of calculating the starting point value and step value for the Y axis to obtain the data initial value, optimal step value, and optimal number of segments;

[0133] Exemplarily, merging YA1 and YB1 to obtain YC can be achieved in the following manner: directly merging the elements in the two sets of data YA1 and YB1 into a set of data YC, for example, YC=(YA11, YA12, YA13, YA14, YA15, YA16, YA17, YA18, YA19, YA20, Y210, Y221, Y23, Y24, Y25, Y26, Y27, Y28, Y29, Y30, Y31, Y32, Y33, Y34, Y35, Y36, Y37, Y38, Y39, Y40, Y41, Y42, Y43, Y44, Y45, Y46, Y47, Y48, Y49, Y50, Y51, Y52, Y53, Y54, Y55, Y5 N,YB11,YB12,YB13,,,YB1 M ), N and M correspond to the number of data in YA1 and YB1. When applied, the merged YC data can be deduplicated, sorted, etc. to quickly generate scale values.

[0134] (4) Set the display position of the scale value according to the display requirements, and generate the final visual chart based on the chart generation component.

[0135] like Figure 4 As shown in the soil moisture process line, the Y axes on the left and right sides have the same scale value, which corresponds to the scale value displayed on the Y axis on the left side of the setting diagram. After using the function of the coaxial display subcomponent, the scale value displayed on the right Y axis is the same as that on the left Y axis. Figure 5 As shown in the rainfall and flood graph, the X-axis above the graph has the same scale value as the X-axis below the graph, which corresponds to setting the X-axis display scale value below the graph. After using the function of the coaxial display subcomponent, the scale value displayed on the upper X-axis is the same as that on the lower X-axis.

[0136] The three-dimensional pie chart display subcomponent displays three-dimensional pie charts of different inner diameter sizes based on the inner diameter ratio parameter. For example, different inner diameter ratio parameters can be set according to business needs to obtain data pie charts of different sizes.

[0137] Compared with the prior art, the present invention provided in this embodiment provides a customized display system for water conservancy charts, and develops corresponding customized functions based on different water conservancy charts, such as water level display with the same flow rate, display of synthetic flow rate, etc., which can meet the development needs of different users for water conservancy charts; provides data display methods for X-axis and Y-axis, which can meet the needs of different users for water conservancy data; and by judging the relationship between the starting value and the limit value, the chart to be displayed is located in the middle area, so that data can be obtained more clearly and quickly; the commonly used functions in the water conservancy charts are encapsulated, and users can directly select the corresponding functions through the visual interface, which improves the user's operability and reusability.

[0138] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0139] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A customized water conservancy chart display system, characterized in that: include: Data module, used to store various water conservancy data; The application module includes a chart type setting component, a chart property setting component, and a chart generation component; the display module includes a visual interface display component and a chart customization component; among them, The chart type setting component is used to select the type of chart to be generated, the chart attribute setting component is used to set the display format of the X and Y axis data of the chart to be generated, the chart generation component generates a water conservancy chart based on the selected chart type and the set X and Y axis data display format, and the water conservancy data read from the data module, and the visual interface display component is used to display the generated water conservancy chart; The chart customization component is used to perform customization operations on the generated water conservancy chart, and display the execution results of the customization operations on the visualization interface display component.

2. A customized water conservancy chart display system according to claim 1, characterized in that: The chart customization component includes: The default data display subcomponent, after clicking this subcomponent, click anywhere on the generated water conservancy chart, even if there is no corresponding data in the data module at the current click position, the X-axis scale value and Y-axis scale value corresponding to the current click position can be displayed; Same as the flow water level display subcomponent, after clicking this subcomponent, click any position on the generated water conservancy chart, based on the water level at the currently selected position, all X-axis coordinate values ​​corresponding to the water level in the current water conservancy chart can be displayed at the selected position; Synthetic flow display subcomponent. After clicking this subcomponent, click any position on the generated water conservancy chart to display the Y-axis scale value corresponding to each curve at the currently selected position. The flood volume display subcomponent is used for the water level flow process line. After clicking on the subcomponent, you can use the mouse to select an area on the visual interface display component to obtain the total flow corresponding to the area.

3. A customized water conservancy chart display system according to claim 2, characterized in that: The display format of the X-axis includes: a time display format, wherein the time display format includes an X-axis minimum scale value and an X-axis maximum scale value, wherein the X-axis minimum scale value and the X-axis maximum scale value are determined based on business requirements, and the display format of the X-axis minimum scale value is year-month-day hour-minute-second, year-month-day hour-minute, or year-month-day hour.

4. A customized water conservancy chart display system according to claim 3, characterized in that: The time display format also includes that after determining the display format value of the minimum scale value of the X-axis, the remaining scale values ​​on the X-axis only display the parts that are different from the minimum scale value of the X-axis in time format.

5. A customized water conservancy chart display system according to claim 4, characterized in that: The display formats of the Y axis include: Y-axis maximum scale value, starting point value, Y-axis starting point limit value, step value, preset minimum step value, segment value; The starting point value supports custom settings of external input, and the default value is 0; The Y-axis starting point limit value supports custom settings of external input, and the default value is 0; The step value supports custom settings of external input; The preset minimum step size supports custom configuration of external input, and the default value is 0; The segment value includes a default segment value or a custom configuration input externally, and the default segment value is 6.

6. A customized water conservancy chart display system according to claim 5, characterized in that: The chart generation component generates a water conservancy chart based on the data read by the data module, including: A1: Read the business data corresponding to the business requirements from the data module, the business data is (X i , Y i ), X i is time, Y i For X i The corresponding actual value, i = 1, 2, 3, ..., N; A2: If each Y in the business data i The actual values ​​of are the same. If they are the same, perform the following steps: Determine whether the step value is entered. If it is entered, the input is used as the Y-axis step value. If it is not entered, Step = Y i / The number of digits corresponding to the integer part of 10 is taken as the step value, where Step is the step value; Determine whether to enter a starting point value. If a starting point value is entered, the starting point value is used as the initial value of the Y-axis data. If no starting point value is entered, As the initial value of the Y-axis data, and determine whether the FirstPoint is less than the Y-axis starting point limit value, if so, the Y-axis starting point limit value is used as the initial value of the Y-axis data; If they are not the same, go to step A3; A3: If Y in the business data i If there are different actual values, perform the following steps: Determine whether to enter a starting point value. If you enter a starting point value, the input value will be used as the initial value of the Y-axis data; if you do not enter a starting point value, As the initial value of the Y-axis data, and determine the Is it less than the Y-axis starting point limit value? If so, the Y-axis starting point limit value is used as the initial value of the Y-axis data. Min is the X value in the business data. i The minimum value of If the difference between adjacent scale values ​​on the Y-axis is limited to 5 or a multiple of 5, the step value is calculated as follows: Among them, Num is the segment value, Max is the maximum value of Yi in the business data, and Step is converted to A*10 n In the numerical form, given the second numerical set {1, 1.5, 2.5, 5, 10}, take the two elements closest to A from the second numerical set as the candidate step values, and bring them into Get NumNew1 and NumNew2, compare |NumNew1-Num| and |NumNew2-Num|, take NumNew corresponding to the minimum value as the optimal number of segments, and obtain the corresponding optimal step value, determine the size of the optimal step value and the preset minimum step value, if less than, take the preset minimum step value as the optimal step value, and calculate the Y-axis scale value, otherwise, calculate the Y-axis scale value with the optimal number of segments and the optimal step value; A4: According to the above (X i , Y i ), the step value, the initial value of the Y-axis data, or according to the (X i , Y i ), the initial value of the Y-axis data, the optimal number of segments and the optimal step value generate a water conservancy chart.

7. A customized water conservancy chart display system according to claim 6, characterized in that: If FirstPoint is greater than the Y-axis starting point limit value, the initial value of the Y-axis data is calculated as follows: B1: Calculate the minimum outsourcing scale number Calculate the maximum outsourcing scale number Y min is the minimum value of the business data center Yi, Y max is the maximum value of the business data center Yi, To round down, To round up; B2: If (minVal + maxVal) / 2 < Num / 2, the number of segments needs to be updated. The new number of segments is: Otherwise, the number of segments does not need to be updated; B3: Calculate the new starting point value FirstPointNew = FirstPoint - Step * NumNew. If FirstPointNew is greater than the Y-axis starting point limit value, then use FirstPointNew as the initial value of the Y-axis data.

8. A customized display system for hydraulic charts according to claim 7, wherein The default data display subcomponent obtains the Y-axis value at the selected position through the following steps: Note that the currently selected X-axis scale is X i , read from the database module (X i-1 , Y i-1 )、(X i+1 , Y i+1 ), based on the interpolation algorithm to obtain X i The corresponding Y i ; The same flow water level display subcomponent obtains the X-axis value with the same flow at the selected position through the following steps: obtain the currently selected water level data Y target The water conservancy chart customized display system will automatically generate a Y value of Y target And parallel to the X-axis, if there is a Y j Equal to Y target , then directly record the corresponding X j Otherwise, read the interval Y corresponding to each intersection point i and Y i+1 , then use the interpolation method to obtain the current Y target The corresponding X tar , the calculated X tar and recorded X j Displayed on hydraulic charts; The combined flow display sub-component obtains the flow values on each flow curve at the selected position through the following steps: For each flow curve, determine whether there is a flow corresponding to the selected X-axis scale in the current data module. If so, directly read it. If not, calculate it through interpolation. Finally, display the flows corresponding to each flow curve at this X-axis scale; The flood display subcomponent obtains the total flow corresponding to the frame selection area through the following steps: obtaining the left endpoint (X left , Y left ), right endpoint (X right , Y right ), the upper boundary of the current selection range is the curve between the left and right endpoints, the lower boundary is the X axis, and the left boundary is X=X left , the right boundary is X=X right The formed area is divided into multiple quadrilaterals based on the current selection range of the X-axis step, and the areas of multiple quadrilaterals are calculated. The sum of the areas of all quadrilaterals is the flood volume corresponding to the current selection range.

9. A customized water conservancy chart display system according to claim 8, characterized in that: The interpolation method is: Where Xtarget and Ytarget are the interpolated values, Xafter, Yafter are the values of the coordinate point after the current selected position, and Xfront, Ytront are the values of the coordinate point before the current selected position.

10. A customized water conservancy chart display system according to claim 9, characterized in that: The chart customization component further includes: a coaxial display sub-component. After clicking this sub-component, another X-axis or Y-axis can be set to have the same scale value as the X-axis or Y-axis displayed in the current hydraulic chart; The chart type setting component further includes a cross-section seepage line diagram. The cross-section seepage line diagram supports displaying the current water level, seepage pressure water level, seepage line, and flood season water level. The starting point of the seepage line is the intersection of the current water level and the dam crest elevation, and the vertices of each seepage pressure water level are connected by a dotted line. The end point is the intersection of the extension line of the seepage pressure water level connection line and the dam crest elevation; The chart customization component further includes: a three-dimensional pie chart display sub-component, which displays three-dimensional pie charts of different inner diameters based on the inner diameter ratio parameter.

Citation Information

Patent Citations

  • Data visualization display method and device

    CN117094438A

  • Intelligent water conservancy online monitoring system

    CN117112649A

  • Real-time and efficient basin flood inundation simulation method

    CN117574628A