A mobile terminal-oriented railway operation data visualization rendering optimization method
Patent Information
- Application Number
- CN202610790032.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-03
- Publication Date
- 2026-10-09
AI Technical Summary
这种简单粗暴的处理方式导致在有限的屏幕空间内,极易出现排版错乱、信息相互挤压遮挡等严重的显示缺陷,难以保障用户的有效阅读
[0058]上述面向移动端的铁路运营数据可视化渲染优化方法、装置、计算机设备、计算机可读存储介质和计算机程序产品,获取铁路业务的可视化配置数据;可视化配置数据包括数据统计维度、图表配置信息以及指标计算规则;根据数据统计维度,获取铁路业务对应的业务数据;基于图表配置信息和业务数据进行图表配置映射处理,生成待渲染图表数据;根据指标计算规则对业务数据进行处理,得到与待渲染图表数据关联的指标数据;在移动端界面中,对待渲染图表数据进行渲染生成目标图表,并在展示目标图表时,展示指标数据。本申请中,通过解析可视化配置数据将前端展现与铁路业务逻辑解耦,实现了移动端数据界面的灵活扩展与免发版更新;基于数据统计维度按需获取业务数据,避免了冗余的全量拉取;同时,利用同一业务数据并行生成图表数据与指标数据并联合展示,不仅保障了核心指标的同源联动一致性,更有效消除了多组件独立处理时的重复计算,切实提升了移动端的渲染流畅度,从而提升了铁路相关数据的可视化分析效率。
Smart Images

Figure CN122888047A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of visualization processing technology, and in particular to an optimized method for visualizing and rendering railway operation data for mobile devices. Background Technology
[0002] In recent years, with the deepening of the digital transformation of railway operation management, the demand for managers to view various operational reports such as traffic volume and revenue in real time on mobile devices has become increasingly urgent. However, existing data presentation solutions mostly involve directly migrating traditional PC systems to mobile devices. This simplistic approach easily leads to serious display defects such as layout errors and information being squeezed and obscured within the limited screen space, making it difficult to ensure effective reading for users. At the same time, existing systems generally respond by fetching all content at once, which often causes network request timeouts and severely slow page responses in unstable mobile network environments, resulting in very poor visualization and analysis capabilities for the entire railway operation data. Summary of the Invention
[0003] Therefore, it is necessary to provide a method, device, computer equipment, computer-readable storage medium, and computer program product for optimizing the visualization and rendering of railway operation data for mobile devices, in response to the above-mentioned technical problems.
[0004] Firstly, this application provides a method for optimizing the visualization and rendering of railway operation data for mobile devices, including:
[0005] Obtain visual configuration data for railway operations; the visual configuration data includes data statistics dimensions, chart configuration information, and indicator calculation rules.
[0006] Based on the aforementioned data statistics dimensions, obtain the business data corresponding to the railway business;
[0007] Based on the chart configuration information and the business data, chart configuration mapping processing is performed to generate chart data to be rendered;
[0008] The business data is processed according to the indicator calculation rules to obtain indicator data associated with the chart data to be rendered;
[0009] In the mobile interface, the data to be rendered is rendered to generate a target chart, and the indicator data is displayed when the target chart is shown.
[0010] In one embodiment, obtaining the visual configuration data for railway operations includes:
[0011] Obtain the user identity information of the mobile user, and initiate a configuration retrieval request to the server based on the user identity information;
[0012] The server receives the visual configuration data returned by the server; wherein the visual configuration data is obtained by the server based on the user identity information of the configuration request, obtaining the basic configuration data corresponding to the user identity information; obtaining the personalized configuration data of the mobile user; determining the visual configuration data based on the basic configuration data and the personalized configuration data, and sending it to the mobile terminal.
[0013] In one embodiment, the user identity information corresponds to multiple business themes;
[0014] The acquisition of visualized configuration data for railway operations includes:
[0015] Obtain visualization configuration data for different business themes corresponding to the railway business, so as to display target charts and indicator data corresponding to different business themes in the mobile terminal interface;
[0016] The step of rendering the chart data to be rendered into a target chart on the mobile interface, and displaying the target chart after displaying the indicator data, further includes:
[0017] In response to a business theme switching instruction for the mobile interface, the business theme is switched to the business theme indicated by the business theme switching instruction;
[0018] Based on the aforementioned business theme, re-acquire the corresponding business data;
[0019] Based on the reacquired business data, the target charts and indicator data corresponding to the business theme are displayed on the mobile interface.
[0020] In one embodiment, obtaining the business data corresponding to the railway business based on the data statistical dimension includes:
[0021] Based on the business theme and the corresponding data statistics dimension, determine whether the mobile device has cached business data;
[0022] If the mobile device has the cached service data, then the service data is determined based on the cached service data;
[0023] If the mobile device does not have the cached business data, then the time granularity parameter in the data statistics dimension is obtained, and an on-demand data request is sent to the server according to the time granularity parameter to obtain the corresponding business data.
[0024] In one embodiment, the chart configuration information includes a first rendering parameter and a second rendering parameter, wherein the power consumption of the first rendering parameter is greater than the power consumption of the second rendering parameter;
[0025] The step of performing chart configuration mapping processing based on the chart configuration information and the business data to generate chart data to be rendered includes:
[0026] Obtain the device performance level of the mobile terminal;
[0027] If the device performance level is less than a preset performance threshold, the first rendering parameter is removed from the chart configuration information, and the mapping process is performed based on the second rendering parameter and the business data to generate the chart data to be rendered.
[0028] If the device performance level is not lower than the preset performance threshold, then the full chart configuration information including the first rendering parameter and the second rendering parameter and the business data are mapped to generate the chart data to be rendered.
[0029] In one embodiment, the mobile interface includes a first display area, a second display area, and a third display area;
[0030] The step of rendering the chart data to be rendered into a target chart on the mobile interface, and displaying the indicator data when displaying the target chart, includes:
[0031] The indicator data is displayed in the first display area of the mobile interface;
[0032] In response to a swipe-triggered command on the mobile interface, the chart data to be rendered is rendered in the second display area of the mobile interface to display the target chart;
[0033] In response to an interaction command for the target chart, detailed table data associated with the target chart is displayed in the third display area of the mobile interface.
[0034] Secondly, this application also provides a mobile-oriented railway operation data visualization and rendering optimization device, including:
[0035] The visualization data acquisition module is used to acquire visualization configuration data for railway operations; the visualization configuration data includes data statistical dimensions, chart configuration information, and indicator calculation rules.
[0036] The business data acquisition module is used to acquire the business data corresponding to the railway business according to the data statistics dimensions.
[0037] The chart configuration mapping module is used to perform chart configuration mapping processing based on the chart configuration information and the business data to generate chart data to be rendered.
[0038] The indicator data calculation module is used to process the business data according to the indicator calculation rules to obtain indicator data associated with the chart data to be rendered.
[0039] The visualization rendering module is used in the mobile interface to render the chart data to be rendered to generate a target chart, and to display the indicator data when displaying the target chart.
[0040] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0041] Obtain visual configuration data for railway operations; the visual configuration data includes data statistics dimensions, chart configuration information, and indicator calculation rules.
[0042] Based on the aforementioned data statistics dimensions, obtain the business data corresponding to the railway business;
[0043] Based on the chart configuration information and the business data, chart configuration mapping processing is performed to generate chart data to be rendered;
[0044] The business data is processed according to the indicator calculation rules to obtain indicator data associated with the chart data to be rendered;
[0045] In the mobile interface, the data to be rendered is rendered to generate a target chart, and the indicator data is displayed when the target chart is shown.
[0046] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0047] Obtain visual configuration data for railway operations; the visual configuration data includes data statistics dimensions, chart configuration information, and indicator calculation rules.
[0048] Based on the aforementioned data statistics dimensions, obtain the business data corresponding to the railway business;
[0049] Based on the chart configuration information and the business data, chart configuration mapping processing is performed to generate chart data to be rendered;
[0050] The business data is processed according to the indicator calculation rules to obtain indicator data associated with the chart data to be rendered;
[0051] In the mobile interface, the data to be rendered is rendered to generate a target chart, and the indicator data is displayed when the target chart is shown.
[0052] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0053] Obtain visual configuration data for railway operations; the visual configuration data includes data statistics dimensions, chart configuration information, and indicator calculation rules.
[0054] Based on the aforementioned data statistics dimensions, obtain the business data corresponding to the railway business;
[0055] Based on the chart configuration information and the business data, chart configuration mapping processing is performed to generate chart data to be rendered;
[0056] The business data is processed according to the indicator calculation rules to obtain indicator data associated with the chart data to be rendered;
[0057] In the mobile interface, the data to be rendered is rendered to generate a target chart, and the indicator data is displayed when the target chart is shown.
[0058] The aforementioned method, apparatus, computer equipment, computer-readable storage medium, and computer program product for optimizing the visualization rendering of railway operation data for mobile devices acquire visualization configuration data for railway business. This visualization configuration data includes data statistical dimensions, chart configuration information, and indicator calculation rules. Based on the data statistical dimensions, business data corresponding to the railway business is acquired. Chart configuration mapping is performed based on the chart configuration information and business data to generate chart data to be rendered. The business data is processed according to the indicator calculation rules to obtain indicator data associated with the chart data to be rendered. In the mobile interface, the chart data to be rendered is rendered to generate the target chart, and the indicator data is displayed when the target chart is shown. In this application, by parsing the visualization configuration data, the front-end display is decoupled from the railway business logic, enabling flexible expansion and version-free updates of the mobile data interface. Business data is acquired on demand based on data statistical dimensions, avoiding redundant full-data fetching. Simultaneously, the parallel generation and joint display of chart data and indicator data using the same business data not only ensures the consistency of core indicators but also effectively eliminates redundant calculations when multiple components are processed independently, significantly improving the rendering smoothness of the mobile device and thus enhancing the efficiency of visualization analysis of railway-related data. Attached Figure Description
[0059] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0060] Figure 1 This is an application environment diagram of a mobile-oriented railway operation data visualization rendering optimization method in one embodiment;
[0061] Figure 2 This is a flowchart illustrating a method for optimizing the visualization and rendering of railway operation data for mobile devices, as shown in one embodiment.
[0062] Figure 3 This is a schematic diagram of the application architecture of a mobile-oriented railway operation data visualization rendering optimization method in one embodiment;
[0063] Figure 4 This is a flowchart illustrating an optimized method for visualizing and rendering railway operation data for mobile devices, as shown in another embodiment.
[0064] Figure 5 This is a structural block diagram of a mobile-oriented railway operation data visualization and rendering optimization device in one embodiment.
[0065] Figure 6 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0066] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0067] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various objects, but these objects are not limited by these terms. These terms are only used to distinguish the first object from the second object. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.
[0068] The mobile-oriented railway operation data visualization rendering optimization method provided in this application can be applied to, for example... Figure 1The diagram illustrates a distributed network communication environment comprised of at least one mobile terminal and a server interacting with it. The mobile terminal and the server establish a data connection via a wireless or wired communication network to enable unidirectional or bidirectional asynchronous transmission of control commands, configuration objects, and multi-dimensional business data streams. In this network architecture, the server is primarily responsible for the overall management of the underlying heterogeneous database, filtering of role-based access permissions, static or dynamic assembly of data dimensions, and providing efficient configuration data distribution services.
[0069] The mobile terminal 102 communicates with the server 104 via a network. A data storage system can store the data that the server 104 needs to process. The data storage system can be integrated onto the server 104 or located in the cloud or on other network servers. The mobile terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, drones, low-altitude aircraft, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, and projection devices. Portable wearable devices can include smartwatches, smart bracelets, and head-mounted displays. Head-mounted displays can be virtual reality (VR) devices, augmented reality (AR) devices, and smart glasses. The server 104 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0070] Due to the characteristics of railway operating environments, such as highly mobile operations, dispersed work sites, and dynamically changing network conditions, the actual hardware and network environment of the mobile terminal often suffers from limitations such as inconsistent equipment performance and unstable network bandwidth (e.g., switching between weak and no network). The method of this invention operates precisely within mobile terminal software systems or front-end containers that have high technical requirements for rendering efficiency, data loading continuity, and multi-dimensional data linkage display.
[0071] At the level of specific business application environments, this method is widely applicable to visual dashboards, mobile reports, and multi-dimensional monitoring interfaces for core railway businesses such as railway transportation scheduling, railway freight organization, locomotive and rolling stock monitoring, financial revenue and expenditure statistics, and operational performance analysis. A typical technical characteristic of this application environment is that the railway operation data displayed in the interface is not a single, isolated static indicator, but rather a composite form of "multiple business themes, multiple statistical dimensions, and multiple technical indicators linked together." That is, the overall trend shown in the charts and the core values presented in the indicator cards share a common calculation logic and a strong correlation in their display requirements. By running this method on the aforementioned mobile devices, it can effectively overcome adaptation bottlenecks such as overflow, lag, loading timeouts, and information overload that occur when rendering these complex business data on mobile interfaces.
[0072] In one exemplary embodiment, such as Figure 2 As shown, a method for optimizing the visualization and rendering of railway operation data for mobile devices is provided, and this method is applied to... Figure 1 Taking the mobile terminal as an example, the explanation includes the following steps S201 to S205. Wherein:
[0073] Step S201: Obtain the visualization configuration data for railway operations; the visualization configuration data includes data statistics dimensions, chart configuration information, and indicator calculation rules.
[0074] Among them, the visualization configuration data can be a set of structured parameters that carry the graphical presentation of the interface, multi-dimensional spatial layout, and underlying data logic mapping. This data can be generated by dynamically extracting and assembling the pre-set full-link relationship of the underlying data. It is used to uniformly guide the componentized page configuration of the subsequent interface, the on-demand loading of data, and the linkage calculation between various indicator cards and charts, thereby achieving substantial decoupling between the rendering logic of the display interface and the specific business data.
[0075] Specifically, during system initialization or when the configuration loading process is triggered, structured visual configuration data can be obtained by calling a dedicated configuration interface or reading a specific configuration service. This configuration object contains multiple levels of nested structures, fully representing the current railway operations and serving as the sole basis for subsequent component rendering. By performing structured parsing on the obtained configuration object, interrelated data statistical dimensions, chart configuration information, and indicator calculation rules can be accurately extracted. Specifically, the data statistical dimensions serve as the benchmark conditions for subsequently limiting the data retrieval range; the chart configuration information contains various style parameters required for different graphic renderings; and the indicator calculation rules contain the calculation logic and triggering styles for core indicators.
[0076] For example, the aforementioned visualization configuration data can be represented as a JSON configuration object with a specific nested structure. When parsing this JSON configuration object, it can be broken down into configuration fields containing multiple layers such as themes, metrics, charts, and interactions. Specifically, the parameters corresponding to data statistics dimensions can be display labels and dimension identifiers used to represent different statistical periods; the parameters included in the chart configuration information can be fixed basic chart configurations, such as the radius ratio and center position parameters for a donut chart, the bar width and label display parameters for a bar chart, or the smoothness switch and marker point parameters for a line chart; the parameters corresponding to the metric calculation rules can be the display status switch, variable threshold parameters, and data display formatting parameters for core metrics. Furthermore, when acquiring this visualization configuration data, a fallback capability can be introduced, meaning that in special scenarios such as timeouts during dynamic fetching or network anomalies, it can automatically switch to reading local or front-end reserved static fallback configuration data to ensure the stability of the core rendering logic and system initialization.
[0077] Step S202: Obtain the business data corresponding to railway business according to the data statistics dimensions.
[0078] Among them, the data statistics dimension can be a time attribute parameter or a classification control label used to limit the data retrieval period, statistical range, or filtering granularity.
[0079] Business data can be a structured set of numerical data that reflects the actual production and operation of railways, equipment status, or financial indicators. For example, it can be represented by coal transport volume data, non-coal transport volume data, train operation indicators, or transport revenue data. This data can be obtained by sending a request to the backend or reading the corresponding data interface under the constraints and guidance of the above-mentioned data statistical dimensions.
[0080] Specifically, after parsing and obtaining the statistical dimensions of the data, these dimensions can be used as input conditions or filtering benchmarks to trigger the corresponding data retrieval and loading process. This process retrieves business data that matches the statistical dimensions and characterizes the actual operational status of railway operations. This step establishes a causal mapping between the data retrieval action and the statistical dimensions, ensuring that the core data source for the entire visualization process is under precise control of the configured data.
[0081] For example, when retrieving business data based on statistical dimensions, the time granularity parameter of the currently active statistical dimension can be extracted and used to assemble a data request package in a specific format. Subsequently, the corresponding data transmission interface is called to initiate a data interaction request to the server. The server retrieves the corresponding railway operation indicators from the underlying database based on the time granularity parameter in the request and returns them in the form of a structured data stream, thereby completing the dynamic loading of business data. This granular, on-demand retrieval mechanism ensures that a single network transmission can only carry the data stream matching the current display dimension, rather than loading all redundant data from all periods at once.
[0082] Step S203: Perform chart configuration mapping processing based on chart configuration information and business data to generate chart data to be rendered.
[0083] Among them, the chart configuration mapping processing can be a data transformation and assembly logic that transforms the underlying pure numerical stream into a graphical representation of attributes. It can be achieved by dynamically matching and fusion of extracted structured business values and preset visual style rules (such as the coordinate system, color, legend format, etc. of a specific chart). It is used to provide the front-end visualization engine with directly recognizable structured drawing input without changing the original railway business data logic.
[0084] The data to be rendered can be an intermediate, standardized dataset output after the above mapping process, which contains the complete coordinate points, geometric dimensions, and visual modification parameters required to draw a specific chart.
[0085] Specifically, after acquiring the relevant business data, based on the chart configuration information and business data parsed in the preceding steps, the various statistical values in the business data can be bound to the chart types and their corresponding style parameters defined in the chart configuration information. Through this mapping and assembly of configuration parameters and business flow data, the originally independent backend values and static frontend style rules are tightly integrated, resulting in chart data that can be directly called by the graphics rendering engine. This step utilizes abstract data processing logic, ensuring that the visual presentation of the interface is completely controlled by the incoming configuration information and business data flow.
[0086] For example, during chart configuration mapping, various configuration features required for chart rendering can be layered, assembled, and merged. For instance, common basic configuration parameters applicable to multiple chart types, such as tooltips, grids, and legends, can be pre-extracted and encapsulated. Then, these common basic configurations, along with business data and specific chart-specific styles (e.g., radius settings for donut charts, width settings for bar charts), are uniformly injected and merged through a unified interface to generate chart data containing full rendering information. This centralized configuration extraction and mapping injection process avoids the need for separate calculation and verification of basic parameters for each independent chart instance during generation.
[0087] Step S204: Process the business data according to the indicator calculation rules to obtain indicator data associated with the chart data to be rendered.
[0088] The indicator calculation rules can be a set of pre-defined logical conditions for performing logical operations, state determinations, and visual format conversions on underlying values. They can be extracted and generated based on the visual configuration data (such as display switches, variable threshold parameters, etc. nested in standardized configuration objects) obtained and parsed in the aforementioned steps. They are used to guide the system to accurately calculate the status of key operational nodes when receiving multi-dimensional business values.
[0089] The indicator data can be dynamically calculated and generated based on business data, under the constraints and filtering of the above indicator calculation rules. It is used as the direct display content of the core data dashboard in the interface, and it shares the same basic data source as the aforementioned chart data to be rendered, thus maintaining a high degree of correlation and common source attributes in the internal data logic.
[0090] Specifically, after acquiring business data, relevant calculations and logical processing actions are performed on the business data according to the parsed indicator calculation rules. In this process, statistical flow values in the business data can be used as basic inputs, and secondary processing and status determination can be performed on them according to the conditions defined in the indicator calculation rules, thereby extracting or calculating indicator data that can intuitively reflect the current core operating status of railway business. Since the original input information on which this calculation process depends is completely consistent with the underlying data flow for generating the chart data to be rendered, the generated indicator data can form a close and synchronous correlation and mapping relationship with the chart data to be rendered in terms of numerical trends and business status.
[0091] For example, when processing business data, core indicator values that meet the needs of the current business theme can be selected, and status comparison and format conversion can be performed by combining the threshold parameters and display format parameters in the indicator calculation rules. For instance, when the obtained business data is related to coal transportation volume, the current actual transportation volume can be compared with the planned transportation volume according to the rules, and then the corresponding over / under value or over / under rate can be calculated. If the calculated value touches or deviates from the set warning threshold, specific status attributes can be dynamically attached to the indicator data (such as rendering a specific color or adding upward or downward arrow icons for output). This same-source linkage calculation based on dynamic rules allows various key indicator data to be assembled and generated locally without making additional network requests to the backend.
[0092] Step S205: On the mobile interface, the data to be rendered is used to generate the target chart, and the indicator data is displayed when the target chart is displayed.
[0093] The mobile interface can be a mobile application window or canvas display area that allows users to perform human-computer touch interaction and carries the rendering output of various visual components.
[0094] The target chart can be a graphical window entity that is finally displayed on the screen after being parsed by the mobile device's graphics rendering engine. For example, it can be a bar chart, line chart, or pie chart that reflects railway freight volume or transportation revenue.
[0095] Specifically, after completing the aforementioned data conversion and rule calculations, the chart data to be rendered, which contains complete coordinate nodes and visual embellishment information, can be input into the mobile terminal's graphics rendering engine to drive the mobile terminal to draw the corresponding target chart in a specific area of the mobile terminal interface. At the same time, the aforementioned indicator data, which is based on the same source and has high business guidance significance, is rendered and output in parallel with the target chart. Thus, within the visible range of the same mobile terminal interface, the overall data trend of the chart and the status of key business indicators are linked and presented in a coordinated visual manner.
[0096] In this embodiment, the front-end display is decoupled from railway business logic by parsing the visualization configuration data, enabling flexible expansion and version-free updates of the mobile data interface; business data is obtained on demand based on data statistics dimensions, avoiding redundant full data retrieval; at the same time, chart data and indicator data are generated in parallel using the same business data and displayed together, which not only ensures the consistency of core indicators through the same source linkage, but also effectively eliminates redundant calculations when multiple components are processed independently, significantly improving the rendering smoothness of the mobile terminal, thereby improving the efficiency of visualization analysis of railway-related data.
[0097] In one embodiment, obtaining visual configuration data for railway operations includes:
[0098] Obtain the user identity information of the mobile user, and initiate a configuration retrieval request to the server based on the user identity information;
[0099] Receive the visual configuration data returned by the server; wherein, the visual configuration data is obtained by the server based on the user identity information requested by the configuration, obtaining the basic configuration data corresponding to the user identity information; obtaining the personalized configuration data of the mobile user; and determining the visual configuration data based on the basic configuration data and the personalized configuration data, and sending it to the mobile device.
[0100] Among them, user identity information can be digital credentials that represent the specific job role and permission level of the currently logged-in account in the railway operation system.
[0101] Basic configuration data can be a standardized data set that covers basic elements such as general business themes, statistical dimensions, and core indicators. This data can be dynamically generated by the server after filtering the underlying system role table and business theme table for permissions using the aforementioned user identity information. It is used to build the core foundation rendering framework and functional modules for users in different positions.
[0102] Personalized configuration data can be a set of parameters that record the target user's personal operating habits or deep customization preferences, such as default display dimensions or specific metrics that need to be hidden.
[0103] Specifically, in the process of obtaining visual configuration data, the system can retrieve the target user's identity information and send a configuration retrieval request to the server based on this information. Subsequently, it receives the visual configuration data returned by the server via a network interface. Upon receiving the configuration retrieval request, the server can extract the user identity information carried in the request and use this as a basis to execute configuration filtering logic in the background to obtain basic configuration data that matches the user's identity information. Simultaneously, the server will also retrieve the target user's personalized configuration data. Then, the server performs logical merging and parameter rewriting based on the extracted basic and personalized configuration data to determine the final visual configuration data to be sent to the request source for subsequent interface rendering.
[0104] For example, in the complete chain of generating the above configuration data on the server side, the server can use six pre-established core association tables (such as the system role table, business theme table, user personalized configuration table, etc.) to perform multi-dimensional association queries. When a configuration retrieval request containing a target role (such as serving as both a freight dispatcher and a financial supervisor) is received, the server first performs permission filtering, selecting multiple business themes (such as coal transportation volume, transportation revenue, etc.) that the multiple roles have access to from the pre-set configuration library, and assembling the corresponding data dimensions, core indicators, and chart types for each accessible theme to form basic configuration data; then, the server retrieves the user personalized configuration table to obtain personalized configuration data such as default dimension selection and hiding invalid indicator flags; finally, the basic configuration and user's custom settings are deeply integrated to generate a standardized JSON configuration object (i.e., visual configuration data) containing a four-layer structure of "theme, indicator, chart, and interaction", and distributes it, so that the front-end component can directly perform personalized rendering based on it after receiving the data.
[0105] In this embodiment, by utilizing the aforementioned technical means of server-side fusion of basic configuration and personalized configuration based on user identity information, the technical challenges of poor multi-role adaptation and the leakage of sensitive data caused by the use of static configuration libraries in traditional railway visualization solutions can be effectively solved. This not only ensures the security of core railway business data and avoids unauthorized access, but also endows the mobile system with highly flexible customization capabilities, achieving precise merging of multi-role permissions and deep personalized display, greatly improving the user experience and work efficiency of different on-site operators.
[0106] In one embodiment, user identity information corresponds to multiple business themes;
[0107] Obtain visual configuration data for railway operations, including:
[0108] This involves acquiring visualization configuration data for different business themes within the railway business, and displaying target charts and indicator data for these themes on a mobile interface. Within the mobile interface, the data to be rendered is used to generate the target chart. After displaying the indicator data, the process also includes:
[0109] In response to a business theme switching command for the mobile interface, the business theme is switched to the business theme indicated by the command; based on the business theme, the corresponding business data is reacquired; and based on the reacquired business data, the target charts and metric data corresponding to the business theme are displayed on the mobile interface.
[0110] Among them, the business theme can be a classification identifier that represents a specific business area in railway operation and management, such as a macro business segment such as coal transport volume, non-coal transport volume, or transport revenue.
[0111] The business theme switching command can be a control signal that triggers a smooth transition or state change between different business modules in the currently displayed view. It can be dynamically generated based on specific physical interaction actions or ambient sound input for the interface. It is used to instruct the system to change the currently active business context in real time and drive the re-retrieval of underlying data streams and the re-rendering of the interface.
[0112] Specifically, in scenarios where user identity information corresponds to multiple business themes, the system can retrieve visualization configuration data for different business themes related to railway operations. This data can then be used to display target charts and indicator data for each business theme on the mobile interface. After initial interface rendering and displaying the target charts and indicator data, in response to a business theme switching command for the mobile interface, the current business theme can be switched to the new business theme indicated by the command. Subsequently, based on the switched business theme, the corresponding data retrieval logic is triggered to re-retrieve the business data corresponding to that theme. Finally, based on the re-retrieved business data, the system re-maps and renders the data on the mobile interface to display the target charts and indicator data corresponding to the switched business theme.
[0113] For example, when handling the aforementioned multi-topic concurrent visualization scenarios, the server can integrate and distribute the configurations of multiple topics that the target user is authorized to access, based on the user's multiple roles (e.g., acting as both a freight dispatcher and a financial supervisor). In actual interface interaction, the aforementioned business topic switching command can be specifically manifested as a left-right swipe touch operation performed on the core area of the first screen, or as a specific voice command captured by the speech recognition module. For instance, when the current interface is displaying data for the "Coal Transportation Volume" topic, if a right swipe signal is received, the system state will immediately change to the "Transportation Revenue" topic. At this time, the system will use the identifier of the new topic to retrieve the corresponding revenue details and other business data, and re-render the corresponding bar charts and related core indicator cards on the interface, thereby completing the dynamic update and smooth transition of the multi-dimensional interface.
[0114] In this application, by using the aforementioned technical means of re-acquiring and displaying the corresponding data through the response topic switching command, seamless roaming between different operational indicators is achieved, which significantly improves the user experience of the mobile data dashboard and the efficiency of on-site comprehensive scheduling.
[0115] In one embodiment, business data corresponding to railway operations is obtained based on data statistical dimensions, including:
[0116] Based on the business theme and the corresponding data statistics dimension, determine whether there is cached business data on the mobile device; if there is cached business data on the mobile device, determine the business data based on the cached business data; if there is no cached business data on the mobile device, obtain the time granularity parameter in the data statistics dimension, and initiate an on-demand data request to the server to obtain the corresponding business data according to the time granularity parameter.
[0117] Among them, cached business data can be a set of non-real-time railway operation data stored in the local mobile device. It can be dynamically written based on the successful return results of historical data requests, and can be directly extracted when specific matching conditions are met to replace high-latency network interactions, thereby quickly preparing data in a localized state.
[0118] The time granularity parameter can be a dimension identifier or filter control field that represents a specific statistical period range. For example, it can be a display label for statistical periods such as "daily", "monthly", or "yearly", which is used to guide the request for precise data retrieval within a specific time span from a remote location.
[0119] On-demand data requests can be encapsulated in real-time based on current business boundaries and filtering cycle parameters. This allows the server to retrieve and distribute precise operational metrics within a specific range, enabling highly granular, on-demand, asynchronous data interaction.
[0120] Specifically, in the process of obtaining business data corresponding to railway operations based on data statistics dimensions, it is possible to determine whether there is matching cached business data based on the current business theme and the corresponding data statistics dimensions. If cached business data exists, the required business data can be determined and output directly based on the cached business data without triggering substantial network communication interaction. If no cached business data exists, the time granularity parameter in the data statistics dimension can be extracted, and an on-demand data request can be initiated to the server based on the time granularity parameter. The server can then retrieve and distribute railway operation values matching the time granularity parameter from the underlying layer based on the received on-demand data request, thereby obtaining the corresponding business data, which can be synchronously stored locally to update the cached business data.
[0121] For example, when determining whether cached business data exists, the system can utilize the current business theme and the data statistics dimension that is currently active. A unique cache key can be generated using a specific concatenation format (e.g., a nested string format of "theme key name - currently active tab identifier") to retrieve data from the local temporary storage area, local cache space, or in-memory database. If the data corresponding to the cache key is found and is within a preset validity period, the cached structured value can be directly sent as the current business data to subsequent chart rendering and indicator linkage processes, thus ensuring high continuity of the interface display in scenarios where no network involvement is required. If the cache key is not found, the system parses the dynamic configuration, extracts the time granularity parameter corresponding to the currently active dimension (e.g., the period parameter corresponding to "daily" or "monthly"), and assembles this parameter along with the theme identifier into a lightweight asynchronous request data packet, which is then transmitted to the server via a mobile network. After receiving the request, the server executes the corresponding backend query logic and returns the latest indicator stream data from the underlying heterogeneous database. After receiving the data returned by this network, it can store it in a local cache space named with the cache key for reuse in subsequent secondary switching or weak network environments.
[0122] In this embodiment, by combining business themes and data statistics dimensions to determine caching and initiate data requests on demand, the technical means described above can effectively solve the technical defects of traditional mobile visualization solutions in the overall page loading mode, which are prone to loading timeouts, severe lag, and single-point loading failures that cause the entire page to become unusable due to excessive redundant network requests. At the technical level, this ensures the efficiency of obtaining complex railway multi-dimensional indicator streams and the robustness of system operation.
[0123] In one embodiment, the chart configuration information includes a first rendering parameter and a second rendering parameter, wherein the power consumption of the first rendering parameter is greater than the power consumption of the second rendering parameter;
[0124] Based on chart configuration information and business data, chart configuration mapping is performed to generate chart data to be rendered, including:
[0125] Obtain the device performance level of the mobile terminal; if the device performance level is less than the preset performance threshold, remove the first rendering parameter from the chart configuration information, and perform mapping processing based on the second rendering parameter and business data to generate the chart data to be rendered; if the device performance level is not lower than the preset performance threshold, perform mapping processing based on the full chart configuration information and business data containing the first and second rendering parameters to generate the chart data to be rendered.
[0126] The first rendering parameter and the second rendering parameter can be a set of control attributes used to define the complexity of graphics drawing and visual embellishment effects. The first rendering parameter consumes more hardware power in graphics calculation than the second rendering parameter. This parameter can be dynamically extracted based on the chart configuration information obtained from the aforementioned analysis.
[0127] Device performance level can be a quantitative evaluation indicator that represents the underlying computing resources and graphics hardware concurrency capabilities of the current operating environment.
[0128] Specifically, in the process of generating chart data to be rendered by mapping chart configuration information and business data, the device performance level of the current environment is first obtained and compared with a preset performance threshold. If the device performance level is lower than the preset performance threshold, a degradation mechanism is triggered, actively removing the first rendering parameter that belongs to high-power operation from the chart configuration information, and performing mapping processing only based on the low-power second rendering parameter and business data, thereby generating lightweight chart data to be rendered. If the device performance level is not lower than the preset performance threshold, it indicates that the current hardware resources are relatively sufficient. At this time, a complete mapping process can be performed based on the full chart configuration information and business data containing the first and second rendering parameters to generate chart data to be rendered with full visual effects.
[0129] For example, when obtaining the aforementioned device performance level, low-level application programming interfaces (APIs) such as navigator.hardwareConcurrency can be called to detect GPU hardware concurrency support, thereby quantitatively evaluating the current device performance. In the aforementioned chart configuration information (e.g., the extended configuration defined by chart.extendConfig in dynamic configuration), the first rendering parameter can specifically represent advanced graphics effect instructions that consume more GPU resources, such as color gradients and smooth curves; while the second rendering parameter can be low-power basic graphics attributes such as base color and default line width. When the system detects and determines that it is currently in a low-performance device environment, it can automatically intercept and disable the assembly of these advanced effect parameters, so that the drawing structure output to the graphics engine only contains basic rendering instructions, thereby completing the adaptive lightweight gradient adaptation of device performance.
[0130] In this embodiment, by using the above-mentioned technique of dynamically eliminating high-power rendering parameters based on device performance level, the technical problem of excessive GPU usage and severe rendering stuttering on mobile devices caused by a large number of repetitive calculations when multiple charts are independently encoded without performance adaptation can be effectively overcome. This ensures rich chart visual presentation on high-performance devices while significantly reducing hardware resource consumption on low-end mobile devices when displaying complex railway operation multi-chart linkage, achieving the optimal dynamic balance between visual effects and hardware power consumption.
[0131] In one embodiment, the mobile interface includes a first display area, a second display area, and a third display area;
[0132] In the mobile interface, the data to be rendered is used to generate the target chart, and when displaying the target chart, the indicator data is shown, including:
[0133] The first display area of the mobile interface displays the indicator data; in response to the swipe trigger command of the mobile interface, the data of the chart to be rendered is rendered in the second display area of the mobile interface, and the target chart is displayed; in response to the interaction command of the target chart, the detailed table data associated with the target chart is displayed in the third display area of the mobile interface.
[0134] The “first display area”, “second display area” and “third display area” can be different physical display blocks or logical view layers with a hierarchical relationship on the mobile interface. For example, they can be represented as the core area of the first screen, the secondary interaction area and the deep interaction area of the mobile interface. These display areas can be generated based on the adaptive layout algorithm and component layout rules during system initialization. They are used as spatial containers to carry railway operation data of different granularities, thereby constructing a three-dimensional information display architecture within the limited mobile screen.
[0135] Slide-triggered commands and interaction commands can be control signals that represent the user's touch intent generated in a specific area of the screen, such as swiping up and down on the main and secondary charts or tapping on a specific node of the chart.
[0136] Detailed table data can be a collection of specific values that carry more granular and in-depth operational indicators at the underlying level. For example, it can be represented as a transportation revenue detail table that expands after clicking on a chart. This is used to meet the needs of on-site managers for in-depth traceability of micro parameters in addition to macro charts.
[0137] Specifically, in a mobile interface that includes a first display area, a second display area, and a third display area, the first display area of the mobile interface can be controlled to prioritize displaying indicator data that can intuitively reflect the macro-state; subsequently, in response to a swipe trigger command on the mobile interface, the data to be rendered in the second display area of the mobile interface is graphically rendered to display the target chart representing the trend of the main data; furthermore, in response to an interaction command generated for the target chart, the third display area of the mobile interface can be controlled to display detailed table data that is highly related to the currently selected target chart.
[0138] For example, when performing layered layout rendering and mobile adaptation, a three-layer progressive rendering structure can be constructed to respond to different levels of interactive operations. For instance, the first display area can correspond to the core area of the first screen of the interface, mainly responsible for statically displaying the core indicator cards selected by dynamic configuration (or combining them with a mini-map); when a downward or upward swipe trigger command is received, the main chart and secondary chart in the second display area (i.e., the secondary interaction area) can be driven to switch and render; and when the user clicks on a specific bar chart or line point, the third display area (i.e., the deep interaction area) can be triggered, which, in the form of a drawer-style panel, floats or expands on the current interface to display detailed table data containing various parameter configurations or fine-grained business flow information for users to explore in depth.
[0139] In this embodiment, by responding to corresponding instructions in different display areas to render indicators, charts, and detailed data in layers, the technical pain points of existing railway mobile terminal systems, such as the overflow of multiple chart combinations and the severe information overload of the mobile terminal cockpit, which are easily caused by directly migrating the fixed layout of the PC terminal, can be effectively solved. This greatly improves the layout adaptability and visual clarity of complex railway operation data on limited mobile terminal screens, and provides on-site operators and managers with an efficient, intuitive data browsing experience with deep interactive capabilities.
[0140] To enable those skilled in the art to better understand the above steps, the following example illustrates the embodiments of this application, but it should be understood that the embodiments of this application are not limited thereto.
[0141] This embodiment provides an integrated technical solution using a four-level component architecture: "entry container component - theme card component - chart rendering component - indicator card component". The component architecture is as follows: Figure 3 As shown, the architecture includes:
[0142] Level 1: Entry Container Component (ReportPage Component): Responsible for dynamic configuration requests and distribution. It receives user identity information, calls the backend dynamic configuration service, retrieves personalized theme configuration and data request functions, and calls the theme card component. It supports configuration loading fallback processing (static configuration as a fallback).
[0143] Level 2: ReportCard Component: Responsible for status and data management. It renders tabs based on dynamic configuration, handles granular data loading, cache management, loading / error status handling, and calls the chart rendering component and indicator card component. It supports both tab switching and voice command triggering methods.
[0144] Level 3: Chart Rendering Component (CustomChart Component): Responsible for lightweight rendering. Based on dynamically distributed chart configurations, it encapsulates and reuses common configurations (such as tooltip, grid, legend, etc. in the ECharts library). Through unified management and injection, it avoids independent calculations for each chart instance, reducing CPU overhead. It also provides personalized extension interfaces and implements device performance adaptation (such as simplified rendering on low-performance devices), supporting efficient rendering of multiple chart types.
[0145] Level 4: ChartIndexCard Component: Responsible for the linked display of business indicators. Based on dynamically configured indicator rules, it links with the same data source as the charts, dynamically adapts the layout and style according to the chart type, and displays key railway operation indicators.
[0146] The embodiments applied to the above architecture can achieve the following: Figure 4 The steps shown specifically include:
[0147] During system initialization, entry configuration initialization can be performed. The front-end entry container component (ReportPage component) obtains the target user's identity information and, based on this information, calls the backend dynamic configuration service to initiate a request. Upon receiving the request, the server can process it based on a database-driven dynamic configuration system. Specifically, the server can rely on six core relational tables to store the full-link configuration relationships of railway business, as shown in Table 1:
[0148] Table 1 Link Configuration Relationship
[0149]
[0150] Based on the table structure described above, the server first filters permissions according to the user's role, identifying the business topics the user is authorized to access. Next, it assembles data statistics dimensions (data dimensions), chart configuration information (chart configuration), and indicator calculation rules (indicator rules) for each topic, forming basic configuration data (basic configuration). Subsequently, the basic configuration data is merged with the retrieved personalized configuration data (user-defined settings), outputting structured visual configuration data (containing a four-layer JSON configuration object), which is then distributed to the mobile device. During this process, core indicator and chart adaptation rules can be established as shown in Table 2.
[0151] Table 2. Rules for Adapting Metrics and Icons
[0152]
[0153] For example, when obtaining visual configuration data (dynamic configuration), a caching mechanism can be used to ensure that the interface response time is ≤300ms, while the mobile front-end can retain static configuration as a fallback for loading (static configuration as a fallback).
[0154] Subsequently, the mobile app's ReportCard component receives this configuration and initializes. In response to user-issued business theme switching commands (tab switching or voice commands), the system extracts time-granularity parameters (such as "today" or "monthly") based on the currently parsed data statistics dimensions, preparing to load business data. During this process, the system can determine whether cached business data exists based on the current business theme and data statistics dimensions, for example, by retrieving cached data using a cache key in the format ${theme.key}-${activeTab}. If no match is found, an on-demand data request (granular loading) is initiated to the server to obtain the business data, and a corresponding loading status or business-specific error message is generated.
[0155] After acquiring the business data, the parallel rendering phase begins. The chart rendering component (CustomChart component) performs chart configuration mapping processing, encapsulates and reuses the second rendering parameters (common basic configurations, such as tooltip, grid, legend, etc. in the ECharts library), avoiding independent calculations to reduce CPU overhead. Simultaneously, APIs such as navigator.hardwareConcurrency can be called to obtain the device performance level. If the device is determined to be low-performance, adaptive rendering degradation is performed, automatically disabling the first rendering parameters (such as gradients, smooth curves, and other GPU-intensive effects) in the chart configuration information (defined in chart.extendConfig in dynamic configuration), thereby generating the chart data to be rendered.
[0156] Simultaneously, the indicator card component (ChartIndexCard component) calculates and processes the business data according to the indicator calculation rules (threshold and display format selected in indicators) to generate indicator data that is sourced and linked with the chart data.
[0157] Finally, in the mobile interface, layered layout rendering is performed based on dynamic configuration. Specifically, the first display area (first-layer core screen area) displays indicator data (core indicator cards) and a mini-map, and can switch themes in response to business theme switching commands (swiping left and right); in response to swipe trigger commands (swiping up and down), the second display area (second-level interaction area) renders the chart data to be rendered, generates target charts (main chart and sub-charts), and switches between them; in response to interaction commands for the charts (deep interaction), the third display area (third-level deep interaction area) displays detailed table data (detailed table and parameter configuration) in a drawer-style panel.
[0158] In this embodiment, the following technical effects can be achieved through the above steps: Improved scalability and maintainability: The database-driven dynamic configuration system allows adding new themes / indicators / charts without modifying the front-end code, and real-time configuration updates without requiring version releases, greatly improving development iteration efficiency; Precise multi-role and personalized adaptation: Theme and indicator filtering based on role permissions supports multi-role permission merging and deep user customization, achieving personalized data display for each user; Significantly optimized loading efficiency: Granular loading and dual caching mechanisms greatly improve the experience in weak network conditions, increasing tab switching speed and data viewing continuity; Significantly improved rendering performance: Common configuration reuse and device performance adaptive rendering effectively reduce mobile GPU and CPU usage, solving the problem of multiple chart rendering stuttering; Comprehensive improvement in mobile adaptability and user experience: The layered layout system solves the information overload problem, and the adaptive algorithm ensures readability and usability on various mobile devices; Enhanced data security and business fit: Role permission isolation is achieved at the configuration level, preventing sensitive data leakage. The solution is deeply aligned with railway business scenarios, and functions such as indicator card and chart linkage and voice interaction effectively improve on-site operation efficiency.
[0159] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0160] Based on the same inventive concept, this application also provides a mobile-oriented railway operation data visualization rendering optimization device for implementing the aforementioned mobile-oriented railway operation data visualization rendering optimization method. The solution provided by this device is similar to the implementation described in the above method. Therefore, the specific limitations of one or more mobile-oriented railway operation data visualization rendering optimization device embodiments provided below can be found in the limitations of the mobile-oriented railway operation data visualization rendering optimization method described above, and will not be repeated here.
[0161] In one exemplary embodiment, such as Figure 5 As shown, a mobile-oriented railway operation data visualization and rendering optimization device is provided, comprising: a visualization data acquisition module 510, a business data acquisition module 520, a chart configuration mapping module 530, an indicator data calculation module 540, and a visualization rendering module 550, wherein:
[0162] The visualization data acquisition module 510 is used to acquire visualization configuration data for railway operations; the visualization configuration data includes data statistical dimensions, chart configuration information, and indicator calculation rules.
[0163] The business data acquisition module 520 is used to acquire the business data corresponding to the railway business according to the data statistics dimension.
[0164] The chart configuration mapping module 530 is used to perform chart configuration mapping processing based on the chart configuration information and the business data to generate chart data to be rendered.
[0165] The indicator data calculation module 540 is used to process the business data according to the indicator calculation rules to obtain indicator data associated with the chart data to be rendered.
[0166] The visualization rendering module 550 is used in the mobile interface to render the chart data to be rendered to generate a target chart, and to display the indicator data when displaying the target chart.
[0167] In one embodiment, the visualization data acquisition module 510 is further configured to:
[0168] Obtain the user identity information of the mobile user, and initiate a configuration retrieval request to the server based on the user identity information;
[0169] The server receives the visual configuration data returned by the server; wherein the visual configuration data is obtained by the server based on the user identity information of the configuration request, obtaining the basic configuration data corresponding to the user identity information; obtaining the personalized configuration data of the mobile user; determining the visual configuration data based on the basic configuration data and the personalized configuration data, and sending it to the mobile device.
[0170] In one embodiment, the user identity information corresponds to multiple business themes; the visualization data acquisition module 510 is further configured to:
[0171] Obtain visualization configuration data for different business themes corresponding to the railway business, so as to display target charts and indicator data corresponding to different business themes on the mobile terminal interface.
[0172] In one embodiment, the business data acquisition module 520 is further configured to:
[0173] Based on the business theme and the corresponding data statistics dimension, determine whether the mobile device has cached business data;
[0174] If the mobile device has the cached service data, then the service data is determined based on the cached service data;
[0175] If the mobile device does not have the cached business data, then the time granularity parameter in the data statistics dimension is obtained, and an on-demand data request is sent to the server according to the time granularity parameter to obtain the corresponding business data.
[0176] In one embodiment, the chart configuration information includes a first rendering parameter and a second rendering parameter, wherein the power consumption of the first rendering parameter is greater than the power consumption of the second rendering parameter; the chart configuration mapping module 530 is further configured to:
[0177] Obtain the device performance level of the mobile terminal;
[0178] If the device performance level is less than a preset performance threshold, the first rendering parameter is removed from the chart configuration information, and the mapping process is performed based on the second rendering parameter and the business data to generate the chart data to be rendered.
[0179] If the device performance level is not lower than the preset performance threshold, then the full chart configuration information including the first rendering parameter and the second rendering parameter and the business data are mapped to generate the chart data to be rendered.
[0180] In one embodiment, the visualization rendering module 550 is further configured to:
[0181] In response to a business theme switching instruction for the mobile interface, the business theme is switched to the business theme indicated by the business theme switching instruction;
[0182] Based on the aforementioned business theme, re-acquire the corresponding business data;
[0183] Based on the reacquired business data, the target charts and indicator data corresponding to the business theme are displayed on the mobile interface.
[0184] In one embodiment, the mobile interface includes a first display area, a second display area, and a third display area; the visualization rendering module 550 is further configured to:
[0185] The indicator data is displayed in the first display area of the mobile interface;
[0186] In response to a swipe-triggered command on the mobile interface, the chart data to be rendered is rendered in the second display area of the mobile interface to display the target chart;
[0187] In response to an interaction command for the target chart, detailed table data associated with the target chart is displayed in the third display area of the mobile interface.
[0188] The modules in the aforementioned mobile-oriented railway operation data visualization and rendering optimization device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0189] In one exemplary embodiment, a computer device is provided, which may be a mobile terminal, and its internal structure diagram may be as follows: Figure 6As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external mobile devices; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a mobile-oriented method for visualizing and optimizing railway operation data rendering.
[0190] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0191] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0192] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.
[0193] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0194] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0195] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0196] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0197] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0198] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for optimizing the visualization and rendering of railway operation data for mobile devices, characterized in that, The method includes: Obtain visual configuration data for railway operations; the visual configuration data includes data statistics dimensions, chart configuration information, and indicator calculation rules. Based on the aforementioned data statistics dimensions, obtain the business data corresponding to the railway business; Based on the chart configuration information and the business data, chart configuration mapping processing is performed to generate chart data to be rendered; The business data is processed according to the indicator calculation rules to obtain indicator data associated with the chart data to be rendered; In the mobile interface, the data to be rendered is rendered to generate a target chart, and the indicator data is displayed when the target chart is shown.
2. The method according to claim 1, characterized in that, The acquisition of visualized configuration data for railway operations includes: Obtain the user identity information of the mobile user, and initiate a configuration retrieval request to the server based on the user identity information; The server receives the visual configuration data returned by the server; wherein the visual configuration data is obtained by the server based on the user identity information of the configuration request, obtaining the basic configuration data corresponding to the user identity information; obtaining the personalized configuration data of the mobile user; determining the visual configuration data based on the basic configuration data and the personalized configuration data, and sending it to the mobile device.
3. The method according to claim 2, characterized in that, The user identity information corresponds to multiple business themes; The acquisition of visualized configuration data for railway operations includes: Obtain visualization configuration data for different business themes corresponding to the railway business, so as to display target charts and indicator data corresponding to different business themes in the mobile terminal interface; The step of rendering the chart data to be rendered into a target chart on the mobile interface, and displaying the target chart after displaying the indicator data, further includes: In response to a business theme switching instruction for the mobile interface, the business theme is switched to the business theme indicated by the business theme switching instruction; Based on the aforementioned business theme, re-acquire the corresponding business data; Based on the reacquired business data, the target charts and indicator data corresponding to the business theme are displayed on the mobile interface.
4. The method according to claim 3, characterized in that, The step of obtaining the business data corresponding to the railway business based on the data statistical dimensions includes: Based on the business theme and the corresponding data statistics dimension, determine whether the mobile device has cached business data; If the mobile device has the cached service data, then the service data is determined based on the cached service data; If the mobile device does not have the cached business data, then the time granularity parameter in the data statistics dimension is obtained, and an on-demand data request is sent to the server according to the time granularity parameter to obtain the corresponding business data.
5. The method according to claim 1, characterized in that, The chart configuration information includes a first rendering parameter and a second rendering parameter, wherein the power consumption of the first rendering parameter is greater than the power consumption of the second rendering parameter. The step of performing chart configuration mapping processing based on the chart configuration information and the business data to generate chart data to be rendered includes: Obtain the device performance level of the mobile terminal; If the device performance level is less than a preset performance threshold, the first rendering parameter is removed from the chart configuration information, and the mapping process is performed based on the second rendering parameter and the business data to generate the chart data to be rendered. If the device performance level is not lower than the preset performance threshold, then the full chart configuration information including the first rendering parameter and the second rendering parameter and the business data are mapped to generate the chart data to be rendered.
6. The method according to claim 1, characterized in that, The mobile interface includes a first display area, a second display area, and a third display area; The step of rendering the chart data to be rendered into a target chart on the mobile interface, and displaying the indicator data when displaying the target chart, includes: The indicator data is displayed in the first display area of the mobile interface; In response to a swipe-triggered command on the mobile interface, the chart data to be rendered is rendered in the second display area of the mobile interface to display the target chart; In response to an interaction command for the target chart, detailed table data associated with the target chart is displayed in the third display area of the mobile interface.
7. A mobile-oriented railway operation data visualization and rendering optimization device, characterized in that, The device includes: The visualization data acquisition module is used to acquire visualization configuration data for railway operations; the visualization configuration data includes data statistical dimensions, chart configuration information, and indicator calculation rules. The business data acquisition module is used to acquire the business data corresponding to the railway business according to the data statistics dimensions. The chart configuration mapping module is used to perform chart configuration mapping processing based on the chart configuration information and the business data to generate chart data to be rendered. The indicator data calculation module is used to process the business data according to the indicator calculation rules to obtain indicator data associated with the chart data to be rendered. The visualization rendering module is used in the mobile interface to render the chart data to be rendered to generate a target chart, and to display the indicator data when displaying the target chart.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.