Embodiment
In order that those skilled in the art more fully understand the technical scheme in the application, it is real below in conjunction with the application
The accompanying drawing in example is applied, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described implementation
Example only some embodiments of the present application, rather than whole embodiments.It is common based on the embodiment in the application, this area
The every other embodiment that technical staff is obtained under the premise of creative work is not made, it should all belong to the application protection
Scope.
The embodiment of the present application provides one kind and adds tagged method and device, is not weighed mutually according to each label in trend graph
Folded principle is that the data point in trend graph adds label, so as to ensure the label non-overlapping copies added in trend graph, ensures to walk
The readability of gesture figure.
Fig. 1 is the first schematic flow sheet for adding tagged method that the embodiment of the present application provides, and this method is by backstage
Server perform, as shown in figure 1, this method comprises at least following steps:
Step S102, according to the label distribution arrangement and label distributed areas for having added tagged data point in trend graph,
According to default label distribution occasion label distribution arrangement and label distributed areas are determined for the data point of label to be added;Its
In, default label distribution occasion includes:Each label non-overlapping copies;The label distribution arrangement of data point in trend graph is multiple
One in preset direction.
The purpose of the embodiment of the present application is to add label for the data point in trend graph, and the trend graph can be financial tendency
Figure, such as shares changing tendency figure, security trend graph, fund trend graph and room rate trend graph, can also be weather trend graph, such as rainfall
Measure trend graph, humidity trend graph and temperature trend graph etc..For the data point in trend graph, it has label distribution arrangement
With the attribute of label distributed areas two, label distribution arrangement is one in multiple preset directions, and wherein preset direction can be
Top-direction towards trend graph, the bottom direction towards trend graph, the left direction towards trend graph and towards trend graph
Right direction, orientation of the label in trend graph can determine according to label distribution arrangement, as label is located at the top of trend graph
Portion, bottom, left side or right side.Label distributed areas refer to the region shared by label, can be represented with coordinate form, such as mark
Sign for rectangle when, label distributed areas are (a, b, c, d), and wherein a, b, c and d represents the coordinate on four summits of rectangle respectively.
Step S104, according to the label distribution arrangement of the data point for the label to be added determined and label distributed areas,
Label is added for the data point of label to be added.
In the embodiment of the present application, it is distributed according to the label distribution arrangement and label for having added tagged data point in trend graph
Region, label distribution arrangement and the label distribution of the data point of label to be added are determined in the case of each label non-overlapping copies
Region, and the label distribution arrangement according to the data point of label to be added and label distributed areas, it is the data of label to be added
Point addition label.By adding tagged method in the embodiment of the present application, each mark added in trend graph can be ensured
Non-overlapping copies are signed, so as to ensure the readability of trend graph, facilitate user to browse each label in trend graph and figure;The application is real
Applying label substance in example can be set by user, facilitate user to be made marks when trend graph is browsed;The embodiment of the present application energy
Label position is enough automatically determined, so as to eliminate the operation that user adjusts label position manually, improves Consumer's Experience.
During in view of adding label in trend graph, preferentially added on the larger direction of the remaining area in addition to label
Label, so as to avoid label overlapping, therefore in above-mentioned steps S102, according to the label for having added tagged data point in trend graph
Distribution arrangement and label distributed areas determine the label distribution arrangement of the data point of label to be added, specifically can be by with lower section
Formula (a1) or mode (a2) are realized:
Mode (a1), according to the label distribution arrangement for having added tagged data point, determine that label distribution is minimum and preset
Label distribution arrangement of the direction as the data point of label to be added.
In which, label distribution side of the minimum preset direction of label for the data point of label to be added has been added in selection
To, such as, preset direction is directed towards the top-direction of trend graph and the bottom direction towards trend graph, then in which, it is determined that
The bottom that the top of trend graph has added tagged quantity and trend graph has added tagged quantity, if the top of trend graph has added
Tagged minimum number, it is determined that the label distribution arrangement of the data point of label to be added is towards the top side of trend graph
To.
Mode (a2), according to the label distribution arrangement and label distributed areas for having added tagged data point, determine label
The label distribution arrangement of data point of the minimum preset direction of the shared gross area as label to be added.
In which, the preset direction that the gross area minimum shared by label has been added in selection is the data point of label to be added
Label distribution arrangement, such as, preset direction is directed towards the left direction of trend graph and the right direction towards trend graph, then should
In mode, determine that the gross area shared by label has been added in the left side of trend graph, and, the right side of trend graph has been added shared by label
The gross area, if the gross area that the left side of trend graph has been added shared by label is minimum, it is determined that the mark of the data point of label to be added
It is the left direction towards trend graph to sign distribution arrangement.Wherein, having added the gross area shared by label can be according to each having added
Tagged label distributed areas are calculated.
The first of the label distribution arrangement of the data point for the determination label to be added that Fig. 2 provides for the embodiment of the present application is shown
It is intended to, as shown in Fig. 2 illustrating the dynamic relationship between dealing money and date, there are three labels, each in Fig. 2
The data point n of data point corresponding to label and label to be added is as illustrated, preset direction is towards the top of trend graph in Fig. 2
Portion direction and the bottom direction towards trend graph, it is determined that label to be added data point label distribution arrangement when, according to upper
State mode (a1) can determine, the label distribution arrangement of the data point of label to be added is the bottom direction towards trend graph, is treated
Label is added by positioned at the bottom of trend graph.
Second of the label distribution arrangement of the data point for the determination label to be added that Fig. 3 provides for the embodiment of the present application shows
It is intended to, as shown in figure 3, illustrating the dynamic relationship between temperature and time, there is four labels, each label in Fig. 3
The data point m of corresponding data point and label to be added is as illustrated, preset direction is towards the top side of trend graph in Fig. 3
To with the bottom direction towards trend graph, it is determined that label to be added data point label distribution arrangement when, according to above-mentioned side
Formula (a2) can determine that the label distribution arrangement of the data point of label to be added is the top-direction towards trend graph, to be added
Label is by positioned at the top of trend graph.
By by upper type (a1) or in a manner of (a2) can determine label to be added data point label distribution arrangement.
In above-mentioned steps S102, determine that label distributed areas are specially for the data point of label to be added:In the number of label to be added
On the label distribution arrangement at strong point, from the region between the data point of label to be added and closest label, choose with
Label distributed areas of the region that label to be added matches as the data point of label to be added.
It is determined that label to be added data point label distribution arrangement after, can determine in the direction first with it is to be added
The closest label of the data point of label, the data point of label to be added and closest label are then determined in the direction
Between region, in this region finally, choose and match the region conduct of (such as shape area is consistent) with label to be added
The label distributed areas of the data point of label to be added, wherein, the shape and area of label to be added can be set due to user,
Or determined according to the content that user is label to be added setting.
Fig. 4 is the schematic diagram of the label distributed areas of the data point for the determination label to be added that the embodiment of the present application provides,
As shown in figure 4, illustrating the dynamic relationship between the first variable and the second variable, there is label a and label b, label a in Fig. 4
The also data point q with label to be added, closer to the distance between p and q in corresponding data point o, label b corresponding data point p, Fig. 4.
The label distribution arrangement of the data point of label to be added is the bottom direction towards trend graph in Fig. 4, then true according to step S102
During the label distributed areas of the data point of fixed label to be added, determined and point q distances along the bottom direction towards trend graph first
Nearest label, be label b, then along towards trend graph bottom direction determine point q and label b between region (in figure void
Shown in line), mark of the region to match with label to be added as the data point q of label to be added is finally chosen in this region
Distributed areas are signed, as shown are region s, data point q label to be added is added at the s of region.
In another embodiment, additionally it is possible to take in the following manner from the data point of label to be added with it is closest
In region between label, choose the region to match with label to be added and be distributed as the label of the data point of label to be added
Region:It is determined that label to be added data point label distribution arrangement after, first in trend graph the direction farthest choosing
Take with label distributed areas of the region that label to be added matches as the data point of label to be added, then judge the label
Whether distributed areas are overlapping with having added label, if overlapping, the label point is moved in the direction opposite along label distribution arrangement
Cloth region, until the label distributed areas after mobile are not overlapping with having added label.
By taking Fig. 4 as an example, the label distribution arrangement of the data point of label to be added is the bottom direction towards trend graph, first
The label distributed areas of the data point of label to be added, the base in the region and the bottom of trend graph are determined in the bottommost of trend graph
Side overlaps, and then judges that the region is overlapping with having added label b, then moves the region along the top-direction towards trend graph,
Until the label distributed areas after mobile are overlapping not with having added label b, the label distributed areas after movement can be as shown in s, s
As data point q label distributed areas.
In the embodiment of the present application, it is determined that label to be added data point label distribution arrangement and label distributed areas
Afterwards, in step S104, according to the label distribution arrangement of the data point for the label to be added determined and label distributed areas, it is
The data point addition label of label to be added.
As shown in Figures 2 to 4, when adding label according to label distribution arrangement and label distributed areas for data point, due to mark
Label distributed areas determine on label distribution arrangement, therefore position label distributed areas along label distribution arrangement first, so
Label is set at label distributed areas afterwards, finally sets connecting line to connect label and data point, is completed so as to add.Work as label
For rectangle when, left end, right-hand member or centre that the intersection point of connecting line and label falls in rectangle can need to set according to scene, pin
To the data point of trend graph right half part, the intersection point between its connecting line and label can be located at the right-hand member of label, so as to avoid
The label of low order end exceeds the scope of trend graph, for the data point of trend graph left-half, between its connecting line and label
Intersection point can be located at the left end of label, so as to avoid the label of high order end from exceeding the scope of trend graph.
In view of on the label distribution arrangement of the data point in label to be added, the data point and distance of label to be added are most
The region that matches with label to be added may be not present in region between near label, the addition mark in the embodiment of the present application
The method of label also includes following action:
If in the region between the data point of label to be added and closest label, in the absence of with label phase to be added
The region of matching, then choose new label of other directions as the data point of label to be added in above-mentioned multiple preset directions
Distribution arrangement.
If in the region between the data point of label to be added and closest label, in the absence of with label to be added
The region to match, for example in the absence of the region with label area equation to be added, then change the data point of label to be added
Label distribution arrangement, specific changing mode can be in multiple preset directions of aforementioned definitions, choose another direction conduct
The label distribution arrangement of the data point of label to be added, such as current label distribution arrangement are towards the right side side of trend graph
To multiple preset directions include the right direction towards trend graph and the left direction towards trend graph, then by label to be added
The label distribution arrangement of data point be changed to left direction towards trend graph.
Trend graph includes visuals and background parts, and by taking shares changing tendency figure as an example, visuals is the curve of cyclical fluctuations, background
Part is part in addition to the curve of cyclical fluctuations, it is contemplated that if it is determined that label distributed areas and the visuals weight of trend graph
It is folded, then it can influence the readability of trend graph, the tagged method that adds in the embodiment of the present application also includes following action:
If the label distributed areas of the data point of label to be added are overlapping with the visuals of trend graph, increase to be added
The transparency of label, or, other directions in above-mentioned multiple preset directions are chosen as the new of the data point of label to be added
Label distribution arrangement.
If it is determined that label distributed areas it is overlapping with the visuals of trend graph, then increase the transparency of label to be added,
So that overlapping visuals can be in user's visible state through label to be added, or, in the multiple of aforementioned definitions
In preset direction, new label distribution arrangement of another direction as the data point of label to be added is chosen.
In the embodiment of the present application after label distribution arrangement is changed, it is also necessary on the label distribution arrangement after change again
Label distributed areas are determined, and according to the data that the label distribution arrangement and label distributed areas redefined is label to be added
Point addition label.
In the embodiment of the present application, it is contemplated that choose the situation and label distributed areas and trend graph of failure in label distributed areas
The overlapping situation of visuals, change label distribution arrangement in both cases and redefine label distributed areas, from
And a variety of situations are taken into account, guarantee can determine label distribution arrangement and label distributed areas in all cases, and then be number
Add label in strong point.
The embodiment of the present application provides a kind of detection label distributed areas side whether overlapping with the visuals of trend graph
Method, including following action:
(b1) on the visuals of trend graph, determine label to be added data point label distributed areas corresponding to it is wide
Spend scope;
(b2) maximum and minimum according to visuals in the width range, determines square corresponding to the width range
Shape region;
(b3) if the label distributed areas of the data point of label to be added are overlapping with the rectangular area, it is determined that mark to be added
The label distributed areas of the data point of label are overlapping with the visuals of trend graph.
Fig. 5 is the detection label distributed areas of the embodiment of the present application offer schematic diagram whether overlapping with visuals, such as
Shown in Fig. 5, first on the visuals of trend graph, it is i to determine width range corresponding to the c of label distributed areas, then basis
Maximum and minimum of the visuals in width range i, determine rectangular area d corresponding to width range i, the rectangular area
D can regard projected areas of the label distributed areas c on visuals as, finally judge label distributed areas c whether with square
Shape region d is overlapping, if overlapping, label distributed areas are overlapping with visuals, conversely, it is not overlapping, as shown in figure 5, label point
Cloth region c is not overlapping with rectangular area d, then label distributed areas are not overlapping with visuals.Can be simple by this kind of method
Quickly determine whether label distributed areas are overlapping with visuals.
According to foregoing description, in a kind of specific embodiment, above-mentioned preset direction is set to include first direction and second
Direction, and first direction and second direction opposite direction each other, so as to ensure that label is distributed at the both ends of trend graph, such as, first
Direction is the top-direction towards trend graph, and second direction is the bottom direction towards trend graph, and label is at the top of trend graph
It is distributed with bottom.Gradually set label more attractive in appearance in view of the centre position from the both ends of trend graph towards trend graph, and just
In the reading experience of user, therefore for adding tagged data point in trend graph first, determine that its label distributed areas is to walk
In gesture figure in the first direction or second direction farthest, can set and add tagged data point first and be located at trend graph most
Bottom, and label bottom edge and trend graph base coincident, so as to facilitate user to read.
As described above, the embodiment of the present application additionally provides one kind and adds tagged method, and Fig. 6 is the embodiment of the present application
Second of the schematic flow sheet for adding tagged method provided, as shown in fig. 6, this method comprises the following steps:
Step S202, according to the label distribution arrangement and label distributed areas for having added tagged data point in trend graph,
The label distribution arrangement of the data point of label to be added is determined according to default label distribution occasion.
The specific descriptions of the step refer to aforesaid way (a1) or mode (a2).
Step S204, on the label distribution arrangement of the data point of label to be added, judge the data point of label to be added
In region between closest label, if the region to match with label to be added be present;If in the presence of execution step
S206, otherwise, perform step S208.
Step S206, in the region between the data point of label to be added and closest label, choose and wait to add
Tag label distributed areas of the region to match as the data point of label to be added.
Step S208, choose the label of data point of other directions in above-mentioned multiple preset directions as label to be added
Distribution arrangement, and jump to step S204.
Step S210, judge whether label distributed areas are overlapping with the visuals of trend graph, if overlapping, perform step
S208, otherwise, perform step S212.
Step S212, label is added at the label distributed areas of the data point of label to be added.
In this flow, if after each label distribution arrangement was attempted, it can not determine what is matched with label to be added
Region, or the region to match with label to be added determined are overlapping with the visuals of trend graph, it is determined that trend graph
Label, label addition failure can not be added again.
Because the picture of trend graph is limited, therefore total number of labels can be limited within the specific limits, such as be less than and be equal to 3,
Based on this, the embodiment of the present application gives a kind of flow for adding three labels, and in the flow, preset direction is towards trend graph
Top-direction and bottom direction towards trend graph, label be distributed in the top and bottom of trend graph, Fig. 7 is that the application is implemented
The third schematic flow sheet for adding tagged method that example provides, Fig. 8 add tagged schematic diagram, such as Fig. 7 for corresponding diagram 7
Shown in 8, the flow includes:
Step S302, first label " this is low spot " is added in the bottom of trend graph.
Default label distribution arrangement is the bottom direction towards trend graph, for first label, is positioned in tendency
The distalmost end of the bottom of figure, the base of label are overlapping with trend graph base.
Step S304, second label " buying " is added at the top of trend graph.
It is the top-direction towards trend graph to change label distribution arrangement, and second label is arranged at the top of trend graph
Distalmost end, the top margin of label are overlapping with trend graph top margin.
Because the label in the embodiment of the present application can be deleted, therefore when there was only a label in trend graph, the label
Bottom is not necessarily located in, therefore in the specific implementation, second label of addition only needs and already present first label point
Cloth is in opposite direction, and in this example, rear second label in opposite direction is located at top.
Step S306, according to the position of the most short label of width in the first two label, determine that the 3rd label " sells " position
In the top of trend graph, and determine the default location of the 3rd label.
If the most short label of width is located at bottom in the first two label, it is determined that the 3rd label is located at bottom, if preceding two
The most short label of width is located at top in individual label, it is determined that the 3rd label is located at top, so as to avoid the weight between label
It is folded;When determining that label is located at bottom or top, the base of default label and trend graph base coincident, or label top margin with walking
The top margin of gesture figure overlaps, and in this example, determines that the 3rd label is located at the top of trend graph, the top margin of default label and trend graph
Top margin overlaps.
Step S308, judge whether the default location of second label and the 3rd label is overlapping, if overlapping, perform step
S310, otherwise, perform step S312.
As shown in figure 8, because data point corresponding to second label and the 3rd data point corresponding to label are closer to the distance,
3rd label " selling " is determined after the default location at the top of trend graph according to step S306, second label and the 3rd mark
Label are inevitable overlapping, therefore continue executing with step S310.
Step S310, correct the position of the 3rd label.
Along the 3rd label is moved towards the direction of trend graph bottom, the distance of " label height+offset " can be moved,
So that the 3rd label is as shown in Figure 8 positioned at second label lower section, it is not overlapping with second label.
Step S312, the 3rd label is added in the opening position of the 3rd label.
Additive effect is as shown in Figure 8.
In the embodiment of the present application, when adding the 4th label, label can have been added according on each label distribution arrangement
Quantity, determine that the 4th label is located on the direction of negligible amounts, when adjusting label height, adjust up or down every time
The distance of " label height+offset ", so as to ensure that label rises or falls distance more than a label every time.
Tagged method is added by above-mentioned introduction, label can be added in trend graph automatically, by trend graph and mark
Label are effectively associated, and avoid it is overlapping between label, particularly avoid data point it is closer to the distance when label it is overlapping, and
And avoid label overlapping with trend graph visuals, ensure the reading effect of user.
It is corresponding it is above-mentioned add tagged method, based on identical thinking, the embodiment of the present application additionally provides another kind and added
Tagged method, Fig. 9 is the 4th kind of schematic flow sheet for adding tagged method that the embodiment of the present application provides, such as Fig. 9 institutes
Show, this method comprises the following steps:
Step S402, according to the label distribution arrangement and label distributed areas for having added tagged data point in trend graph,
According to default label distribution occasion label distribution arrangement is determined for the data point of label to be added;Wherein, default label point
Cloth condition includes:Each label non-overlapping copies;The label distribution arrangement of data point in trend graph is towards the top side of trend graph
To with one in the bottom direction towards trend graph;
Step S404, on the label distribution arrangement according to data point of the default label distribution occasion in label to be added,
Label distributed areas are determined for the data point of label to be added;
Step S406, it is label to be added at the label distributed areas of the data point for the label to be added determined
Data point adds label.
Step S402 to step S406 may be referred to abovementioned steps S102 to step S104 specific descriptions.
In the embodiment of the present application, label distribution arrangement is the top-direction towards trend graph and the bottom side towards trend graph
One in, so that label is distributed in the top and bottom of trend graph, ensures the aesthetic property of trend graph distribution, be easy to user
Read trend graph.
In the embodiment of the present application, for adding tagged data point in trend graph first, determine that its label distributed areas is
In trend graph towards trend graph bottom direction farthest, the base of label distributed areas and the base coincident of trend graph, from
And by the bottom of trend graph, upward distributing tags, reach label distribution mode be easy to read beneficial effect.
Add tagged method in the embodiment of the present application, according to the label point for having added tagged data point in trend graph
Cloth direction and label distributed areas, the label point of the data point of label to be added is determined in the case of each label non-overlapping copies
Cloth direction and label distributed areas, and the label distribution arrangement according to the data point of label to be added and label distributed areas, it is
The data point addition label of label to be added.By adding tagged method in the embodiment of the present application, can ensure in tendency
The each label non-overlapping copies added in figure, so as to ensure the readability of trend graph, facilitate user to browse in trend graph and figure
Each label;Label substance can be set by user in the embodiment of the present application, facilitate user to be marked when trend graph is browsed
Note;The embodiment of the present application can automatically determine label position, so as to eliminate the operation that user adjusts label position manually, improve
Consumer's Experience.
It is corresponding it is above-mentioned add tagged method, based on identical thinking, the embodiment of the present application additionally provides a kind of addition
The device of label, Figure 10 are the first module composition schematic diagram for adding tagged device that the embodiment of the present application provides, and are such as schemed
Shown in 10, the device includes:
Determining module 21 is distributed, for according to the label distribution arrangement and label for having added tagged data point in trend graph
Distributed areas, determine that label distribution arrangement and label are distributed according to default label distribution occasion for the data point of label to be added
Region;Wherein, the default label distribution occasion includes:Each label non-overlapping copies;The mark of data point in the trend graph
It is one in multiple preset directions to sign distribution arrangement;
Label add module 22, for the label distribution arrangement according to the data point of the label to be added determined and
Label distributed areas, it is that the data point of the label to be added adds label.
Wherein, distribution determining module 21 includes the first determination sub-module or the second determination sub-module, and shown first determines
Submodule, for according to the label distribution arrangement for having added tagged data point, determining the minimum default side of label distribution
To the label distribution arrangement of the data point as the label to be added;Second determination sub-module, added for basis
The label distribution arrangement of the data point of label and label distributed areas, determine the minimum preset direction of the gross area shared by label
Label distribution arrangement as the data point of the label to be added.
Wherein, distribution determining module 21 includes the 3rd determination sub-module, for the data point in the label to be added
On label distribution arrangement, from the region between the data point of the label to be added and closest label, selection and institute
State the label distributed areas of region that label to be added matches as the data point of the label to be added.
Device in the embodiment of the present application also includes:First direction changes module, if the number for the label to be added
In region between strong point and closest label, in the absence of the region to match with the label to be added, then institute is chosen
State label distribution arrangement of other directions as the data point of the label to be added in multiple preset directions.
Device in the embodiment of the present application also includes:Second direction changes module, if the number for the label to be added
The label distributed areas at strong point are overlapping with the visuals of the trend graph, then increase the transparency of the label to be added, or
Person, choose label distribution arrangement of other directions as the data point of the label to be added in the multiple preset direction.
Device in the embodiment of the present application also includes:Overlapping detection module, for the visuals in the trend graph,
Determine width range corresponding to the label distributed areas of the data point of the label to be added;According to the visuals described
Maximum and minimum in width range, determine rectangular area corresponding to the width range;If the label to be added
The label distributed areas of data point are overlapping with the rectangular area, it is determined that the label distribution of the data point of the label to be added
Region is overlapping with the visuals of the trend graph.
In the embodiment of the present application, the multiple preset direction includes first direction and second direction, the first direction and
Second direction opposite direction each other;It is described to add tagged device and also include:Configuration module, for in the trend graph
Add tagged data point first, it is along the first direction or described second in the trend graph to determine its label distributed areas
The farthest in direction.
In the embodiment of the present application, the trend graph includes financial trend graph or weather trend graph.
By adding tagged device in the embodiment of the present application, it can ensure that each label for being added in trend graph is mutual
It is not overlapping, so as to ensure the readability of trend graph, facilitate user to browse each label in trend graph and figure;The embodiment of the present application
Middle label substance can be set by user, facilitate user to be made marks when trend graph is browsed;The embodiment of the present application can be certainly
It is dynamic to determine label position, so as to eliminate the operation that user adjusts label position manually, improve Consumer's Experience.
It is corresponding it is above-mentioned add tagged method, based on identical thinking, the embodiment of the present application additionally provides another kind and added
Tagged device, Figure 11 are second of module composition schematic diagram for adding tagged device that the embodiment of the present application provides, such as
Shown in Figure 11, the device includes:
Direction determining mould 31, for according to the label distribution arrangement and label for having added tagged data point in trend graph
Distributed areas, label distribution arrangement is determined for the data point of label to be added according to default label distribution occasion;Wherein, it is described
Default label distribution occasion includes:Each label non-overlapping copies;The label distribution arrangement of data point in the trend graph is court
Top-direction to the trend graph and towards one in the bottom direction of the trend graph;
Area determination module 32, for according to the default label distribution occasion the label to be added data point
Label distribution arrangement on, determine label distributed areas for the data point of the label to be added;
Label setup module 33, at the label distributed areas of the data point for the label to be added determined,
Label is added for the data point of the label to be added.
In the embodiment of the present application, the device also includes:Initialization module, for for addition is marked first in the trend graph
The data point of label, determine its label distributed areas be the trend graph in towards the trend graph bottom direction farthest.
By adding tagged device in the embodiment of the present application, it can ensure that each label for being added in trend graph is mutual
It is not overlapping, so as to ensure the readability of trend graph, facilitate user to browse each label in trend graph and figure;The embodiment of the present application
Middle label substance can be set by user, facilitate user to be made marks when trend graph is browsed;The embodiment of the present application can be certainly
It is dynamic to determine label position, so as to eliminate the operation that user adjusts label position manually, improve Consumer's Experience.
It is corresponding it is above-mentioned add tagged method, based on identical thinking, the embodiment of the present application additionally provides a kind of addition
The equipment of label, as shown in figure 12.
Bigger difference can be produced because configuration or performance are different by adding tagged equipment, can include one or one
More than processor 901 and memory 902, can be stored with memory 902 one or more storage application programs or
Data.Wherein, memory 902 can be of short duration storage or persistently storage.Being stored in the application program of memory 902 can include
One or more modules (diagram is not shown), each module can include to adding the series of computation in tagged equipment
Machine executable instruction.Further, processor 901 could be arranged to communicate with memory 902, on tagged equipment is added
Perform the series of computation machine executable instruction in memory 902.Add tagged equipment can also include one or one with
Upper power supply 903, one or more wired or wireless network interfaces 904, one or more input/output interfaces 905,
One or more keyboards 906 etc..
In a specific embodiment, add tagged equipment and include memory, and it is one or more
Program, one of them or more than one program storage is in memory, and one or more than one program can include one
Individual or more than one module, and each module can be included to adding the executable finger of the series of computation machine in tagged equipment
Order, and be configured to by one either more than one computing device this or more than one program bag contain be used to carrying out with
Lower computer executable instructions:
According to the label distribution arrangement and label distributed areas for having added tagged data point in trend graph, according to default
Label distribution occasion determines label distribution arrangement and label distributed areas for the data point of label to be added;Wherein, it is described default
Label distribution occasion include:Each label non-overlapping copies;The label distribution arrangement of data point in the trend graph is multiple pre-
One in set direction;
It is described according to the label distribution arrangement of the data point for the label to be added determined and label distributed areas
The data point addition label of label to be added.
Alternatively, computer executable instructions when executed, according to the mark for having added tagged data point in trend graph
Distribution arrangement and label distributed areas are signed, label point is determined for the data point of label to be added according to default label distribution occasion
Cloth direction, including:According to the label distribution arrangement for having added tagged data point, the minimum default side of label distribution is determined
To the label distribution arrangement of the data point as the label to be added;Or;According to the label point for having added tagged data point
Cloth direction and label distributed areas, determine the minimum preset direction of the gross area shared by label as the label to be added
The label distribution arrangement of data point.
Alternatively, computer executable instructions when executed, label distributed area are determined for the data point of label to be added
Domain, including:On the label distribution arrangement of the data point of the label to be added, from the data point of the label to be added with away from
From in the region between nearest label, the region that selection matches with the label to be added is as the label to be added
The label distributed areas of data point.
Alternatively, computer executable instructions when executed, can also make the processor, if the label to be added
Data point and closest label between region in, in the absence of the region to match with the label to be added, then select
Take label distribution arrangement of other directions as the data point of the label to be added in the multiple preset direction.
Alternatively, computer executable instructions when executed, can also make the processor, if the label to be added
Data point label distributed areas it is overlapping with the visuals of the trend graph, then increase the transparent of the label to be added
Degree, or, other directions chosen in the multiple preset direction are distributed as the label of the data point of the label to be added
Direction.
Alternatively, computer executable instructions when executed, can also make the processor, in the figure of the trend graph
On shape part, determine the label to be added data point label distributed areas corresponding to width range;According to the figure
Maximum and minimum of the part in the width range, determine rectangular area corresponding to the width range;If described treat
The label distributed areas for adding tagged data point are overlapping with the rectangular area, it is determined that the data point of the label to be added
Label distributed areas it is overlapping with the visuals of the trend graph.
Alternatively, the multiple preset direction includes first direction and second direction, the first direction and described second
Direction opposite direction each other;Computer executable instructions when executed, can also make the processor, in the trend graph
Add tagged data point first, it is along the first direction or described second in the trend graph to determine its label distributed areas
The farthest in direction.
Alternatively, the trend graph includes financial trend graph or weather trend graph.
By adding tagged equipment in the embodiment of the present application, it can ensure that each label for being added in trend graph is mutual
It is not overlapping, so as to ensure the readability of trend graph, facilitate user to browse each label in trend graph and figure;The embodiment of the present application
Middle label substance can be set by user, facilitate user to be made marks when trend graph is browsed;The embodiment of the present application can be certainly
It is dynamic to determine label position, so as to eliminate the operation that user adjusts label position manually, improve Consumer's Experience.
In another specific embodiment, add tagged equipment and include memory, and one or more
Program, one of them or more than one program storage is in memory, and one or more than one program can include
One or more modules, and each module can be included to adding the executable finger of the series of computation machine in tagged equipment
Order, and be configured to by one either more than one computing device this or more than one program bag contain be used to carrying out with
Lower computer executable instructions:
According to the label distribution arrangement and label distributed areas for having added tagged data point in trend graph, according to default
Label distribution occasion determines label distribution arrangement for the data point of label to be added;Wherein, the default label distribution occasion
Including:Each label non-overlapping copies;The label distribution arrangement of data point in the trend graph is towards the top of the trend graph
Direction and towards one in the bottom direction of the trend graph;
On label distribution arrangement according to data point of the default label distribution occasion in the label to be added, it is
The data point of the label to be added determines label distributed areas;
It is the number of the label to be added at the label distributed areas of the data point for the label to be added determined
Add label in strong point.
Alternatively, computer executable instructions when executed, can also make the processor, in the trend graph
Add tagged data point first, it is towards the bottom direction of the trend graph in the trend graph to determine its label distributed areas
Farthest.
By adding tagged equipment in the embodiment of the present application, it can ensure that each label for being added in trend graph is mutual
It is not overlapping, so as to ensure the readability of trend graph, facilitate user to browse each label in trend graph and figure;The embodiment of the present application
Middle label substance can be set by user, facilitate user to be made marks when trend graph is browsed;The embodiment of the present application can be certainly
It is dynamic to determine label position, so as to eliminate the operation that user adjusts label position manually, improve Consumer's Experience.
It is corresponding it is above-mentioned add tagged method, based on identical thinking, the embodiment of the present application additionally provides a kind of storage
Medium, for storing computer executable instructions, in a kind of specific embodiment, the storage medium can be USB flash disk, CD, hard
Disk etc., the computer executable instructions of storage medium storage can realize below scheme when being executed by processor:
According to the label distribution arrangement and label distributed areas for having added tagged data point in trend graph, according to default
Label distribution occasion determines label distribution arrangement and label distributed areas for the data point of label to be added;Wherein, it is described default
Label distribution occasion include:Each label non-overlapping copies;The label distribution arrangement of data point in the trend graph is multiple pre-
One in set direction;
It is described according to the label distribution arrangement of the data point for the label to be added determined and label distributed areas
The data point addition label of label to be added.
Alternatively, the computer executable instructions of storage medium storage are when being executed by processor, according in trend graph
Label distribution arrangement and the label distributed areas of tagged data point are added, have been to be added according to default label distribution occasion
The data point of label determines label distribution arrangement, including:
According to the label distribution arrangement for having added tagged data point, determine that the minimum preset direction of label distribution is made
For the label distribution arrangement of the data point of the label to be added;
Or;
According to the label distribution arrangement and label distributed areas for having added tagged data point, the gross area shared by label is determined
Label distribution arrangement of the minimum preset direction as the data point of the label to be added.
Alternatively, the computer executable instructions of storage medium storage are label to be added when being executed by processor
Data point determine label distributed areas, including:
On the label distribution arrangement of the data point of the label to be added, from the data point of the label to be added with away from
From in the region between nearest label, the region that selection matches with the label to be added is as the label to be added
The label distributed areas of data point.
Alternatively, the computer executable instructions of storage medium storage are when being executed by processor, additionally it is possible to realize:If
In region between the data point of the label to be added and closest label, in the absence of with the label phase to be added
The region matched somebody with somebody, then choose label point of other directions in the multiple preset direction as the data point of the label to be added
Cloth direction.
Alternatively, the computer executable instructions of storage medium storage are when being executed by processor, additionally it is possible to realize:If
The label distributed areas of the data point of the label to be added are overlapping with the visuals of the trend graph, then wait to add described in increase
Tagged transparency, or, choose data of other directions as the label to be added in the multiple preset direction
The label distribution arrangement of point.
Alternatively, the computer executable instructions of storage medium storage are when being executed by processor, additionally it is possible to realize:
On the visuals of the trend graph, determine the label to be added data point label distributed areas corresponding to width model
Enclose;According to maximum and minimum of the visuals in the width range, square corresponding to the width range is determined
Shape region;If the label distributed areas of the data point of the label to be added are overlapping with the rectangular area, it is determined that described to treat
The label distributed areas for adding tagged data point are overlapping with the visuals of the trend graph.
Alternatively, the multiple preset direction includes first direction and second direction, the first direction and described second
Direction opposite direction each other;The computer executable instructions of storage medium storage are when being executed by processor, additionally it is possible to realize:Pin
To adding tagged data point first in the trend graph, it is along described first in the trend graph to determine its label distributed areas
Direction or the farthest of the second direction.
Alternatively, the trend graph includes financial trend graph or weather trend graph.
By the storage medium in the embodiment of the present application, the computer executable instructions that it is stored when executed, can
Ensure each label non-overlapping copies added in trend graph, so as to ensure the readability of trend graph, facilitate user to browse tendency
Each label in figure and figure;Label substance can be set by user in the embodiment of the present application, facilitate user browsing trend graph
When make marks;The embodiment of the present application can automatically determine label position, and label position is adjusted manually so as to eliminate user
Operation, improve Consumer's Experience.
In another specific embodiment, the storage medium can be USB flash disk, CD, hard disk etc., storage medium storage
Computer executable instructions can realize below scheme when being executed by processor:
According to the label distribution arrangement and label distributed areas for having added tagged data point in trend graph, according to default
Label distribution occasion determines label distribution arrangement for the data point of label to be added;Wherein, the default label distribution occasion
Including:Each label non-overlapping copies;The label distribution arrangement of data point in the trend graph is towards the top of the trend graph
Direction and towards one in the bottom direction of the trend graph;
On label distribution arrangement according to data point of the default label distribution occasion in the label to be added, it is
The data point of the label to be added determines label distributed areas;
It is the number of the label to be added at the label distributed areas of the data point for the label to be added determined
Add label in strong point.
Alternatively, the computer executable instructions of storage medium storage are when being executed by processor, moreover it is possible to realize:For
Add tagged data point in the trend graph first, it is towards the tendency in the trend graph to determine its label distributed areas
The farthest of the bottom direction of figure.
By the storage medium in the embodiment of the present application, the computer executable instructions that it is stored when executed, can
Ensure each label non-overlapping copies added in trend graph, so as to ensure the readability of trend graph, facilitate user to browse tendency
Each label in figure and figure;Label substance can be set by user in the embodiment of the present application, facilitate user browsing trend graph
When make marks;The embodiment of the present application can automatically determine label position, and label position is adjusted manually so as to eliminate user
Operation, improve Consumer's Experience.
In the 1990s, the improvement for a technology can clearly distinguish be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And as the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow is programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, PLD
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, its logic function is determined by user to device programming.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, without asking chip maker to design and make
Special IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " patrols
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but have many kinds, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed are most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also should
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
Can is readily available the hardware circuit for realizing the logical method flow.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
Device and storage can by the computer of the computer readable program code (such as software or firmware) of (micro-) computing device
Read medium, gate, switch, application specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and embedded microcontroller, the example of controller include but is not limited to following microcontroller
Device:ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, are deposited
Memory controller is also implemented as a part for the control logic of memory.It is also known in the art that except with
Pure computer readable program code mode realized beyond controller, completely can be by the way that method and step is carried out into programming in logic to make
Controller is obtained in the form of gate, switch, application specific integrated circuit, programmable logic controller (PLC) and embedded microcontroller etc. to come in fact
Existing identical function.Therefore this controller is considered a kind of hardware component, and various for realizing to including in it
The device of function can also be considered as the structure in hardware component.Or even, can be by for realizing that the device of various functions regards
For that not only can be the software module of implementation method but also can be the structure in hardware component.
System, device, module or the unit that above-described embodiment illustrates, it can specifically be realized by computer chip or entity,
Or realized by the product with certain function.One kind typically realizes that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cell phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet PC, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, this is being implemented
The function of each unit can be realized in same or multiple softwares and/or hardware during application.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, the application can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the application can use the computer for wherein including computer usable program code in one or more
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and internal memory.
Internal memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein
Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of elements not only include those key elements, but also wrapping
Include the other element being not expressly set out, or also include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described
Other identical element also be present in the process of element, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product.
Therefore, the application can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Form.Deposited moreover, the application can use to can use in one or more computers for wherein including computer usable program code
The shape for the computer program product that storage media is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The application can be described in the general context of computer executable instructions, such as program
Module.Usually, program module includes performing particular task or realizes routine, program, object, the group of particular abstract data type
Part, data structure etc..The application can also be put into practice in a distributed computing environment, in these DCEs, by
Task is performed and connected remote processing devices by communication network.In a distributed computing environment, program module can be with
In the local and remote computer-readable storage medium including storage device.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.It is real especially for system
For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
Embodiments herein is the foregoing is only, is not limited to the application.For those skilled in the art
For, the application can have various modifications and variations.All any modifications made within spirit herein and principle, it is equal
Replace, improve etc., it should be included within the scope of claims hereof.