Processing method and device for multiple display modes of broken line graph and storage medium

By providing a variety of line chart display methods on mobile APPs, including time type selection, breakpoint repair and interactive date navigation, the problem of singleness and lack of interactivity of line chart display in the prior art is solved, and the problem of improving the The depth of user experience and data browsing.

CN119066244AInactive Publication Date: 2024-12-03SHANDONG LONGZHONG INFORMATION TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202411561701.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-05
Publication Date
2024-12-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When the existing technology displays price data line charts on mobile APPs, it is insufficient to expressively reveal the deep connections and potential laws behind the data, and it lacks interactivity and immersion. The single display method causes users to browse for a long time. I feel boring and lack effective abnormal data processing measures.

Method used

Provides a method of processing a line chart with multiple display methods, allowing users to select time types, eliminate curve breakpoints, display horizontally, and generate a line chart for specific dates through real-time rendering technology, supporting interactive date navigation and data browsing, including Information acquisition module, line chart generation module, time type selection module, breakpoint repair module, date progress bar module and data interaction module.

Benefits of technology

Provide users with diverse data display options, automatically detect and repair line chart breakpoints, ensure data continuity and readability, improve user experience, and enable users to easily browse data on different dates through real-time rendering and interactive functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119066244A_ABST
    Figure CN119066244A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computer mobile application programs, in particular to a processing method and device for multiple display modes of a broken line graph and a storage medium. The method comprises the steps that S1, a system obtains an information original text, and the information original text comprises broken line graph node items of the information; s2, the system generates a broken line graph of the information original text; s3, the system generates a broken line graph node item of the information original text by transmitting a time type to a data center; s4, repairing a disconnection condition occurring in the system; s5, for the generated broken line graph data, the system associates the date progress bar to the broken line graph data to generate a broken line graph of a specific date; and S6, the system renders a layer at the click position of the broken line graph to display the obtained data. According to the method, the broken line graph to be viewed can be selected according to needs, and meanwhile, a user can freely control the date range and the landscape display function by eliminating curve breakpoints so as to obtain better browsing experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer mobile application programs, and in particular to a method, device and storage medium for processing multiple display modes of a line graph. Background Art

[0002] The display method of the price data line chart on the mobile APP is relatively simple, and it is difficult to obtain a good trend understanding and browsing experience. For example, the Chinese patent with publication number CN115858891A discloses a data visualization display method, device, electronic device and storage medium, which performs graphic drawing processing on the data to be displayed by executing a drawing function, generates a visualization graph of the data to be displayed, and displays the visualization graph on the graphic drawing interface, which can more accurately and effectively display the data visually, and further improve the data visualization display effect. However, this data visualization display method is not expressive enough when facing multi-dimensional and complex related data sets. The single display method is difficult to fully reveal the deep connection and potential laws behind the data, thereby limiting the user's insight into the comprehensiveness and complexity of the data. The display method is relatively simple and it is difficult to obtain a good trend understanding and browsing experience. The single display method often causes users to feel boring when browsing a large number of charts for a long time, lacking sufficient interactivity and immersion. For the processing of abnormal data, most of the existing visualization methods remain at the simple marking or highlighting level, lacking effective remedial measures to guide users on how to deal with these abnormal data. Summary of the invention The technical problem to be solved by the present invention is: to overcome the shortcomings of the prior art and provide a processing method, device and storage medium for multiple display modes of a line graph, so that users can select the line graph to be viewed according to their needs. Users can eliminate curve breakpoints, freely control the date range, and display the graph horizontally to obtain a better browsing experience.

[0003] The technical solution of the present invention is: A method for processing multiple display modes of a line chart includes the following steps: S1. The system obtains an original message, which contains a line graph node item of the message; S2, the system executes the information text line graph processing flow to generate a line graph of the original information text; S3. The user selects different time types. The system generates line graph node items of the original information by passing the time type to the data center, and generates the final line graph by executing the line graph processing flow. S4. Execute the operation of eliminating curve breakpoints to repair the disconnection situation in the system; S5. For the generated line chart data, the system associates the date progress bar with the line chart data, and generates a line chart of a specific date through real-time rendering technology; S6. The system calculates the corresponding price, region, and type data in real time according to the clicked x-axis date, and displays the acquired data by rendering a layer at the clicked position of the line chart.

[0004] Preferably, the line graph processing flow in step S2 includes the following sub-steps: Step S21, determine whether there is data on the x-axis and y-axis of the line graph node item, if not, render it as no data layout; Step S22, if the x-axis and y-axis of the line graph node item of step S21 have data, generate the corresponding x-axis and y-axis data by setting series and categories for AAChartModel, and set the color, thickness, font size, font color, and fill color data items of the polyline through js; Step S23, AAOptions configures the set AAChartModel, and finally AAChartView renders the final line chart by loading AAOptions.

[0005] Preferably, the operation of eliminating curve breakpoints in step S4 includes the following sub-steps: Step d1, process the line chart node item data as non-numeric type and set it to null; Step d2, setting the breakpoint reconnection property through AAChartModel; Step d3, in AAChartView, render the set attributes to the page in json format through js interaction; In step d4, js filters the line chart according to whether the data is null, skips the data items that are null, and finally renders it into a complete line chart.

[0006] Preferably, the time types include: daily price, weekly price, monthly price, quarterly price, half-year price, and annual price.

[0007] Preferably, the data center is used to store all price-related data items and provide them to the web and app terminals for data display.

[0008] Preferably, in step S6, the x-axis and y-axis data are in a one-to-one binding relationship. By clicking the x-axis coordinate, the corresponding y-axis data will be obtained. The region and type data are data contained in the original information, which are fixed data and will not change with the position of clicking the x-axis.

[0009] Preferably, in step S3, the user can select different time types through a graphical interface, and the system displays a line chart preview of the corresponding time type in real time, so that the user can quickly confirm the time range required for display.

[0010] Preferably, before executing the operation of eliminating curve breakpoints in step S4, the system also has the function of automatically detecting breakpoints, by analyzing the line graph data, determining whether there are breakpoints, and automatically triggering the operation of eliminating breakpoints, thereby improving the continuity and readability of the line graph.

[0011] Preferably, in step S5, the date progress bar provided by the system has an interactive function, and the user can quickly switch between different dates by dragging the progress bar, and a line chart of the corresponding date is displayed in real time, providing a convenient date navigation and data browsing experience.

[0012] Preferably, the system also has a data prompt function. When the user clicks a certain position on the line chart, in addition to rendering a layer to display the acquired data, more relevant information can also be displayed in the prompt box, such as specific values ​​and changing trends, to help users understand the data more deeply.

[0013] A device for displaying a line graph in multiple ways comprises an information acquisition module, a line graph generation module, a time type selection module, a data processing center, a breakpoint repair module, a date progress bar module, a data interaction module and a user interface display module.

[0014] A storage medium that non-transitorily stores computer-readable instructions.

[0015] Compared with the prior art, the present invention has the following beneficial effects: By allowing users to select different time types, the system can generate and display line charts for the corresponding time ranges, providing users with a variety of data display options; it can automatically detect and repair disconnections in line charts to ensure data continuity and readability, and improve user experience; through real-time rendering technology, the system can quickly generate and update line charts, while supporting interactive functions, allowing users to easily browse data from different dates. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0017] Figure 1 is a flow chart of the method of the present invention.

[0018] Figure 2 The line graphs of different time types generated for the present invention, wherein a is the daily price line graph of the present invention; and b is the weekly price line graph of the present invention.

[0019] Figure 3 It is a comparison diagram of the line graph before and after the breakpoints of the present invention are eliminated, wherein a is the initial line graph generated by the present invention; b is the line graph after the breakpoints of the present invention are eliminated.

[0020] Figure 4 A line diagram of a certain X-axis interval of a certain year generated by the present invention.

[0021] Figure 5 A schematic diagram generated by the present invention showing data based on a certain X-axis coordinate date in a certain year.

[0022] Figure 6 This is a data display diagram of the web terminal of the present invention. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0024] Example 1 like Figure 1 As shown, this embodiment provides a method for processing multiple display modes of a line graph, including the following steps: S1, the system obtains an original message about the market prices of multiple fuels, and the original message contains the line graph node items of the information; S2, the system executes the information text line graph processing flow to generate a line graph of the original information text; S3, such as Figure 2 From A to Figure 3 As shown in a, the user selects different time types, and the system generates line graph node items of the original information by passing the time type to the data center, and generates the final line graph by executing the line graph processing flow; S4, such as Figure 3 As shown in b, the curve breakpoint elimination operation is performed to repair the disconnection situation in the system; S5, such as Figure 4 As shown, for the generated line chart data, the system associates the date progress bar with the line chart data, and generates a line chart of a specific date range through real-time rendering technology; S6, such as Figure 5 As shown, the system calculates the corresponding price, region, and type data in real time based on the clicked x-axis date, and displays the acquired data by rendering a layer at the clicked position of the line chart.

[0025] The original information is in JSON format, and the interface is in RESTful mode. Through the gateway configuration, the gateway acts as an intermediate layer to complete tasks such as user identity authentication, traffic control, monitoring and logging, thereby improving the security of the API. The interface uses the HTTPS protocol and the request parameter encryption algorithm. After the server receives the encrypted data, it uses the corresponding key to decrypt it. In order to prevent the request from being tampered with or replayed, the client uses the private key to sign the key part of the request when sending the request through the signature mechanism, and sends the signature together with the request to the server. The server verifies the validity of the signature, thereby confirming the authenticity of the request. Parse the data returned by the request (original information), convert the JSON data into a Java object, and the information in the Java object is the line chart node item.

[0026] Preferably, the line graph processing flow in step S2 includes the following sub-steps: Step S21, determine whether there is data on the x-axis and y-axis of the line graph node item, if not, render it as no data layout; Step S22, if the x-axis and y-axis of the line graph node item of step S21 have data, set series and categories for AAChartModel. AAChartModel is a library for creating interactive charts with rich chart types. Series and categories are classes of AAChartModel, which are used to generate corresponding x-axis and y-axis data, and set the color, thickness, font size, font color, and fill color data items of the polyline in js mode; Step S23, AAOptions configures the set AAChartModel, AAOptions is an icon setting parameter class, and finally the chart control AAChartView renders the final line chart by loading AAOptions.

[0027] Step S24, when entering the page, the static UI part is rendered first by preloading technology, and the chart library of the line graph is also preloaded. After the data request is completed, the line graph is rendered synchronously, which greatly reduces the rendering time of the page and improves the user experience. Preloading technology includes class preloading, resource preloading and data preloading. Class preloading loads the required classes into the memory in advance when the application starts to reduce the time and delay of class loading. Generally, reflection and custom ClassLoader are used. The preloaded classes should not be too many, which will increase memory usage and affect performance. Resource preloading is to load the required resources (such as pictures, layout files, etc.) into the memory in advance when the application starts, and preload some system-level shared resources in the zygote process and preload the required resources into the memory inside the application. It can significantly reduce the time-consuming resource loading and improve the response speed of the application. Data preloading is loading data from the network, database or local file into memory before the application needs to display data. You can perform data loading operations in the background thread and update the UI through the Handler. You can also use IntentService to perform data loading and send the results to the main thread through broadcast or notification to update the UI. Preloading technology can improve startup speed, reduce latency, and optimize resource utilization.

[0028] Preferably, the operation of eliminating curve breakpoints in step S4 includes the following sub-steps: Step d1, process the line chart node item data as non-numeric type and set it to null; Step d2, setting the breakpoint reconnection property through AAChartModel; Step d3, in AAChartView, render the set attributes to the page in json format through js interaction; In step d4, js filters the line chart according to whether the data is null, skips the data items that are null, and finally renders it into a complete line chart.

[0029] Preferably, the time types include: daily price, weekly price, monthly price, quarterly price, half-year price, and annual price.

[0030] Preferably, if Figure 6 As shown, the data center is used to store all price-related data items and provide them to the web and app ends for data display.

[0031] Preferably, in step S6, the x-axis and y-axis data are in a one-to-one binding relationship. By clicking the x-axis coordinate, the corresponding y-axis data will be obtained. The region and type data are data contained in the original information, which are fixed data and will not change with the position of clicking the x-axis.

[0032] Preferably, in step S3, the user can select different time types through a graphical interface, and the system displays a line chart preview of the corresponding time type in real time, so that the user can quickly confirm the time range required for display.

[0033] Preferably, before executing the operation of eliminating curve breakpoints in step S4, the system also has the function of automatically detecting breakpoints, by analyzing the line graph data, determining whether there are breakpoints, and automatically triggering the operation of eliminating breakpoints, thereby improving the continuity and readability of the line graph.

[0034] Preferably, in step S5, the date progress bar provided by the system has an interactive function, and the user can quickly switch between different dates by dragging the progress bar, and a line chart of the corresponding date is displayed in real time, providing a convenient date navigation and data browsing experience.

[0035] Preferably, the system also has a data prompt function. When the user clicks a certain position on the line chart, in addition to rendering a layer to display the acquired data, more relevant information can be displayed in the prompt box, such as specific values ​​and change trends, to help users understand the data more deeply. The prompt box layer uses preloading technology to complete the UI, page and data separation when rendering the line chart, load the data into the memory in advance, bind the data in the ViewModel to the UI control through Data Binding, and when the user clicks a certain position on the line chart, the corresponding line chart node item data is obtained and loaded into the prompt box layer. There is no need for the user to wait, and real-time rendering is performed, which greatly improves the interaction efficiency.

[0036] Example 2 A device for displaying a line graph in multiple ways, comprising: The information acquisition module is used to receive and parse the original information and extract the line graph node items from it; A line graph generation module, connected to the information acquisition module, is used to execute the line graph processing flow and generate an initial line graph according to the line graph node items; The time type selection module provides a user interface for users to select different time types and transmits the selected time type to the data processing center; The data processing center is connected to the time type selection module, and regenerates the line graph node items of the corresponding time type according to the received time type, and generates the final line graph again through the line graph generation module; Breakpoint repair module, used to detect and repair breakpoints in line charts to ensure the continuity and integrity of line charts; A date progress bar module is connected to the line graph generation module and is used to generate and display a date progress bar. Through real-time rendering technology, the user is allowed to view line graphs of different dates by dragging the progress bar. A data interaction module, connected to the line graph generation module and the date progress bar module, is used to respond to the user's click operation on the line graph, calculate and display the price, region, and type data of the corresponding position in real time, and render a layer or prompt box on the line graph to display detailed information; The user interface display module is connected to the time type selection module, the date progress bar module and the data interaction module, and provides a graphical interface for users to select and view line charts of different time types and dates, and obtain detailed information of specific data points through click operations.

[0037] Example 3 A storage medium non-temporarily stores computer-readable instructions, and when the instructions are executed by a computer, a processing method for multiple display modes of a line chart can be executed.

[0038] Although the present invention has been described in detail by referring to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.

Claims

1. A method for processing multiple display modes of a line graph, characterized in that: The steps include: S1. The system obtains an original message, which contains a line graph node item of the message; S2, the system executes the information text line graph processing flow to generate a line graph of the original information text; S3. The user selects different time types. The system generates line graph node items of the original information by passing the time type to the data center, and generates the final line graph by executing the line graph processing flow. S4. Execute the operation of eliminating curve breakpoints to repair the disconnection situation in the system; S5. For the generated line chart data, the system associates the date progress bar with the line chart data, and generates a line chart of a specific date through real-time rendering technology; S6. The system calculates the corresponding data in real time according to the clicked coordinate axis date, and renders a layer at the clicked position of the line chart to display the acquired data.

2. The method for processing multiple display modes of a line graph according to claim 1, characterized in that: The line graph processing flow in step S2 includes the following sub-steps: Step S21, determine whether there is data on the x-axis and y-axis of the line graph node item, if not, render it as no data layout; Step S22, if the x-axis and y-axis of the line graph node item of step S21 have data, generate the corresponding x-axis and y-axis data by setting series and categories for AAChartModel, and set the color, thickness, font size, font color, and fill color data items of the polyline through js; Step S23, AAOptions configures the set AAChartModel, and finally AAChartView renders the final line chart by loading AAOptions.

3. The method for processing multiple display modes of a line graph as claimed in claim 2, characterized in that: The operation of eliminating curve breakpoints in step S4 includes the following sub-steps: Step d1, process the line chart node item data as non-numeric type and set it to null; Step d2, setting the breakpoint reconnection property through AAChartModel; Step d3, in AAChartView, render the set attributes to the page in json format through js interaction; In step d4, js filters the line chart according to whether the data is null, skips the data items that are null, and finally renders it into a complete line chart.

4. The method for processing multiple display modes of a line graph according to claim 1, characterized in that: The time types in step S3 include: daily price, weekly price, monthly price, quarterly price, half-year price, and annual price.

5. The method for processing multiple display modes of a line graph according to claim 1, characterized in that: In step S3, the data center is used to store all price-related data items and provide them to the web and app terminals for data display.

6. The method for processing multiple display modes of a line graph according to claim 1, characterized in that: The x-axis and y-axis data of the coordinate axis in step S6 are in a one-to-one binding relationship. By clicking the x-axis coordinate, the corresponding y-axis data will be obtained. The corresponding y-axis data includes price, region and type data, wherein the region and type data are data contained in the original text of the information, which are fixed data and will not change with the position of clicking the x-axis.

7. The method for processing multiple display modes of a line graph according to claim 1, characterized in that: In step S3, the user selects different time types through a graphical interface, and the system displays a line chart preview of the corresponding time type in real time, so that the user can quickly confirm the time range required for display.

8. The method for processing multiple display modes of a line graph as claimed in claim 1, characterized in that: The system also has a data prompt function. When the user clicks a certain position on the line chart, in addition to rendering a layer to display the acquired data, more relevant information is displayed in the prompt box, including specific values ​​and changing trends, to help users understand the data more deeply.

9. A device for displaying line graphs in multiple ways, characterized in that: include: The information acquisition module is used to receive and parse the original information and extract the line graph node items from it; A line graph generation module, connected to the information acquisition module, is used to execute the line graph processing flow and generate an initial line graph according to the line graph node items; The time type selection module provides a user interface for users to select different time types and transmits the selected time type to the data processing center; The data processing center is connected to the time type selection module, and regenerates the line graph node items of the corresponding time type according to the received time type, and generates the final line graph again through the line graph generation module; Breakpoint repair module, used to detect and repair breakpoints in line charts to ensure the continuity and integrity of line charts; A date progress bar module is connected to the line graph generation module and is used to generate and display a date progress bar. Through real-time rendering technology, the user is allowed to view line graphs of different dates by dragging the progress bar. A data interaction module, connected to the line graph generation module and the date progress bar module, is used to respond to the user's click operation on the line graph, calculate and display the price, region, and type data of the corresponding position in real time, and render a layer or prompt box on the line graph to display detailed information; The user interface display module is connected to the time type selection module, the date progress bar module and the data interaction module, and provides a graphical interface for users to select and view line charts of different time types and dates, and obtain detailed information of specific data points through click operations.

10. A storage medium, characterized in that: The storage medium non-temporarily stores computer-readable instructions, wherein when the computer-readable instructions are executed by a computer, the method for processing multiple display modes of a line graph as described in any one of claims 1 to 8 is executed.

Citation Information

Patent Citations

  • Visual display method and device of data, electronic equipment and storage medium

    CN115858891A

  • Method and device for displaying stock time-sharing plans in WeChat applet

    CN106952316A

  • Steel trade industry price information line chart / candlestick chart display system and method

    CN107169866A

  • A front-end system based on an Internet of Things cloud platform and a design method

    CN109471629A

  • System and method for data display

    CN110955652A