CN109215095B - Data display method, device, storage medium and processor - Google Patents

Data display method, device, storage medium and processor Download PDF

Info

Publication number
CN109215095B
CN109215095B CN201710555343.8A CN201710555343A CN109215095B CN 109215095 B CN109215095 B CN 109215095B CN 201710555343 A CN201710555343 A CN 201710555343A CN 109215095 B CN109215095 B CN 109215095B
Authority
CN
China
Prior art keywords
data
displayed
value
data value
piece
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.)
Active
Application number
CN201710555343.8A
Other languages
Chinese (zh)
Other versions
CN109215095A (en
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 Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201710555343.8A priority Critical patent/CN109215095B/en
Publication of CN109215095A publication Critical patent/CN109215095A/en
Application granted granted Critical
Publication of CN109215095B publication Critical patent/CN109215095B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention provides a data display method, a device, a storage medium and a processor, wherein the method comprises the following steps: obtaining the maximum data value and the minimum data value of a plurality of data to be displayed in a data set to be displayed; determining attribute parameters of a display pattern corresponding to each piece of data to be displayed according to the maximum data value, the minimum data value and each piece of data to be displayed in a plurality of pieces of data to be displayed, wherein the display pattern is used for displaying each piece of data to be displayed, and the attribute parameters are used for indicating the attribute of the display pattern; drawing a display pattern corresponding to each piece of data to be displayed according to the attribute parameters; the display patterns are displayed in the preset areas corresponding to each piece of data to be displayed, so that the problem of low data display efficiency in the related art is solved, and the data display efficiency in the process of displaying the data is improved.

Description

Data display method, device, storage medium and processor
Technical Field
The present invention relates to the field of communications, and in particular, to a data display method, apparatus, storage medium, and processor.
Background
In such a large data age today, the processing efficiency of data is particularly important for massive amounts of data. In the data processing process, in order to more intuitively observe the change rule or trend of the data, the data is often required to be displayed, and one display mode is to display the data by using a graph. In the process of graphically displaying data, the situation that the difference between the data is large, so that the graphic difference is large, the display effect is poor, and the display efficiency of the data is low may occur.
Aiming at the problem of low data display efficiency in the related art, no effective solution exists at present.
Disclosure of Invention
The embodiment of the invention provides a data display method, a device, a storage medium and a processor, which are used for at least solving the problem of low data display efficiency in the related technology.
According to an embodiment of the present invention, there is provided a data presentation method including: obtaining the maximum data value and the minimum data value of a plurality of data to be displayed in a data set to be displayed; determining attribute parameters of a display pattern corresponding to each piece of data to be displayed according to the maximum data value, the minimum data value and each piece of data to be displayed in the plurality of pieces of data to be displayed, wherein the display pattern is used for displaying each piece of data to be displayed, and the attribute parameters are used for indicating the attribute of the display pattern; drawing the display pattern corresponding to each piece of data to be displayed according to the attribute parameters; and displaying the display pattern in a preset area corresponding to each piece of data to be displayed.
Optionally, determining the attribute parameter of the display pattern corresponding to each of the plurality of data to be displayed according to the maximum data value, the minimum data value and each of the plurality of data to be displayed includes: selecting a target value according to the maximum data value and the minimum data value, wherein the target value is smaller than the maximum data value and larger than the minimum data value; and determining the attribute parameters of the display patterns corresponding to each piece of data to be displayed according to the target value, the preset parameters and each piece of data to be displayed, wherein the preset parameters are the cardinal numbers of the attribute parameters.
Optionally, selecting the target value according to the maximum data value and the minimum data value includes: and selecting an average value of the maximum data value and the minimum data value as the target value.
Optionally, obtaining the maximum data value and the minimum data value of the plurality of data to be displayed in the data set to be displayed includes: acquiring the data set to be displayed; sorting the plurality of data to be displayed in the data set to be displayed; and acquiring the maximum data value and the minimum data value according to the sorting result.
According to another embodiment of the present invention, there is provided a storage medium including a stored program, wherein the program, when run, performs the method of any one of the above.
According to another embodiment of the present invention, a processor is provided for running a program, wherein the program when run performs the method of any of the above.
According to another embodiment of the present invention, there is provided a data display apparatus including: the acquisition module is used for acquiring the maximum data value and the minimum data value of a plurality of data to be displayed in the data set to be displayed; the determining module is used for determining attribute parameters of a display pattern corresponding to each piece of data to be displayed according to the maximum data value, the minimum data value and each piece of data to be displayed, wherein the display pattern is used for displaying each piece of data to be displayed, and the attribute parameters are used for indicating the attribute of the display pattern; the drawing module is used for drawing the display pattern corresponding to each piece of data to be displayed according to the attribute parameters; and the display module is used for displaying the display pattern in a preset area corresponding to each piece of data to be displayed.
Optionally, the determining module includes: a selecting unit, configured to select a target value according to the maximum data value and the minimum data value, where the target value is smaller than the maximum data value and larger than the minimum data value; and the determining unit is used for determining the attribute parameters of the display patterns corresponding to each piece of data to be displayed according to the target value, the preset parameters and each piece of data to be displayed, wherein the preset parameters are the base numbers of the attribute parameters.
Optionally, the selecting unit is configured to: and selecting an average value of the maximum data value and the minimum data value as the target value.
Optionally, the acquiring module includes: the first acquisition unit is used for acquiring the data set to be displayed; the sorting unit is used for sorting the plurality of data to be displayed in the data set to be displayed; and the second acquisition unit is used for acquiring the maximum data value and the minimum data value according to the sorting result.
According to the invention, the maximum data value and the minimum data value in the data to be displayed are obtained; determining attribute parameters of a display pattern corresponding to the data to be displayed according to the maximum data value and the minimum data value, wherein the display pattern is used for displaying the data to be displayed, and the attribute parameters are used for indicating the attribute of the display pattern; drawing a display pattern according to the attribute parameters; according to the method, corresponding attribute parameters are determined for the display patterns according to the maximum data value and the minimum data value in the data to be displayed by adopting the scheme, so that the display patterns drawn for each data to be displayed can be adjusted along with the data value span of the data to be displayed, the display patterns are not too large even if the difference between the data to be displayed is large, the display patterns can be uniformly changed, and therefore, the data display efficiency in data display is improved, and the problem of lower data display efficiency in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal of a data presentation method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a data presentation method according to an embodiment of the present invention;
FIG. 3 is a block diagram of a data presentation device according to an embodiment of the present invention;
FIG. 4 is a block diagram II of a data presentation device according to an embodiment of the present invention;
FIG. 5 is a block diagram III of a data presentation device according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a data presentation according to an alternative embodiment of the present invention;
fig. 7 is a second data presentation schematic diagram according to an alternative embodiment of the invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
Example 1
The method embodiment provided in embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of a mobile terminal according to a data presentation method according to an embodiment of the present invention, as shown in fig. 1, a mobile terminal 10 may include one or more (only one is shown in the figure) processors 102 (the processors 102 may include, but are not limited to, a microprocessor MCU, a programmable logic device FPGA, etc. processing devices), a memory 104 for storing data, and a transmission device 106 for communication functions. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1 or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store software programs and modules of application software, such as program instructions/modules corresponding to the data presentation method in the embodiment of the present invention, and the processor 102 executes the software programs and modules stored in the memory 104 to perform various functional applications and data processing, i.e., implement the method described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. The specific examples of networks described above may include wireless networks provided by the communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
In this embodiment, a data display method is provided, fig. 2 is a flowchart of a data display method according to an embodiment of the present invention, and as shown in fig. 2, the flowchart includes the following steps:
step S202, obtaining the maximum data value and the minimum data value of a plurality of data to be displayed in a data set to be displayed;
step S204, determining attribute parameters of a display pattern corresponding to each piece of data to be displayed according to the maximum data value, the minimum data value and each piece of data to be displayed, wherein the display pattern is used for displaying each piece of data to be displayed, and the attribute parameters are used for indicating the attribute of the display pattern;
step S206, drawing a display pattern corresponding to each piece of data to be displayed according to the attribute parameters;
step S208, displaying the display pattern in the preset area corresponding to each piece of data to be displayed.
Alternatively, the data display method can be applied to, but not limited to, a scene in which data is displayed by using a display pattern. For example: bubble diagrams show scenes of data, bar diagrams show scenes of data, and so on.
Optionally, the above data presentation method may be applied to, but not limited to, a terminal device, for example: cell phones, tablet computers, desktop computers, smart wearable devices, smart appliances, and the like.
Alternatively, the display patterns may include, but are not limited to: bubble patterns, bar patterns, pie charts, bar charts, line charts, scatter charts, ring charts, and the like.
Optionally, the attribute parameter of the display pattern is used to indicate an attribute of the display pattern. For example: the attribute parameters may be the bubble radius or diameter of the bubble pattern, the height or area of the columnar pattern, the included angle or area of the sector in the pie chart, and the like.
Optionally, the preset area corresponding to the data to be displayed may be a table, a coordinate system, a coordinate axis, or the like.
Through the steps, the maximum data value and the minimum data value of a plurality of data to be displayed in the data set to be displayed are obtained; determining attribute parameters of a display pattern corresponding to each piece of data to be displayed according to the maximum data value, the minimum data value and each piece of data to be displayed in a plurality of pieces of data to be displayed, wherein the display pattern is used for displaying each piece of data to be displayed, and the attribute parameters are used for indicating the attribute of the display pattern; drawing a display pattern corresponding to each piece of data to be displayed according to the attribute parameters; according to the method, corresponding attribute parameters are determined for the display patterns according to the maximum data values and the minimum data values of the plurality of data to be displayed included in the data set to be displayed in the preset area corresponding to each data to be displayed, so that the display patterns drawn for each data to be displayed can be adjusted along with the data value span of the data to be displayed, even if the difference between the data to be displayed is large, the difference of the display patterns is not too large, the display patterns can be changed uniformly, and therefore, the data display efficiency in data display is improved, and the problem that the data display efficiency in the related art is low is solved.
Optionally, in order to enable the display pattern to be uniformly changed, a target value may be selected as a standard value in a range between a maximum data value and a minimum data value, and a preset parameter may be preset as a base number, so as to avoid the situation that the display pattern is too large or too small, and determine the attribute parameter of the display pattern corresponding to each data to be displayed according to the selected target value, the preset parameter and each data to be displayed. For example: in the step S204, a target value may be selected according to the maximum data value and the minimum data value, where the target value is smaller than the maximum data value and larger than the minimum data value, and the attribute parameters of the display pattern corresponding to the data to be displayed are determined according to the target value, the preset parameter and each data to be displayed, and the preset parameter is a base of the attribute parameters.
In an alternative embodiment, the maximum data value is 100, the minimum data value is 2, the average value of the maximum data value and the minimum data value can be selected as the target value, that is, the target value is 51, the preset parameter is set to 3, the data set to be displayed is displayed by using the bubble chart, the attribute parameter is used for representing the radius of the bubble, the attribute parameter can be but not limited to be obtained by the preset parameter (to be displayed) of the formula, then the attribute parameter corresponding to the maximum data value is 3+ (100/51) =4.96, the attribute parameter corresponding to the minimum data value is 3+ (2/51) =3.04, and it can be seen that the bubble chart drawn by adopting the mode can display the data change trend, and meanwhile, the difference between the display patterns is not too large.
Alternatively, an average value of the maximum data value and the minimum data value may be selected as the target value, or a third, a fourth, etc. of the sum of the maximum data value and the minimum data value, and the specific manner of selecting the target value may be automatically adjusted according to the characteristics of the data to be displayed. The above is merely an example of selecting the target value, and the present embodiment is not limited thereto.
In an alternative embodiment, the attribute parameters may be determined by an operation between the data to be presented, the target values and the preset parameters. For example: and obtaining the ratio of the data to be displayed to the target value, and obtaining the sum of the ratio and the preset parameter to obtain the attribute parameter.
Alternatively, the preset parameters may be, but are not limited to, set according to a preset area.
Alternatively, the maximum data value and the minimum data value in the data to be displayed can be quickly acquired by sorting the data to be displayed. For example: in the step S202, a data set to be displayed may be obtained, a plurality of data to be displayed in the data set to be displayed may be sorted, and a maximum data value and a minimum data value may be obtained according to the sorting result.
Alternatively, taking a bubble chart as an example, for example, the echartis bubble chart can reflect the change situation of the data through the size of the bubbles in the aspect of display, and the larger the data, the larger the bubbles. The bubble size is generally proportional to the data. It is possible to show the above at some point in front of the time that the difference in size of the bubbles is very large due to the very large difference in source data given. Then the display effect appears to be undesirable in the case where the displayed space is relatively small. In this embodiment, the attribute parameters of the air bubble may be determined according to the maximum data value and the minimum data value in the data to be displayed, for example: the bubble radius makes the bubble size look a certain change with the data, but the difference is not very large. The purpose of evenly increasing the radius of the bubble is achieved.
Example 2
In this embodiment, a data display device is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and will not be described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 3 is a block diagram of a data display apparatus according to an embodiment of the present invention, as shown in fig. 3, the apparatus includes:
an obtaining module 32, configured to obtain a maximum data value and a minimum data value of a plurality of data to be displayed in the data set to be displayed;
a determining module 34, coupled to the acquiring module 32, for determining, according to the maximum data value, the minimum data value, and each of the plurality of data to be displayed, an attribute parameter of a display pattern corresponding to each data to be displayed, where the display pattern is used to display each data to be displayed, and the attribute parameter is used to indicate an attribute of the display pattern;
a drawing module 36, coupled to the determining module 34, for drawing a display pattern corresponding to each data to be displayed according to the attribute parameters;
the display module 38 is coupled to the drawing module 36, and is configured to display a display pattern in a preset area corresponding to each data to be displayed.
Alternatively, the data display method can be applied to, but not limited to, a scene in which data is displayed by using a display pattern. For example: bubble diagrams show scenes of data, bar diagrams show scenes of data, and so on.
Optionally, the above data presentation method may be applied to, but not limited to, a terminal device, for example: cell phones, tablet computers, desktop computers, smart wearable devices, smart appliances, and the like.
Alternatively, the display patterns may include, but are not limited to: bubble patterns, bar patterns, pie charts, bar charts, line charts, scatter charts, ring charts, and the like.
Optionally, the attribute parameter of the display pattern is used to indicate an attribute of the display pattern. For example: the attribute parameters may be the bubble radius or diameter of the bubble pattern, the height or area of the columnar pattern, the included angle or area of the sector in the pie chart, and the like.
Optionally, the preset area corresponding to the data to be displayed may be a table, a coordinate system, a coordinate axis, or the like.
Through the device, the maximum data value and the minimum data value of a plurality of data to be displayed in the data set to be displayed are obtained; determining attribute parameters of a display pattern corresponding to the data to be displayed according to the maximum data value, the minimum data value and each of the plurality of data to be displayed, wherein the display pattern is used for displaying each data to be displayed, and the attribute parameters are used for indicating the attribute of the display pattern; drawing a display pattern corresponding to each piece of data to be displayed according to the attribute parameters; according to the method, corresponding attribute parameters are determined for the display patterns according to the maximum data value and the minimum data value in the data to be displayed by adopting the scheme, so that the display patterns drawn for each data to be displayed can be adjusted along with the data value span of the data to be displayed, the display patterns are not too large even if the difference between the data to be displayed is large, the display patterns can be uniformly changed, and therefore, the data display efficiency in displaying the data is improved, and the problem of lower data display efficiency in the related technology is solved.
Fig. 4 is a block diagram of a second data display apparatus according to an embodiment of the present invention, as shown in fig. 4, optionally, the determining module 34 includes:
a selecting unit 42, configured to select a target value according to the maximum data value and the minimum data value, where the target value is smaller than the maximum data value and larger than the minimum data value;
the determining unit 44 is coupled to the selecting unit 42, and is configured to determine an attribute parameter of the display pattern corresponding to each data to be displayed according to the target value, a preset parameter and each data to be displayed, where the preset parameter is a base of the attribute parameter.
Optionally, in order to enable the display pattern to be uniformly changed, the target value may be selected as a standard value in a range between the maximum data value and the minimum data value, and a preset parameter may be preset as a base number, so as to avoid the situation that the display pattern is too large or too small, and the attribute parameters of the display pattern are determined according to the selected target value and the preset parameter.
In an alternative embodiment, the maximum data value is 100, the minimum data value is 2, the average value of the maximum data value and the minimum data value can be selected as the target value, that is, the target value is 51, the preset parameter is set to 3, the data set to be displayed is displayed by using the bubble chart, the attribute parameter is used for representing the radius of the bubble, the attribute parameter can be but not limited to be obtained by the preset parameter (to be displayed) of the formula, then the attribute parameter corresponding to the maximum data value is 3+ (100/51) =4.96, the attribute parameter corresponding to the minimum data value is 3+ (2/51) =3.04, and it can be seen that the bubble chart drawn by adopting the mode can display the data change trend, and meanwhile, the difference between the display patterns is not too large.
Alternatively, the selecting unit may be, but not limited to, used for: and selecting an average value of the maximum data value and the minimum data value as a target value.
Optionally, the selecting unit may be further used, but not limited to: one third, one fourth, etc. of the sum of the maximum data value and the minimum data value, the specific way of selecting the target value can be automatically adjusted according to the characteristics of the data to be displayed. The above is merely an example of selecting the target value, and the present embodiment is not limited thereto.
In an alternative embodiment, the attribute parameters may be determined by an operation between the data to be presented, the target values and the preset parameters.
Alternatively, the preset parameters may be, but are not limited to, set according to a preset area.
Alternatively, the above-mentioned determining unit 44 is configured to: acquiring the ratio of the data to be displayed to the target value; and obtaining the sum of the ratio and the preset parameters to obtain the attribute parameters.
Fig. 5 is a block diagram III of a data display device according to an embodiment of the present invention, as shown in fig. 5, optionally, the obtaining module 32 includes:
a first obtaining unit 52, configured to obtain a data set to be displayed;
a sorting unit 54, coupled to the first obtaining unit 52, for sorting the plurality of data to be displayed in the data set to be displayed;
a second obtaining unit 56, coupled to the sorting unit 54, is configured to obtain a maximum data value and a minimum data value according to the sorting result.
Alternatively, the maximum data value and the minimum data value in the data to be displayed can be quickly acquired by sorting the data to be displayed.
Alternatively, taking a bubble chart as an example, for example, the echartis bubble chart can reflect the change situation of the data through the size of the bubbles in the aspect of display, and the larger the data, the larger the bubbles. The bubble size is generally proportional to the data. It is possible to show the above at some point in front of the time that the difference in size of the bubbles is very large due to the very large difference in source data given. Then the display effect appears to be undesirable in the case where the displayed space is relatively small. In this embodiment, the attribute parameters of the air bubble may be determined according to the maximum data value and the minimum data value in the data to be displayed, for example: the bubble radius makes the bubble size look a certain change with the data, but the difference is not very large. The purpose of evenly increasing the radius of the bubble is achieved.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the modules are located in a plurality of processors, respectively.
The following detailed description is of alternative embodiments of the invention.
The invention provides a data display method. In this alternative embodiment, the display pattern is exemplified by a bubble pattern. When the current bubble diagram shows data, under the default condition, the bubble size of bubble diagram is proportional to the data size, and under the less condition of show space, the effect can not reach the show demand, and the bandwagon effect is not good, and the show efficiency is very low. According to the data display method provided by the alternative embodiment, the bubble radius of the bubble diagram is increased uniformly, namely the size of the bubble diagram is displayed uniformly with a small gap, so that the display requirement in a small space is met. The method for displaying data provided by the alternative embodiment comprises the following steps:
step 1, sorting the data after obtaining the source data (namely the data to be displayed), and respectively obtaining the minimum data value and the maximum data value of the source data after sorting.
Step 2, according to the preset area, for example: and presetting preset parameters corresponding to the radius of the bubble as a base number in the space between the data display shafts. For example: preset parameters are preset to 3 units.
And 3, selecting a target value from the maximum data value and the minimum data value. For example: the intermediate value between the maximum data value and the minimum data value, i.e. the maximum data value plus the minimum data value, may be divided by 2. The radius size of each bubble is a preset parameter, i.e., 3 units plus the value of each datum divided by the median value. Expressed by the formula: the minimum data values are noted as: min, maximum value is: max, then the intermediate value is: midle= (min+max)/2, and the value of each datum is x, the radius of each bubble is: 3+x/middle.
It can be seen from the formula that the largest bubble will not exceed twice the smallest bubble and that all bubble radii will change uniformly and slowly in 3 to less than 6 units to meet product display requirements.
Fig. 6 is a first data display schematic diagram according to an alternative embodiment of the present invention, as shown in fig. 6, in which the difference between the bubble patterns of the data sizes 10 and 1 is very large, and fig. 7 is a second data display schematic diagram according to an alternative embodiment of the present invention, as shown in fig. 7, in which the difference between the bubble patterns of the data sizes 110 and 2 is very small, but the variation of the data can be displayed. It can be seen that the size of the bubbles in fig. 7 varies more evenly and also does not appear to be out of range between the axes. By adopting the data display method provided by the alternative embodiment, even the difference between tens of thousands and units can be completely displayed uniformly, and each parameter can be adaptively adjusted according to the size of the data.
The above embodiments are only for illustrating the technical solution of the present invention and not for limiting the same, and those skilled in the art may modify or substitute the technical solution of the present invention without departing from the spirit and scope of the present invention, and the protection scope of the present invention shall be subject to the claims.
Example 3
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiment of the invention also provides a storage medium. Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
s1, obtaining maximum data values and minimum data values of a plurality of data to be displayed in a data set to be displayed;
s2, determining attribute parameters of a display pattern corresponding to each piece of data to be displayed according to the maximum data value, the minimum data value and each piece of data to be displayed in the plurality of pieces of data to be displayed, wherein the display pattern is used for displaying each piece of data to be displayed, and the attribute parameters are used for indicating the attribute of the display pattern;
s3, drawing a display pattern corresponding to each piece of data to be displayed according to the attribute parameters;
s4, displaying the display patterns in the preset area corresponding to each piece of data to be displayed.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Optionally, in this embodiment, the processor performs the method steps described in the above embodiment according to the program code stored in the storage medium.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (6)

1. A data presentation method, comprising:
obtaining the maximum data value and the minimum data value of a plurality of data to be displayed in a data set to be displayed;
determining attribute parameters of a display pattern corresponding to each piece of data to be displayed according to the maximum data value, the minimum data value and each piece of data to be displayed in the plurality of pieces of data to be displayed, wherein the display pattern is used for displaying each piece of data to be displayed, and the attribute parameters are used for indicating the attribute of the display pattern;
drawing the display pattern corresponding to each piece of data to be displayed according to the attribute parameters;
displaying the display patterns in a preset area corresponding to each piece of data to be displayed;
wherein determining, according to the maximum data value, the minimum data value, and each data to be displayed in the plurality of data to be displayed, an attribute parameter of a display pattern corresponding to each data to be displayed includes: selecting a target value according to the maximum data value and the minimum data value, wherein the target value is smaller than the maximum data value and larger than the minimum data value; determining attribute parameters of display patterns corresponding to each piece of data to be displayed according to the target value, preset parameters and each piece of data to be displayed, wherein the preset parameters are the base numbers of the attribute parameters;
selecting the target value according to the maximum data value and the minimum data value comprises: selecting an average value of the maximum data value and the minimum data value as the target value;
determining the attribute parameters of the display pattern corresponding to each piece of data to be displayed according to the target value, the preset parameter and the data to be displayed, wherein the attribute parameters comprise: acquiring the ratio of the data to be displayed to the target value; and obtaining the sum of the ratio and preset parameters to obtain the attribute parameters.
2. The method of claim 1, wherein obtaining the maximum data value and the minimum data value for a plurality of data to be presented in the set of data to be presented comprises:
acquiring the data set to be displayed;
sorting the plurality of data to be displayed in the data set to be displayed;
and acquiring the maximum data value and the minimum data value according to the sorting result.
3. A data presentation device, comprising:
the acquisition module is used for acquiring the maximum data value and the minimum data value of a plurality of data to be displayed in the data set to be displayed;
the determining module is used for determining attribute parameters of a display pattern corresponding to each piece of data to be displayed according to the maximum data value, the minimum data value and each piece of data to be displayed, wherein the display pattern is used for displaying each piece of data to be displayed, and the attribute parameters are used for indicating the attribute of the display pattern;
the drawing module is used for drawing the display pattern corresponding to each piece of data to be displayed according to the attribute parameters;
the display module is used for displaying the display patterns in a preset area corresponding to each piece of data to be displayed;
wherein the determining module comprises: a selecting unit, configured to select a target value according to the maximum data value and the minimum data value, where the target value is smaller than the maximum data value and larger than the minimum data value; the determining unit is used for determining attribute parameters of the display patterns corresponding to each piece of data to be displayed according to the target value, preset parameters and each piece of data to be displayed, wherein the preset parameters are the base numbers of the attribute parameters;
the selecting unit is used for: selecting an average value of the maximum data value and the minimum data value as the target value;
the determining unit is used for: acquiring the ratio of the data to be displayed to the target value; and obtaining the sum of the ratio and the preset parameters to obtain the attribute parameters.
4. The apparatus of claim 3, wherein the acquisition module comprises:
the first acquisition unit is used for acquiring the data set to be displayed;
the sorting unit is used for sorting the plurality of data to be displayed in the data set to be displayed;
and the second acquisition unit is used for acquiring the maximum data value and the minimum data value according to the sorting result.
5. A storage medium comprising a stored program, wherein the program when run performs the method of any one of claims 1 to 2.
6. A processor for running a program, wherein the program when run performs the method of any one of claims 1 to 2.
CN201710555343.8A 2017-07-07 2017-07-07 Data display method, device, storage medium and processor Active CN109215095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710555343.8A CN109215095B (en) 2017-07-07 2017-07-07 Data display method, device, storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710555343.8A CN109215095B (en) 2017-07-07 2017-07-07 Data display method, device, storage medium and processor

Publications (2)

Publication Number Publication Date
CN109215095A CN109215095A (en) 2019-01-15
CN109215095B true CN109215095B (en) 2023-07-04

Family

ID=64991517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710555343.8A Active CN109215095B (en) 2017-07-07 2017-07-07 Data display method, device, storage medium and processor

Country Status (1)

Country Link
CN (1) CN109215095B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113925471A (en) * 2021-11-09 2022-01-14 刘明明 Skin microcirculation function evaluation and visualization method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7788064B1 (en) * 2007-04-30 2010-08-31 Hewlett-Packard Development Company, L.P. Focus-based visual analytic techniques for exploring data relationships
CN103186700B (en) * 2011-12-28 2016-01-27 国际商业机器公司 Based on method for exhibiting data and the system of annular angle
CN106469459A (en) * 2015-08-17 2017-03-01 北京国双科技有限公司 The method and apparatus drawing trendgram
CN106528027B (en) * 2016-11-28 2020-02-14 合一网络技术(北京)有限公司 Data display method and device

Also Published As

Publication number Publication date
CN109215095A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
EP3537661B1 (en) Message processing method and device
WO2015038508A2 (en) Techniques to manage color representations for a digital map
CN112862199B (en) Cleaning path acquisition method and device for cleaning equipment and storage medium
CN109118456A (en) Image processing method and device
CN109215095B (en) Data display method, device, storage medium and processor
CN110941634A (en) Data processing method and device, storage medium and electronic device
CN109947756A (en) Data cleaning method, device and equipment for Augmented Data
CN104636806A (en) Method and device for reserving meeting room
CN113449222A (en) Picture display method, picture display device and electronic equipment
CN111340911A (en) Method and device for determining connecting line in k-line graph and storage medium
CA2881329C (en) Method and device for grouping contacts in social network
CN104955067A (en) Wireless Internet access information recording method and system
CN113761381A (en) Method, device and equipment for recommending interest points and storage medium
CN112637040B (en) Method, apparatus and storage medium for distributing information based on priority
CN112274929A (en) Game control method and device, electronic equipment and storage medium
CN110716996A (en) Data display method and device based on network geographic information system
CN109045693B (en) Model eliminating method and device, storage medium and electronic device
CN112150492A (en) Method and device for reading house-type graph and storage medium
CN106294329B (en) Information processing method and apparatus
CN111897981B (en) Method, apparatus and storage medium for image processing with cooperation of multiple persons
CN113769393B (en) Character image generation method and device, storage medium and electronic device
CN113934419A (en) Transparency adjusting method and device, storage medium and electronic device
CN109522076A (en) Show the method, apparatus and storage medium of chat message
CN107679175B (en) Method and system for batch datamation of vegetarian gold products
CN113127611B (en) Method, device and storage medium for processing question corpus

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant