Data display method, device, electronic device and computer readable storage medium
By automatically determining calendar data and calculation result sets by acquiring view information and preset mapping relationships, and combining display rules to display more information in the calendar, the problem of complex user operations in existing technologies is solved, and the efficiency of information display is improved.
Patent Information
- Application Number
- CN202110924634.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-12
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2041-08-12
AI Technical Summary
In existing technologies, users need to perform complex operations to obtain multi-dimensional information related to dates, resulting in low information display efficiency.
By acquiring view information and preset mapping relationships, the system automatically determines the calendar data to be displayed, statistical content groups, and calculation result sets, and combines these with calendar display rules to display more information in the calendar, reducing user operations.
It improves the efficiency for users to obtain date-related information, reduces user operation steps, and increases the amount of information displayed in the calendar.
Smart Images

Figure CN113778588B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and in particular, relates to a data display method, device, electronic device and computer-readable storage medium. Background Art
[0002] In the prior art, the common calendar display method only displays date data. When the user needs to obtain information related to the date, it is necessary to rely on the user's complex operations to display more information to the user, which wastes the user's time and has low efficiency in displaying information to the user.
[0003] Application Contents
[0004] The embodiment of the present application provides an implementation solution different from the prior art to solve the technical problem that when providing date-related data to users, users are required to perform more operations and the efficiency of displaying information to users is low.
[0005] In a first aspect, the present application provides a data display method, comprising: obtaining view information of a calendar to be displayed, the view information including a view type and calendar time information; determining corresponding calendar data to be displayed, a statistical content group, and a calculation result set related to the statistical content group based on the view information and preset mapping relationship information; determining corresponding calendar display rules using the view information; and displaying a first target calendar in combination with the calendar display rules, the calendar data to be displayed, the statistical content group, and the calculation result set.
[0006] In a second aspect, the present application provides a data display device, comprising: an acquisition module, used to acquire view information of a calendar to be displayed, the view information including a view type and calendar time information; a first determination module, used to determine the corresponding calendar data to be displayed, a statistical content group, and a calculation result set related to the statistical content group based on the view information and preset mapping relationship information; a second determination module, used to determine the corresponding calendar display rules using the view information; and a display module, used to display a first target calendar in combination with the calendar display rules, the calendar data to be displayed, the statistical content group, and the calculation result set.
[0007] In a third aspect, the present application provides an electronic device comprising: a processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory to execute the data display method described in the first aspect or any possible implementation scheme of the first aspect.
[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the data display method described in the first aspect or any possible implementation manner of the first aspect is implemented.
[0009] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the data display method described in the first aspect or any possible implementation manner of the first aspect.
[0010] The solution provided by this application can display more required date-related data to users without relying on complex user operations. The calendar data, statistical content, and calculation results to be displayed can be comprehensively displayed to show users more information in the calendar, thereby improving the efficiency of displaying data to users. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0012] Figure 1a A flowchart of a data display method provided in one embodiment of the present application;
[0013] Figure 1b A schematic diagram of a view type selection method provided in an embodiment of the present application;
[0014] Figure 1c A schematic diagram of a method for selecting calendar time information corresponding to a month view provided in an embodiment of the present application;
[0015] Figure 1d A schematic diagram of a method for selecting calendar time information corresponding to a year view provided in an embodiment of the present application;
[0016] Figure 2a A schematic diagram of display results of a first target calendar provided in an embodiment of the present application;
[0017] Figure 2b A schematic diagram of display results of a first target calendar provided in another embodiment of the present application;
[0018] Figure 3a A schematic diagram of display results of a first target calendar provided in another embodiment of the present application;
[0019] Figure 3bA schematic diagram of display results of a first target calendar provided in another embodiment of the present application;
[0020] Figure 4 A schematic diagram of a sliding display panel provided in an embodiment of the present application;
[0021] Figure 5 A schematic diagram of the UML structure of a configurator provided in one embodiment of the present application;
[0022] Figure 6 A schematic diagram of a data processing method provided in one embodiment of the present application;
[0023] Figure 7a A schematic diagram of a calendar loading page provided in an embodiment of the present application;
[0024] Figure 7b A schematic diagram of a calendar loading page provided in another embodiment of the present application;
[0025] Figure 8 A schematic diagram of the structure of a data display device provided in one embodiment of the present application;
[0026] Fig. 9 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0027] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, but cannot be understood as limiting the present application.
[0028] The terms "first" and "second" in the specification, claims and drawings of the embodiments of the present application, etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0029] At present, there are many stock trading software on the market that display the profit and loss data of users on a specific date. Users need to perform complex operations on the software to observe the profit and loss data of more dimensions, which is time-consuming and has low observation efficiency. This application provides a data display method to improve the user's observation efficiency of the required information related to the date.
[0030] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0031] Figure 1a A flowchart of a data display method provided by an exemplary embodiment of the present application is provided. The method can be applied to a client device. The method includes:
[0032] S101, obtaining view information of a calendar to be displayed, wherein the view information includes a view type and calendar time information;
[0033] S102: determining corresponding calendar data to be displayed, a statistical content group, and a calculation result set related to the statistical content group based on the view information and preset mapping relationship information;
[0034] S103, determining a corresponding calendar display rule using the view information;
[0035] S104: Display a first target calendar in combination with the calendar display rule, the calendar data to be displayed, the statistical content group, and the calculation result set.
[0036] Specifically, in the aforementioned S101, obtaining the view information of the calendar to be displayed includes any of the following:
[0037] Method 1: obtaining a selection instruction of the user for the view information, and determining the view information according to the selection instruction;
[0038] Method 2: when detecting a user's opening instruction for the calendar to be displayed, obtaining historical setting information, and determining the view information according to the historical setting information.
[0039] Specifically, the view type is any one of a month view and a year view, and the calendar time information is month information and year information. The month view corresponds to the month information, and the year view corresponds to the year information, and the month information includes: the month and the year to which the month belongs;
[0040] In some optional embodiments, for the above-mentioned method 1, the user can select the view type through the button, for details, see Figure 1b to Figure 1d As shown, wherein, optionally, the user can operate Figure 1b Use the switch button in the view to select the view type as the month view type or the year view type, and use the drop-down box corresponding to the view type to determine the calendar time information. Figure 1b As shown, the switch button includes two buttons, "month" and "year". When the user clicks the "month" button, a drop-down box is displayed (see Figure 1c ), the calendar time selection control corresponds to the year and month. When the user clicks the button "Year", the drop-down box displayed (see Figure 1d ) only corresponds to the year. When the user selects the calendar time information according to the calendar time selection control in the drop-down box, the user clicks the "OK" button to confirm the view type and calendar time information selected by the user. If the user clicks "Cancel" or a blank space, the original date will not be changed. For example: when the user clicks the "Month" button, selects March 2021 in the corresponding drop-down box, and clicks "OK", the calendar time information determined is: March 2021; when the user clicks the "Year" button, selects 2021 in the drop-down box, and clicks "OK", the calendar time information determined is: 2021.
[0041] Further, with respect to the aforementioned method 2, when a user's opening instruction for the calendar to be displayed is detected, the historical setting information previously set by the user for the calendar to be displayed can be automatically obtained, and the view type previously selected by the user can be determined using the historical setting information, and the date and time information closest to the current time can be determined, and then the view information can be determined. Among them, the aforementioned opening instruction can be a trigger instruction for the user to enter the data analysis page, or it can be a user's opening instruction for opening the application corresponding to the calendar to be displayed, and this application does not limit this.
[0042] In some optional embodiments of the present application, the statistical content group includes one or more statistical contents, and the calculation result set includes the calculation results corresponding to one or more statistical contents. Specifically, the calculation result set may include one or more calculation results. The statistical contents correspond to the calculation results one by one, wherein each statistical content and the corresponding calculation result thereof may be a set of display pair data; the data type of the display pair data may include multiple types, for example, any of the following: income type, activity type, transaction type, account amount type. When the data type of the display pair data is income type, the statistical content may be the income amount, and the corresponding calculation result is the rate of return; when the data type of the display pair data is activity type, the statistical content may also be the number of posts, and the corresponding calculation result is the corresponding posting activity; when the data type of the display pair data is transaction type, the statistical content may also be the number of transactions, and the corresponding calculation result is the transaction growth rate. When the data type of the display pair data is account amount type, the statistical content may be the balance, and the calculation result may be the interest, balance growth rate, or balance growth amount, etc.
[0043] Furthermore, in the aforementioned step S102, the preset mapping relationship information may be pre-stored in the client device or the server device, and the preset mapping relationship information may specifically include: the correspondence between the view information and the calendar data to be displayed, the statistical content group, and the calculation result set related to the statistical content group corresponding to the view information. When determining the view information, the calendar data to be displayed, the statistical content group, and the calculation result set related to the statistical content group corresponding to the view information may be determined by querying the preset mapping relationship.
[0044] Specifically, the calendar data to be displayed may include the first calendar panel and other data required for displaying the first target calendar. In the aforementioned S102, determining the corresponding calendar data to be displayed, the statistical content group, and the calculation result set based on the view information and the preset mapping relationship information may include the following steps:
[0045] S1021. Determine target mapping table information based on the view information;
[0046] S1022: Determine the calendar data to be displayed, the statistical content group, and the calculation result set according to the target mapping table information.
[0047] The target mapping table information is the aforementioned preset mapping relationship information, which may store the view information and its corresponding calendar data to be displayed, statistical content groups, and calculation result sets.
[0048] In some embodiments of the present application, the aforementioned calendar data to be displayed may include multiple third calendar units. When the view type is a monthly type and the calendar time information is month information, the multiple third calendar units are multiple natural days contained in the month corresponding to the month information, and each natural day is a third calendar unit. Correspondingly, when the view type is a year type and the calendar time information is year information, the multiple third calendar units are multiple natural months contained in the year corresponding to the year information, and each natural month is a third calendar unit.
[0049] In some optional embodiments of the present application, among the multiple third calendar units corresponding to the calendar data to be displayed, there are corresponding display pairs of data, that is, there are statistical contents and calculation results, and the number of first calendar units corresponding to the calendar data to be displayed is the same as the number of statistical contents in the statistical content group and the number of calculation results in the calculation result set; and the first calendar units, statistical contents, and calculation results correspond one-to-one. It should be noted that each first calendar unit can also correspond to multiple pairs of display pairs of data, and the specific number and type of corresponding display pairs of data can be determined according to user settings.
[0050] Correspondingly, determining the calendar data to be displayed, the statistical content group and the calculation result set according to the target mapping table information may specifically be obtaining the statistical content and the calculation result corresponding to each first calendar unit in the calendar data to be displayed.
[0051] Determining the corresponding calendar data to be displayed, statistical content group and calculation result set based on the view information and the preset mapping relationship information may include: sending the view information to the server, so that the server determines the corresponding calendar data to be displayed, statistical content group and calculation result set based on the view information and the preset mapping relationship information, and feeds back the determined calendar data to be displayed, statistical content group and calculation result set to the client device. The specific manner in which the server determines the corresponding calendar data to be displayed, statistical content group and calculation result set based on the view information and the preset mapping relationship information can be found in the relevant embodiments of S1021 and S1022, which will not be repeated here.
[0052] Furthermore, other data required by the first target calendar may include basic configuration information: the size of the date grid (cell) corresponding to the third calendar unit, the number of cells contained in the calendar time information, whether the week column is displayed when the view type is the month type, the data type of the display pair data, and the view protocol corresponding to the data type of different display pair data. Among them, the view protocol stipulates the processing rules of the display pair data before display: for example: identifying the link corresponding to the display pair data, obtaining the corresponding pictures, texts, etc. based on the link, and using these pictures and texts to determine the display pair data for display. The basic configuration information can be stored in the client device or in the server.
[0053] Furthermore, in the aforementioned 103, using the view information to determine the corresponding calendar display rule includes:
[0054] The statistical content and calculation results are displayed in the detailed data display area corresponding to the corresponding first calendar unit.
[0055] For details, please refer to Figure 2a As shown, when the view type is monthly view, the calendar time information is March 2021, and the data type of the display pair data is income, the display pair data corresponding to the first calendar unit corresponding to March is displayed in the detail data display area corresponding to the first calendar unit, see Figure 2b As shown, when the view type is year view, the calendar time information is 2021, and the data type of the display pair data is income, the display pair data corresponding to the first calendar unit corresponding to 2021 is also displayed in the detail data display area corresponding to the first calendar unit. Among them, the detail data display area can be divided into an upper display area and a lower display area. For details, please refer to Figure 2a As shown, the upper display area can be used to display statistical content, and the lower display area can be used to display calculation results, or vice versa. This application does not limit this.
[0056] Furthermore, the first calendar panel may also include a summary display area, which displays the summary information of the data corresponding to the calendar time information by default. The summary information may include: calendar time information, name information of statistical content (such as "income"), statistical content, name information of calculation results (such as "yield"), and calculation results. For example: Figure 2a The summary display area shows the total income amount and total rate of return in March 2021. Figure 2b The summary display area shows the total revenue amount and total yield for 2021.
[0057] In some optional embodiments of the present application, when the data type of the aforementioned display pair data is income type, for any statistical content in the statistical content group and its corresponding calculation result, when the statistical content is the income amount and the calculation result is the rate of return, the method further includes: obtaining the net asset value corresponding to the statistical content; and determining the calculation result according to the ratio of the statistical content to the net asset value. Specifically, the calculation method of the income amount and the rate of return can be explained as follows:
[0058] This example calculates the daily income amount using the following formula:
[0059] Inc_day=Wor t -Wor t-1 -Inf t
[0060] Among them, Inc_day is used to represent the daily income; Wor t Used to indicate the net value on day t; Wor t-1 Used to represent the net value of [t-1] day; Inf t Used to indicate net inflow on day t; t is used to indicate the day's identifier and can be a positive integer less than 30.
[0061] This example calculates the monthly income amount using the following formula:
[0062]
[0063] Among them, i is used to indicate the day identifier, n is used to indicate the number of days in the month; Inc_mon is used to indicate the monthly income amount, which is the sum of daily income.
[0064] In this embodiment, the value of net inflow includes the amount of income or expenditure of various capital flow business such as fund deposit and withdrawal, stock transfer, loan status and company employee stock ownership plan. At the same time, when calculating the rate of return, net inflow also includes the inflow and outflow of additional business other than the above net inflow, such as commission-free business, virtual resource gift and experience, and some related card and coupon applications, etc.
[0065] The daily rate of return R(t) can be determined based on the current day's return and the previous day's net asset value. Specifically, the value of the daily rate of return R(t) is equal to the current day's return divided by the net asset value of yesterday, that is:
[0066] R(t)=Inc_day / Wor t-1
[0067] Among them, Inc_day is used to represent the daily income; Wor t-1 Used to indicate the daily net asset value of the previous day.
[0068] Furthermore, in this embodiment, the daily rate of return R(t) can be determined by the daily return and the adjusted daily net asset value of the previous day. In this embodiment, the adjustment method for yesterday's net asset value can be the sum of the net asset value on [t-1] day and a*the net inflow on the day, where the adjustment item is equal to the weighted a of the net inflow on the day; wherein the weighted a can be set by the administrator.
[0069] R(t)=Inc_day / (Wor t-1 +α·Inf sin )
[0070] Among them, Inf sin Used to indicate net inflows for the day.
[0071] In this embodiment, by adjusting the daily net asset value of the previous day when calculating the rate of return, the accuracy of the rate of return calculation is improved to enable a more accurate display.
[0072] Furthermore, in the aforementioned step S104, displaying the first target calendar in combination with the calendar display rules, the calendar data to be displayed, the statistical content group, and the calculation result set may include: displaying the calendar data to be displayed, and controlling the statistical content and calculation results to be displayed in the detailed data display area corresponding to the corresponding first calendar unit.
[0073] The calendar panel in this application provides two types of views: monthly view and yearly view. The first target calendar corresponding to the monthly view can display the user's income amount and rate of return for each day in the month corresponding to the calendar time information, and the first target calendar corresponding to the yearly view can display the monthly income amount and rate of return in the corresponding year, so that the user can display more information in the calendar through fewer operations, thereby improving the efficiency of the user's observation data. Among them, when the first calendar unit is a future date, or there is no corresponding display pair data, the corresponding detailed data display area can be displayed blank, without display content.
[0074] Furthermore, the first target calendar may also include a calendar header area, which may also display a view type switch button. The two view types may be switched freely according to user instructions. In addition, the calendar header area may also display data type information (such as "income calendar", see Figure 2b shown.
[0075] Furthermore, when the numerical values corresponding to the statistical content and the calculation result belong to different ranges, the display methods corresponding to the statistical content and the calculation result are different. The numerical value range can be divided into three types: positive value, negative value, and 0 value; specifically, when the data is positive, negative, and 0, the corresponding display methods may be different, and the display methods may include: font color, font type, font size, etc., which are not limited by this application.
[0076] Furthermore, in order to further improve the user experience, the method further includes:
[0077] S1. Determine a drawing value corresponding to the first target calendar according to the view type, the statistical content group and the calculation result set;
[0078] S2. Draw a bar graph reflecting the first calendar unit and its corresponding statistical content and / or calculation results in the first target calendar using the drawing numerical value;
[0079] S3. Display the bar chart in the statistical chart area corresponding to the first target calendar.
[0080] The number of columns in the bar chart is consistent with the number of third calendar units contained in the calendar data to be displayed. For example, when the view type is a month view, the number of columns is the number of all natural days contained in the month; when the view type is a year view, the number of columns is the number of months contained in the year. Each third calendar unit corresponds to a column. Specifically, the aforementioned drawing values may include the income amount or rate of return corresponding to each first calendar unit. The higher the income amount or the greater the rate of return, the higher the column height corresponding to the bar chart corresponding to the first calendar unit. The display content of the statistical chart area can be seen in Figure 2a , Figure 2b shown.
[0081] Furthermore, when the statistical content and / or calculation result corresponding to the first calendar unit is positive, negative, or 0, the corresponding columns may be displayed in different ways, including color, column width, etc., which is not limited in this application.
[0082] Optionally, the text color of the data displayed corresponding to the first calendar unit can be consistent with the color of the corresponding column. Further, in some optional embodiments of the present application, the method further includes:
[0083] S02: If a user click instruction for a display control corresponding to the second calendar unit in the first target calendar is detected, then
[0084] S03. Display summary information corresponding to the second calendar unit in a summary display area corresponding to the first target calendar.
[0085] The summary information may include: income amount and rate of return, for details, please refer to Figure 3a As shown, when the user clicks the display control corresponding to March 3, 2021 in the second calendar unit, the summary information corresponding to March 3, 2021 can be displayed in the summary display area: the daily income: -282.19, the rate of return: -0.13%. See also Figure 3b As shown, when the user clicks the display control corresponding to July 6, 2021 in the second calendar unit, the summary information corresponding to July 6, 2021 can be displayed in the summary display area: Daily income: -674.69, rate of return: -1.24%. Correspondingly, if the view type is yearly view, the date and time information is 2021, and the user clicks the display control corresponding to March, the summary display area will display the income data corresponding to March.
[0086] If it is necessary to explain, the aforementioned third calendar unit is the original calendar unit included in the calendar data to be displayed, and the number of the third calendar units corresponding to the calendar data to be displayed is the same as the number of natural days included in a month, or the number of natural months included in a year. The first calendar unit is the calendar unit corresponding to the display data in the original calendar unit included in the calendar data to be displayed, and the second calendar unit is the calendar unit triggered by the user's click instruction.
[0087] Secondly, the present application can also control the date mark corresponding to the second calendar unit to be highlighted when detecting a user's click instruction on the display control corresponding to the second calendar unit in the first target calendar, so as to improve the user experience, for example Figure 3a In the example, when the user clicks the display control corresponding to March 3, 2021, the date icon corresponding to March 3 is highlighted; Figure 3b In the example, when the user clicks the display control corresponding to July 6, 2021, the date icon corresponding to July 6 is highlighted. When the user clicks the same display control again, the highlight can be canceled (i.e., the selection is canceled). The date icon can be a text or picture icon that indicates the second calendar unit to the user, such as Figure 3a The "3" in , and Figure 3b The “6” in the picture.
[0088] Furthermore, the present application can also control the column corresponding to the second calendar unit to be highlighted when detecting a user's click instruction on the display control corresponding to the second calendar unit in the first target calendar. For example, when the user clicks Figure 3bWhen the display control corresponding to July 6, 2021, the second calendar unit in the chart is displayed, the date icon corresponding to July 6 is highlighted, and the column corresponding to July 6 is also highlighted in the statistical chart display area (for details, see Figure 3b ). This method can improve the efficiency of information display and provide certain comparison functions, which is convenient for making decisions based on this information. It can also enable users to have a more accurate and intuitive grasp of the profit and loss situation, further improving the user experience.
[0089] Furthermore, when it is detected that the user clicks on a target column in the bar chart, summary information corresponding to the target column may also be displayed in the summary display area, and the date mark corresponding to the target column may be highlighted.
[0090] Furthermore, the method further comprises:
[0091] S001. Obtaining a sliding instruction of a user on a first calendar panel corresponding to the first target calendar;
[0092] S002, determining display data corresponding to a second target calendar using a sliding direction indicated by the sliding instruction;
[0093] S003, controlling the display panel corresponding to the first target calendar to move a preset offset in the sliding direction, so that the second calendar panel is displayed on the screen;
[0094] S004. Control the display data corresponding to the second target calendar to be displayed on the second calendar panel.
[0095] The display data corresponding to the second target calendar is determined in the same manner as the data displayed on the screen of the first target calendar. The user can also perform a sliding operation through the sliding icon displayed in the interface. The sliding icon can be seen in Figure 3a As shown, the aforementioned display panel may be composed of a preset number of calendar panels, such as 3 calendar panels. The display data corresponding to the second target calendar is related to the display data corresponding to the first target calendar and the sliding direction. For details, see Figure 4 As shown, the display panel may include three calendar panels corresponding to April, May and June, namely, left, middle and right, each of which corresponds to one page, and the user may slide page by page; if the display data corresponding to the calendar of May is currently displayed, when the user slides right, the display data corresponding to the calendar of April (the display data corresponding to the second target calendar) is obtained; and the display panel is controlled to move rightward by a preset offset so that the second calendar panel is displayed on the screen; then, the display data corresponding to the calendar of April is controlled to be displayed on the second calendar panel, and the aforementioned preset offset may be the panel width of each calendar panel. Further, the method further includes:
[0096] Controlling the display panel to move the preset offset in a direction opposite to the sliding direction within a preset time period, so that the first calendar panel is displayed on the screen;
[0097] Control the display data corresponding to the second target calendar to be displayed on the first calendar panel.
[0098] Combination Figure 4 As shown, after controlling the display data corresponding to the calendar of April to be displayed on the second calendar panel, the display panel is controlled to move the preset offset to the left within the preset time period, so that the display data corresponding to the calendar of April is displayed on the first target calendar panel. Further, when the user slides right, the calendar data of March is obtained, and so on, thereby achieving infinite sliding. Among them, the aforementioned preset time period can be short, so that when the preset offset is moved to the left within the preset time period, the user does not notice it.
[0099] In some optional embodiments of the present application, the method of the present application may also limit the user's authority to observe and display data, that is, the above method further includes:
[0100] Get user information;
[0101] The user information is verified. If it is verified that the user information has the authority to view the statistical content group and the calculation result set, the aforementioned step S102 is triggered. If not, only the calendar including only the first calendar panel, or other common calendars, is displayed to the user.
[0102] In addition, the time period corresponding to the display pair data visible to the user can be set according to the permissions corresponding to the user information. For example, users with permissions can observe the display pair data of the last five days, while users without permissions have no right to observe this part of the data.
[0103] Furthermore, after displaying the first target calendar, the present application may also hide the statistical content group and the calculation result set when detecting the user's hiding instruction, and only display the first calendar panel and the bar chart, or only display the bar chart. The present application does not impose any limitation on this.
[0104] Furthermore, the present application also provides a help function. If it is detected that the user clicks the help center opening button, help information is displayed to the user. The help center opening button can be found in Figure 2b shown.
[0105] The solution provided by the present application can display more required date-related data to users without relying on complex user operations. The calendar data, statistical content, and calculation results to be displayed can be comprehensively displayed to show users more information in the calendar. It can also display only a bar chart, which can flexibly improve the user's observation efficiency of the required information.
[0106] Furthermore, the present application also provides a data processing method, which can be applied to a terminal device that can display a first target calendar, and the method can include the following steps:
[0107] S501, when it is detected that the user starts the calendar query program, the calendar panel is initialized;
[0108] S502, obtaining basic configuration information and view information from the configurator;
[0109] S503: Send a calendar data request to a server using the basic configuration information and the view information to obtain calendar data corresponding to the basic configuration information and the view information;
[0110] S504: Obtain target calendar data fed back by the server according to the calendar data request, and draw a first target calendar according to the target calendar data and the initialized calendar panel.
[0111] For the above configurator, see Figure 5 As shown, Figure 5 It is a UML (UML-Unified Modeling Language) structure diagram of the configurator. When the view type is a monthly view, the calendar part of this solution may include a 4-layer view structure, display panel-single month panel-daily cell-display pair data view. The display panel includes 3 single month panels, which are slidable. The 3 single month panels can be arranged in left, middle and right order to achieve unlimited sliding within the left and right selectable period. The basic configuration information obtained in the configurator may include: the size of the date grid (cell) corresponding to the single month panel, the multiple cells that each single month panel can include, if the view type is a monthly type, whether the week column displays the configuration information of the date information corresponding to the weekend, the data type of the display pair data, and the view protocol corresponding to the data type of different display pair data. The view protocol stipulates the processing rules of the display pair data before display: for example: identifying the link corresponding to the display pair data, obtaining the corresponding pictures, texts, etc. based on the link, and using these pictures and texts to determine the display pair data for display. Among them, the display panel can also be stored in the configurator, or stored in other storage locations, which is not limited in this application.
[0112] For the specific implementation of this embodiment, please refer to the above-mentioned related content, which will not be repeated here.
[0113] The following is an example of some data interaction processes of this application combined with specific scenarios:
[0114] Figure 6 The data processing method is shown when the view type is a month type and the data type of the data displayed is a revenue type. When the detection module contained in the terminal device detects that the user starts the calendar query program, the terminal device initializes the calendar panel, and the detection module sends a request notification to the data requester, so that the data requester sends a data request to the server to obtain the calendar data in the current month. The data requester checks whether there is a cache, and directly returns if there is a cache. If there is no cache, the data requester sends a data request to the server. After the data requester obtains the calendar data in the current month, the calendar data of the current month can be cached. The terminal device combines the calendar data with the initialized calendar panel to display the first target calendar. Among them, the data requester can be a communication module that can send a request to the server and obtain the data fed back by the server. When the data type of the data displayed is a revenue type, the calendar data of the current month includes a revenue amount group and a rate of return set; the revenue amount and rate of return corresponding to the date with the revenue amount and rate of return can be displayed in the detail display area corresponding to the date, and a bar chart of the daily revenue data of the month can be further drawn, wherein the revenue data can be the revenue amount or the rate of return.
[0115] The total income amount and total rate of return for the month can be displayed in the summary display area of the calendar panel. Furthermore, when the user selects the display control corresponding to a date, or selects the column corresponding to the date, the income amount and rate of return for that day can be displayed in the summary display area.
[0116] Furthermore, the above-mentioned display method for displaying data can be found in the following content:
[0117] The statistical content and calculation results in the data can be displayed with two decimal places, and the specific results can be based on rounding rules. For example, the income amount and the rate of return are both rounded to two decimal places (rounded). If the corresponding date is a historical date and the income data is 0, the income amount is displayed as: 0.00, and the rate of return is 0.00%. The display rules of the income amount can be: in Chinese: expressed in ten thousand or one hundred million, as shown in Table 1: It can also be expressed in English, as shown in Table 2:
[0118] Table 1: Rules for determining statistical content based on Chinese expressions:
[0119] describe Actual value exhibit Direct display below 10,000 1000.23233 1000.23 More than 10,000 but less than 100 million 999999.99999 100.00 million More than 100 million 23,000,000,000.6789 230 billion
[0120] Table 2 Rules for determining statistical content based on English expressions:
[0121] describe Actual value exhibit Direct display below 1k 100.23233 100.00 1k or more but less than 1m 999,999.99999 1000.00K 1m or more and 1b or less 200,000,000.6789 200.00M 1b and above 23,000,000,000.6789 23.00B
[0122] Furthermore, during the process of loading the display data of the first target calendar, the terminal device may display a loading indicator, which may be a loading circle (see Figure 7a If the loading fails, a prompt message such as "Loading failed, refresh immediately" will be displayed.
[0123] For details, please refer to Figure 7b As shown, accordingly, if the data loading fails, you can show Figure 7b The text "No data" or "--" is displayed.
[0124] Further, specific user instruction parameters can be found in Table 3. The parameters in Table 3 are only optional parameters and are not limited in this application.
[0125] Table 3 Some user command parameters
[0126]
[0127] Figure 8 A schematic diagram of the structure of a data display device provided by an exemplary embodiment of the present application;
[0128] The device includes: an acquisition module 81, a first determination module 82, a second determination module 83, and a display module 84; wherein:
[0129] An acquisition module 81 is used to acquire view information of a calendar to be displayed, wherein the view information includes a view type and calendar time information;
[0130] A first determination module 82, configured to determine corresponding calendar data to be displayed, a statistical content group, and a calculation result set related to the statistical content group based on the view information and preset mapping relationship information;
[0131] A second determination module 83, configured to determine a corresponding calendar display rule using the view information;
[0132] The display module 84 is used to display the first target calendar in combination with the calendar display rule, the calendar data to be displayed, the statistical content group, and the calculation result set.
[0133] Optionally, when the acquisition module 81 is used to acquire the view information of the calendar to be displayed, the user specifically performs any of the following:
[0134] Acquire a selection instruction of a user for the view information, and determine the view information according to the selection instruction;
[0135] When an opening instruction of the user for the calendar to be displayed is detected, historical setting information is obtained, and the view information is determined according to the historical setting information.
[0136] Optionally, the view type is any one of a month view and a year view, and the calendar time information is month information and year information.
[0137] Optionally, the statistical content group includes one or more statistical contents, and the calculation result set includes one or more calculation results.
[0138] Optionally, when the second determining module 83 is used to determine the corresponding calendar display rule using the view information, it is specifically used to:
[0139] The statistical content and calculation results are displayed in the detailed data display area corresponding to the corresponding first calendar unit.
[0140] Optionally, for any statistical content in the statistical content group and its corresponding calculation result, when the statistical content is the income amount and the calculation result is the rate of return, the device is further used to:
[0141] Obtain the statistical content and the net asset value corresponding thereto;
[0142] The calculation result is determined according to the ratio of the statistical content to the net asset value.
[0143] Optionally, the device is further used to determine a drawing value corresponding to the first target calendar according to the view type, the statistical content group and the calculation result set;
[0144] Using the drawing numerical value, draw a bar graph reflecting the first calendar unit and its corresponding statistical content and / or calculation results in the first target calendar;
[0145] The bar chart is displayed in the statistical chart area corresponding to the first target calendar.
[0146] Optionally, when the numerical values corresponding to the statistical content and the calculation result belong to different ranges, the statistical content and the calculation result are displayed in different ways.
[0147] Optionally, the device is also used for:
[0148] If a user click instruction on a display control corresponding to a second calendar unit in the first target calendar is detected, summary information corresponding to the second calendar unit is displayed in a summary display area corresponding to the first target calendar.
[0149] Optionally, the device is also used to
[0150] Obtaining a sliding instruction of a user on a first calendar panel corresponding to the first target calendar;
[0151] Determine the display data corresponding to the second target calendar using the sliding direction indicated by the sliding instruction;
[0152] Controlling the display panel corresponding to the first target calendar to move a preset offset in the sliding direction so that the second calendar panel is displayed on the screen;
[0153] Control the display data corresponding to the second target calendar to be displayed on the second calendar panel.
[0154] Optionally, the device is further used to control the display panel to move the preset offset in a direction opposite to the sliding direction within a preset time period, so that the first calendar panel is displayed on the screen;
[0155] Control the display data corresponding to the second target calendar to be displayed on the first calendar panel.
[0156] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, no further description is given here. Specifically, the device may perform the above method embodiment, and the above and other operations and / or functions of each module in the device are the corresponding processes in each method in the above method embodiment, respectively, and no further description is given here for the sake of brevity.
[0157] The above describes the device of the embodiment of the present application from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or a combination of hardware and software modules in the decoding processor to perform. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps in the above method embodiment in conjunction with its hardware.
[0158] Fig. 9 is a schematic block diagram of an electronic device provided in an embodiment of the present application, and the electronic device may include:
[0159] The memory 901 and the processor 902, the memory 901 is used to store the computer program and transmit the program code to the processor 902. In other words, the processor 902 can call and run the computer program from the memory 901 to implement the method in the embodiment of the present application.
[0160] For example, the processor 902 may be configured to execute the above method embodiments according to instructions in the computer program.
[0161] In some embodiments of the present application, the processor 902 may include but is not limited to:
[0162] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
[0163] In some embodiments of the present application, the memory 901 includes but is not limited to:
[0164] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM).
[0165] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 901 and executed by the processor 902 to complete the method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.
[0166] Optionally, the electronic device may further include: a transceiver 903 , which may be connected to the processor 902 or the memory 901 .
[0167] The processor 902 may control the transceiver 903 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 903 may include a transmitter and a receiver. The transceiver 903 may further include an antenna, and the number of antennas may be one or more.
[0168] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.
[0169] The present application also provides a computer storage medium on which a computer program is stored, and when the computer program is executed by a computer, the computer can perform the method of the above method embodiment. In other words, the present application embodiment also provides a computer program product containing instructions, and when the instructions are executed by a computer, the computer can perform the method of the above method embodiment.
[0170] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.
[0171] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0172] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0173] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0174] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A data display method, characterized in that: include: Obtaining view information of the calendar to be displayed, wherein the view information includes view type and calendar time information; Acquire user information and verify the user information. If the user information has the authority to view the statistical content group and the calculation result set, determine the preset mapping relationship information based on the view information, and determine the corresponding calendar data to be displayed, the statistical content group, and the calculation result set related to the statistical content group according to the preset mapping relationship information, wherein the preset mapping relationship can be stored in the client device or the server device; Determine a corresponding calendar display rule using the view information; Setting a time period corresponding to the display pair data visible to the user according to the authority corresponding to the user information, wherein the display pair data includes statistical content and calculation results, the statistical content group includes one or more statistical contents, and the calculation result set includes calculation results corresponding to the one or more statistical contents; Displaying a first target calendar in combination with the calendar display rule, the calendar data to be displayed, the statistical content group, and the calculation result set; The method further comprises: Obtaining a sliding instruction of a user on a first calendar panel corresponding to the first target calendar; Determine the display data corresponding to the second target calendar using the sliding direction indicated by the sliding instruction; Controlling the display panel corresponding to the first target calendar to move a preset offset in the sliding direction so that the second calendar panel is displayed on the screen, wherein the display panel is composed of a preset number of calendar panels; Controlling display data corresponding to the second target calendar to be displayed on the second calendar panel; Controlling the display panel to move the preset offset in a direction opposite to the sliding direction within a preset time period, so that the first calendar panel is displayed on the screen; Control the display data corresponding to the second target calendar to be displayed on the first calendar panel.
2. The method according to claim 1, characterized in that Obtaining the view information of the calendar to be displayed includes any of the following: Acquire a selection instruction of a user for the view information, and determine the view information according to the selection instruction; When an opening instruction of the user for the calendar to be displayed is detected, historical setting information is obtained, and the view information is determined according to the historical setting information.
3. The method according to claim 1, characterized in that The statistical content group includes one or more statistical contents, and the calculation result set includes one or more calculation results; Determining the corresponding calendar display rule by using the view information includes: The statistical content and calculation results are displayed in the detailed data display area corresponding to the corresponding first calendar unit.
4. The method according to claim 3, characterized in that With respect to any statistical content in the statistical content group and its corresponding calculation result, when the statistical content is the income amount and the calculation result is the rate of return, the method further includes: Obtain the statistical content and the net asset value corresponding thereto; The calculation result is determined according to the ratio of the statistical content to the net asset value.
5. The method according to claim 3, characterized in that: The method further comprises: Determining a drawing value corresponding to the first target calendar according to the view type, the statistical content group, and the calculation result set; Using the drawing numerical value, draw a bar graph reflecting the first calendar unit and its corresponding statistical content and / or calculation results in the first target calendar; The bar chart is displayed in the statistical chart area corresponding to the first target calendar.
6. The method according to claim 1, characterized in that The method further comprises: If a user click instruction for the display control corresponding to the second calendar unit in the first target calendar is detected, then The summary information corresponding to the second calendar unit is displayed in the summary display area corresponding to the first target calendar.
7. A data display device, characterized in that: include: An acquisition module, used to acquire view information of the calendar to be displayed, wherein the view information includes view type and calendar time information; The device is also used to: obtain user information, and verify the user information, and if the user information has the authority to view the statistical content group and the calculation result set, execute the first determination module; A first determination module is used to determine preset mapping relationship information based on the view information, and determine the corresponding calendar data to be displayed, the statistical content group, and the calculation result set related to the statistical content group according to the preset mapping relationship information, wherein the preset mapping relationship can be stored in the client device or the server device; A second determination module, configured to determine a corresponding calendar display rule using the view information; The device is further used to: set a time period corresponding to the display pair data visible to the user according to the authority corresponding to the user information, wherein the display pair data includes statistical content and calculation results, the statistical content group includes one or more statistical contents, and the calculation result set includes calculation results corresponding to one or more statistical contents; A display module, configured to display a first target calendar in combination with the calendar display rule, the calendar data to be displayed, the statistical content group, and the calculation result set; The device is also used for: Obtaining a sliding instruction of a user on a first calendar panel corresponding to the first target calendar; Determine the display data corresponding to the second target calendar using the sliding direction indicated by the sliding instruction; Controlling the display panel corresponding to the first target calendar to move a preset offset in the sliding direction so that the second calendar panel is displayed on the screen, wherein the display panel is composed of a preset number of calendar panels; Controlling display data corresponding to the second target calendar to be displayed on the second calendar panel; Controlling the display panel to move the preset offset in a direction opposite to the sliding direction within a preset time period, so that the first calendar panel is displayed on the screen; Control the display data corresponding to the second target calendar to be displayed on the first calendar panel.
8. An electronic device, characterized in that: include: A processor and a memory, the memory being used to store a computer program, and the processor being used to call and run the computer program stored in the memory to execute the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein the computer program causes a computer to execute the method according to any one of claims 1 to 6.
