CN110851522A - Method and device for displaying data - Google Patents

Method and device for displaying data Download PDF

Info

Publication number
CN110851522A
CN110851522A CN201810955553.0A CN201810955553A CN110851522A CN 110851522 A CN110851522 A CN 110851522A CN 201810955553 A CN201810955553 A CN 201810955553A CN 110851522 A CN110851522 A CN 110851522A
Authority
CN
China
Prior art keywords
data
magnitude
order
displayed
maximum
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810955553.0A
Other languages
Chinese (zh)
Inventor
于偲鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810955553.0A priority Critical patent/CN110851522A/en
Publication of CN110851522A publication Critical patent/CN110851522A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method and a device for displaying data, and relates to the technical field of computers. One embodiment of the method comprises: acquiring an order of magnitude set of data to be displayed, and determining the maximum difference order of the data to be displayed according to the order of magnitude set; judging whether to perform differential processing on the data to be displayed or not according to the maximum difference magnitude of the data to be displayed; and if not, directly displaying the visual chart. According to the embodiment, the data can be directly displayed under the condition that the difference of the data is small, and the data required to be checked by the user is automatically generated according to the trigger instruction of the user under the condition that the difference of the data is large, so that the user experience is improved, and the method has universality and usability.

Description

Method and device for displaying data
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for displaying data.
Background
With the rapid development of big data, the data volume increases exponentially, and large enterprises begin to invest a large amount of manpower and material resources to explore information brought by the data so as to eliminate the ambiguity of decision making. When mining information brought by data, in order to observe the data, visualization display processing needs to be performed on the data. Because data has large or small size, large numerical data may have millions of levels, and small numerical data may be only hundreds of levels, if the data is displayed only by drawing visual charts, such as column charts, broken line charts, pie charts and the like, the data is very obtrusive, and a problem is caused in mining data information.
In the prior art, data are displayed by the following methods: firstly, truncation processing is carried out on large numerical data, truncation processing is not carried out on small numerical data, and a third party chart tool is required to be used in the method; secondly, separating the big numerical data from the small numerical data to form multiple data axes for data display, wherein the method cannot meet the condition of overlarge data difference; thirdly, carrying out logarithmic processing on the data axis, wherein the method cannot reflect the differentiation among data; and fourthly, scaling the data (such as taking logarithm, evolution and the like) equally, and reducing the difference between the data, wherein the method influences the actual data comparison. In addition, the four methods for displaying data all need manual intervention and are not universal and easy to use.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for displaying data, which are capable of directly displaying data when the difference of the data is small, and automatically generating data that needs to be checked by a user according to a trigger instruction of the user when the difference of the data is large, so as to improve user experience and provide versatility and usability.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method of presenting data.
The method for displaying data in the embodiment of the invention comprises the following steps: acquiring an order of magnitude set of data to be displayed, and determining the maximum difference order of the data to be displayed according to the order of magnitude set; judging whether to perform differentiation processing on the data to be displayed or not according to the maximum difference magnitude of the data to be displayed; and if not, directly displaying the visual chart.
Optionally, determining the maximum difference magnitude of the data to be displayed according to the magnitude set includes: selecting a maximum order of magnitude and a minimum order of magnitude from the set of order of magnitudes; and calculating the maximum difference magnitude of the data to be displayed according to the maximum magnitude and the minimum magnitude.
Optionally, the maximum magnitude of difference comprises: a maximum magnitude difference or a maximum magnitude ratio; and
judging whether to perform differentiation processing on the data to be displayed according to the maximum difference magnitude of the data to be displayed comprises the following steps: and judging whether the maximum magnitude difference value or the maximum magnitude ratio is larger than a preset threshold value, if so, performing differentiation processing on the data to be displayed.
Optionally, obtaining the magnitude set of the data to be displayed includes: the method comprises the steps of obtaining a visual chart of data to be displayed, traversing the visual chart, calculating the magnitude of each item of data in the visual chart, and forming a magnitude set according to the magnitude of each item of data.
Optionally, the generating the differential chart according to the trigger instruction includes: acquiring the magnitude of target item data according to a trigger instruction for generating a differential chart of the target item data, wherein the target item data is certain data in the visual chart; selecting an order of magnitude of difference with the order of magnitude of the target item data within a preset range from the order of magnitude set; and generating a differentiation chart of the target item data according to the target item data and the data corresponding to the magnitude order within the preset range.
Optionally, after generating the differential chart according to the trigger instruction, the method further includes: and creating a mask layer to cover the visual chart, adding a displayable area in the mask layer, and displaying the differential chart through the displayable area.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided an apparatus for presenting data.
The device for displaying data in the embodiment of the invention comprises: the acquisition module is used for acquiring an order of magnitude set of the data to be displayed and determining the maximum difference order of magnitude of the data to be displayed according to the order of magnitude set; the judging module is used for judging whether to carry out differentiation processing on the data to be displayed according to the maximum difference magnitude of the data to be displayed; and the display module is used for displaying the visual chart of the data to be displayed if the visual chart is in the positive state, generating a differential chart according to the trigger instruction, and directly displaying the visual chart if the visual chart is not in the negative state.
Optionally, the obtaining module is further configured to: selecting a maximum order of magnitude and a minimum order of magnitude from the set of order of magnitudes; and calculating the maximum difference magnitude of the data to be displayed according to the maximum magnitude and the minimum magnitude.
Optionally, the maximum magnitude of difference comprises: a maximum magnitude difference or a maximum magnitude ratio; and
the judging module is further configured to: and judging whether the maximum magnitude difference value or the maximum magnitude ratio is larger than a preset threshold value, if so, performing differentiation processing on the data to be displayed.
Optionally, the obtaining module is further configured to: the method comprises the steps of obtaining a visual chart of data to be displayed, traversing the visual chart, calculating the magnitude of each item of data in the visual chart, and forming a magnitude set according to the magnitude of each item of data.
Optionally, the display module is further configured to: acquiring the magnitude of target item data according to a trigger instruction for generating a differential chart of the target item data, wherein the target item data is certain data in the visual chart; selecting an order of magnitude of difference with the order of magnitude of the target item data within a preset range from the order of magnitude set; and generating a differentiation chart of the target item data according to the target item data and the data corresponding to the magnitude order within the preset range.
Optionally, the display module is further configured to: and creating a mask layer to cover the visual chart, adding a displayable area in the mask layer, and displaying the differential chart through the displayable area.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided an electronic apparatus.
An electronic device of an embodiment of the present invention includes: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by one or more processors, the one or more processors implement the method for displaying data of the embodiment of the invention.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided a computer-readable medium.
A computer-readable medium of an embodiment of the present invention has a computer program stored thereon, and when the program is executed by a processor, the program implements a method of presenting data of an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: the data can be directly displayed under the condition of small difference of the data, and the data required to be checked by the user is automatically generated according to the trigger instruction of the user under the condition of large difference of the data, so that the user experience is improved, and the method has universality and usability; in the embodiment of the invention, the maximum difference magnitude is calculated by using the maximum value and the minimum value in the quantity set, so that the data differentiation can be embodied according to the actual data without any processing on the data; in the embodiment of the invention, the difference magnitude can comprise a difference value and a ratio value, and then whether the differentiation processing is carried out or not is determined by comparing the difference value or the ratio value with a preset threshold value, so that the practicability of the scheme can be improved; in the embodiment of the invention, the order of magnitude of each item of data in the visual chart of the data to be displayed is calculated, so that an order of magnitude set can be generated by using the order of magnitude of each item of data; according to the embodiment of the invention, data with the order of magnitude similar to that of the target item data is selected according to the trigger instruction, and the differentiation chart is automatically generated to generate the differentiation chart under the condition of no manual intervention, so that the effect of realizing data differentiation is achieved; in the embodiment of the invention, the visual chart is covered by the masking layer, and the generated differential chart is displayed in the masking layer, so that the differential chart can be displayed by using the display mode of the pop-up layer, a user can conveniently check the differential chart, and information brought by data is explored.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the main steps of a method of presenting data according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a visualization chart of data to be presented according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a differentiation chart corresponding to Mon data according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a differentiation chart corresponding to Tue data according to an embodiment of the present invention;
FIG. 5 is a schematic view of a main flow of a method of presenting data according to one referential embodiment of the present invention;
FIG. 6 is a schematic diagram of the main modules of a device showing data according to an embodiment of the invention;
FIG. 7 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 8 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of the main steps of a method of presenting data according to an embodiment of the invention. As an embodiment of the present invention, as shown in fig. 1, the main steps of the method for presenting data of the embodiment of the present invention may include:
step S101: and acquiring an order of magnitude set of the data to be displayed, and determining the maximum difference order of the data to be displayed according to the order of magnitude set. The data to be displayed in the invention comprises at least one item of data, the order of magnitude set of the data to be displayed refers to a set formed by the order of magnitude of each item of data in the data to be displayed, and the difference order of magnitude refers to a difference value of any two orders of magnitude in the order of magnitude set.
In this embodiment of the present invention, the obtaining of the magnitude set of the data to be displayed in step S101 may specifically include: the method comprises the steps of obtaining a visual chart of data to be displayed, traversing the visual chart, calculating the magnitude of each item of data in the visual chart, and forming a magnitude set according to the magnitude of each item of data. The visualization chart is a display form obtained by processing data to be displayed by using the existing application chart tool. For example, fig. 2 is a schematic diagram of a visualization chart of data to be displayed according to an embodiment of the present invention, and it can be seen from fig. 2 that the data to be displayed sequentially includes from Mon term to Sun term: 10. 7777, 6666, 11, 6544, 333, and 9999. The order of magnitude of each item of data in the visual chart in the scheme needs to be calculated according to the set unit order of magnitude. For example, assuming that the unit order of magnitude is 10, it can be determined whether there is a decimal point in the data to be displayed, and if not, the length of the digit of the data to be displayed is obtained, for example: 800, the order of magnitude operation result is 3; if there is a decimal point, determine whether the left digit of the decimal point is 0, if not, then find the left data length of the decimal point, for example: 800.3, if the order of magnitude calculation result is 3 and 0 is found, the data length to the right of the decimal point is obtained, for example: 0.003 order of magnitude calculation resulted in-3. The data 10, 7777, 6666, 11, 6544, 333, and 9999 in fig. 2 are of an order of magnitude set of {2, 4, 4, 2, 4, 3, 4 }. As another example, if the unit order of magnitude is set to 2, then the order set of data to be presented, 4, 8, and 16, is {2, 4, 8 }.
As another reference embodiment of the present invention, the determining the maximum magnitude of difference of the data to be displayed according to the magnitude set in step S101 may include: selecting a maximum order of magnitude and a minimum order of magnitude from a set of orders of magnitude; and calculating the maximum difference magnitude of the data to be displayed according to the maximum magnitude and the minimum magnitude. The maximum difference magnitude in the embodiment of the present invention may include: a maximum magnitude difference value and a maximum magnitude ratio. For example, if the order set is {4, 6, 4, 2, 5, 3}, then the maximum order is 6, and the minimum order is 2, then the maximum order difference is 4 by subtracting 2 from 6, or dividing 2 by 6 yields the maximum order ratio of 3.
Step S102: and judging whether to perform differential processing on the data to be displayed or not according to the maximum difference magnitude of the data to be displayed. In the present invention, after the maximum difference magnitude is determined in step S101, whether to perform differentiation processing is determined according to the maximum difference magnitude.
As another reference embodiment of the present invention, a specific process for determining whether to perform differentiation processing may be: and judging whether the maximum magnitude difference value or the maximum magnitude ratio is greater than a preset threshold value, and if so, performing differentiation processing on the data to be displayed. According to the invention, whether the maximum magnitude difference value or the maximum magnitude ratio is within the allowable threshold value is judged through the preset threshold value set by a user, if so, no differentiation processing is carried out, and if so, differentiation processing is carried out on the data to be displayed. Taking the maximum magnitude difference as an example, the magnitude set of the data to be displayed is {4, 6, 4, 2, 5, 3}, the preset threshold is set to be 3, and then the maximum magnitude difference is 4, and the data to be displayed needs to be differentiated.
Step S103: and if not, directly displaying the visual chart. When the data to be displayed need to be subjected to differentiation processing, the visual chart is displayed, and the differentiation chart needs to be generated according to the trigger instruction. The trigger instruction in the present invention refers to an operation event of the user, for example, a double-click event of the user. And when the data to be displayed do not need to be subjected to differentiation processing in judgment, directly displaying the visual chart.
In another embodiment of the present invention, the generating the differential chart according to the trigger instruction in step S103 may include: acquiring the magnitude of target item data according to a trigger instruction for generating a differential chart of the target item data, wherein the target item data is certain item data in a visual chart; selecting the magnitude of difference of the magnitude of the target item data from the magnitude of set within a preset range; and generating a differentiation chart of the target item data according to the target item data and the data corresponding to the order of magnitude in the preset range. After the data to be displayed are judged to need to be subjected to differentiation processing, a trigger instruction is generated for each item of data in the visual chart of the data to be displayed. Taking a trigger instruction as an example of a double-click event, when a user double-clicks target item data in a visual chart, immediately acquiring the order of magnitude of the target item data, and obtaining the order of magnitude which is the same as or differs from the order of magnitude of the target item data from an order of magnitude set (the order of magnitude which is the same or differs from 1 is the order of magnitude within a preset range, although the invention can be set according to actual conditions, the invention is not limited to the order of magnitude), and then extracting data corresponding to the orders of magnitude, and using the extracted data to generate a differential chart of the target item data.
Taking fig. 2 as an example, the data to be displayed are 10, 7777, 6666, 11, 6544, 333, and 9999, the corresponding order of magnitude set is {2, 4, 4, 2, 4, 3, 4}, double clicking the Mon term in fig. 2, immediately obtaining the order of magnitude 2 of the data 10 of the Mon term, traversing the order of magnitude set, taking out the order of magnitude which is the same as or differs by plus or minus 1 from the order of magnitude of the Mon term, that is, the order of magnitude of the Thu term and the order of magnitude of the Sat term, and taking out the data of the Mon term, Thu term, and Sat term to generate a differentiation chart.
In this embodiment of the present invention, after generating the differential chart according to the trigger instruction, the method for displaying data may further include: and creating a mask layer to cover the visual chart, adding a displayable area in the mask layer, and then displaying the differential chart through the displayable area. The mask layer is formed by covering the whole visual chart with a black background container, giving a certain transparency, and arranging a part of white background opaque area in the center for displaying data. For example, the mask layer may be a region created with a width and a height of 100% in the global browser, filled with black 40% transparency, and a container with a size of 800 × 400 created in the horizontal and vertical center of the created region, and white 100% transparency, for displaying the generated differentiation chart. When the method for displaying data is adopted to display the data 10, 7777, 6666, 11, 6544, 333 and 9999 in fig. 2, firstly displaying the visual chart shown in fig. 2, then when the user double-clicks Mon, popping up the differential chart corresponding to Mon data shown in fig. 3, and when the user double-clicks Tue, popping up the differential chart corresponding to Tue data shown in fig. 4. Fig. 3 is a schematic diagram of a differentiation chart corresponding to Mon data according to an embodiment of the present invention, fig. 4 is a schematic diagram of a differentiation chart corresponding to Tue data according to an embodiment of the present invention, and a gray portion of a frame in fig. 3 and 4 is a background in a cover layer. After the user finishes watching the data in the differential chart, no matter a closing button or other areas of the mask layer are clicked, the mask layer is automatically closed, the generated differential chart is destroyed, and the memory is released.
Fig. 5 is a schematic diagram of a main flow of a method of presenting data according to one referential embodiment of the present invention. As shown in fig. 5, the main process of the method for displaying data according to the embodiment of the present invention may include:
step S501: acquiring a visual chart of data to be displayed, traversing the visual chart, and calculating the magnitude of each item of data in the visual chart;
step S502: forming an order of magnitude set of the data to be displayed according to the order of magnitude of each item of data;
step S503: selecting a maximum order of magnitude and a minimum order of magnitude from a set of orders of magnitude;
step S504: calculating the maximum difference magnitude of the data to be displayed by utilizing the maximum magnitude and the minimum magnitude;
step S505: judging whether the maximum difference magnitude is greater than a preset threshold value, if so, executing a step S506, otherwise, executing a step S510;
step S506: displaying a visual chart of data to be displayed, and receiving a trigger instruction for generating a differential chart of target item data;
step S507: acquiring the magnitude of target item data, and selecting the magnitude of difference between the magnitude of target item data and the magnitude of target item data within a preset range from a magnitude set;
step S508: generating a differential chart of the target item data by using the target item data and data corresponding to the order of magnitude in a preset range;
step S509: and creating a masking layer to cover the visual chart, adding a displayable region in the masking layer, and then displaying the differential chart of the target item data through the displayable region.
Step S510: and directly displaying the visual chart of the data to be displayed.
It is noted that the maximum difference magnitude in the above steps may comprise at least one of a maximum magnitude difference value or a maximum difference ratio value.
According to the technical scheme for displaying the data, the data can be directly displayed under the condition that the difference of the data is small, and the data required to be checked by the user is automatically generated according to the trigger instruction of the user under the condition that the difference of the data is large, so that the user experience is improved, and the data display method and the data display device have universality and usability; in the embodiment of the invention, the maximum difference magnitude is calculated by using the maximum value and the minimum value in the quantity set, so that the data differentiation can be embodied according to the actual data without any processing on the data; in the embodiment of the invention, the difference magnitude can comprise a difference value and a ratio value, and then whether the differentiation processing is carried out or not is determined by comparing the difference value or the ratio value with a preset threshold value, so that the practicability of the scheme can be improved; in the embodiment of the invention, the order of magnitude of each item of data in the visual chart of the data to be displayed is calculated, so that an order of magnitude set can be generated by using the order of magnitude of each item of data; according to the embodiment of the invention, data with the order of magnitude similar to that of the target item data is selected according to the trigger instruction, and the differentiation chart is automatically generated to generate the differentiation chart under the condition of no manual intervention, so that the effect of realizing data differentiation is achieved; in the embodiment of the invention, the visual chart is covered by the masking layer, and the generated differential chart is displayed in the masking layer, so that the differential chart can be displayed by using the display mode of the pop-up layer, a user can conveniently check the differential chart, and information brought by data is explored.
FIG. 6 is a schematic diagram of the main modules of a device showing data according to an embodiment of the present invention. As shown in fig. 6, the apparatus 600 for displaying data according to the embodiment of the present invention mainly includes the following modules: an obtaining module 601, a judging module 602 and a displaying module 603.
The obtaining module 601 may be configured to obtain an order of magnitude set of data to be displayed, and determine a maximum difference order of magnitude of the data to be displayed according to the order of magnitude set. The determining module 602 may be configured to determine whether to perform differentiation processing on the data to be displayed according to the maximum difference magnitude of the data to be displayed. The display module 603 may be configured to display the visual chart of the data to be displayed if the display module is configured to display the visual chart of the data to be displayed, generate a differentiation chart according to the trigger instruction, and directly display the visual chart if the display module is not configured to display the visual chart.
In this embodiment of the present invention, the obtaining module 601 may further be configured to: selecting a maximum order of magnitude and a minimum order of magnitude from a set of orders of magnitude; and calculating the maximum difference magnitude of the data to be displayed according to the maximum magnitude and the minimum magnitude.
In an embodiment of the present invention, the maximum difference magnitude may include: a maximum magnitude difference or a maximum magnitude ratio; and
the determining module 602 may further be configured to: and judging whether the maximum magnitude difference value or the maximum magnitude ratio is greater than a preset threshold value, and if so, performing differentiation processing on the data to be displayed.
In this embodiment of the present invention, the obtaining module 601 may further be configured to: the method comprises the steps of obtaining a visual chart of data to be displayed, traversing the visual chart, calculating the magnitude of each item of data in the visual chart, and forming a magnitude set according to the magnitude of each item of data.
In the embodiment of the present invention, the display module 603 can further be configured to: acquiring the magnitude of target item data according to a trigger instruction for generating a differential chart of the target item data, wherein the target item data is certain item data in a visual chart; selecting the magnitude of difference of the magnitude of the target item data from the magnitude of set within a preset range; and generating a differentiation chart of the target item data according to the target item data and the data corresponding to the order of magnitude in the preset range.
In the embodiment of the present invention, the display module 603 can further be configured to: and creating a mask layer to cover the visual chart, adding a displayable area in the mask layer, and then displaying the differential chart through the displayable area.
From the above description, it can be seen that the data can be directly displayed under the condition that the difference of the data is small, and the data required to be checked by the user is automatically generated according to the trigger instruction of the user under the condition that the difference of the data is large, so that the user experience is improved, and the universality and the usability are realized; in the embodiment of the invention, the maximum difference magnitude is calculated by using the maximum value and the minimum value in the quantity set, so that the data differentiation can be embodied according to the actual data without any processing on the data; in the embodiment of the invention, the difference magnitude can comprise a difference value and a ratio value, and then whether the differentiation processing is carried out or not is determined by comparing the difference value or the ratio value with a preset threshold value, so that the practicability of the scheme can be improved; in the embodiment of the invention, the order of magnitude of each item of data in the visual chart of the data to be displayed is calculated, so that an order of magnitude set can be generated by using the order of magnitude of each item of data; according to the embodiment of the invention, data with the order of magnitude similar to that of the target item data is selected according to the trigger instruction, and the differentiation chart is automatically generated to generate the differentiation chart under the condition of no manual intervention, so that the effect of realizing data differentiation is achieved; in the embodiment of the invention, the visual chart is covered by the masking layer, and the generated differential chart is displayed in the masking layer, so that the differential chart can be displayed by using the display mode of the pop-up layer, a user can conveniently check the differential chart, and information brought by data is explored.
Fig. 7 illustrates an exemplary system architecture 700 to which the method of presenting data or the apparatus presenting data of embodiments of the present invention may be applied.
As shown in fig. 7, the system architecture 700 may include terminal devices 701, 702, 703, a network 704, and a server 705. The network 704 serves to provide a medium for communication links between the terminal devices 701, 702, 703 and the server 705. Network 704 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 701, 702, 703 to interact with a server 705 over a network 704, to receive or send messages or the like. The terminal devices 701, 702, 703 may have installed thereon various communication client applications, such as a shopping-like application, a web browser application, a search-like application, an instant messaging tool, a mailbox client, social platform software, etc. (by way of example only).
The terminal devices 701, 702, 703 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 705 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using the terminal devices 701, 702, 703. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device.
It should be noted that the method for presenting data provided by the embodiment of the present invention is generally executed by the server 705, and accordingly, the apparatus for presenting data is generally disposed in the server 705.
It should be understood that the number of terminal devices, networks, and servers in fig. 7 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 8, shown is a block diagram of a computer system 800 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 8, the computer system 800 includes a Central Processing Unit (CPU)801 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the system 800 are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
The following components are connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program executes the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 801.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor comprises an acquisition module, a judgment module and a display module. The names of the modules do not limit the module itself in some cases, for example, the obtaining module may also be described as a module that obtains a set of magnitude levels of data to be displayed and determines the maximum difference magnitude of the data to be displayed according to the set of magnitude levels.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: acquiring an order of magnitude set of data to be displayed, and determining the maximum difference order of the data to be displayed according to the order of magnitude set; judging whether to perform differential processing on the data to be displayed or not according to the maximum difference magnitude of the data to be displayed; and if not, directly displaying the visual chart.
According to the technical scheme of the embodiment of the invention, the data can be directly displayed under the condition of small difference of the data, and the data required to be checked by the user can be automatically generated according to the trigger instruction of the user under the condition of large difference of the data, so that the user experience is improved, and the method has universality and usability; in the embodiment of the invention, the maximum difference magnitude is calculated by using the maximum value and the minimum value in the quantity set, so that the data differentiation can be embodied according to the actual data without any processing on the data; in the embodiment of the invention, the difference magnitude can comprise a difference value and a ratio value, and then whether the differentiation processing is carried out or not is determined by comparing the difference value or the ratio value with a preset threshold value, so that the practicability of the scheme can be improved; in the embodiment of the invention, the order of magnitude of each item of data in the visual chart of the data to be displayed is calculated, so that an order of magnitude set can be generated by using the order of magnitude of each item of data; according to the embodiment of the invention, data with the order of magnitude similar to that of the target item data is selected according to the trigger instruction, and the differentiation chart is automatically generated to generate the differentiation chart under the condition of no manual intervention, so that the effect of realizing data differentiation is achieved; in the embodiment of the invention, the visual chart is covered by the masking layer, and the generated differential chart is displayed in the masking layer, so that the differential chart can be displayed by using the display mode of the pop-up layer, a user can conveniently check the differential chart, and information brought by data is explored.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (14)

1. A method of presenting data, comprising:
acquiring an order of magnitude set of data to be displayed, and determining the maximum difference order of the data to be displayed according to the order of magnitude set;
judging whether to perform differentiation processing on the data to be displayed or not according to the maximum difference magnitude of the data to be displayed;
and if not, directly displaying the visual chart.
2. The method of claim 1, wherein determining the maximum magnitude of difference for the data to be presented from the set of magnitudes comprises:
selecting a maximum order of magnitude and a minimum order of magnitude from the set of order of magnitudes;
and calculating the maximum difference magnitude of the data to be displayed according to the maximum magnitude and the minimum magnitude.
3. The method of claim 1, wherein the maximum magnitude of difference comprises: a maximum magnitude difference or a maximum magnitude ratio; and
judging whether to perform differentiation processing on the data to be displayed according to the maximum difference magnitude of the data to be displayed comprises the following steps:
and judging whether the maximum magnitude difference value or the maximum magnitude ratio is larger than a preset threshold value, if so, performing differentiation processing on the data to be displayed.
4. The method of claim 1, wherein obtaining a set of orders of magnitude of data to be presented comprises:
the method comprises the steps of obtaining a visual chart of data to be displayed, traversing the visual chart, calculating the magnitude of each item of data in the visual chart, and forming a magnitude set according to the magnitude of each item of data.
5. The method of claim 4, wherein generating a differentiation chart according to a triggering instruction comprises:
acquiring the magnitude of target item data according to a trigger instruction for generating a differential chart of the target item data, wherein the target item data is certain data in the visual chart;
selecting an order of magnitude of difference with the order of magnitude of the target item data within a preset range from the order of magnitude set;
and generating a differentiation chart of the target item data according to the target item data and the data corresponding to the magnitude order within the preset range.
6. The method of claim 1, wherein after generating the differentiation graph according to the triggering instruction, the method further comprises:
and creating a mask layer to cover the visual chart, adding a displayable area in the mask layer, and displaying the differential chart through the displayable area.
7. An apparatus for presenting data, comprising:
the acquisition module is used for acquiring an order of magnitude set of the data to be displayed and determining the maximum difference order of magnitude of the data to be displayed according to the order of magnitude set;
the judging module is used for judging whether to carry out differentiation processing on the data to be displayed according to the maximum difference magnitude of the data to be displayed;
and the display module is used for displaying the visual chart of the data to be displayed if the visual chart is in the positive state, generating a differential chart according to the trigger instruction, and directly displaying the visual chart if the visual chart is not in the negative state.
8. The apparatus of claim 7, wherein the obtaining module is further configured to:
selecting a maximum order of magnitude and a minimum order of magnitude from the set of order of magnitudes;
and calculating the maximum difference magnitude of the data to be displayed according to the maximum magnitude and the minimum magnitude.
9. The apparatus of claim 7, wherein the maximum magnitude of difference comprises: a maximum magnitude difference or a maximum magnitude ratio; and
the judging module is further configured to: and judging whether the maximum magnitude difference value or the maximum magnitude ratio is larger than a preset threshold value, if so, performing differentiation processing on the data to be displayed.
10. The apparatus of claim 7, wherein the obtaining module is further configured to:
the method comprises the steps of obtaining a visual chart of data to be displayed, traversing the visual chart, calculating the magnitude of each item of data in the visual chart, and forming a magnitude set according to the magnitude of each item of data.
11. The apparatus of claim 10, wherein the display module is further configured to:
acquiring the magnitude of target item data according to a trigger instruction for generating a differential chart of the target item data, wherein the target item data is certain data in the visual chart;
selecting an order of magnitude of difference with the order of magnitude of the target item data within a preset range from the order of magnitude set;
and generating a differentiation chart of the target item data according to the target item data and the data corresponding to the magnitude order within the preset range.
12. The apparatus of claim 7, wherein the display module is further configured to:
and creating a mask layer to cover the visual chart, adding a displayable area in the mask layer, and displaying the differential chart through the displayable area.
13. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
14. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN201810955553.0A 2018-08-21 2018-08-21 Method and device for displaying data Pending CN110851522A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810955553.0A CN110851522A (en) 2018-08-21 2018-08-21 Method and device for displaying data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810955553.0A CN110851522A (en) 2018-08-21 2018-08-21 Method and device for displaying data

Publications (1)

Publication Number Publication Date
CN110851522A true CN110851522A (en) 2020-02-28

Family

ID=69594613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810955553.0A Pending CN110851522A (en) 2018-08-21 2018-08-21 Method and device for displaying data

Country Status (1)

Country Link
CN (1) CN110851522A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112612847A (en) * 2020-12-31 2021-04-06 中国农业银行股份有限公司 Data processing method and device based on drill-down analysis scene
CN116344012A (en) * 2023-05-29 2023-06-27 北京梆梆安全科技有限公司 Diagnosis and treatment log medical management system of (a)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120050567A1 (en) * 2010-09-01 2012-03-01 Apple Inc. Techniques for acquiring and processing statistics data in an image signal processor
US20150032730A1 (en) * 2013-07-23 2015-01-29 Aware, Inc. Data Analysis Engine
US20160117373A1 (en) * 2013-06-13 2016-04-28 Microsoft Technoloy Licensing, LLC Data Segmentation and Visualization
US20160188705A1 (en) * 2014-08-29 2016-06-30 Software Ag System and method for precise quantile determination
CN105963963A (en) * 2016-05-11 2016-09-28 腾讯科技(深圳)有限公司 Data processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120050567A1 (en) * 2010-09-01 2012-03-01 Apple Inc. Techniques for acquiring and processing statistics data in an image signal processor
US20160117373A1 (en) * 2013-06-13 2016-04-28 Microsoft Technoloy Licensing, LLC Data Segmentation and Visualization
US20150032730A1 (en) * 2013-07-23 2015-01-29 Aware, Inc. Data Analysis Engine
US20160188705A1 (en) * 2014-08-29 2016-06-30 Software Ag System and method for precise quantile determination
CN105963963A (en) * 2016-05-11 2016-09-28 腾讯科技(深圳)有限公司 Data processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
罗文静: "数据挖掘中可视化技术研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑(月刊)》, no. 3, pages 138 - 867 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112612847A (en) * 2020-12-31 2021-04-06 中国农业银行股份有限公司 Data processing method and device based on drill-down analysis scene
CN112612847B (en) * 2020-12-31 2023-12-08 中国农业银行股份有限公司 Method and device for processing data based on drill-down analysis scene
CN116344012A (en) * 2023-05-29 2023-06-27 北京梆梆安全科技有限公司 Diagnosis and treatment log medical management system of (a)
CN116344012B (en) * 2023-05-29 2023-08-18 北京梆梆安全科技有限公司 Medical management system based on diagnosis and treatment log

Similar Documents

Publication Publication Date Title
CN107885783B (en) Method and device for obtaining high-correlation classification of search terms
CN110866040A (en) User portrait generation method, device and system
CN111062572B (en) Task allocation method and device
CN107291835B (en) Search term recommendation method and device
CN110851522A (en) Method and device for displaying data
CN112783887A (en) Data processing method and device based on data warehouse
CN107908662B (en) Method and device for realizing search system
CN108985805B (en) Method and device for selectively executing push task
CN112433713A (en) Application program design graph processing method and device
CN111858706A (en) Data processing method and device
CN113364664A (en) Instant messaging method and device
CN115470432A (en) Page rendering method and device, electronic equipment and computer readable medium
CN110888583B (en) Page display method, system and device and electronic equipment
CN111176982B (en) Test interface generation method and device
CN113822745A (en) Article display method and device
CN112882775A (en) Method and device for self-adaptive adjustment of page template
CN112632384A (en) Data processing method and device for application program, electronic equipment and medium
CN108415957B (en) Method and device for self-defined navigation of webpage
CN107886350B (en) Method and device for analyzing data
CN111695059A (en) Information view list processing method and device and display equipment
CN107885774B (en) Data processing method and system
CN111488537A (en) Page display method and device
CN113378346A (en) Method and device for model simulation
CN113326680A (en) Method and device for generating table
CN113626113A (en) Page rendering method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination