CN105426368A - Information display method, information display apparatus, and electronic equipment - Google Patents

Information display method, information display apparatus, and electronic equipment Download PDF

Info

Publication number
CN105426368A
CN105426368A CN201410444603.0A CN201410444603A CN105426368A CN 105426368 A CN105426368 A CN 105426368A CN 201410444603 A CN201410444603 A CN 201410444603A CN 105426368 A CN105426368 A CN 105426368A
Authority
CN
China
Prior art keywords
fan
frame
shaped block
target direction
cake chart
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.)
Granted
Application number
CN201410444603.0A
Other languages
Chinese (zh)
Other versions
CN105426368B (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.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing 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 Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201410444603.0A priority Critical patent/CN105426368B/en
Publication of CN105426368A publication Critical patent/CN105426368A/en
Application granted granted Critical
Publication of CN105426368B publication Critical patent/CN105426368B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an information display method, an information display apparatus, and electronic equipment, and belongs to the image processing field. The information display method comprises the steps of generating a pie chart including n fan-shaped blocks according to n items of data, and generating description boxes corresponding to each fan-shaped block; adjusting the description boxes to enable the description boxes to be far from a target direction; and displaying the pie chart and the description boxes through a display module. According to the information display method, the positions of the description boxes are regularly placed to enable the number of the description boxes that are positioned on one side of the target direction to be minimum so as to save the display effect.

Description

Method for information display, device and electronic equipment
Technical field
The present invention relates to image processing field, particularly a kind of method for information display, device and electronic equipment.
Background technology
In statistics, cake chart is used for the ratio of the numerical values recited of every data and the numerical value summation of every data in expression one group of data.
To show cake chart on mobile phone, as shown in Figure 1, when one group of data comprise four item numbers according to time, mobile phone calculates the ratio of the numerical values recited of every item number certificate and the data summation of four item number certificates, then mobile phone calculates this item number according to the central angle corresponding in pie Figure 10 of corresponding fan-shaped block 12 according to every item number according to corresponding ratio, the central angle respective according to four fan-shaped blocks 12 generates this pie Figure 10, and for each fan-shaped block 12 in pie Figure 10 add 1 description frame 14 adopting straight line to be connected after show.
In the process realizing the embodiment of the present invention, inventor finds that above-mentioned technology at least exists following problem: the display space of mobile phone screen is limited, when the distribution describing frame 14 is at random and random, may wastes display space or cause fully showing.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of method for information display, device and electronic equipment.Described technical scheme is as follows:
According to the first aspect of the embodiment of the present invention, provide a kind of method for information display, described method comprises:
The cake chart of n fan-shaped block is comprised according to n item data genaration, and the description frame corresponding with each fan-shaped block;
Adjust described description frame wide direction;
Described cake chart and described description frame is shown by display module.
According to the second aspect of the embodiment of the present invention, provide a kind of information display device, described device comprises:
Generation module, for comprising the cake chart of n fan-shaped block according to n item data genaration, and the description frame corresponding with each fan-shaped block;
Frame adjusting module is described, for adjusting described description frame wide direction;
Display module, for showing described cake chart and described description frame by display module.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By comprising the cake chart of n fan-shaped block according to n item data genaration, and the description frame corresponding with each fan-shaped block; Adjustment describes frame wide direction; By display module display cake chart and description frame; The display space solving mobile phone screen is limited, when describing the distribution of frame and being at random and random, may waste display space or cause the problem that cannot fully show; Reach and regular layout is carried out to description frame position, make the description frame being positioned at target direction side as far as possible few, thus save the effect of display space.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic diagram of a kind of cake chart provided in background technology;
Fig. 2 is the method flow diagram of the method for information display that one embodiment of the invention provides;
Fig. 3 is the method flow diagram of the method for information display that another embodiment of the present invention provides;
Fig. 4 is the coordinate schematic diagram involved by method for information display that another embodiment of the present invention provides;
Fig. 5 is the schematic diagram of the method for information display that another embodiment of the present invention provides;
Fig. 6 is the schematic diagram of the method for information display that another embodiment of the present invention provides;
The schematic diagram of the method for information display that Fig. 7 A another embodiment of the present invention provides;
Fig. 7 B is the schematic diagram of the method for information display that another embodiment of the present invention provides;
Fig. 7 C is the schematic diagram of the method for information display that another embodiment of the present invention provides;
Fig. 8 is the schematic diagram of the method for information display that another embodiment of the present invention provides;
Fig. 9 is the interface schematic diagram of the method for information display that another embodiment of the present invention provides;
Figure 10 is the method flow diagram of the method for information display that another embodiment of the present invention provides;
Figure 11 is the schematic diagram of the method for information display that another embodiment of the present invention provides;
Figure 12 is the block diagram of the information display device that one embodiment of the invention provides;
Figure 13 is the block diagram of the information display device that one embodiment of the invention provides;
Figure 14 is the block scheme of the electronic equipment that one embodiment of the invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
The method for information display that each embodiment of the present invention provides, can be realized by the electronic equipment with image procossing and Presentation Function.This electronic equipment can be smart mobile phone, panel computer, E-book reader and pocket computer on knee etc.
In order to simplified characterization, hereinafter only illustrated by the electronic equipment execution with picture processing and Presentation Function with method for information display, but restriction is not formed to this.
Please refer to Fig. 2, it illustrates the method flow diagram of the method for information display that one embodiment of the invention provides.The method comprises:
Step 202, comprises the cake chart of n fan-shaped block according to n item data genaration, and the description frame corresponding with each fan-shaped block;
Step 204, adjustment describes frame wide direction;
Target direction can be any one in the upper direction of electronic equipment, lower direction, left direction and right direction.Because electronic equipment is all scroll-up/down display usually, so always illustrate above with target direction being all herein.
Step 206, by display module display cake chart and description frame;
In sum, the method for information display that the present embodiment provides, by comprising the cake chart of n fan-shaped block according to n item data genaration, and the description frame corresponding with each fan-shaped block; Adjustment describes frame wide direction; By display module display cake chart and description frame; The display space solving mobile phone screen is limited, when describing the distribution of frame and being at random and random, may waste display space or cause the problem that cannot fully show; Reach and regular layout is carried out to description frame position, make the description frame being positioned at target direction side as far as possible few, thus save the effect of display space.
In specific implementation process, electronic equipment at least one below in two kinds of modes can regulate description frame.The first, electronic equipment is minimum by adjusting cake chart at the fan-shaped block of target direction side; The second, electronic equipment adjustment belongs to the description frame wide direction of target direction side, reaches the space saving display, improves the object of the utilization rate in space.Below employing embodiment is described.
Please refer to Fig. 3, it illustrates the method flow diagram of the information display methods that another embodiment of the present invention provides.The method comprises:
Step 301, generates cake chart according to n item number according to ratio shared in each comfortable data summation, and every item number is according to a fan-shaped block corresponding in cake chart.
Before generation cake chart, first determine plane right-angle coordinate XOY as shown in Figure 4, wherein, the right axle shaft of X-axis is positive axis, and the lower semiaxis of Y-axis is positive axis, and is the center of circle with O, does concentric circles 41 and concentric circles 42.It should be noted that, determine that plane right-angle coordinate XOY can also with the left half axle of X-axis for positive axis, the upper semiaxis of Y-axis is positive axis etc., the present embodiment is only that plane right-angle coordinate is as shown in Figure 4 described for this plane right-angle coordinate XOY, does not form limit the embodiment of the present invention.
Electronic equipment can according to every item number according to the size of ratio shared in each comfortable data summation to n item number according to sorting and being followed successively by every item number according to distributing corresponding sector region according to ranking results.In order to ensure display effect, data item is generally 2-4 item number according to comparatively reasonable.Step 301 can comprise following sub-step:
One, electronic equipment calculates every item number according to ratio shared in each comfortable data summation;
Such as, altogether comprise 4 item number certificates, wherein, data A is 5, data B is 10, data C be 15, data D is 20, then data summation is 50, the ratio calculated shared by data A is 10%, and the ratio shared by data B is 20%, and the ratio shared by data C is 30%, and the ratio shared by data D is 40%.
Two, electronic equipment is according to every item number according to ratio shared in each comfortable data summation, sorts to n item number certificate;
Electronic equipment is according to the size of the every item number calculated according to ratio shared in each comfortable data summation, to n item number according to sorting from small to large, also can sort from big to small, the present embodiment, with according to carrying out sequence to illustrate from small to large, does not limit this.
Three, electronic equipment is according to every item number according to corresponding ratio, calculates the central angle of every item number according to the fan-shaped block of correspondence;
Such as, 4 item number certificates altogether, ratio shared by data A is 10%, and the ratio shared by data B is 20%, and the ratio shared by data C is 30%, ratio shared by data D is 40%, by calculating, the central angle of the corresponding fan-shaped block of data A is 36 °, and the central angle of the corresponding fan-shaped block of data B is 72 °, the central angle of the corresponding fan-shaped block of data C is 108 °, and the central angle of the corresponding fan-shaped block of data D is 144 °
Four, electronic equipment is according to the central angle calculated, and carries out the division of fan-shaped block, generates cake chart.
Electronic equipment, according to the size of every item number certificate, according to order from small to large, from X-axis positive dirction, carries out the division of fan-shaped block according to clockwise direction, generate cake chart as shown in Figure 5.
It should be noted that, in the implementation process of reality, in order to ensure the succession of data, when can not sort to data in some embodiments, electronic equipment can calculate every item number respectively according to ratio shared in each comfortable data summation and proportionally for every item number is according to distributing corresponding sector region, namely can omit step 2, only need perform sub-step one, three and four.
Step 302, describes frame for each fan-shaped block generates.
In order to know that the data attribute name and every item number that show every item number certificate are intuitively according to ratio shared in data summation, need to add description frame at every item number according to the fan-shaped block place of correspondence, for adding descriptive text, this descriptive text can be the data attribute name and every item number certificate ratio shared by data summation etc. of every item number certificate.
As a kind of possible implementation, electronic equipment can be that each fan-shaped block generates description frame according to the center line of each fan-shaped block.
The center line of fan-shaped block after the outside definite length extended of cake chart, is added description frame according to the multipair data attribute title of answering of fan-shaped block at the end of center line by electronic equipment.
With reference to figure 6, electronic equipment is by the center line 62 of fan-shaped block 61 after the outside definite length extended of cake chart, and the data attribute name corresponding to fan-shaped block 61 adds description frame 63 at the end of center line 62.
Step 303, adjustment describes frame wide direction.
In concrete implementation process, electronic equipment can adopt any one or two kinds in following manner, and adjustment describes frame wide direction.
One, electronic equipment is according to the target direction preset, and makes the fan-shaped block of target direction side minimum by rotation process.
Two, electronic equipment adjustment belongs to the description frame wide direction of target direction side.
For wherein first kind of way:
Target direction can be any one in the upper direction of electronic equipment, lower direction, left direction and right direction.Because electronic equipment is all scroll-up/down display usually, so always illustrate above with target direction being all herein.
Wherein " target direction side " refers to and cake chart is divided into two equal rear flank according to the straight line perpendicular to target direction, belongs to the space of target direction side.If target direction is upper direction, then cake chart is divided into two equal rear flank according to horizontal linear, the space belonging to side, direction is " target direction side ".
The present embodiment is only that upper direction is illustrated with target direction, and do not form the embodiment of the present invention and limit, this step can comprise following sub-step:
1, in every two fan-shaped blocks that electronic equipment is adjacent in cake chart, two fan-shaped blocks that central angle sum is maximum are chosen;
Electronic equipment obtains the central angle that in cake chart, each fan-shaped block is corresponding, calculates adjacent two fan-shaped block corresponding circle heart angle sums respectively, chooses two fan-shaped blocks that central angle sum is maximum.
It should be noted that, electronic equipment also by choosing adjacent two item numbers according to the maximum two item number certificates of proportion sum, thus can obtain two corresponding fan-shaped blocks, and the present embodiment does not limit this.
2, electronic equipment rotation cake chart makes two fan-shaped blocks be positioned at target direction side, and overlaps with target direction according to the center line that two fan-shaped blocks are determined.
As shown in Figure 7 A, pie Figure 71 is divided into 4 fan-shaped blocks, when in every two fan-shaped blocks that wherein adjacent fan-shaped block 72 and fan-shaped block 73 are adjacent, two fan-shaped blocks that central angle sum is maximum, by rotating pie Figure 71, the center line determined according to fan-shaped block 72 and fan-shaped block 73 is overlapped with target direction.
There is a kind of possible situation in addition, when the central angle of a fan-shaped block maximum in cake chart is greater than the first angle, first angle can be 180 °, electronic equipment can rotate the fan-shaped block that cake chart makes this maximum and be positioned at target direction side, and the center line of maximum fan-shaped block overlaps with target direction, the fan-shaped block of target direction side just can be made to be minimum.
As shown in Figure 7 B, the central angle of fan-shaped block 74 correspondence is greater than 180 °, electronic equipment only need rotate cake chart makes this fan-shaped block 74 be positioned at target direction side, and the center line of fan-shaped block 74 overlaps with target direction, and the fan-shaped block being positioned at target direction side just can be made to be minimum.
For the wherein second way:
Electronic equipment, by the description frame of side, adjustment aim direction, makes this describe frame wide direction, thus saves the display space of target direction, and this step can comprise following sub-step:
1, when describing frame and being the description frame generated based on the center line of fan-shaped block, the description frame corresponding to the fan-shaped block angle between the center line of fan-shaped block and target direction being less than 90 ° is defined as belonging to the description frame of target direction side.
As seen in figure 7 c, describing frame 75 and describing frame 76 is the description frame generated based on the center line of fan-shaped block, and the angle described between the center line of frame 75 and the corresponding fan-shaped block of description frame 76 and target direction is less than 90 °, namely description frame 75 and description frame 76 can be defined as the description frame belonging to target direction side.
2, bend belonging to the reverse direction of the line between the description frame of target direction side and cake chart to target direction, the line after bending and the angle between target direction are the second angle, and the second angle is greater than 90 °.
It is 120 ° for this second angle, as seen in figure 7 c, description frame 75 and description frame 76 belong to target direction side, and bent to target reverse direction by the line described between frame 75 and cake chart, the line after bending and the angle between target direction are 120 °; Same, bent to target reverse direction by the line described between frame 76 and cake chart, the line after bending and the angle between target direction are 120 °.
It should be noted that, this second angle can preset according to the size of screen, and the present embodiment is 120 ° for this second angle and is described, and does not form the embodiment of the present invention and limits.
In implementation process, each describes the situation that may produce between frame and mutually cover, so need the position to describing frame to adjust.This step can comprise following sub-step:
One, electronic equipment is chosen one and is described frame, obtains the position of current description frame;
Two, electronic equipment obtains the position of two adjacent description frames of current description frame;
If three current description frames and one of them describe frame and mutually cover, describe frame with another and be separated, then electronic equipment by current description frame according to circular path to the description frame directional trim predetermined angular be separated in it;
Electronic equipment, according to current description frame and adjacent two position relationships describing frame, judges that current description frame describes frame with whether with adjacent two and mutually covers.When current description frame and one of them describe frame and mutually cover, with another describe frame be separated time, then electronic equipment by current description frame according to circular path to the description frame directional trim predetermined angular be separated with it.
Four, iteron step one is to three, until all description frames do not cover all mutually.
Afterwards, electronic equipment can show this cake chart, specific as follows:
Step 304, is initialized as cutting frame by the boundary rectangle frame of cake chart.
Electronic equipment obtains the boundary rectangle of cake chart, and the four edges of this boundary rectangle is tangent with the circumference of cake chart respectively, and this boundary rectangle is initialized as cutting frame.
With reference to figure 8, the boundary rectangle 82 of pie Figure 81 is initialized as cutting frame by electronic equipment.
Step 305, judges whether each description frame is arranged in cutting frame.
Electronic equipment obtains the coboundary of cutting frame and the ordinate of lower boundary, the horizontal ordinate of left margin and right margin.Then, electronic equipment obtains the ordinate of each description upper frame edge circle and lower boundary, the horizontal ordinate of left margin and right margin, when the ordinate describing upper frame edge circle is greater than the ordinate of Cutting Edge upper frame edge circle, the ordinate describing the lower boundary of frame is less than the ordinate of cutting frame lower boundary, and the ordinate describing frame left margin is greater than the ordinate of cutting frame left margin, when the ordinate describing the right margin of frame is less than the ordinate on cutting frame border again, describes frame and be arranged in cutting frame.
Step 306, is positioned at outside cutting frame when existence describes frame, then expands cutting frame according to description frame.
When describe frame no longer in cutting frame time, electronic equipment will expand cutting frame according to description frame.
Step 306 can comprise following sub-step:
One, electronic equipment obtains the coboundary ordinate and left margin horizontal ordinate minimum value that describe frame and cutting frame, lower boundary ordinate and right margin horizontal ordinate maximal value;
Two, electronic equipment is according to coboundary ordinate and left margin horizontal ordinate minimum value, lower boundary ordinate and right margin horizontal ordinate maximal value, expands cutting frame.
Electronic equipment determines according to the minimum value describing frame and cutting frame coboundary ordinate between the two the coboundary ordinate expanding rear cutting frame; Electronic equipment determines according to the minimum value describing frame and cutting frame left margin horizontal ordinate the left margin horizontal ordinate expanding rear cutting frame; Electronic equipment determines according to the maximal value describing frame and cutting frame lower boundary ordinate the lower boundary ordinate expanding rear cutting frame; Electronic equipment determines according to the maximal value describing frame and cutting frame right margin horizontal ordinate the right margin horizontal ordinate expanding rear cutting frame.
As shown in Figure 8, according to Cutting Edge upper frame edge circle 83 after the expansion that description frame and Cutting Edge upper frame edge circle ordinate minimum value are determined, according to cutting frame left margin 84 after the expansion that description frame and cutting frame left margin horizontal ordinate minimum value are determined, according to cutting frame lower boundary 85 after the expansion that description frame and cutting frame lower boundary ordinate maximal value are determined, according to cutting frame right margin 86 after the expansion that description frame and cutting frame right margin ordinate maximal value are determined.Coboundary 83, left margin 84, lower boundary 85 and right margin 86 form the cutting frame after expanding.
Step 307, when each description frame is arranged in cutting frame, cuts out cake chart according to cutting frame and describes frame.
As shown in Figure 8, electronic equipment cuts out cake chart according to cutting frame 87 and describes frame, now cake chart and each describe frame and be all arranged in cutting frame 87.
Step 308, by display module display cake chart and description frame.
Electronic equipment is by display module, and show the cake chart cut out and description frame, the effect of display as shown in Figure 9.Display module can be video card equipment or display chip.
It should be noted that, electronic equipment can describe frame wide directions by any one in execution step 303 or two kinds of methods adjustment, reach the space saving display, improve the object of the utilization rate in space, two kinds of methods that the present embodiment performs in step 303 with this electronic equipment are described, and do not form restriction to the present invention.
In sum, the method for information display that the present embodiment provides, by comprising the cake chart of n fan-shaped block according to n item data genaration, and the description frame corresponding with each fan-shaped block; Adjustment describes frame wide direction; By display module display cake chart and description frame; The display space solving mobile phone screen is limited, when describing the distribution of frame and being at random and random, may waste display space or cause the problem that cannot fully show; Reach and regular layout is carried out to description frame position, make the description frame being positioned at target direction side minimum, thus save the effect of display space.
The present embodiment, also by rotating cake chart, makes this cake chart minimum at the fan-shaped block of target direction side, reaches the effect of saving target direction display space.
The present embodiment is also by bending belonging to the reverse direction of the line between the description frame of target direction side and cake chart to target direction, reach and the reverse direction of the position of the description frame of target direction side to target direction is adjusted, save the effect of target direction display space.
The present embodiment is also by being initialized as cutting frame by the extraneous rectangle of cake chart, and expand with cutting frame according to description frame,, according to this cutting frame cutting cake chart and description frame, reach the effect of saving display space when each description frame is arranged in cutting frame.
As a preferred embodiment, can adjust cake chart before interpolation describes frame, make cake chart be minimum at the fan-shaped block of target direction side, then carry out interpolation description frame, and the description frame of target direction side is adjusted.Below employing embodiment is described.
Please refer to Figure 10, it illustrates the method flow diagram of the method for information display that another embodiment of the present invention provides.The method comprises:
Step 1001, generates cake chart according to n item number according to ratio shared in each comfortable data summation, and every item number is according to a fan-shaped block corresponding in cake chart.
Before generation cake chart, first determine plane right-angle coordinate XOY as shown in Figure 4, wherein, the right axle shaft of X-axis is positive axis, and the lower semiaxis of Y-axis is positive axis, and is the center of circle with O, does concentric circles 41 and concentric circles 42.It should be noted that, determine that plane right-angle coordinate XOY can also with the left half axle of X-axis for positive axis, the upper semiaxis of Y-axis is positive axis etc., the present embodiment is only that plane right-angle coordinate is as shown in Figure 4 described for this plane right-angle coordinate XOY, does not form limit the embodiment of the present invention.
Electronic equipment can according to every item number according to the size of ratio shared in each comfortable data summation to n item number according to sorting and being followed successively by every item number according to distributing corresponding sector region according to ranking results.In order to ensure display effect, data item is generally 2-4 item number according to comparatively reasonable.Step 301 can comprise following sub-step:
One, electronic equipment calculates every item number according to ratio shared in each comfortable data summation;
Such as, altogether comprise 4 item number certificates, wherein, data A is 5, data B is 10, data C be 15, data D is 20, then data summation is 50, the ratio calculated shared by data A is 10%, and the ratio shared by data B is 20%, and the ratio shared by data C is 30%, and the ratio shared by data D is 40%.
Two, electronic equipment is according to every item number according to ratio shared in each comfortable data summation, sorts to n item number certificate;
Electronic equipment is according to the size of the every item number calculated according to ratio shared in each comfortable data summation, to n item number according to sorting from small to large, also can sort from big to small, the present embodiment, with according to carrying out sequence to illustrate from small to large, does not limit this.
Three, electronic equipment is according to every item number according to corresponding ratio, calculates the central angle of every item number according to the fan-shaped block of correspondence;
Such as, 4 item number certificates altogether, ratio shared by data A is 10%, and the ratio shared by data B is 20%, and the ratio shared by data C is 30%, ratio shared by data D is 40%, by calculating, the central angle of the corresponding fan-shaped block of data A is 36 °, and the central angle of the corresponding fan-shaped block of data B is 72 °, the central angle of the corresponding fan-shaped block of data C is 108 °, and the central angle of the corresponding fan-shaped block of data D is 144 °
Four, electronic equipment is according to the central angle calculated, and carries out the division of fan-shaped block, generates cake chart.
Electronic equipment, according to the size of every item number certificate, according to order from small to large, from X-axis positive dirction, carries out the division of fan-shaped block according to clockwise direction, generate cake chart as shown in Figure 5.
It should be noted that, in the implementation process of reality, in order to ensure the succession of data, when can not sort to data in some embodiments, electronic equipment can calculate every item number respectively according to ratio shared in each comfortable data summation and proportionally for every item number is according to distributing corresponding sector region, namely can omit step 2, only need perform sub-step one, three and four.
Step 1002, adjustment cake chart is minimum at the fan-shaped block of target direction side.
Electronic equipment, according to the target direction preset, makes the fan-shaped block of target direction side minimum by rotation process.
It should be noted that, target direction can be any one in the upper direction of electronic equipment, lower direction, left direction and right direction.Because electronic equipment is all scroll-up/down display usually, so always illustrate above with target direction being all herein.
Wherein " target direction side " refers to and cake chart is divided into two equal rear flank according to the straight line perpendicular to target direction, belongs to the space of target direction side.If target direction is upper direction, then cake chart is divided into two equal rear flank according to horizontal linear, the space belonging to side, direction is " target direction side ".
The present embodiment is only that upper direction is illustrated with target direction, and do not form the embodiment of the present invention and limit, step 1002 can comprise following sub-step:
One, in every two fan-shaped blocks that electronic equipment is adjacent in cake chart, two fan-shaped blocks that central angle sum is maximum are chosen;
Electronic equipment obtains the central angle that in cake chart, each fan-shaped block is corresponding, calculates adjacent two fan-shaped block corresponding circle heart angle sums respectively, chooses two fan-shaped blocks that central angle sum is maximum.
It should be noted that, electronic equipment also by choosing adjacent two item numbers according to the maximum two item number certificates of proportion sum, thus can obtain two corresponding fan-shaped blocks, and the present embodiment does not limit this.
Two, electronic equipment rotation cake chart makes two fan-shaped blocks be positioned at target direction side, and overlaps with target direction according to the center line that two fan-shaped blocks are determined.
As shown in Figure 7 A, pie Figure 71 is divided into 4 fan-shaped blocks, when in every two fan-shaped blocks that wherein adjacent fan-shaped block 72 and fan-shaped block 73 are adjacent, two fan-shaped blocks that central angle sum is maximum, by rotating pie Figure 71, the center line determined according to fan-shaped block 72 and fan-shaped block 73 is overlapped with target direction.
There is a kind of possible situation in addition, when the central angle of a fan-shaped block maximum in cake chart is greater than the first angle, first angle can be 180 °, electronic equipment can rotate the fan-shaped block that cake chart makes this maximum and be positioned at target direction side, and the center line of maximum fan-shaped block overlaps with target direction, the fan-shaped block of target direction side just can be made to be minimum.
As shown in Figure 7 B, the central angle of fan-shaped block 74 correspondence is greater than 180 °, electronic equipment only need rotate cake chart makes this fan-shaped block 74 be positioned at target direction side, and the center line of fan-shaped block 74 overlaps with target direction, and the fan-shaped block being positioned at target direction side just can be made to be minimum.
Step 1003, describes frame for each fan-shaped block generates.
In order to know that the data attribute name and every item number that show every item number certificate are intuitively according to ratio shared in data summation, need to add description frame at every item number according to the fan-shaped block place of correspondence, for adding descriptive text, this descriptive text can be the data attribute name and every item number certificate ratio shared by data summation etc. of every item number certificate.
As a kind of possible implementation, electronic equipment can be that each fan-shaped block generates description frame according to the center line of each fan-shaped block.Now, step 1003 can comprise following sub-step:
One, for arbitrary fan-shaped block, whether the electronic equipment angle detected between the center line of this fan-shaped block and target direction is less than the 3rd angle;
Because the angle between the center line of fan-shaped block and target direction has two, two angle sums are 360 °, and the said angle of the present embodiment refers to an angle less in these two angles.
3rd angle is the angle that target direction and a sideline are formed, and this sideline is the sideline preset.Shown in Figure 11, the angle between the center line 1102 of fan-shaped block 1101 and target direction is α 1, and the 3rd angle is the angle that target direction and sideline 1103 are formed, and electronic equipment judges the magnitude relationship of angle α 1 and the 3rd angle.3rd angle can be 45 °.
Two, when being not less than the 3rd angle, electronic equipment is by the center line of fan-shaped block after the outside definite length extended of cake chart, and the data attribute name corresponding to fan-shaped block adds description frame at the end of center line;
With reference to Figure 11, angle between the center line 1102 of fan-shaped block 1101 and target direction is α 1, and α 1 > the 3rd angle 45 °, electronic equipment is by the center line 1102 of fan-shaped block 1101 after the outside definite length extended of cake chart, and the data attribute name corresponding to fan-shaped block 1101 adds description frame 1107 at the end of center line 1103.
Three, when being less than the 3rd angle, by the sideline in wide direction in the 3rd angle after the outside definite length extended of cake chart, the end of the data attribute name corresponding to fan-shaped block in sideline adds description frame.
With reference to Figure 11, angle between the center line 1106 of fan-shaped block 1105 and target direction is α 2, and α 2 < the 3rd angle 45 °, by the sideline 1103 in wide direction in the 3rd angle after the outside definite length extended of cake chart, the end of the data attribute name corresponding to fan-shaped block 1105 in sideline 1103 adds description frame 1107.Step 1004, when describing frame and being the description frame generated based on the center line of fan-shaped block, the description frame corresponding to the fan-shaped block angle between the center line of fan-shaped block and target direction being less than 90 ° is defined as belonging to the description frame of target direction side.
As seen in figure 7 c, describe frame 75 and describe the description frame that frame 76 is fan-shaped block, and the angle described between the center line of frame 75 and the corresponding fan-shaped block of description frame 76 and target direction is less than 90 °, namely description frame 75 and description frame 76 can be defined as the description frame belonging to target direction side.
Step 1005, bend belonging to the reverse direction of the line between the description frame of target direction side and cake chart to target direction, the line after bending and the angle between target direction are the second angle, and the second angle is greater than 90 °.
It is 120 ° for this second angle, as seen in figure 7 c, description frame 75 and description frame 76 belong to target direction side, and bent to target reverse direction by the line described between frame 75 and cake chart, the line after bending and the angle between target direction are 120 °; Same, bent to target reverse direction by the line described between frame 76 and cake chart, the line after bending and the angle between target direction are 120 °.
It should be noted that, this second angle can preset according to the size of screen, and the present embodiment is 120 ° for this second angle and is described, and does not form the embodiment of the present invention and limits.
In implementation process, each describes the situation that may produce between frame and mutually cover, so need the position to describing frame to adjust.This step can comprise following sub-step:
One, electronic equipment is chosen one and is described frame, obtains the position of current description frame;
Two, electronic equipment obtains the position of two adjacent description frames of current description frame;
If three current description frames and one of them describe frame and mutually cover, describe frame with another and be separated, then electronic equipment by current description frame according to circular path to the description frame directional trim predetermined angular be separated in it;
Electronic equipment, according to current description frame and adjacent two position relationships describing frame, judges that current description frame describes frame with whether with adjacent two and mutually covers.When current description frame and one of them describe frame and mutually cover, with another describe frame be separated time, then electronic equipment by current description frame according to circular path to the description frame directional trim predetermined angular be separated with it.
Four, iteron step one is to three, until all description frames do not cover all mutually.
Afterwards, electronic equipment can show this cake chart, specific as follows:
Step 1006, is initialized as cutting frame by the boundary rectangle frame of cake chart.
Electronic equipment obtains the boundary rectangle of cake chart, and the four edges of this boundary rectangle is tangent with the circumference of cake chart respectively, and this boundary rectangle is initialized as cutting frame.
With reference to figure 8, the boundary rectangle 82 of pie Figure 81 is initialized as cutting frame by electronic equipment.
Step 1007, judges whether each description frame is arranged in cutting frame.
Electronic equipment obtains the coboundary of cutting frame and the ordinate of lower boundary, the horizontal ordinate of left margin and right margin.Then, electronic equipment obtains the ordinate of each description upper frame edge circle and lower boundary, the horizontal ordinate of left margin and right margin, when the ordinate describing upper frame edge circle is greater than the ordinate of Cutting Edge upper frame edge circle, the ordinate describing the lower boundary of frame is less than the ordinate of cutting frame lower boundary, and the ordinate describing frame left margin is greater than the ordinate of cutting frame left margin, when the ordinate describing the right margin of frame is less than the ordinate on cutting frame border again, describes frame and be arranged in cutting frame.
Step 1008, is positioned at outside cutting frame when existence describes frame, then expands cutting frame according to description frame.
When describe frame no longer in cutting frame time, electronic equipment will expand cutting frame according to description frame.
Step 1008 can comprise following sub-step:
One, electronic equipment obtains the coboundary ordinate and left margin horizontal ordinate minimum value that describe frame and cutting frame, lower boundary ordinate and right margin horizontal ordinate maximal value;
Two, electronic equipment is according to coboundary ordinate and left margin horizontal ordinate minimum value, lower boundary ordinate and right margin horizontal ordinate maximal value, expands cutting frame.
Electronic equipment determines according to the minimum value describing frame and cutting frame coboundary ordinate between the two the coboundary ordinate expanding rear cutting frame; Electronic equipment determines according to the minimum value describing frame and cutting frame left margin horizontal ordinate the left margin horizontal ordinate expanding rear cutting frame; Electronic equipment determines according to the maximal value describing frame and cutting frame lower boundary ordinate the lower boundary ordinate expanding rear cutting frame; Electronic equipment determines according to the maximal value describing frame and cutting frame right margin horizontal ordinate the right margin horizontal ordinate expanding rear cutting frame.
As shown in Figure 8, according to Cutting Edge upper frame edge circle 83 after the expansion that description frame and Cutting Edge upper frame edge circle ordinate minimum value are determined, according to cutting frame left margin 84 after the expansion that description frame and cutting frame left margin horizontal ordinate minimum value are determined, according to cutting frame lower boundary 85 after the expansion that description frame and cutting frame lower boundary ordinate maximal value are determined, according to cutting frame right margin 86 after the expansion that description frame and cutting frame right margin ordinate maximal value are determined.Coboundary 83, left margin 84, lower boundary 85 and right margin 86 form the cutting frame after expanding.
Step 1009, when each description frame is arranged in cutting frame, cuts out cake chart according to cutting frame and describes frame.
As shown in Figure 8, electronic equipment cuts out cake chart according to cutting frame 87 and describes frame, now cake chart and each describe frame and be all arranged in cutting frame 87.
Step 1010, by display module display cake chart and description frame.
Electronic equipment is by display module, and show the cake chart cut out and description frame, the effect of display as shown in Figure 9.Display module can be video card equipment or display chip.
It should be noted that, electronic equipment can reach by execution step 1002 and/or step 1005 space saving display, improve the object of the utilization rate in space, the present embodiment performs step 1002 with this electronic equipment and step 1005 is described, and does not form the embodiment of the present invention and limits.
In sum, the method for information display that the present embodiment provides, by comprising the cake chart of n fan-shaped block according to n item data genaration, and the description frame corresponding with each fan-shaped block; Adjustment describes frame wide direction; By display module display cake chart and description frame; The display space solving mobile phone screen is limited, when describing the distribution of frame and being at random and random, may waste display space or cause the problem that cannot fully show; Reach and regular layout is carried out to description frame position, make the description frame being positioned at target direction side minimum, thus save the effect of display space.
The present embodiment, also by rotating cake chart, makes this cake chart minimum at the fan-shaped block of target direction side, reaches the effect of saving target direction display space.
Whether the present embodiment is also less than the second angle by the angle detected between the center line of fan-shaped block and target direction, when this angle is less than the second angle, adjusts, reaching the effect of saving target direction display space to adding the position describing frame.
The present embodiment is also by bending belonging to the reverse direction of the line between the description frame of target direction side and cake chart to target direction, reach and the reverse direction of the position of the description frame of target direction side to target direction is adjusted, save the effect of target direction display space.
The present embodiment is also by being initialized as cutting frame by the extraneous rectangle of cake chart, and expand with cutting frame according to description frame,, according to this cutting frame cutting cake chart and description frame, reach the effect of saving display space when each description frame is arranged in cutting frame.
Please refer to Figure 12, it illustrates the block diagram of the information display device that one embodiment of the invention provides.This information display device can realize becoming the whole or a part of of the electronic equipment with image procossing and Presentation Function by software, hardware or both combinations.This device comprises:
Generation module 1202, for comprising the cake chart of n fan-shaped block according to n item data genaration, and the description frame corresponding with each fan-shaped block;
Frame adjusting module 1204 is described, for adjusting described description frame wide direction;
Display module 1206, for showing described cake chart and described description frame by display module.
In sum, the information display device that the present embodiment provides is by comprising the cake chart of n fan-shaped block according to n item data genaration, and the description frame corresponding with each fan-shaped block; Adjustment describes frame wide direction; By display module display cake chart and description frame; The display space solving mobile phone screen is limited, when describing the distribution of frame and being at random and random, may waste display space or cause the problem that cannot fully show; Reach and regular layout is carried out to description frame position, thus save the effect of display space.
Please refer to Figure 13, it illustrates the block diagram of the information display device that another embodiment of the present invention provides.This information display device can realize becoming the whole or a part of of the electronic equipment with image procossing and Presentation Function by software, hardware or both combinations.This device comprises:
Generation module 1202, for comprising the cake chart of n fan-shaped block according to n item data genaration, and the description frame corresponding with each fan-shaped block;
Frame adjusting module 1204 is described, for adjusting described description frame wide direction;
Display module 1206, for showing described cake chart and described description frame by display module.
Alternatively, describe frame adjusting module 1204, comprising:
First adjustment unit 1204A is minimum for adjusting described cake chart at the fan-shaped block of described target direction side;
And/or,
Second adjustment unit 1204B, belongs to described target direction side for adjustment and describes frame away from described target direction.
Alternatively, the first adjustment unit 1204A, comprising:
First gyrator unit 1204Aa, when central angle for fan-shaped block maximum in described cake chart is greater than the first angle, rotating described cake chart makes described maximum fan-shaped block be positioned at described target direction side, and the center line of described maximum fan-shaped block overlaps with described target direction;
Or,
Second gyrator unit 1204Ab, in every two fan-shaped blocks adjacent in described cake chart, chooses two fan-shaped blocks that central angle sum is maximum; Rotating described cake chart makes described two fan-shaped blocks be positioned at described target direction side, and overlaps with described target direction according to the center line that described two fan-shaped blocks are determined.
Alternatively, the second adjustment unit 1204B, comprising:
Frame determination subelement 1204Ba is described, during for being the description frame generated based on the center line of fan-shaped block at described description frame, the description frame corresponding to the fan-shaped block angle between the center line of described fan-shaped block and described target direction being less than 90 ° is defined as belonging to the described description frame of described target direction side;
Line bending subelement 1204Bb, for bending belonging to the reverse direction of the line between the described description frame of described target direction side and described cake chart to described target direction, described line after bending and the angle between described target direction are the second angle, and described second angle is greater than 90 °.
Alternatively, generation module 1202, comprising:
Cake chart generation unit 1202A, for generating described cake chart according to described n item number according to ratio shared in each comfortable data summation, every item number is according to a fan-shaped block corresponding in described cake chart;
Frame adding device 1202B is described, for being that each fan-shaped block generates described description frame according to the center line of each fan-shaped block.
Alternatively, cake chart generation unit 1202A, comprising:
First generates subelement 1202Aa, for sorting to described n item number certificate according to the size of every item number according to ratio shared in each comfortable data summation; Every item number is followed successively by according to distributing corresponding sector region according to ranking results.
Or,
Second generates subelement 1202Ab, for calculating every item number respectively according to ratio shared in each comfortable data summation; Be every item number according to distributing corresponding sector region according to described ratio.
Alternatively, describe frame adding device 1202B, comprising:
Angle detection sub-unit 1202Ba, for for arbitrary fan-shaped block, whether the angle detected between the center line of described fan-shaped block and described target direction is less than the 3rd angle;
First adds subelement 1202Bb, for when being not less than described 3rd angle, by the center line of described fan-shaped block after the outside definite length extended of described cake chart, the data attribute name corresponding to described fan-shaped block adds described description frame at the end of described center line.
Alternatively, describe frame adding device 1202B, also comprise:
Second adds subelement 1202Bc, for when being less than described 3rd angle, by in described 3rd angle away from the sideline of described target direction after the outside definite length extended of described cake chart, the data attribute name corresponding to described fan-shaped block adds described description frame at the end in described sideline.
Alternatively, this device, also comprises:
Frame initialization module 1207, for being initialized as cutting frame by the boundary rectangle frame of described cake chart;
Frame judge module 1208 is described, for judging whether each description frame is arranged in described cutting frame;
Frame extension module 1209, for being positioned at outside described cutting frame when there is described description frame, then expands described cutting frame according to described description frame;
Cutting module 1210, for when each description frame is arranged in described cutting frame, cuts out described cake chart and described description frame according to described cutting frame.
In sum, the information display device that the present embodiment provides is by comprising the cake chart of n fan-shaped block according to n item data genaration, and the description frame corresponding with each fan-shaped block; Adjustment describes frame wide direction; By display module display cake chart and description frame; The display space solving mobile phone screen is limited, when describing the distribution of frame and being at random and random, may waste display space or cause the problem that cannot fully show; Reach and regular layout is carried out to description frame position, thus save the effect of display space.
The present embodiment, also by rotating cake chart, makes this cake chart minimum at the fan-shaped block of target direction side, reaches the effect of saving target direction display space.
Whether the present embodiment is also less than the second angle by the angle detected between the center line of fan-shaped block and target direction, when this angle is less than the second angle, adjusts, reaching the effect of saving target direction display space to adding the position describing frame.
The present embodiment is also by bending belonging to the reverse direction of the line between the description frame of target direction side and cake chart to target direction, reach and the reverse direction of the position of the description frame of target direction side to target direction is adjusted, save the effect of target direction display space.
The present embodiment is also by being initialized as cutting frame by the extraneous rectangle of cake chart, and expand with cutting frame according to description frame,, according to this cutting frame cutting cake chart and description frame, reach the effect of saving display space when each description frame is arranged in cutting frame.
It should be noted that: the information displaying that above-described embodiment provides is when showing information, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by electronic equipment is divided into different functional modules, to complete all or part of function described above.In addition, the information display device that above-described embodiment provides and method for information display embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Please refer to Figure 14, it illustrates the structural representation of the electronic equipment that one embodiment of the invention provides.This electronic equipment is for implementing the method for information display provided in above-described embodiment.Specifically:
Electronic equipment 1400 can comprise RF (RadioFrequency, radio frequency) circuit 1410, the storer 1420 including one or more computer-readable recording mediums, input block 1430, display unit 1440, sensor 1450, voicefrequency circuit 1460, WiFi (wirelessfidelity, Wireless Fidelity) module 1470, include the parts such as processor 1480 and power supply 1490 that more than or processes core.It will be understood by those skilled in the art that the electronic devices structure shown in Figure 14 does not form the restriction to electronic equipment, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
RF circuit 1410 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, transfer to more than one or one processor 1480 to process; In addition, base station is sent to by relating to up data.Usually, RF circuit 1410 includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupling mechanism, LNA (LowNoiseAmplifier, low noise amplifier), diplexer etc.In addition, RF circuit 1410 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (GlobalSystemofMobilecommunication, global system for mobile communications), GPRS (GeneralPacketRadioService, general packet radio service), CDMA (CodeDivisionMultipleAccess, CDMA), WCDMA (WidebandCodeDivisionMultipleAccess, Wideband Code Division Multiple Access (WCDMA)), LTE (LongTermEvolution, Long Term Evolution), Email, SMS (ShortMessagingService, Short Message Service) etc.
Storer 1420 can be used for storing software program and module, and processor 1480 is stored in software program and the module of storer 1420 by running, thus performs the application of various function and data processing.Storer 1420 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of electronic equipment 1400.In addition, storer 1420 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 1420 can also comprise Memory Controller, to provide the access of processor 1480 and input block 1430 pairs of storeies 1420.
Input block 1430 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, control lever, optics or trace ball signal and inputs.Particularly, input block 1430 can comprise image input device 1431 and other input equipments 1432.Image input device 1431 can be camera, also can be photoelectric scanning device.Except image input device 1431, input block 1430 can also comprise other input equipments 1432.Particularly, other input equipments 1432 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 1440 can be used for the various graphical user interface showing information or the information being supplied to user and the electronic equipment 1400 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 1440 can comprise display panel 1441, optionally, the form such as LCD (LiquidCrystalDisplay, liquid crystal display), OLED (OrganicLight-EmittingDiode, Organic Light Emitting Diode) can be adopted to configure display panel 1441.
Electronic equipment 1400 also can comprise at least one sensor 1450, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 1441, proximity transducer when electronic equipment 1400 moves in one's ear, can cut out display panel 1441 and/or backlight.As the one of motion sensor, Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for electronic equipment 1400 also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 1460, loudspeaker 1461, microphone 1462 can provide the audio interface between user and electronic equipment 1400.Voicefrequency circuit 1460 can by receive voice data conversion after electric signal, be transferred to loudspeaker 1461, by loudspeaker 1461 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 1462, voice data is converted to after being received by voicefrequency circuit 1460, after again voice data output processor 1480 being processed, through RF circuit 1410 to send to such as another electronic equipment, or export voice data to storer 1420 to process further.Voicefrequency circuit 1460 also may comprise earphone jack, to provide the communication of peripheral hardware earphone and electronic equipment 1400.
WiFi belongs to short range wireless transmission technology, and electronic equipment 1400 can help user to send and receive e-mail by WiFi module 1470, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Figure 14 shows WiFi module 1470, be understandable that, it does not belong to must forming of electronic equipment 1400, can omit in the scope of essence not changing invention as required completely.
Processor 1480 is control centers of electronic equipment 1400, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 1420 and/or module is stored in by running or performing, and call the data be stored in storer 1420, perform various function and the process data of electronic equipment 1400, thus integral monitoring is carried out to mobile phone.Optionally, processor 1480 can comprise one or more process core; Preferably, processor 1480 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 1480.
Electronic equipment 1400 also comprises the power supply 1490 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 1480 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 1490 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, electronic equipment 1400 can also comprise bluetooth module etc., does not repeat them here.
Concrete electronic equipment 1400 also includes storer, and one or more than one program, and one of them or more than one program are stored in storer in the present embodiment, and is configured to be performed by more than one or one processor.Described more than one or one routine package is containing the instruction for carrying out the method for information display that the embodiment of the present invention provides.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (19)

1. a method for information display, is characterized in that, described method comprises:
The cake chart of n fan-shaped block is comprised according to n item data genaration, and the description frame corresponding with each fan-shaped block;
Adjust described description frame wide direction;
Described cake chart and described description frame is shown by display module.
2. method according to claim 1, is characterized in that, described adjustment described description frame wide direction, comprising:
It is minimum for adjusting described cake chart at the fan-shaped block of described target direction side;
And/or,
Adjustment belongs to the description frame of described target direction side away from described target direction.
3. method according to claim 2, is characterized in that, the described cake chart of described adjustment is minimum at the fan-shaped block of described target direction side, comprising:
When the central angle of fan-shaped block maximum in described cake chart is greater than the first angle, rotate described cake chart and make described maximum fan-shaped block be positioned at described target direction side, and the center line of described maximum fan-shaped block overlaps with described target direction;
Or,
In every two fan-shaped blocks adjacent in described cake chart, choose two fan-shaped blocks that central angle sum is maximum; Rotating described cake chart makes described two fan-shaped blocks be positioned at described target direction side, and overlaps with described target direction according to the center line that described two fan-shaped blocks are determined.
4. method according to claim 2, is characterized in that, described adjustment belongs to the description frame of described target direction side away from described target direction, comprising:
When described description frame is the description frame generated based on the center line of fan-shaped block, the description frame corresponding to the fan-shaped block angle between the center line of described fan-shaped block and described target direction being less than 90 ° is defined as belonging to the described description frame of described target direction side;
Bend belonging to the reverse direction of the line between the described description frame of described target direction side and described cake chart to described target direction, the described line after bending and the angle between described target direction are the second angle, and described second angle is greater than 90 °.
5. according to the arbitrary described method of Claims 1-4, it is characterized in that, describedly comprise the cake chart of described n item number according to the fan-shaped block of correspondence according to n item data genaration, and the description frame corresponding with described fan-shaped block, comprising:
Generate described cake chart according to described n item number according to ratio shared in each comfortable data summation, every item number is according to a fan-shaped block corresponding in described cake chart;
Be that each fan-shaped block generates described description frame according to the center line of each fan-shaped block.
6. method according to claim 5, is characterized in that, describedly generates described cake chart according to described n item number according to ratio shared in each comfortable data summation, comprising:
According to the size of every item number according to ratio shared in each comfortable data summation, described n item number certificate is sorted; Every item number is followed successively by according to distributing corresponding sector region according to ranking results;
Or,
Calculate every item number respectively according to ratio shared in each comfortable data summation; Be every item number according to distributing corresponding sector region according to described ratio.
7. method according to claim 5, is characterized in that, the described center line according to each fan-shaped block is that each fan-shaped block generates described description frame, comprising:
For arbitrary fan-shaped block, whether the angle detected between the center line of described fan-shaped block and described target direction is less than the 3rd angle;
When being not less than described 3rd angle, by the center line of described fan-shaped block after the outside definite length extended of described cake chart, the data attribute name corresponding to described fan-shaped block adds described description frame at the end of described center line.
8. method according to claim 5, is characterized in that, the angle between the center line of the described fan-shaped block of described detection and described target direction also comprises after whether being less than the 3rd angle:
When being less than described 3rd angle, by described 3rd angle away from the sideline of described target direction after the outside definite length extended of described cake chart, the data attribute name corresponding to described fan-shaped block adds described description frame at the end in described sideline.
9., according to the arbitrary described method of Claims 1-4, it is characterized in that, described show described cake chart and described description frame by display module before, also comprise:
The boundary rectangle frame of described cake chart is initialized as cutting frame;
Judge whether each description frame is arranged in described cutting frame;
Be positioned at outside described cutting frame when there is described description frame, then expand described cutting frame according to described description frame;
When each description frame is arranged in described cutting frame, cut out described cake chart and described description frame according to described cutting frame.
10. an information display device, is characterized in that, described device comprises:
Generation module, for comprising the cake chart of n fan-shaped block according to n item data genaration, and the description frame corresponding with each fan-shaped block;
Frame adjusting module is described, for adjusting described description frame wide direction;
Display module, for showing described cake chart and described description frame by display module.
11. devices according to claim 10, is characterized in that, described description frame adjusting module, comprising:
First adjustment unit is minimum for adjusting described cake chart at the fan-shaped block of described target direction side;
And/or,
Second adjustment unit, belongs to described target direction side for adjustment and describes frame away from described target direction.
12. devices according to claim 11, is characterized in that, described first adjustment unit, comprising:
First gyrator unit, when central angle for fan-shaped block maximum in described cake chart is greater than the first angle, rotating described cake chart makes described maximum fan-shaped block be positioned at described target direction side, and the center line of described maximum fan-shaped block overlaps with described target direction;
Or,
Second gyrator unit, in every two fan-shaped blocks adjacent in described cake chart, chooses two fan-shaped blocks that central angle sum is maximum; Rotating described cake chart makes described two fan-shaped blocks be positioned at described target direction side, and overlaps with described target direction according to the center line that described two fan-shaped blocks are determined.
13. devices according to claim 11, is characterized in that, described second adjustment unit, comprising:
Frame determination subelement is described, during for being the description frame generated based on the center line of fan-shaped block at described description frame, the description frame corresponding to the fan-shaped block angle between the center line of described fan-shaped block and described target direction being less than 90 ° is defined as belonging to the described description frame of described target direction side;
Line bending subelement, for bending belonging to the reverse direction of the line between the described description frame of described target direction side and described cake chart to described target direction, described line after bending and the angle between described target direction are the second angle, and described second angle is greater than 90 °.
14. according to claim 10 to 13 arbitrary described devices, and it is characterized in that, described generation module, comprising:
Cake chart generation unit, for generating described cake chart according to described n item number according to ratio shared in each comfortable data summation, every item number is according to a fan-shaped block corresponding in described cake chart;
Frame adding device is described, for being that each fan-shaped block generates described description frame according to the center line of each fan-shaped block.
15. devices according to claim 14, is characterized in that, described cake chart generation unit, comprising:
First generates subelement, for sorting to described n item number certificate according to the size of every item number according to ratio shared in each comfortable data summation; Every item number is followed successively by according to distributing corresponding sector region according to ranking results.
Or,
Second generates subelement, for calculating every item number respectively according to ratio shared in each comfortable data summation; Be every item number according to distributing corresponding sector region according to described ratio.
16. devices according to claim 14, is characterized in that, described description frame adding device, comprising:
Angle detection sub-unit, for for arbitrary fan-shaped block, whether the angle detected between the center line of described fan-shaped block and described target direction is less than the 3rd angle;
First adds subelement, for when being not less than described 3rd angle, by the center line of described fan-shaped block after the outside definite length extended of described cake chart, the data attribute name corresponding to described fan-shaped block adds described description frame at the end of described center line.
17. devices according to claim 14, is characterized in that, described description frame adding device, also comprises:
Second adds subelement, for when being less than described 3rd angle, by in described 3rd angle away from the sideline of described target direction after the outside definite length extended of described cake chart, the data attribute name corresponding to described fan-shaped block adds described description frame at the end in described sideline.
18. according to claim 10 to 13 arbitrary described devices, and it is characterized in that, described device, also comprises:
Frame initialization module, for being initialized as cutting frame by the boundary rectangle frame of described cake chart;
Frame judge module is described, for judging whether each description frame is arranged in described cutting frame;
Frame extension module, for being positioned at outside described cutting frame when there is described description frame, then expands described cutting frame according to described description frame;
Cutting module, for when each description frame is arranged in described cutting frame, cuts out described cake chart and described description frame according to described cutting frame.
19. 1 kinds of electronic equipments, is characterized in that, described electronic equipment comprises:
Information display device as described in as arbitrary in claim 10 to 18.
CN201410444603.0A 2014-09-03 2014-09-03 Information display method and device and electronic equipment Active CN105426368B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410444603.0A CN105426368B (en) 2014-09-03 2014-09-03 Information display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410444603.0A CN105426368B (en) 2014-09-03 2014-09-03 Information display method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN105426368A true CN105426368A (en) 2016-03-23
CN105426368B CN105426368B (en) 2020-07-07

Family

ID=55504581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410444603.0A Active CN105426368B (en) 2014-09-03 2014-09-03 Information display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN105426368B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108512989A (en) * 2017-02-28 2018-09-07 腾讯科技(深圳)有限公司 A kind of message prompt method and device
CN110378248A (en) * 2019-06-25 2019-10-25 平安科技(深圳)有限公司 Cake chart recognition methods, device, equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1763743A (en) * 2004-10-18 2006-04-26 微软公司 System and method for automatic label placement on charts
US20110246873A1 (en) * 2005-12-05 2011-10-06 Microsoft Corporation Persistent formatting for interactive charts
CN102428427A (en) * 2009-04-02 2012-04-25 美尔默公司 Displaying pie charts in a limited display area
CN102455860A (en) * 2010-11-03 2012-05-16 深圳市金蝶友商电子商务服务有限公司 Terminal pie chart rotation interactive display method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1763743A (en) * 2004-10-18 2006-04-26 微软公司 System and method for automatic label placement on charts
US20110246873A1 (en) * 2005-12-05 2011-10-06 Microsoft Corporation Persistent formatting for interactive charts
CN102428427A (en) * 2009-04-02 2012-04-25 美尔默公司 Displaying pie charts in a limited display area
CN102455860A (en) * 2010-11-03 2012-05-16 深圳市金蝶友商电子商务服务有限公司 Terminal pie chart rotation interactive display method and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
启典文化: "掌握图表使用妙招", 《EXCEL公式、函数、图表数据分析高手真经》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108512989A (en) * 2017-02-28 2018-09-07 腾讯科技(深圳)有限公司 A kind of message prompt method and device
CN110378248A (en) * 2019-06-25 2019-10-25 平安科技(深圳)有限公司 Cake chart recognition methods, device, equipment and computer readable storage medium
CN110378248B (en) * 2019-06-25 2023-07-21 平安科技(深圳)有限公司 Pie chart identification method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN105426368B (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN104133624B (en) Web animation display packing, device and terminal
CN104978115A (en) Content display method and device
CN105302408A (en) Method and apparatus for adjusting position of hover button and terminal
CN103530115B (en) Application program display method and device and terminal equipment
CN104834529A (en) Method and device for optimizing performance of application
CN105022616A (en) Method and device for generating web page
CN104243671A (en) Volume adjustment method and device and electronic device
CN105094809A (en) Combined picture layout modification method and device and terminal equipment
CN106445339A (en) Three-dimensional image display method and device for double-screen terminal
CN104778055A (en) Method and device for displaying progress bar
CN104298558A (en) Information processing method and device
CN104881844A (en) Picture combination method and device and terminal equipment
CN105046059A (en) Game movement trajectory determination method and apparatus
CN104134043B (en) Content is hidden, separates method, device and the terminal hidden
CN105681441A (en) Data transmission method and apparatus
CN105447124A (en) Virtual article sharing method and device
CN104915091A (en) Method and device for displaying status bar prompt message
CN104954159A (en) Network information statistics method and device
CN104602135A (en) Method and device for controlling full screen play
CN105373534A (en) List display method, device and list display terminal
CN103955279B (en) A kind of visual angle feedback method and terminal
CN104598542A (en) Display method and device for multimedia information
CN104616333A (en) Game video processing method and device
CN103631592A (en) Configuration method, calling method, device and equipment for displaying resources
CN104142994A (en) Data list acquisition method, terminal and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant