A data display method and device, and equipment
By converting the cumulative consumption of mobile communication services into a unary function and dynamically adjusting the element size, the data display problem when the total amount cannot be obtained is solved, and the user visual experience is improved.
Patent Information
- Application Number
- CN202411999913.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2044-12-31
AI Technical Summary
In the existing technology, data visualization cannot effectively display the usage of mobile communication services when the total amount cannot be obtained, resulting in a poor visual experience for users.
The accumulated consumption of mobile communication services is converted by using a predefined unary function to obtain a conversion amount, and the size of the element is determined according to the conversion amount to dynamically adjust the display effect of the element, thereby achieving a dynamic gain effect.
Improved data presentation when total amounts are unavailable, enhancing the user's visual experience. Especially in the display of mobile communication service usage, the initial changes are significant, while subsequent changes gradually ease.
Smart Images

Figure CN119806711B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and relates to, but is not limited to, a data display method, apparatus, and device. Background Art
[0002] Data visualization technology is a method of displaying data and information through visual elements such as graphics, tables, and icons. However, in related technologies, the visualization of data is relatively mechanical and cannot provide users with a good visual experience. Summary of the Invention
[0003] In a first aspect, an embodiment of the present application provides a data display method, the method comprising: obtaining a first consumption amount currently used for a mobile communication service, the first consumption amount referring to the cumulative consumption amount from a starting moment to a current moment; converting the first consumption amount through a predefined unary function to obtain a conversion amount; determining the size of a first element based on the conversion amount; wherein the first element is used to display the usage of the mobile communication service; the rate of change of the function value of the predefined unary function decreases with an increase in an independent variable; the conversion amount is positively correlated with the size of the first element; and displaying the first element based on the size of the first element.
[0004] In a second aspect, an embodiment of the present application provides a data display device, comprising: an acquisition module configured to acquire a first consumption amount currently used for a mobile communication service, wherein the first consumption amount refers to the cumulative consumption amount from a starting moment to a current moment; a conversion module configured to convert the first consumption amount through a predefined unary function to obtain a conversion amount; a determination module configured to determine the size of a first element based on the conversion amount; wherein the first element is used to display the usage of the mobile communication service; the rate of change of the function value of the predefined unary function decreases with an increase in the independent variable; the conversion amount is positively correlated with the size of the first element; and a display module configured to display the first element based on the size of the first element.
[0005] In a third aspect, an embodiment of the present application provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the method described in the first aspect is implemented.
[0006] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium for storing a computer program, which enables a computer to execute the method described in the first aspect.
[0007] In a fifth aspect, an embodiment of the present application provides a computer program product, comprising computer program instructions, which enable a computer to execute the method described in the first aspect.
[0008] In a sixth aspect, an embodiment of the present application provides a computer program, which enables a computer to execute the method described in the first aspect.
[0009] In an embodiment of the present application, a first consumption amount for a mobile communication service is obtained, where the first consumption amount refers to the cumulative consumption amount from a starting moment to a current moment; the first consumption amount is converted using a unary function whose rate of change of the function value decreases as the independent variable increases to obtain a conversion amount; that is, the rate of change of the conversion amount decreases as the first consumption amount increases; the size of a first element determined based on the conversion amount is used to display the usage of the mobile communication service, and the conversion amount is positively correlated with the size of the first element. Thus, because the rate of change of the conversion amount decreases as the first consumption amount increases, and the conversion amount is positively correlated with the size of the first element, when displaying the usage of the mobile communication service via the first element, the size of the first element changes more significantly at the beginning of the display, and the change in the size of the first element gradually slows down as the first consumption amount increases, thereby giving the display of the usage of the mobile communication service a "dynamic gain" effect, thereby improving the user's visual experience.
[0010] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings herein are incorporated into and constitute a part of this specification. These drawings illustrate embodiments consistent with the present application and, together with the specification, serve to illustrate the technical solutions of the present application. Obviously, the drawings described below are merely some embodiments of the present application. Those skilled in the art can, without inventive effort, derive other drawings from these drawings.
[0012] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, while others may be combined or partially combined. Therefore, the actual execution order may vary depending on the actual situation.
[0013] Figure 1 A schematic diagram for visual display of an icon;
[0014] Figure 2 A schematic diagram of an implementation flow of a data display method provided in an embodiment of the present application;
[0015] Figure 3 A schematic diagram of a data display method provided in an embodiment of the present application Figure 1 ;
[0016] Figure 4 A schematic diagram of a data display method provided in an embodiment of the present application Figure 2 ;
[0017] Figure 5 A schematic diagram of a data display method provided in an embodiment of the present application Figure 3 ;
[0018] Figure 6 A schematic diagram of a data display method provided in an embodiment of the present application Figure 4 ;
[0019] Figure 7 A schematic diagram of the change in the function value of a unary function provided in an embodiment of the present application;
[0020] Figure 8 A schematic structural diagram of a data display device provided in an embodiment of the present application;
[0021] Figure 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] To make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the specific technical solutions of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application but are not intended to limit the scope of the present application.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0024] In the following description, references to “some embodiments,” “this embodiment,” “embodiments of the present application,” and examples, etc., describe a subset of all possible embodiments. However, it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
[0025] To facilitate understanding of the technical solutions of the embodiments of the present application, the following describes the relevant technologies or terms of the embodiments of the present application. The following related technologies or related terms can be combined arbitrarily with the technical solutions of the embodiments of the present application as optional solutions, and all of them fall within the scope of protection of the embodiments of the present application.
[0026] (1) Index
[0027] Exponentiation is the power operation a n(a≠0), a is the base, n is the exponent, the exponent is located in the upper right corner of the base, and the power operation means multiplying the exponent by the base. When n is a positive integer, a n Indicates the multiplication of n a. When n = 0, a n =1.
[0028] (2) Logarithm
[0029] In mathematics, logarithms are the inverse of exponentiation, just as division is the inverse of multiplication, and vice versa. This means that the logarithm of a number is the exponentiation that must produce another fixed number (the base). In simple cases, logarithms count factors in multiplication. More generally, exponentiation allows any positive real number to be raised to any real number, always producing a positive result. Therefore, logarithms can be calculated for any two positive real numbers b and x, where b is not equal to 1.
[0030] (3) Dynamic gain
[0031] During data display, data is not displayed linearly and one-to-one, but rather displayed dynamically. The magnitude of the change may vary over time.
[0032] In a related technology, in the business hall module, for a scenario where the user's traffic (i.e., an example of the first consumption) can be obtained but the user's total amount (i.e., an example of the total subscription amount) cannot be obtained, when the user uses the icon visualization function, the user cannot use the following function: Figure 1 The visual display of the chart shown in the figure shows the current traffic. The inventors of this application found in their research and analysis that this is because Figure 1 The visualization method shown is based on knowing the user's consumption and total amount, and uses icons to visualize the overall progress. However, there are many scenarios where the total user amount cannot be obtained, such as: the communication provider's permission restrictions prevent the data from being parsed, or some special reasons (such as purchased / newly added data packages or call packages are not included in the total amount). In these scenarios, the user may not be able to use the icon visualization function when using it.
[0033] In view of this, the embodiments of the present application provide the following data display method.
[0034] Figure 2 A schematic diagram of a data display method implementation flow provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the method includes the following steps 201 to 204:
[0035] Step 201: obtaining a first consumption amount of a current mobile communication service, where the first consumption amount refers to a cumulative consumption amount from a starting time to a current time;
[0036] Step 202: convert the first consumption amount using a predefined unary function to obtain a conversion amount;
[0037] Step 203: Determine the size of the first element based on the conversion amount; wherein the first element is used to display the usage of the mobile communication service; the rate of change of the function value of the predefined unary function decreases as the independent variable increases; and the conversion amount is positively correlated with the size of the first element;
[0038] Step 204: Display the first element according to the size of the first element.
[0039] It can be understood that in the embodiment of the present application, a first consumption amount for a mobile communication service is obtained, where the first consumption amount refers to the cumulative consumption amount from the starting moment to the current moment; the first consumption amount is then converted using a unary function whose rate of change of the function value decreases as the independent variable increases, to obtain a conversion amount; that is, the rate of change of the conversion amount decreases as the first consumption amount increases; the usage of the mobile communication service is then displayed based on the size of the first element determined by the conversion amount, and the conversion amount is positively correlated with the size of the first element. In this way, because the rate of change of the conversion amount decreases as the first consumption amount increases, and the conversion amount is positively correlated with the size of the first element, when the usage of the mobile communication service is displayed using the first element, the change in the size of the first element is more significant at the beginning of the display, and as the first consumption amount increases, the change in the size of the first element gradually slows down, thereby giving the display of the usage of the mobile communication service a "dynamic gain" effect, thereby improving the user's visual experience.
[0040] The following describes further optional implementations and related terms of each of the above steps.
[0041] In step 201, a first consumption amount of a current mobile communication service is obtained, where the first consumption amount refers to the accumulated consumption amount from a starting time to a current time.
[0042] It should be understood that in the embodiments of the present application, the mobile communication service refers to services provided to users including various communication services such as calls, text messages, and data; wherein, the data refers to services such as data transmission and information interaction through a mobile communication data network.
[0043] In the embodiments of the present application, the first consumption amount is not limited. In some embodiments, the first consumption amount includes used data or incurred phone charges. In other embodiments, the first consumption amount includes the amount of data downloaded from the first application. In still other embodiments, the first consumption amount includes at least one of the following: the amount of data uploaded from the first file, the amount of data downloaded from the first file, the amount of data downloaded from the webpage document, or the amount of data loaded from the webpage.
[0044] In step 102, the first consumption amount is converted using a predefined unary function to obtain a conversion amount.
[0045] In some embodiments, converting the first consumption amount through a predefined unary function to obtain the conversion amount includes: when the total amount of subscription for the mobile communication service cannot be obtained, inputting the first consumption amount into the predefined unary function to obtain the conversion amount.
[0046] It can be understood that in the embodiment of the present application, when the total amount of subscription for the mobile communication service cannot be obtained, the first consumption amount is input into the predefined unary function to obtain the conversion amount. That is, in the embodiment of the present application, for a mobile communication service for which the total amount of subscription cannot be obtained, the current first consumption amount for the mobile communication service is obtained; then, the first consumption amount is input into the predefined unary function to obtain the conversion amount; and then, the usage of the mobile communication service is displayed based on the size of the first element determined by the conversion amount. In this way, even when only the first consumption amount is obtained, the usage of the mobile communication service can also be displayed using the first element in a "dynamic gain" manner, thereby improving the display effect of the usage of the mobile communication service and thereby improving the user's visual experience when the total amount of subscription for the mobile communication service cannot be obtained.
[0047] In some embodiments, in the case where the total subscription amount for the mobile communication service cannot be obtained, the first consumption amount includes: used traffic or generated call charges, and the total subscription amount includes: total traffic or total call charges.
[0048] In one possible implementation, the first consumption amount refers to the traffic used from the first of the month to the current moment, and the total subscription amount refers to the total amount of traffic purchased that month. In another possible implementation, the first consumption amount refers to the phone charges incurred from the first of the month to the current moment, and the total subscription amount refers to the sum of the remaining phone charges on the first of the month and the phone charges paid from the first of the month to the current moment.
[0049] For example, in one possible implementation, in a scenario where there is only a single data in all graphical expressions, that is, there is only a first consumption amount and no customized total amount, when the first consumption amount is the used traffic, the change in traffic from 500MB to 1GB will be more significant, but the change in the later stage from 80GB to 100GB will not be very significant at the visual level.
[0050] In other embodiments, converting the first consumption amount through a predefined unary function to obtain a conversion amount includes: determining a second ratio of the first consumption amount to the total subscription amount when the total subscription amount for the mobile communication service is obtained; and inputting the second ratio into the predefined unary function to obtain the conversion amount.
[0051] It can be understood that in this embodiment of the present application, for a mobile communication service for which a total subscription amount has been obtained, the current first consumption amount for the mobile communication service is obtained; a second ratio of the first consumption amount to the total subscription amount is determined; the second ratio is input into a predefined unary function to obtain a conversion amount; and the size of the first element determined by the conversion amount is then used to display the usage of the mobile communication service. In other words, in this embodiment of the present application, the ratio of the first consumption amount to the total subscription amount displayed by the first element changes more significantly at the beginning of the display, and as the first consumption amount increases, the change in the size of the first element gradually slows down. In this way, the ratio of the first consumption amount to the total subscription amount is displayed in a "dynamic gain" manner, which is beneficial to improving the user's visual experience.
[0052] In some embodiments, in the case where the total subscription amount for the mobile communication service is obtained, the first consumption amount includes: the data amount of the downloaded first application, and the total subscription amount includes: the data size of the first application; wherein the first application is any application.
[0053] It can be understood that in the embodiment of the present application, during the process of downloading the first application, when the data size of the first application is obtained, the data volume of the downloaded first application is obtained; a second ratio of the data volume of the downloaded first application to the data size of the first application is determined; and the second ratio is input into a predefined unary function to obtain a conversion amount; and then, based on the size of the first element determined by the conversion amount, the usage of the mobile communication service is displayed. In other words, in the embodiment of the present application, the ratio of the data volume of the downloaded first application to the data size of the first application displayed by the first element will change more significantly at the beginning of the display, and the change in the size of the first element will gradually slow down as the data volume of the downloaded first application increases; thus, the download of the first application gives the user a visual perception of fast downloading, thereby improving the download conversion rate of the application.
[0054] In other embodiments, in the case where the total subscription amount for the mobile communication service is obtained, the first consumption amount includes at least one of the following: the data amount of the uploaded first file, the data amount of the downloaded first file, the data amount of the downloaded web page document, and the data amount of the loaded web page; accordingly, the total subscription amount includes: the data size of the first file, the data size of the web page document, the data amount of the loaded web page, etc.
[0055] For example, in one possible implementation, during the process of downloading an application in an app store or a game center, in the early stage of the download, the speed is increased based on a quasi-uniform download speed; in the latter stage of the download, the speed is decreased based on a quasi-uniform download speed, thereby achieving the perception of a faster download speed.
[0056] It should be understood that in the embodiment of the present application, the rate of change of the function value of the predefined unary function decreases with the increase of the independent variable; that is, the change of the function value of the predefined unary function in the initial part of the independent variable will be more significant, and as the independent variable increases, the change of the function value of the predefined unary function will gradually slow down.
[0057] In some embodiments, when the value of the independent variable input to the predefined unary function is less than a first threshold value, the function value of the predefined unary function is greater than the value of the independent variable input; when the value of the independent variable input to the predefined unary function is equal to the first threshold value, the function value of the predefined unary function is equal to the value of the independent variable input.
[0058] It should be understood that in the embodiments of the present application, the first threshold is not limited. In some embodiments, for a scenario where the total subscription amount for the mobile communication service cannot be obtained, the first threshold can be any value.
[0059] In other embodiments, for the scenario where the total subscription amount for the mobile communication service is obtained, when the independent variable is the first consumption amount, the first threshold is the total subscription amount; when the independent variable is the second ratio of the first consumption amount to the total subscription amount, the value of the first threshold is 1; the first threshold includes but is not limited to at least one of the following: 1, 100%, 10 / 10, 100 / 100, etc.
[0060] It should be understood that in an embodiment of the present application, in the case where the total subscription amount for the mobile communication service is obtained, since the first consumption amount will not exceed the total subscription amount, when the value of the independent variable input to the predefined unary function is less than the first threshold value, the function value of the predefined unary function is greater than the value of the input independent variable; when the value of the independent variable input to the predefined unary function is equal to the first threshold value, the function value of the predefined unary function is equal to the value of the input independent variable.
[0061] For example, in one possible implementation, during the app download process from an app store or game center, the data size of the downloaded first app is less than or equal to the data size of the first app, and the download time is constant. Therefore, if the data size of the downloaded first app is less than the data size of the first app, the conversion amount is greater than the input data size of the downloaded first app; if the data size of the downloaded first app is equal to the data size of the first app, the conversion amount is equal to the input data size of the downloaded first app. This allows the user to visually perceive that the download of the first app is fast, thereby improving app download conversions.
[0062] It should be understood that in the embodiments of the present application, the predefined unary function is not limited. In some embodiments, the predefined unary function includes a logarithmic function, and the base of the logarithmic function is a preset value.
[0063] It should be understood that in the embodiment of the present application, the logarithmic function includes: basic logarithmic function, composite logarithmic function, and transformed logarithmic function. Among them, the basic logarithmic function includes: log a b, where base a is a preset value and true number b is the first consumption or the second ratio; the compound logarithmic function includes: log a f(b), where f(b) is greater than 0; the transformed logarithmic functions include: Alog a f(bx)+C, where A, x, and C are preset values and are any preset values.
[0064] In some other embodiments, the predefined unary function includes but is not limited to one of the following: arctan(b), Power function; where the power function is expressed as b n , where n is a preset value.
[0065] In some other embodiments, the predefined one-variable function includes a piecewise function, and the piecewise function includes: a piecewise function obtained by any combination of the predefined one-variable functions listed above; wherein the rate of change of the function value of the piecewise function decreases as the independent variable increases
[0066] In step 203, the size of the first element is determined according to the conversion amount; wherein the first element is used to display the usage of the mobile communication service.
[0067] It should be understood that in the embodiments of the present application, the first element is not limited. In some embodiments, the first element is a horizontal bar graph or a vertical bar graph. In other embodiments, the first element is a circular progress bar.
[0068] In some embodiments, determining the size of the first element based on the conversion amount includes: mapping the conversion amount to the size of the first element when the total subscription amount for the mobile communication service cannot be obtained.
[0069] Furthermore, in some embodiments, since the size of the first element is positively correlated with the conversion amount, when the first element is a horizontal bar graph, the larger the conversion amount, the longer the length of the horizontal bar graph, or the larger the size of the filler of the horizontal bar graph.
[0070] In other embodiments, when the first element is a vertical bar graph, the greater the conversion amount, the greater the length of the vertical bar graph, or the larger the size of the filler of the vertical bar graph.
[0071] In some further embodiments, when the first element is a circular progress bar, the greater the conversion amount, the longer the circumference of the circular progress bar, or the longer the circumference of the filler of the circular progress bar.
[0072] In other embodiments, determining the size of the first element based on the conversion amount includes: determining a first ratio of the conversion amount to the total subscription amount when the total subscription amount for the mobile communication service is obtained; and determining the size of the first element based on the first ratio.
[0073] It should be understood that in the embodiment of the present application, the first ratio is positively correlated with the size of the first element.
[0074] Further, in some embodiments, since the size of the first element is positively correlated with the first ratio, when the first element is a horizontal bar graph, the larger the first ratio, the longer the length of the horizontal bar graph, or the larger the size of the filler of the horizontal bar graph.
[0075] In other embodiments, when the first element is a vertical bar graph, the larger the first ratio is, the longer the length of the vertical bar graph is, or the larger the size of the filler of the vertical bar graph is.
[0076] In some further embodiments, when the first element is a circular progress bar, the larger the first ratio is, the longer the circumference of the circular progress bar is, or the longer the circumference of the filler of the circular progress bar is.
[0077] In step 204 , the first element is displayed according to the size of the first element.
[0078] In some embodiments, the method further includes: displaying the first consumption amount simultaneously with displaying the first element.
[0079] Furthermore, in some embodiments, when the first consumption amount is used traffic, the specific amount of used traffic is displayed simultaneously with the first element. In some embodiments, when the first consumption amount is incurred call charges, the specific amount of incurred call charges is displayed simultaneously with the first element.
[0080] For example, in a possible implementation, when the first consumption is the used flow, Figure 3 The illustrated method enables displaying the first consumption amount while displaying the first element.
[0081] In some embodiments, the method further includes: displaying the first ratio simultaneously with displaying the first element.
[0082] Furthermore, in some embodiments, when the first consumption amount is the amount of data of the downloaded first application, a ratio of the conversion amount to the data size of the first application is displayed while displaying the first element.
[0083] In some embodiments, the method further includes: displaying the conversion amount simultaneously with displaying the first element.
[0084] Furthermore, in some embodiments, when the first consumption amount is the amount of data of the downloaded first application, the conversion amount is displayed while displaying the first element.
[0085] For example, in a possible implementation, when the first consumption amount is the amount of data of the first application that has been downloaded, Figure 4 The manner shown enables displaying the first ratio or the conversion amount while displaying the first element.
[0086] The following examples describe possible implementations of a data display method described in one or more of the above embodiments.
[0087] An embodiment of the present application provides a data display method, which can solve the problem of the total amount being unable to be obtained through mathematical methods, and visually display the obtained data in the form of a chart (i.e., an example of the first element).
[0088] In some embodiments, the data display method provided in the embodiments of the present application can be applied to scenarios where there is only a single data (i.e., an example of the first consumption amount) in all graphical expressions (i.e., an example of the first element) (only a numerator value (i.e., only the first consumption amount), no denominator value (i.e., no customized total amount)).
[0089] In the embodiment of the present application, by introducing a logarithmic function, the change of the icon (ie, an example of the first element) at the beginning is more significant during the visualization process, such as Figure 5 The change from 500MB to 1GB in the middle traffic flow is more obvious, but the change from 80GB to 100GB in the latter part does not have a very obvious change at the visual level.
[0090] The data display method provided in the embodiment of the present application is compatible with all numerical values at the display level. This is because the maximum value of the logarithmic function is positive infinity, so there will never be a fully filled scene in the graphical expression.
[0091] In other embodiments, during the process of downloading applications from an app store or game center, exponential or logarithmic data visualization can be used to visually convey a sense of fast download speed to users through logarithmic downloads, thereby improving application download conversion and revenue for the business.
[0092] like Figure 6 As shown, quasi-uniform downloads represent the actual number of downloads, while logarithmic downloads represent the result of adding a bonus to the quasi-uniform download rate. For example, the graphical representation of 30% is actually 20%. Quasi-uniform downloads are not uniform; they depend on network speed and change dynamically. Logarithmic downloads accelerate first and then decelerate, meaning the initial gain is based on the quasi-uniform value, while the latter is decelerated.
[0093] It should be noted that in the embodiment of the present application, in the actual graphical display, only logarithmic downloading is displayed, and quasi-uniform speed downloading is not displayed.
[0094] In the embodiment of the present application, gain is added in the early stage of downloading and loss is added in the latter stage of downloading, thereby achieving a perceived effect of faster downloading speed.
[0095] It should be noted that in the embodiment of the present application, whether it is logarithmic downloading or existing uniform-speed downloading, the actual download time is the same, and there is only a difference in the visual display level.
[0096] In the embodiments of this application, a logarithmic or exponential visualization method (i.e., an example of a data display method) is provided. This method provides a mathematical solution to the problem of not being able to obtain some data (i.e., an example of the total amount of orders) when connecting to external businesses. Furthermore, in scenarios where data is available (i.e., obtaining the first consumption amount and the total amount of orders), data gain can improve business conversion and revenue, thus providing high practical problem-solving value and business benefits.
[0097] Figure 7 This is a schematic diagram of the change in the function value of a one-variable function provided in an embodiment of the present application, wherein the X-axis represents the first consumption amount and the Y-axis represents the change in the conversion amount, such as Figure 7 As shown, the smaller the first consumption amount is, the greater the change in the conversion amount is, and the larger the first consumption amount is, the smaller the change in the conversion amount is.
[0098] It should be noted that although the steps of the method of the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all steps must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps; or steps in different embodiments may be combined to form a new technical solution.
[0099] Figure 8 This is a structural diagram of a data display device provided in an embodiment of the present application. Figure 8 As shown, the device 80 includes: an acquisition module 801, a conversion module 802, a determination module 803 and a display module 804; wherein,
[0100] An acquisition module 801 is configured to acquire a first consumption amount of a current mobile communication service, where the first consumption amount refers to a cumulative consumption amount from a starting time to a current time;
[0101] a conversion module 802 configured to convert the first consumption amount using a predefined unary function to obtain a conversion amount;
[0102] Determining module 803 is configured to determine a size of a first element based on the conversion amount; wherein the first element is used to display usage of the mobile communication service; the rate of change of the function value of the predefined unary function decreases as the independent variable increases; and the conversion amount is positively correlated with the size of the first element;
[0103] The display module 804 is configured to display the first element according to the size of the first element. In some embodiments,
[0104] In some embodiments, the conversion module 802 is configured to input the first consumption amount into the predefined unary function to obtain the conversion amount when the total subscription amount for the mobile communication service cannot be obtained.
[0105] In some embodiments, the determination module 803 is configured to map the conversion amount to the size of the first element when the total subscription amount for the mobile communication service cannot be obtained.
[0106] In some embodiments, the display module 804 is further configured to display the first consumption amount while displaying the first element.
[0107] In some embodiments, the determination module 803 is configured to determine a first ratio of the conversion amount to the total subscription amount when the total subscription amount for the mobile communication service is obtained; and determine the size of the first element based on the first ratio; the display module 804 is further configured to display the first ratio while displaying the first element.
[0108] In some embodiments, the conversion module 802 is configured to determine a second ratio of the first consumption amount to the total subscription amount when the total subscription amount for the mobile communication service is obtained; and input the second ratio into the predefined unary function to obtain the conversion amount; the display module 804 is further configured to display the conversion amount while displaying the first element.
[0109] In some embodiments, when the value of the independent variable input to the predefined unary function is less than a first threshold value, the function value of the predefined unary function is greater than the value of the independent variable input; when the value of the independent variable input to the predefined unary function is equal to the first threshold value, the function value of the predefined unary function is equal to the value of the independent variable input.
[0110] In some embodiments, the predefined unary function includes a logarithmic function, and the base of the logarithmic function is a preset value.
[0111] The description of the above device embodiment is similar to the description of the above method embodiment and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of this application, please refer to the description of the method embodiment of this application for understanding.
[0112] It should be noted that the division of modules in the embodiments of the present application is schematic and is merely a logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units. They may also be implemented in the form of a combination of software and hardware.
[0113] It should be noted that, in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0114] An embodiment of the present application provides an electronic device, Figure 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 9 As shown, the electronic device 90 includes a memory 901 and a processor 902. The memory 901 stores a computer program that can be run on the processor 902. When the processor 902 executes the program, the steps in the method provided in the above embodiment are implemented.
[0115] It should be noted that the memory 901 is configured to store instructions and applications executable by the processor 902, and can also cache data to be processed or processed by the processor 902 and various modules in the electronic device 90 (for example, image data, audio data, voice communication data and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0116] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method provided in the above embodiment are implemented.
[0117] An embodiment of the present application provides a computer program product containing instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.
[0118] It should be noted that the descriptions of the above electronic device, storage medium, and computer program product embodiments are similar to the descriptions of the above method embodiments and have similar beneficial effects as the method embodiments. For technical details not disclosed in the electronic device, storage medium, and computer program product embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0119] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description of the various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other. For the sake of brevity, they will not be repeated here.
[0120] The term "and / or" in this article is only a description of the association relationship between associated objects, indicating that there can be three relationships. For example, object A and / or object B can mean: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0121] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0122] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0123] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed across multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0124] In addition, all functional modules in the embodiments of the present application can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the above-mentioned integrated modules can be implemented in the form of hardware or in the form of hardware plus software functional units.
[0125] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, and other media that can store program codes.
[0126] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.
[0127] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0128] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0129] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0130] The above is merely an embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A data display method, characterized in that: The method comprises: Obtaining a first current consumption amount for a mobile communication service, where the first consumption amount refers to a cumulative consumption amount from a starting time to a current time; Converting the first consumption amount by a predefined unary function to obtain a conversion amount; Determining a size of a first element based on the conversion amount; wherein the first element is used to display usage of the mobile communication service; the rate of change of the function value of the predefined unary function decreases as the independent variable increases; and the conversion amount is positively correlated with the size of the first element; displaying the first element according to the size of the first element; The converting the first consumption amount by using a predefined unary function to obtain a conversion amount includes: In the case where the total subscription amount for the mobile communication service cannot be obtained, inputting the first consumption amount into the predefined unary function to obtain the conversion amount; or When the total subscription amount for the mobile communication service is obtained, a second ratio of the first consumption amount to the total subscription amount is determined; and the second ratio is input into the predefined unary function to obtain the conversion amount.
2. The method according to claim 1, characterized in that Determining the size of the first element according to the conversion amount includes: In a case where the total subscription amount for the mobile communication service cannot be obtained, the conversion amount is mapped to the size of the first element.
3. The method according to claim 1 or 2, characterized in that The method further comprises: The first consumption amount is displayed while the first element is displayed.
4. The method according to claim 1, wherein Determining the size of the first element according to the conversion amount includes: When the total subscription amount for the mobile communication service is obtained, determining a first ratio of the conversion amount to the total subscription amount; and determining a size of the first element according to the first ratio; The method further includes displaying the first ratio simultaneously with displaying the first element.
5. The method according to claim 1, wherein The method further includes displaying the conversion amount while displaying the first element.
6. The method according to any one of claims 1 to 5, characterized in that When the value of the independent variable input to the predefined unary function is less than a first threshold value, the function value of the predefined unary function is greater than the value of the independent variable input; When the value of the independent variable input to the predefined unary function is equal to the first threshold value, the function value of the predefined unary function is equal to the value of the independent variable input.
7. The method according to claim 6, characterized in that The predefined unary function includes a logarithmic function, and the base of the logarithmic function is a preset value.
8. A data display device, characterized in that: The device comprises: an acquisition module configured to acquire a first consumption amount currently used for the mobile communication service, where the first consumption amount refers to a cumulative consumption amount from a starting time to a current time; a conversion module configured to convert the first consumption amount using a predefined unary function to obtain a conversion amount; wherein converting the first consumption amount using the predefined unary function to obtain the conversion amount includes: if the total subscription amount for the mobile communication service cannot be obtained, inputting the first consumption amount into the predefined unary function to obtain the conversion amount; or, if the total subscription amount for the mobile communication service is obtained, determining a second ratio of the first consumption amount to the total subscription amount; and inputting the second ratio into the predefined unary function to obtain the conversion amount; a determination module configured to determine a size of a first element based on the conversion amount; wherein the first element is used to represent the usage of the mobile communication service; the rate of change of the function value of the predefined unary function decreases as the independent variable increases; and the conversion amount is positively correlated with the size of the first element; The display module is configured to display the first element according to the size of the first element.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, wherein: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Traffic display method and device, computer device and computer readable memory medium
CN107623612A
Traffic information query method and equipment, traffic information providing method and equipment, and medium
CN108768777A