CN104318061B - Data display processing method and processing device for scatter diagram - Google Patents

Data display processing method and processing device for scatter diagram Download PDF

Info

Publication number
CN104318061B
CN104318061B CN201410499378.0A CN201410499378A CN104318061B CN 104318061 B CN104318061 B CN 104318061B CN 201410499378 A CN201410499378 A CN 201410499378A CN 104318061 B CN104318061 B CN 104318061B
Authority
CN
China
Prior art keywords
mark
tail
comet
scatter diagram
target point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410499378.0A
Other languages
Chinese (zh)
Other versions
CN104318061A (en
Inventor
何鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201410499378.0A priority Critical patent/CN104318061B/en
Publication of CN104318061A publication Critical patent/CN104318061A/en
Application granted granted Critical
Publication of CN104318061B publication Critical patent/CN104318061B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a kind of data display processing method and processing device for scatter diagram, this method includes:Obtain original scatter diagram;Determine the target point on original scatter diagram;Calculate translational speed of the target point in preset time;Calculate the moving direction of target point target location on original scatter diagram;Obtain for representing translational speed and the mark for representing moving direction;And mark is shown on original scatter diagram.By the present invention, solve the problems, such as in scatter diagram can not to show in the prior art data and change over time trend, and then intuitively show the effect for the trend that data change over time in scatter diagram.

Description

Data display processing method and processing device for scatter diagram
Technical field
The present invention relates to data processing field, in particular to a kind of data display processing method for scatter diagram And device.
Background technology
Scatter diagram is a kind of present graphical of basic observation data, can be with display data according to the different attribute of figure Different dimensions.Either rectangular coordinate system or polar coordinate system, the point in scatter diagram can pass through two different dimensions and represent The position of point in the graphic, such as rectangular coordinate system are that the position of point is represented by X-axis and Y-axis, and polar coordinates are then by radius r The position of point is represented with angle theta.In addition, the attribute such as the size at scatter diagram midpoint, color, shape can also display data Different dimensions.But because scatter diagram is static chart, therefore, it is difficult to directly represent that data change with time by figure Gesture so that scatter diagram is to index expressive ability Shortcomings as time change and ring ratio.
For the problem of data change over time trend can not be showed in correlation technique in scatter diagram, not yet propose at present Effective solution.
The content of the invention
It is a primary object of the present invention to provide a kind of data display processing method and processing device for scatter diagram, to solve The problem of data change over time trend can not be showed in scatter diagram in the prior art.
To achieve these goals, according to an aspect of the invention, there is provided a kind of data display for scatter diagram Processing method.
Included according to the data display processing method for scatter diagram of the present invention:Obtain original scatter diagram;Determine original Target point on scatter diagram;Calculate translational speed of the target point in preset time;Calculate target point target on original scatter diagram The moving direction of position;Obtain for representing translational speed and the mark for representing moving direction;And in original scatter diagram Upper displaying mark.
Further, target point is being calculated in the translational speed of preset time and is calculating target point mesh on original scatter diagram Before the moving direction of cursor position, method also includes:Obtain first coordinate of the target point in the start time point of preset time;Obtain Second coordinate of the target point at the termination time point of preset time is taken, wherein, calculate translational speed of the target point in preset time Including:The movable length of target point is calculated according to the first coordinate and the second coordinate, is calculated and moved according to movable length and preset time Dynamic speed, wherein, calculating target point moving direction of target location on original scatter diagram includes:According to the first coordinate and second Coordinate calculates the moving direction of target point.
Further, obtain for representing translational speed and being used to represent for representing that the mark of moving direction includes drawing Moving direction and the tail of a comet of translational speed mark, tail of a comet mark include arc mark, and the number of arc mark is used to identify movement Speed, the direction indicated by the arc top of arc mark represent moving direction, obtain for representing translational speed and for representing to move The mark in dynamic direction includes:Tail of a comet identification length is calculated, wherein, the length of tail of a comet mark is used for the mobile speed for representing target point Degree;The direction of tail of a comet mark is calculated, wherein, the direction of tail of a comet mark is opposite with the moving direction of target point;And according to the tail of a comet Draw tail of a comet mark in the direction of length and the tail of a comet mark of mark.
Further, when arc mark number is multiple, the direction indicated by the arc top of arc mark is identical.
Further, calculating the length of tail of a comet mark includes:Multiple different pre-set intervals are obtained, wherein, pre-set interval Corresponded with the length of the tail of a comet;Judge the pre-set interval belonging to movable length;And based on the preset areas belonging to movable length Between determine the tail of a comet mark length.
To achieve these goals, according to another aspect of the present invention, there is provided a kind of data display for scatter diagram Processing unit.
Included according to the data display processing unit for scatter diagram of the present invention:First acquisition module, for obtaining original Beginning scatter diagram;Determining module, for determining the target point on original scatter diagram;First computing module, exist for calculating target point The translational speed of preset time;Second computing module, for calculating the mobile side of target point target location on original scatter diagram To;Second acquisition module, it is used to represent translational speed and mark for representing moving direction for obtaining;And displaying mould Block, for showing mark on original scatter diagram.
Further, target point is being calculated in the translational speed of preset time and is calculating target point mesh on original scatter diagram Before the moving direction of cursor position, device also includes:3rd acquisition module, for obtaining target point in the starting of preset time Between the first coordinate for putting;4th acquisition module, for obtaining second coordinate of the target point at the termination time point of preset time, its In, calculate target point includes in the translational speed of preset time:The movement of target point is calculated according to the first coordinate and the second coordinate Length, translational speed is calculated according to movable length and preset time, wherein, calculate target point target location on original scatter diagram Moving direction include:The moving direction of target point is calculated according to the first coordinate and the second coordinate.
Further, obtain for representing translational speed and being used to represent for representing that the mark of moving direction includes drawing Moving direction and the tail of a comet of translational speed mark, tail of a comet mark include arc mark, and the number of arc mark is used to identify movement Speed, the direction indicated by the arc top of arc mark represent moving direction, and the second acquisition module includes:First computing unit, use In calculating tail of a comet identification length, wherein, the length of tail of a comet mark is used for the translational speed for representing target point;Second computing unit, For calculating the direction of tail of a comet mark, wherein, the direction of tail of a comet mark is opposite with the moving direction of target point;And draw single Tail of a comet mark is drawn in member, the direction of length and the tail of a comet mark for being identified according to the tail of a comet.
Further, when arc mark number is multiple, the direction indicated by the arc top of arc mark is identical.
Further, the first computing unit includes:Acquiring unit, for obtaining multiple different pre-set intervals, wherein, in advance If the length of section and the tail of a comet corresponds;Judging unit, for judging the pre-set interval belonging to movable length;And determine single Member, for determining the length of tail of a comet mark based on the pre-set interval belonging to movable length.
By the present invention, using the translational speed and moving direction shown in original scatter diagram for representing target point Mark, solve the problems, such as in scatter diagram can not to show in the prior art data and change over time trend, and then Intuitively show the trend effect that data change over time in scatter diagram.
Brief description of the drawings
The accompanying drawing for forming the part of the application is used for providing a further understanding of the present invention, schematic reality of the invention Apply example and its illustrate to be used to explain the present invention, do not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the data display processing method for scatter diagram according to embodiments of the present invention;
Fig. 2 is the schematic diagram of scatter diagram according to a first embodiment of the present invention;
Fig. 3 is the moving direction of calculating target point and the schematic diagram of translational speed according to embodiments of the present invention;
Fig. 4 is the schematic diagram of scatter diagram according to a second embodiment of the present invention;And
Fig. 5 is the schematic diagram of the data display processing unit for scatter diagram according to embodiments of the present invention.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use Data can exchange in the appropriate case, so as to embodiments of the invention described herein.In addition, term " comprising " and " tool Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing the system of multiple components, production Product or equipment are not necessarily limited to those components clearly listed, but may include not list clearly or for these productions The other components of product or equipment inherently.
According to embodiments of the present invention, there is provided a kind of data display processing method for scatter diagram, Fig. 1 is according to this hair The flow chart of the data display processing method for scatter diagram of bright embodiment.
As shown in figure 1, this method includes steps S102 to step S112:
Step S102:Obtain original scatter diagram.
Original scatter diagram is that the static state of the data at each statistics moment is showed.Original scatter diagram represents in dots Each object of observation, as shown in Fig. 2 during natural language statistical disposition, using corn as kernel keyword, wrapped in statistics In the article of the corn containing keyword, often comprising the word related to corn such as corn price, corn oil and corn seed, therefore Using corn as in the original scatter diagram of the origin of coordinates, the point in the original scatter diagram is corresponded in the related object of corn, Such as corn price, corn oil, corn seed, the distance of point and origin corresponding to different objects represent that the object closes with core The correlation of keyword corn, for example, corn price, corn oil and jade in counting 100 using corn as the article of kernel keyword The number of the appearance of these three words of rice seed, occurrence number represents bigger with the correlation of corn.In original scatter diagram Point is only indicated in the data of current statistic moment object of observation.
Step S104:Determine the target point on original scatter diagram.
Determine that the target point on original scatter diagram determines object of observation, such as determine the corn price in scatter diagram to see Survey object, it is determined that point is target point corresponding to corn price in scatter diagram.
Step S106:Calculate translational speed of the target point in preset time.
Each object of observation may change in data at different moments, for example, each the statistics moment counts 100 The number that corn price occurs in using corn as the article of kernel keyword, time that corn price occurs in the different statistics moment Number is often different.Therefore, position of the target point corresponding to corn price in the original scatter diagram that the different statistics moment obtain It can change.Preset time can be from upper one statistics moment to the time between the current statistic moment, by calculating mesh Punctuate can obtain pace of change of the object of observation in preset time in the translational speed of preset time, therefore can weigh observation The change speed degree of object.
Step S108:Calculate the moving direction of target point target location on original scatter diagram.
Target location refers to position of the target point on original scatter diagram, if original scatter diagram is rectangular coordinate system, The target location can represent that wherein x represents that X-coordinate value and y represent Y-coordinate value, if original scatter diagram is pole by (x, y) Coordinate system, then represented by (ρ, θ), wherein ρ represents that radius and θ represent angle.The moving direction of target point is used to represent target The incidence relation of object object corresponding with other points in original scatter diagram corresponding to point, as shown in Fig. 2 arrow represents original The direction of motion at scatter diagram midpoint, point corresponding to corn price move towards the direction of the point corresponding to corn, then illustrate corn Price and the correlation of corn are increasing.
Step S110:Obtain for representing translational speed and the mark for representing moving direction.
For representing translational speed and for representing that the mark of moving direction is used to intuitively show sight corresponding to target point Survey object to change with time trend, the mark can be an arrow or other can show the figure mark in direction Know.
Step S112:Mark is shown on original scatter diagram.
The scatter diagram of prior art is the data that original scatter diagram can only show a statistics moment, can not show number According to the trend of changing with time.By showing above-mentioned mark on original scatter diagram, can obtain one can show observation pair Scatter diagram as changing over time trend.As shown in Fig. 2 the direction of arrow represents the moving direction of object of observation, the length of arrow The translational speed for representing object of observation is spent, by the scatter diagram shown in Fig. 2, can intuitively be found out, the change of corn price Change speed is faster than the pace of change of corn oil, the direction movement put corresponding to point towards corn corresponding to corn price, and corn The opposite direction movement put corresponding to point towards corn corresponding to oily, illustrate the correlation of corn price and corn increasingly Greatly, and the correlation of corn oil and corn is less and less.
The embodiment of the present invention is by calculating the target point in original scatter diagram in the translational speed of preset time and in target The moving direction of position, and by showing in original scatter diagram for representing the translational speed of target point and the mark of moving direction Know, realize the translational speed and moving direction that target point is intuitively shown in original scatter diagram, solve in the prior art The problem of data change over time trend can not be showed in scatter diagram, further reached and showed data in scatter diagram at any time Between the trend that changes.
Alternatively, target point is being calculated in the translational speed of preset time and is calculating target point target on original scatter diagram Before the moving direction of position, method also includes:Obtain first coordinate of the target point in the start time point of preset time;Obtain Second coordinate of the target point at the termination time point of preset time, wherein, calculate translational speed bag of the target point in preset time Include:The movable length of target point is calculated according to the first coordinate and the second coordinate, movement is calculated according to movable length and preset time Speed, wherein, calculating target point moving direction of target location on original scatter diagram includes:Sat according to the first coordinate and second Mark calculates the moving direction of target point.
As shown in figure 3, the first coordinate in the start time point of preset time is P00, θ0), in the termination of preset time Second coordinate at time point is P11, θ1), the distance between two coordinate points r can be obtained according to the cosine law, obtained:
The distance r of two coordinate points is displacement of the target point in preset time, by distance r and preset time both The translational speed of target point can be obtained.
The vertical angles for remembering a sides are αa, then according to sine, obtain:
Straight line where extending point P1P0 intersects with X-axis, and note angle is α, then obtains:
α=αa1
α represents that target point, should from the start time point of preset time to the direction of motion for terminating time point of preset time Direction is used for the moving direction for representing target point target location on original scatter diagram.
Alternatively, obtain for representing translational speed and being used to represent to move for representing that the mark of moving direction includes drawing Dynamic direction and the tail of a comet mark of translational speed, tail of a comet mark include arc mark, and the number of arc mark is used to identify mobile speed Degree, the direction indicated by the arc top of arc mark represent moving direction, obtained for representing translational speed and for representing mobile The mark in direction includes:Tail of a comet identification length is calculated, wherein, the length of tail of a comet mark is used for the translational speed for representing target point; The direction of tail of a comet mark is calculated, wherein, the direction of tail of a comet mark is opposite with the moving direction of target point;And identified according to the tail of a comet Length and the tail of a comet mark direction draw the tail of a comet mark.
The tail that the tail of a comet is identified when being moved with comet in starry sky in tow is similar, as shown in figure 4, tail of a comet mark is expressed as arc Mark, the number of the arc mark of point is 2 corresponding to corn oil, and the arc mark number of point corresponding to corn seed is 3, corn The arc mark number of point corresponding to price is 3, illustrate shifting of the translational speed more than corn oil of corn price and corn seed Dynamic speed.The arc top of arc mark identifies the summit of outwardly convex part for arc, and the direction indicated by arc top is target point The moving direction of the direction on sensing arc top, the direction and target point is on the contrary, from fig. 4, it can be seen that corn oil and corn price institute Corresponding point is moved towards the direction of the point corresponding to corn, and the opposite direction of the point corresponding to corn seed towards corn is moved It is dynamic.
Alternatively, when arc mark number is multiple, the direction indicated by the arc top of arc mark is identical.
In order to intuitively represent the moving direction of target point, when arc mark number is multiple, all arcs marks Arc top instruction direction it is identical.
Alternatively, calculating the length of tail of a comet mark includes:Obtain multiple different pre-set intervals, wherein, pre-set interval with The length of the tail of a comet corresponds;Judge the pre-set interval belonging to movable length;And based on the pre-set interval belonging to movable length Determine the length of tail of a comet mark.
The length of tail of a comet mark shows as the number for the radian that the tail of a comet includes, and number more at most represents the mobile speed of target point Degree is faster.The length of tail of a comet mark is discrete data, and target point has been obtained in above-mentioned steps in two seats at different moments The distance r of punctuate, the process that distance r is changed into the length of tail of a comet mark is actually that Data processing continuous variable is discrete The process of change.
Discretization refers to that continuous data cutting be some " sections ".The principle of cutting uses principle of equidistance, will be continuous The span of type variable is uniformly divided into n equal portions, and every part of spacing is equal.Such as r is divided into one group less than 2, distance r positions It is one group when between [2,4], distance r is one group positioned at [4,6] between, the like, the group number of division and group are away from can foundation Depending on actual conditions, wherein, [0,2], [2,4], [4,6] etc. are then pre-set interval.
The number of pre-set interval and tail of a comet mark corresponds, for example, [0,2] corresponding 1 tail of a comet mark, [2,4] are right 2 tail of a comet marks are answered, and [4,6] then correspond to 3 tail of a comet marks, when distance r is 5, belong to pre-set interval [4,6], then target The number of the tail of a comet mark of point is 3.
After the direction of the length of tail of a comet mark and tail of a comet mark is obtained, tail of a comet mark can be drawn in original scatter diagram Know.The length parameter of tail of a comet mark incoming first, generates initial tail of a comet mark figure, i.e., the length parameter identified according to the tail of a comet is drawn One direction identifies figure towards the tail of a comet of X-axis.Then the directioin parameter of tail of a comet mark is passed to, adjusts the angle of initial tail of a comet mark figure Degree, i.e., initial tail of a comet mark figure is rotated by origin of coordinate points, rotated to the direction of the tail of a comet obtained above mark, dissipated original Drawn in point diagram and obtain tail of a comet mark.In some cases, object of observation is expressed as one with target point in original scatter diagram For the circle in the center of circle, then processing can be zoomed in and out to tail of a comet mark according to the size of round radius, the radius of such as circle doubles, Then tail of a comet mark is corresponding to the distance in the center of circle doubles.
As can be seen from the above description, the present invention realizes following technique effect:
The embodiment of the present invention is by calculating the target point in original scatter diagram in the translational speed of preset time and in target The moving direction of position, and by being shown in original scatter diagram for representing the translational speed of target point and the mark of moving direction Know, realize the translational speed and moving direction that target point is intuitively shown in original scatter diagram, solve in the prior art The problem of data change over time trend can not be showed in scatter diagram, further reached and showed data in scatter diagram at any time Between the trend that changes.
It should be noted that can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of Performed in computer system, although also, show logical order in flow charts, in some cases, can be with not The order being same as herein performs shown or described step.
Another aspect according to embodiments of the present invention, there is provided a kind of data display processing unit for scatter diagram, should Data display processing unit for scatter diagram can be used for performing at the data display for scatter diagram of the embodiment of the present invention Reason method, the data display processing method for scatter diagram that the present invention is implemented can also be used to dissipate by the embodiment of the present invention The data display processing unit of point diagram performs.Fig. 5 is that the data display for scatter diagram according to embodiments of the present invention is handled The schematic diagram of device.
As shown in figure 5, the device includes:First acquisition module 10, determining module 20, the first computing module 30, the second meter Calculate module 40, the second acquisition module 50 and display module 60.
First acquisition module 10, for obtaining original scatter diagram.
Original scatter diagram is that the static state of the data at each statistics moment is showed.Original scatter diagram represents in dots Each object of observation, as shown in Fig. 2 during natural language statistical disposition, using corn as kernel keyword, wrapped in statistics In the article of the corn containing keyword, often comprising the word related to corn such as corn price, corn oil and corn seed, therefore Using corn as in the original scatter diagram of the origin of coordinates, the point in the original scatter diagram is corresponded in the related object of corn, Such as corn price, corn oil, corn seed, the distance of point and origin corresponding to different objects represent that the object closes with core The correlation of keyword corn, for example, corn price, corn oil and jade in counting 100 using corn as the article of kernel keyword The number of the appearance of these three words of rice seed, occurrence number represents bigger with the correlation of corn.In original scatter diagram Point is only indicated in the data of current statistic moment object of observation.
Determining module 20, for determining the target point on original scatter diagram.
Determine that the target point on original scatter diagram determines object of observation, such as determine the corn price in scatter diagram to see Survey object, it is determined that point is target point corresponding to corn price in scatter diagram.
First computing module 30, for calculating translational speed of the target point in preset time.
Each object of observation may change in data at different moments, for example, each the statistics moment counts 100 The number that corn price occurs in using corn as the article of kernel keyword, time that corn price occurs in the different statistics moment Number is often different.Therefore, position of the target point corresponding to corn price in the original scatter diagram that the different statistics moment obtain It can change.Preset time can be from upper one statistics moment to the time between the current statistic moment, by calculating mesh Punctuate can obtain pace of change of the object of observation in preset time in the translational speed of preset time, therefore can weigh observation The change speed degree of object.
Second computing module 40, for calculating the moving direction of target point target location on original scatter diagram.
Target location refers to position of the target point on original scatter diagram, if original scatter diagram is rectangular coordinate system, The target location can represent that wherein x represents that X-coordinate value and y represent Y-coordinate value, if original scatter diagram is pole by (x, y) Coordinate system, then represented by (ρ, θ), wherein ρ represents that radius and θ represent angle.The moving direction of target point is used to represent target The incidence relation of object object corresponding with other points in original scatter diagram corresponding to point, as shown in Fig. 2 arrow represents original The direction of motion at scatter diagram midpoint, point corresponding to corn price move towards the direction of the point corresponding to corn, then illustrate corn Price and the correlation of corn are increasing.
Second acquisition module 50, it is used to represent translational speed and mark for representing moving direction for obtaining.
For representing translational speed and for representing that the mark of moving direction is used to intuitively show sight corresponding to target point Survey object to change with time trend, the mark can be an arrow or other can show the figure mark in direction Know.
Display module 60, for showing mark on original scatter diagram.
The scatter diagram of prior art is the data that original scatter diagram can only show a statistics moment, can not show number According to the trend of changing with time.By showing above-mentioned mark on original scatter diagram, can obtain one can show observation pair Scatter diagram as changing over time trend.As shown in Fig. 2 the direction of arrow represents the moving direction of object of observation, the length of arrow The translational speed for representing object of observation is spent, by the scatter diagram shown in Fig. 2, can intuitively be found out, the change of corn price Change speed is faster than the pace of change of corn oil, the direction movement put corresponding to point towards corn corresponding to corn oil, and corn oil Opposite direction movement is put corresponding to corresponding point towards corn, illustrates that the correlation of corn price and corn is increasing, and The correlation of corn oil and corn is less and less.
The present invention calculates translational speed of the target point in original scatter diagram in preset time by the first computing module 30 Moving direction of the target point in target location is calculated with the second computing module 40, is obtained by the second acquisition module 50 for representing Translational speed and the mark for representing moving direction, and the mark is shown in original scatter diagram by display module 60, it is real The translational speed and moving direction of target point are intuitively shown in present original scatter diagram, solving can not dissipate in the prior art Show the problem of data change over time trend in point diagram, further reached and showed what data changed over time in scatter diagram Trend.
Alternatively, target point is being calculated in the translational speed of preset time and is calculating target point target on original scatter diagram Before the moving direction of position, device also includes:3rd acquisition module, for obtaining initial time of the target point in preset time First coordinate of point;4th acquisition module, for obtaining second coordinate of the target point at the termination time point of preset time, its In, calculate target point includes in the translational speed of preset time:The movement of target point is calculated according to the first coordinate and the second coordinate Length, translational speed is calculated according to movable length and preset time, wherein, calculate target point target location on original scatter diagram Moving direction include:The moving direction of target point is calculated according to the first coordinate and the second coordinate.
As shown in figure 3, the first coordinate in the start time point of preset time is P00, θ0), in the termination of preset time Second coordinate at time point is P11, θ1), the distance between two coordinate points r can be obtained according to the cosine law, obtained:
The distance r of two coordinate points is displacement of the target point in preset time, by distance r and preset time both The translational speed of target point can be obtained.
The vertical angles for remembering a sides are αa, then according to sine, obtain:
Straight line where extending point P1P0 intersects with X-axis, and note angle is α, then obtains:
α=αa1
α represents that target point, should from the start time point of preset time to the direction of motion for terminating time point of preset time Direction is used for the moving direction for representing target point target location on original scatter diagram.
Alternatively, obtain for representing translational speed and being used to represent to move for representing that the mark of moving direction includes drawing Dynamic direction and the tail of a comet mark of translational speed, tail of a comet mark include arc mark, and the number of arc mark is used to identify mobile speed Degree, the direction indicated by the arc top of arc mark represent moving direction, and the second acquisition module includes:First computing unit, is used for Tail of a comet identification length is calculated, wherein, the length of tail of a comet mark is used for the translational speed for representing target point;Second computing unit, use In the direction for calculating tail of a comet mark, wherein, the direction of tail of a comet mark is opposite with the moving direction of target point;And drawing unit, Draw tail of a comet mark in the direction of length and the tail of a comet mark for being identified according to the tail of a comet.
The tail that the tail of a comet is identified when being moved with comet in starry sky in tow is similar, as shown in figure 4, tail of a comet mark is expressed as arc Mark, the number of the arc mark of point is 2 corresponding to corn oil, and the arc mark number of point corresponding to corn seed is 3, corn The arc mark number of point corresponding to price is 3, illustrate shifting of the translational speed more than corn oil of corn price and corn seed Dynamic speed.The arc top of arc mark identifies the summit of outwardly convex part for arc, and the direction indicated by arc top is target point The moving direction of the direction on sensing arc top, the direction and target point is on the contrary, from fig. 4, it can be seen that corn oil and corn price institute Corresponding point is moved towards the direction of the point corresponding to corn, and the opposite direction of the point corresponding to corn seed towards corn is moved It is dynamic.
Alternatively, the first computing unit includes:Acquiring unit, for obtaining multiple different pre-set intervals, wherein, preset The length of section and the tail of a comet corresponds;Judging unit, for judging the pre-set interval belonging to movable length;And determine single Member, for determining the length of tail of a comet mark based on the pre-set interval belonging to movable length.
The length of tail of a comet mark shows as the number for the radian that the tail of a comet includes, and number more at most represents the mobile speed of target point Degree is faster.The length of tail of a comet mark is discrete data, and target point has been obtained in above-mentioned steps in two seats at different moments The distance r of punctuate, the process that distance r is changed into the length of tail of a comet mark is actually that Data processing continuous variable is discrete The process of change.
Discretization refers to that continuous data cutting be some " sections ".The principle of cutting uses principle of equidistance, will be continuous The span of type variable is uniformly divided into n equal portions, and every part of spacing is equal.Such as r is divided into one group less than 2, distance r positions It is one group when between [2,4], distance r is one group positioned at [4,6] between, the like, the group number of division and group are away from can foundation Depending on actual conditions, wherein, [0,2], [2,4], [4,6] etc. are then pre-set interval.
The number of pre-set interval and tail of a comet mark corresponds, for example, [0,2] corresponding 1 tail of a comet mark, [2,4] are right 2 tail of a comet marks are answered, and [4,6] then correspond to 3 tail of a comet marks, when distance r is 5, belong to pre-set interval [4,6], then target The number of the tail of a comet mark of point is 3.
After the direction of the length of tail of a comet mark and tail of a comet mark is obtained, tail of a comet mark can be drawn in original scatter diagram Know.The length parameter of tail of a comet mark incoming first, generates initial tail of a comet mark figure, i.e., the length parameter identified according to the tail of a comet is drawn One direction identifies figure towards the tail of a comet of X-axis.Then the directioin parameter of tail of a comet mark is passed to, adjusts the angle of initial tail of a comet mark figure Degree, i.e., initial tail of a comet mark figure is rotated by origin of coordinate points, rotated to the direction of the tail of a comet obtained above mark, dissipated original Drawn in point diagram and obtain tail of a comet mark.In some cases, object of observation is expressed as one with target point in original scatter diagram For the circle in the center of circle, then processing can be zoomed in and out to tail of a comet mark according to the size of round radius, the radius of such as circle doubles, Then tail of a comet mark is corresponding to the distance in the center of circle doubles.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific Hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (8)

  1. A kind of 1. data display processing method for scatter diagram, it is characterised in that including:
    Obtain original scatter diagram;
    Determine the target point on the original scatter diagram;
    Calculate translational speed of the target point in preset time;
    Calculate the moving direction of target point target location on the original scatter diagram;
    Obtain for representing the translational speed and mark for representing the moving direction;And
    The mark is shown on the original scatter diagram;
    Wherein, obtain for representing the translational speed and being used to represent for representing that the mark of the moving direction includes drawing Moving direction and the tail of a comet of translational speed mark, the tail of a comet mark include arc mark, and the number of the arc mark is used for Translational speed is identified, the direction indicated by the arc top of the arc mark represents moving direction, obtained for representing the movement Speed and for representing that the mark of the moving direction includes:
    The tail of a comet identification length is calculated, wherein, the length of the tail of a comet mark is used for the translational speed for representing the target point, The length of the tail of a comet mark shows as the number for the arc mark that the tail of a comet includes;
    The direction of tail of a comet mark is calculated, wherein, the direction of the tail of a comet mark is opposite with the moving direction of the target point;And
    Draw the tail of a comet mark in the direction that the length identified according to the tail of a comet and the tail of a comet identify.
  2. 2. the data display processing method according to claim 1 for scatter diagram, it is characterised in that calculating the mesh Punctuate is in the translational speed of preset time and the moving direction of calculating target point target location on the original scatter diagram Before, methods described also includes:
    Obtain first coordinate of the target point in the start time point of the preset time;
    Second coordinate of the target point at the termination time point of the preset time is obtained,
    Wherein, the translational speed for calculating the target point in preset time includes:Sat according to first coordinate and described second Mark calculates the movable length of the target point, and the translational speed is calculated according to the movable length and the preset time,
    Wherein, calculating target point moving direction of target location on the original scatter diagram includes:According to described first Coordinate and second coordinate calculate the moving direction of the target point.
  3. 3. the data display processing method according to claim 2 for scatter diagram, it is characterised in that when the arc mark When knowledge number is multiple, the direction indicated by the arc top of the arc mark is identical.
  4. 4. the data display processing method according to claim 2 for scatter diagram, it is characterised in that calculate the tail of a comet The length of mark includes:
    Multiple different pre-set intervals are obtained, wherein, the pre-set interval and the length of the tail of a comet correspond;
    Judge the pre-set interval belonging to the movable length;And
    The length of the tail of a comet mark is determined based on the pre-set interval belonging to the movable length.
  5. A kind of 5. data display processing unit for scatter diagram, it is characterised in that including:
    First acquisition module, for obtaining original scatter diagram;
    Determining module, for determining the target point on the original scatter diagram;
    First computing module, for calculating translational speed of the target point in preset time;
    Second computing module, for calculating the moving direction of target point target location on the original scatter diagram;
    Second acquisition module, it is used to represent the translational speed and mark for representing the moving direction for obtaining;With And
    Display module, for showing the mark on the original scatter diagram;
    Wherein, obtain for representing the translational speed and being used to represent for representing that the mark of the moving direction includes drawing Moving direction and the tail of a comet of translational speed mark, the tail of a comet mark include arc mark, and the number of the arc mark is used for Translational speed is identified, the direction indicated by the arc top of the arc mark represents moving direction, and second acquisition module includes:
    First computing unit, for calculating the tail of a comet identification length, wherein, the length of the tail of a comet mark is used to represent described The translational speed of target point, the length of the tail of a comet mark show as the number for the arc mark that the tail of a comet includes;
    Second computing unit, for calculating the direction of tail of a comet mark, wherein, the direction of the tail of a comet mark and the target point Moving direction is opposite;And
    The tail of a comet mark is drawn in drawing unit, the direction identified for the length identified according to the tail of a comet and the tail of a comet.
  6. 6. the data display processing unit according to claim 5 for scatter diagram, it is characterised in that calculating the mesh Punctuate is in the translational speed of preset time and the moving direction of calculating target point target location on the original scatter diagram Before, described device also includes:
    3rd acquisition module, for obtaining first coordinate of the target point in the start time point of the preset time;
    4th acquisition module, for obtaining second coordinate of the target point at the termination time point of the preset time,
    Wherein, the translational speed for calculating the target point in preset time includes:Sat according to first coordinate and described second Mark calculates the movable length of the target point, and the translational speed is calculated according to the movable length and the preset time,
    Wherein, calculating target point moving direction of target location on the original scatter diagram includes:According to described first Coordinate and second coordinate calculate the moving direction of the target point.
  7. 7. the data display processing unit according to claim 6 for scatter diagram, it is characterised in that when the arc mark When knowledge number is multiple, the direction indicated by the arc top of the arc mark is identical.
  8. 8. the data display processing unit according to claim 6 for scatter diagram, it is characterised in that described first calculates Unit includes:
    Acquiring unit, for obtaining multiple different pre-set intervals, wherein, the length of the pre-set interval and the tail of a comet is one by one It is corresponding;
    Judging unit, for judging the pre-set interval belonging to the movable length;And
    Determining unit, for determining the length of the tail of a comet mark based on the pre-set interval belonging to the movable length.
CN201410499378.0A 2014-09-25 2014-09-25 Data display processing method and processing device for scatter diagram Active CN104318061B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410499378.0A CN104318061B (en) 2014-09-25 2014-09-25 Data display processing method and processing device for scatter diagram

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410499378.0A CN104318061B (en) 2014-09-25 2014-09-25 Data display processing method and processing device for scatter diagram

Publications (2)

Publication Number Publication Date
CN104318061A CN104318061A (en) 2015-01-28
CN104318061B true CN104318061B (en) 2018-02-02

Family

ID=52373292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410499378.0A Active CN104318061B (en) 2014-09-25 2014-09-25 Data display processing method and processing device for scatter diagram

Country Status (1)

Country Link
CN (1) CN104318061B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763554B (en) * 2018-05-31 2019-10-18 北京航天数据股份有限公司 Methods of exhibiting, device and the realization device of data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1887223A (en) * 2006-07-17 2007-01-03 浙江大学 Dynamic characteristic analysis method of real-time tendency of heart state
CN102799797A (en) * 2012-06-25 2012-11-28 华中科技大学 Cell tracking statistical analysis system and method
CN103182175A (en) * 2007-02-14 2013-07-03 耐克国际有限公司 Collection and display of athletic information
CN103473473A (en) * 2013-09-26 2013-12-25 深圳市华傲数据技术有限公司 Data quality detection method and system based on scatter diagram
CN103472979A (en) * 2013-09-26 2013-12-25 深圳市华傲数据技术有限公司 Visualization method and system for data display based on scatter diagram

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7272506B2 (en) * 2002-03-01 2007-09-18 Applera Corporation Computer algorithm for automatic allele determination from fluorometer genotyping device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1887223A (en) * 2006-07-17 2007-01-03 浙江大学 Dynamic characteristic analysis method of real-time tendency of heart state
CN103182175A (en) * 2007-02-14 2013-07-03 耐克国际有限公司 Collection and display of athletic information
CN102799797A (en) * 2012-06-25 2012-11-28 华中科技大学 Cell tracking statistical analysis system and method
CN103473473A (en) * 2013-09-26 2013-12-25 深圳市华傲数据技术有限公司 Data quality detection method and system based on scatter diagram
CN103472979A (en) * 2013-09-26 2013-12-25 深圳市华傲数据技术有限公司 Visualization method and system for data display based on scatter diagram

Also Published As

Publication number Publication date
CN104318061A (en) 2015-01-28

Similar Documents

Publication Publication Date Title
CN105005970A (en) Augmented reality implementation method and apparatus
CN107395958B (en) Image processing method and device, electronic equipment and storage medium
CN105740275B (en) Map-indication method and device
EP3385819A1 (en) Deformable display device and image display method using same
CN104317391A (en) Stereoscopic vision-based three-dimensional palm posture recognition interactive method and system
CN104680532A (en) Object labeling method and device
JP2009545813A (en) Establish and use dominant lines of images
US9684977B2 (en) Method and apparatus for road map rendering
CN103279290B (en) Mobile equipment display packing and mobile equipment
CN102999926A (en) Low-level feature integration based image vision distinctiveness computing method
CN102509072B (en) Method for detecting salient object in image based on inter-area difference
CN104318061B (en) Data display processing method and processing device for scatter diagram
CN103995771A (en) Task progress display method and system
CN108447023A (en) Image processing method, device and electronic equipment
CN109976624A (en) Image display method, device, equipment and computer readable storage medium
CN112365572B (en) Rendering method based on surface subdivision and related products thereof
CN103218775A (en) Method of changing faces in portrait photos
CN104008122A (en) Dynamic multi-stage pie chart display method of layering data
CN110928417B (en) Plane recognition mode augmented reality multi-person sharing interaction method
JP5741952B2 (en) Display system, display method, and program
CN106548184A (en) A kind of method and apparatus of adjustment illumination balance
CN104298345A (en) Control method for man-machine interaction system
CN105022171A (en) Three-dimensional display method and system
CN106331435A (en) Real-time image special-effect display realization method
CN110991050B (en) CAD (computer-aided design) image stacking method and related product

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Data display processing method and device for scatter diagram

Effective date of registration: 20190531

Granted publication date: 20180202

Pledgee: Shenzhen Black Horse World Investment Consulting Co.,Ltd.

Pledgor: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Registration number: 2019990000503

PE01 Entry into force of the registration of the contract for pledge of patent right
CP02 Change in the address of a patent holder

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

Patentee after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Patentee before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder
PP01 Preservation of patent right

Effective date of registration: 20240604

Granted publication date: 20180202