Summary of the invention
Fundamental purpose of the present invention is to provide a kind of terminal cake chart to rotate interactive display method and terminal, is intended to be implemented in the same display screen in terminal and shows the corresponding statistic of classification items for information of each section in the cake chart.
In order to achieve the above object, the present invention proposes a kind of terminal cake chart and rotates interactive display method, comprising:
Data message according to statistic of classification generates cake chart on terminal display screen, said cake chart comprises the section of some corresponding statistics items for information classifications;
Follow the tracks of the direction of finger whipping on cake chart, make cake chart follow finger and rotate;
When cake chart stops operating, on terminal display screen, show the cut into slices statistics items for information of corresponding classification of arrow indication.
Preferably, the direction of said tracking finger whipping on cake chart, the step that makes cake chart follow the finger rotation comprises:
The angle calculation cake chart that on terminal display screen, rotates cake chart according to finger rotates initial angle speed;
Calculate the angular displacement that cake chart rotates according to said initial angle speed and predetermined angular displacement formula;
Direction along the finger whipping makes cake chart rotate the angular displacement of said calculating.
Preferably, said angular displacement computing formula is θ=v0 * t+1/2 * a * t
2, wherein, v0 is an initial angle speed, and α is an acceleration, and t is a run duration.
Preferably, finger whipping direction comprises clockwise and/or counter clockwise direction.
Preferably, said arrow is arranged under the said cake chart; Said arrow below is provided with the display box that shows said statistics items for information.
The present invention also proposes a kind of terminal cake chart and rotates Interactive Display Terminal, comprising:
The cake chart generation module is used on terminal display screen, generating cake chart according to the data message of statistic of classification, and said cake chart comprises the section of some corresponding statistics items for information classifications;
Follow the tracks of rotating module, the direction that is used to follow the tracks of finger whipping on cake chart makes cake chart follow finger and rotates;
The data message display module is used for when cake chart stops operating, and on terminal display screen, shows the cut into slices statistics items for information of corresponding classification of arrow indication.
Preferably, said tracking rotating module comprises:
Initial angle speed calculation unit is used for rotating initial angle speed according to the angle calculation cake chart of finger rotation cake chart on terminal display screen;
The angular displacement computing unit is used for calculating the angular displacement that cake chart rotates according to said initial angle speed and predetermined angular displacement formula;
Rotating unit is used for making cake chart rotate the angular displacement of said calculating along the direction of finger whipping.
Preferably, said angular displacement computing formula is θ=v0 * t+1/2 * α * t
2, wherein, v0 is an initial angle speed, and α is an acceleration, and t is a run duration.
Preferably, said arrow is arranged under the said cake chart; Said arrow below is provided with the display box that shows said statistics items for information.
A kind of terminal cake chart that the present invention proposes rotates interactive display method and terminal; Physical effect through the rotation of simulation wheel disc; Make cake chart follow finger whipping direction and rotate (comprising clockwise and counterclockwise); And according to the finger on display screen the speed of whipping make cake chart do the uniformly retarded motion of friction speed; When specific cake chart section fell into the arrow zone, section adopted animation effect placed in the middle automatically, promptly added up items for information at the regional summary info of slice of data that shows of this arrow; The interactive mode of rotating this kind has realized corresponding statistic of classification items for information of each section of demonstration cake chart in the same display screen in terminal, has solved the infull problem of statistics items for information demonstration under a lot of situation of cake chart number of sections.
Embodiment
Embodiment of the invention solution mainly is the physical effect that rotates through the simulation wheel disc; Making cake chart follow finger whipping direction rotates; And according to the finger on display screen the speed of whipping make cake chart do the uniformly retarded motion of friction speed; When specific cake chart section falls into the arrow zone, promptly add up items for information at the summary info of this arrow zone demonstration slice of data.
To the problem that shows the statistics items for information that the cake chart section is corresponding in the prior art on can't the same screen at terminal display screen under a lot of situation of cake chart number of sections, the physical effect that the embodiment of the invention is rotated through the simulation wheel disc shows the corresponding statistics items for information of cake chart section of appointment.
As shown in Figure 1, one embodiment of the invention proposes a kind of terminal cake chart and rotates interactive display method, comprising:
Step S101 generates cake chart according to the data message of statistic of classification on terminal display screen, cake chart comprises the sections of some corresponding statistics items for information classifications;
In the present embodiment, at first the various data messages of businessman are carried out statistic of classification, add up items for information according to the statistics generation cake chart of data message and show, can adopt the universal method of existing generation cake chart to generate cake chart.According to input data v1; V2; V3...vn calculates them in the shared angle of cake chart,
α 1, and a2...an representes data v1 respectively; V2, the angle that v3...vn takies in 360 degree circles.
In cake chart; Classification according to the statistics items for information is divided into several sections with cake chart, and the statistics items for information of a kind is represented in each section, such as; The consumption situation that represented a company certain month with whole cake chart; Can be divided into transportation expenses, food and drink expense, employee's wage, property fees etc. according to the consumption classification, each classification has a statistics items for information, and each bar statistics items for information can comprise consumption classification, the consumption amount of money and proportion etc.
Step S102, the direction of following the tracks of finger whipping on cake chart makes cake chart follow finger and rotates;
In the present embodiment, the prize-winning wheel disc that the physical effect that rotates with the simulation wheel disc is familiar with such as user's daily life is the rotation that mechanism realizes cake chart.Specifically on terminal display screen, stir modes such as the corresponding section of cake chart through user's finger; The moving direction that makes cake chart follow finger rotates (comprising clockwise and counter clockwise direction); And make cake chart do the uniformly retarded motion of friction speed according to finger speed of whipping on terminal display screen; Until stopping in specified location in user; When the cake chart section of user's appointment fell into arrow indication zone, section adopted animation effect placed in the middle automatically, so that the corresponding statistics items for information of arrow indication cake chart section is shown.
When cake chart was followed the finger rotation, the angle that cake chart rotates was that angular displacement is obtained according to the speed calculation that the user points whipping, and the angular displacement computing formula is:
θ=v0 * t+1/2 * a * t
2, wherein, v0 is an initial angle speed, and α is an acceleration, can be just also to can be negatively, and t is a run duration.V0 draws v0=(θ end-θ start)/t1 according to finger rotates cake chart on terminal display screen angle calculation; When θ start moves for finger; The angle that cake chart rotates; θ end is for working as the angle that finger leaves the moment rotation of fluorescent screen when remote holder, two differential seat angles draw the initial velocity v0 that cake chart is done uniformly retarded motion divided by mistiming t1.The α acceleration is a constant, represents friction force, is empirical value, according to repeatedly test acquisition.
Step S103 when cake chart stops operating, shows the cut into slices statistics items for information of corresponding classification of arrow indication on terminal display screen.
When cake chart stops operating; The cake chart section of user's appointment falls into arrow indication zone; Section adopts animation effect placed in the middle automatically, shows the statistics items for information of the corresponding classification of section in this arrow zone, wherein; Arrow can be arranged in the terminal display screen under the cake chart, and the display box that shows the statistics items for information is set below arrow.
As shown in Figure 2, step S102 comprises:
Step S1021, the angle calculation cake chart that on terminal display screen, rotates cake chart according to finger rotates initial angle speed;
Initial angle speed v 0 draws v0=(θ end-θ start)/t1 according to finger rotates cake chart on terminal display screen angle calculation; When θ start moves for finger; The angle that cake chart rotates; θ end is for working as the angle that finger leaves the moment rotation of fluorescent screen when remote holder, two differential seat angles draw the initial velocity v0 that cake chart is done uniformly retarded motion divided by mistiming t1.
Step S1022 calculates the angular displacement that cake chart rotates according to initial angle speed and predetermined angular displacement formula;
The angular displacement computing formula is:
θ=v0 * t+1/2 * a
2, wherein, v0 is an initial angle speed, and α is an acceleration, can be just also to can be negatively, and acceleration is a constant, represents friction force, is empirical value, obtains according to test repeatedly, and t is the cake chart run duration.
Step S1023 makes the angular displacement of cake chart rotation calculating along the direction of finger whipping.
The interactive mode of rotating the present embodiment cake chart has realized corresponding statistic of classification items for information of each section of demonstration cake chart in the same display screen in terminal, has solved the infull problem of statistics items for information demonstration under a lot of situation of cake chart number of sections.
As shown in Figure 3, one embodiment of the invention proposes a kind of terminal cake chart and rotates Interactive Display Terminal, comprising: cake chart generation module 301, tracking rotating module 302 and data message display module 303, wherein:
Cake chart generation module 301 is used on terminal display screen, generating cake chart according to the data message of statistic of classification, and cake chart comprises the section of some corresponding statistics items for information classifications;
In the present embodiment, at first the various data messages of businessman are carried out statistic of classification, add up items for information according to the statistics generation cake chart of data message and show, can adopt the universal method of existing generation cake chart to generate cake chart.According to input data v1; V2; V3...vn calculates them in the shared angle of cake chart,
α 1, and a2...an representes data v1 respectively; V2, the angle that v3...vn takies in 360 degree circles.
In cake chart; Classification according to the statistics items for information is divided into several sections with cake chart, and the statistics items for information of a kind is represented in each section, such as; The consumption situation that represented a company certain month with whole cake chart; Can be divided into transportation expenses, food and drink expense, employee's wage, property fees etc. according to the consumption classification, each classification has a statistics items for information, and each bar statistics items for information can comprise consumption classification, the consumption amount of money and proportion etc.
Follow the tracks of rotating module 302, the direction that is used to follow the tracks of finger whipping on cake chart makes cake chart follow finger and rotates;
In the present embodiment, the prize-winning wheel disc that the physical effect that rotates with the simulation wheel disc is familiar with such as user's daily life is the rotation that mechanism realizes cake chart.Specifically on terminal display screen, stir modes such as the corresponding section of cake chart through user's finger; The moving direction that makes cake chart follow finger rotates (comprising clockwise and counter clockwise direction); And make cake chart do the uniformly retarded motion of friction speed according to finger speed of whipping on terminal display screen; Until stopping in specified location in user; When the cake chart section of user's appointment fell into arrow indication zone, section adopted animation effect placed in the middle automatically, so that the corresponding statistics items for information of arrow indication cake chart section is shown.
When cake chart was followed the finger rotation, the angle that cake chart rotates was that angular displacement is obtained according to the speed calculation that the user points whipping, and the angular displacement computing formula is:
θ=v0 * t+1/2 * a * t
2, wherein, v0 is an initial angle speed, and α is an acceleration, can be just also to can be negatively, and t is a run duration.V0 draws v0=(θ end-θ start)/t1 according to finger rotates cake chart on terminal display screen angle calculation; When θ start moves for finger; The angle that cake chart rotates; θ end is for working as the angle that finger leaves the moment rotation of fluorescent screen when remote holder, two differential seat angles draw the initial velocity v0 that cake chart is done uniformly retarded motion divided by mistiming t1.The α acceleration is a constant, represents friction force, is empirical value, according to repeatedly test acquisition.
Data message display module 303 is used for when cake chart stops operating, and on terminal display screen, shows the cut into slices statistics items for information of corresponding classification of arrow indication.
When cake chart stops operating; The cake chart section of user's appointment falls into arrow indication zone; Section adopts animation effect placed in the middle automatically, shows the statistics items for information of the corresponding classification of section in this arrow zone, wherein; Arrow can be arranged in the terminal display screen under the cake chart, and the display box that shows the statistics items for information is set below arrow.
As shown in Figure 4, follow the tracks of rotating module 302 and comprise: initial angle speed acquiring unit 3021, angular displacement computing unit 3022 and rotating unit 3023, wherein:
Initial angle speed calculation unit 3021 is used for rotating initial angle speed according to the angle calculation cake chart of finger rotation cake chart on terminal display screen;
Initial angle speed v 0 draws v0=(θ end-θ start)/t1 according to finger rotates cake chart on terminal display screen angle calculation; When θ start moves for finger; The angle that cake chart rotates; θ end is for working as the angle that finger leaves the moment rotation of fluorescent screen when remote holder, two differential seat angles draw the initial velocity v0 that cake chart is done uniformly retarded motion divided by mistiming t1.
Angular displacement computing unit 3022 is used for calculating the angular displacement that cake chart rotates according to initial angle speed and predetermined angular displacement formula;
Wherein, angular displacement computing formula is θ=v0 * t+1/2 * α * t
2, wherein, v0 is an initial angle speed, and α is an acceleration, and t is the cake chart run duration.
Rotating unit 3023 is used for making cake chart rotate the angular displacement of calculating along the direction of finger whipping.
Embodiment of the invention terminal cake chart rotates interactive display method and terminal; Physical effect through the rotation of simulation wheel disc; Make cake chart follow finger whipping direction and rotate (comprising clockwise and counterclockwise); And according to the finger on display screen the speed of whipping make cake chart do the uniformly retarded motion of friction speed; When specific cake chart section fell into the arrow zone, section adopted animation effect placed in the middle automatically, promptly added up items for information at the regional summary info of slice of data that shows of this arrow; The interactive mode of rotating this kind has realized corresponding statistic of classification items for information of each section of demonstration cake chart in the same display screen in terminal, has solved the infull problem of statistics items for information demonstration under a lot of situation of cake chart number of sections.
The above is merely the preferred embodiments of the present invention; Be not so limit claim of the present invention; Every equivalent structure or flow process conversion that utilizes instructions of the present invention and accompanying drawing content to be done; Or directly or indirectly be used in other relevant technical field, all in like manner be included in the scope of patent protection of the present invention.