Embodiment
In the related art, when carrying out visualization presentation for the 2-D data with the data variation cycle, it is typically
Completed based on cartesian coordinate system (i.e. rectangular coordinate system), or polar coordinate system.
Cartesian coordinate system, is good at showing the linear change of 2-D data, it can be difficult to the periodic regularity of expression data;
And polar coordinate system, by the pole axis and polar angle of 2-D data in the planes, 2-D data is distributed in a circumference, although with
Cartesian coordinate system is compared, and can more intuitively embody the regularity of distribution of data, but by all data distributions in a circumference
It is interior, still it is difficult the periodic regularity for embodying data;
For example, exemplified by carrying out visualization presentation to time series data, referring to Fig. 1, Fig. 1 is derived from Wolfgang
The paper Visual methods for analyzing time-oriented data that Aigner is delivered on IEEE, the opinion
Text have studied the data visualization scheme of preferably expression periodic data rule.In Fig. 1, influenza in somewhere 3 years has been used
The quantity of case is as research object, and left figure has used the linear time base based on cartesian coordinate system, although can embody
Change of the flu casess on linear time base, but do not see any periodic regularity;Right figure has been used based on polar coordinate system
Spiral shape time shaft, and suitable parameter is have chosen 28 days as a loop;It can find out from right figure, average mark in 28 days
4 influenzas of cloth, which are concentrated, to be broken out, it is seen that the flu outbreak frequency of this area is 7 days;However, using spiral shape time shaft, although
Suitable loop parameter is selected, the periodic regularity of data can be also showed, but it is determined that extremely difficult (ratio during loop parameter
Introduced such as in above-mentioned paper and only just select 28 days to be loop parameter, the periodicity of data can be showed), and
Polar coordinate system is based on by all data distributions in a circumference, it is still not straight enough when the periodic regularity of data is presented
See.
In view of this, it is used to carry out visualization wash with watercolours to the 2-D data with the data variation cycle present applicant proposes a kind of
The spiral shape two-dimensional coordinate system of dye, the spiral shape two-dimensional coordinate system includes the spiral shape that the polar angle based on Archimedes spiral is built
Transverse axis, the longitudinal axis that the arm based on Archimedes spiral is built, and the spiral shape two-dimensional coordinate system have been preset corresponding to spiral shell respectively
Revolve the polar angle range intervals of shape transverse axis;And it is interval corresponding to the arms length of the longitudinal axis;When client is for default two dimension
Exist in data acquisition system the data variation cycle 2-D data carry out visualization present when, by from the 2-D data set according to
Secondary reading target 2-D data, and the transverse axis coordinate value of the target 2-D data is mapped into the polar angle range intervals obtained pair
The mapping polar angle value answered, maps to the arms length interval by the ordinate of orthogonal axes value of the target 2-D data and obtains corresponding reflect
Brachium is penetrated, then the mapping polar angle value is converted to the transverse axis coordinate value corresponding to screen coordinate system;And by the mapping brachium
Value is converted to the ordinate of orthogonal axes value corresponding to screen coordinate system, and visualization presentation is carried out in the default painting canvas in screen, so that
User sets rational data by controlling the helical number of turns of the spiral shape two-dimensional coordinate system for the spiral shape two-dimensional coordinate system
Arrangement period, it is possible to the periodic regularity of 2-D data is intuitively presented.
The application is described below by specific embodiment and with reference to specific application scenarios.
Fig. 2 is refer to, Fig. 2 is a kind of visible processing method for data that the embodiment of the application one is provided, applied to number
According to processing client, the data processing client includes the spiral shape two-dimensional coordinate system built based on Archimedes spiral, institute
Stating spiral shape two-dimensional coordinate system includes the spiral shape transverse axis that the polar angle based on Archimedes spiral is built, and based on Archimedes
The longitudinal axis that the arm of helical is built;Wherein, the spiral shape two-dimensional coordinate system has preset the polar angle corresponding to the spiral shape transverse axis
Range intervals;And it is interval corresponding to the arms length of the longitudinal axis;Methods described performs following steps:
Step 201, it is successively read target 2-D data from default 2-D data set;Wherein, the 2-D data
There is the default data variation cycle in the 2-D data in set;
Above-mentioned data processing client (hereinafter referred to as client), can include 2-D data is carried out to visualize presentation
Client software;
For example, above-mentioned client, can be used to carry out 2-D data visualization processing, and be ultimately present as corresponding
The software of the tools class of visualized graphs;Such as, Alipay (alipay) data visualize with the G2 (The of presentation
Grammar of Graphic) graphical tool.
Above-mentioned 2-D data, specifically refers to that based on cartesian coordinate system the data of (X, Y) can be expressed as;Above-mentioned two-dimemsional number
According to set, including need to carry out visualization presentation, and then excavate the 2-D data of periodic data rule contained in data
Set;Above-mentioned target 2-D data, refers to the 2-D data that visualization presentation is carried out the need for being read from 2-D data set;
Wherein, the type of the 2-D data in above-mentioned 2-D data set, can refer to all and be based on cartesian coordinate system
The 2-D data of (X, Y) can be expressed as;And the periodic data rule present in the 2-D data in above-mentioned 2-D data set
The type of rule, can also refer to the linear or non-of all 2-D datas that can be expressed as (X, Y) based on cartesian coordinate system
Linear cyclically-varying rule, in this application without being particularly limited to;
For example, in a kind of embodiment shown, above-mentioned 2-D data can be time series data, same it will unify
Count time order and function order arrangement that the numerical value of index is occurred by it 2-D data (inside such as Alipay generation based on
The user data of time series), the time can be represented with transverse axis X, longitudinal axis Y represents numerical value;And the periodicity of above-mentioned 2-D data
Data rule, then (can such as reach most including cyclically-varying rule of the 2-D data in linear time-domain every N days
High point).
In this example, it is above-mentioned when the 2-D data for needing to be directed in above-mentioned 2-D data set, which carries out visualization, to be presented
Client can be successively read target 2-D data from the 2-D data successively, then sit the transverse axis of the target 2-D data
In scale value and ordinate of orthogonal axes value, the spiral shape two-dimensional coordinate system for mapping to above-mentioned client.
Step 202, the transverse axis coordinate value of the target 2-D data is mapped into the polar angle range intervals, obtains correspondence
Mapping polar angle value;And, the ordinate of orthogonal axes value of the target 2-D data is mapped into the arms length interval, obtained pair
The mapping brachium answered;
Fig. 3 is referred to, Fig. 3 is a kind of schematic diagram of the spiral shape two-dimensional coordinate system originally exemplified.
In this application, user is referred to the polar equation r=r of sieve's Archimedes helix0+ a θ, on building
State spiral shape two-dimensional coordinate system;Wherein, r0Value user can based on actual visualization requirement (such as artificial control Ah
The shape of base Mead helical), it 0 can not also be 0 that can be, in this application without being particularly limited to.
As shown in figure 3, the scroll two-dimensional coordinate system, including the spiral shape θ that the polar angle based on Archimedes spiral is built
Axle (relative to the transverse axis of cartesian coordinate system);
For example, when the above-mentioned 2-D data stated in 2-D data set is time series data, the θ axles can be correspondence
In the spiral shape time shaft of the time series data;
And, the spiral shape radius axles that the brachium (the distance between two circle helicals) based on Archimedes spiral is built
(relative to the longitudinal axis of cartesian coordinate system).
By the spiral shape two-dimensional coordinate system, the coordinate at any point on two dimensional surface can be expressed as (θ,
Radius), θ represents the subpoint that any point is projected on the Archimedes spiral in the spiral shape two-dimensional coordinate system, with
Polar angle value corresponding to the line of the origin of the scroll two-dimensional coordinate system;It is any with this and radius represents any point
The length of some line projected between the subpoint on the Archimedes spiral in the spiral shape two-dimensional coordinate system;I.e.
Radius value can be a value for being more than the 0 actual brachium for being less than the Archimedes spiral;
For example, as shown in Figure 3, any point P, can be expressed as (θ, radius) in plane, wherein Q is P points
The subpoint projected on Archimedes spiral (i.e. on helical, and radius values are 0 point);θ represents line OQ institutes
Corresponding polar angle value (in a counterclockwise direction as angle positive direction in Fig. 3);Radius represents P points and projects to Archimedes's spiral shell
The length value of the line PQ between subpoint Q on line;As shown in Figure 3, PQ length value is less than the reality of the Archimedes spiral
Border brachium.
In addition, it is necessary to explanation, for building the above-mentioned spiral shape two-dimensional coordinate system completed:
On the one hand, user is also based on actual demand, and the pole corresponding to θ axles is set for the spiral shape two-dimensional coordinate system
Angular region is interval;For example, θ range intervals [the θ Start, θ corresponding to θ axles can be set for the spiral shape two-dimensional coordinate system
End];
Wherein, the range size of the polar angle range intervals [θ Start, θ End], in this application without being particularly limited to,
User can be set based on actual visualization requirement come self-defined;
For example, when user carries out visualization presentation in the 2-D data in for above-mentioned 2-D data set, if needed
, then can be by the way that θ range intervals [θ Start, θ End] be set by all data distributions on 3 circle Archimedes spirals
For [0,6 π];I.e. in actual applications, user can be by the sizes of the range intervals for controlling the θ, to control the spiral shape two
The helical number of turns of dimension coordinate system.
On the other hand, user is also based on actual demand, sets and corresponds to for the spiral shape two-dimensional coordinate system
The arms length of radius axles is interval;For example, the brachium corresponding to radius axles can be set for the spiral shape two-dimensional coordinate system
Range intervals [0, d];
Wherein, the range size of the arms length interval [0, d], in this application also without being particularly limited to, Yong Huke
To be set based on actual visualization requirement come self-defined;
For example, the polar equation r=r based on spiral of Archimedes0+ a θ, a represent spiral coefficient, usually one
Fixed constant value, and the brachium d=2 π a of spiral of Archimedes, therefore user is in for above-mentioned 2-D data set
When 2-D data carries out visualization presentation, the used canvas size when these 2-D datas are presented can be based on, to set
Suitable spiral coefficient, and then the arms length interval is set to one can be adapted to the reasonable interval of current canvas size
In.
In this example, when the structure of the above-mentioned spiral shape two-dimensional coordinate system of user's completion, and rational θ models are provided with for θ axles
Enclose interval [θ Start, θ End], and be provided with for radius axles after rational arms length interval [0, d], now above-mentioned visitor
The target 2-D data (X, Y) read from above-mentioned 2-D data set can be mapped to as illustrated in FIG. 3 upper by family end
State in spiral shape two-dimensional coordinate system;Specifically, the abscissa value X of the target 2-D data (X, Y) can be mapped to above-mentioned
[θ Start, θ End] is interval, by the ordinate value Y of the target 2-D data (X, Y) map to above-mentioned brachium range intervals [0,
d]。
In a kind of embodiment shown, ensure that above-mentioned target 2-D data is correctly mapped to it is above-mentioned
Spiral shape two-dimensional coordinate system, can be first against target two dimension before starting for target 2-D data execution mapping
Data are normalized, and it is interval that the target 2-D data is normalized into [0,1].
Wherein, when the target 2-D data is normalized into [0,1] interval, it may be usually based on above-mentioned two-dimentional data set
The span of the X-axis coordinate of 2-D data in conjunction be [xMin, xMax], and Y-axis coordinate span for [yMin,
YMax] complete;
For example, can be based on formula be calculated as below come by the abscissa value X and ordinate of orthogonal axes of above-mentioned target 2-D data
Value Y is normalized to [0,1]:
X[0,1]=(x-xMin)/(xMax-xMin)
Y[0,1]=(y-yMin)/(yMax-yMin)
In above formula, X[0,1]Expression is normalized to the X-axis coordinate of [0,1] the interval target 2-D data;
Y[0,1]Expression is normalized to the Y-axis coordinate of [0,1] the interval target 2-D data.
In this example, when normalizing to above-mentioned target 2-D data behind [0,1] interval, then it can be normalized to based on this
[0,1] interval result, continues the X of the transverse axis coordinate after the target 2-D data is normalized[0,1]Map to above-mentioned θ scopes area
Between [θ Start, θ End], and by the target 2-D data normalize after ordinate of orthogonal axes value Y[0,1]Map to above-mentioned brachium model
Enclose interval [0, d].
, wherein it is desired to explanation, due to [0,1] it is interval in each value, generally all with another interval
There is one-to-one relation in value, therefore by X[0,1]And Y[0,1]Map to another interval, specifically refer in another area
Between in find and X[0,1]Or Y[0,1]Numerically completely another corresponding value process;
Such as, interval [0,1] includes 0.01,0.02~1 etc. 100 numerical value, and interval [1,100] includes 1,2~100
Deng 100 numerical value, now in [0,1] there is one-to-one relation in each numerical value with each numerical value in [1,100], because
The value that numerical value 0.02 in [0,1] is mapped in [1,100] interval is 2 by this.
In a kind of embodiment shown, above-mentioned target 2-D data (X, Y) can be normalized by equation below
X-axis coordinate value X afterwards[0,1]Map to above-mentioned polar angle range intervals [θ Start, θ End]:
θ=θ Start+X[0,1](θEnd-θStart)
In above-mentioned formula, θ is represented the X-axis coordinate value X of the target 2-D data after normalization[0,1]Map to [θ
Start, θ End], obtained mapping polar angle value;The mapping polar angle value is one and is more than θ Start, angle less than θ End or
Radian value.
, can be by equation below by above-mentioned target 2-D data (X, Y) normalizing in the another embodiment shown
Y-axis coordinate value Y after change[0,1]Map to above-mentioned polar angle range intervals [0, d]:
Radius=y[0,1]d
In above-mentioned formula, radius is represented Y[0,1]Map to arms length interval [0, d], obtained mapping brachium
Value;The mapping brachium value is one and is more than 0, less than brachium d numerical value.
Step 203, the mapping polar angle value is converted to the transverse axis coordinate value corresponding to screen coordinate system;And will be described
Mapping brachium value is converted to the ordinate of orthogonal axes value corresponding to screen coordinate system, and based on the transverse axis coordinate value and the longitudinal axis after conversion
Coordinate value will carry out visualization presentation in default painting canvas of the target 2-D data in screen..
In this example, successfully it is mapped to as illustrated in FIG. 3 according to mode illustrated above when by target 2-D data (X, Y)
After in the spiral shape two-dimensional coordinate system gone out, now the target 2-D data can be expressed as the form of (θ, radius), so that
The target 2-D data can be labeled in spiral shape two-dimensional coordinate system as illustrated in FIG. 3 by client, be carried out further
Visualization is presented.
Wherein, above-mentioned client for above-mentioned target 2-D data when carrying out visualization presentation, and user can be by upper
Screen of the client in presentation device (the such as one PC main frame for showing visualization result) is stated, pre-configured one is preset
The painting canvas of size;Wherein, the size user of painting canvas can be configured based on actual demand.
When for target 2-D data (X, Y) is successfully mapped into spiral shell as illustrated in FIG. 3 according to mode illustrated above
Revolve after shape two-dimensional coordinate system, the form for being finally expressed as (θ, radius), above-mentioned client can be by the target 2-D data base
It is presented in default visualization presentation mode in the painting canvas.
Wherein, it is complete with spiral shape two-dimensional coordinate system as illustrated in FIG. 3 due to the screen coordinate system of above-mentioned presentation device
Difference, therefore before visualization presentation is carried out for the target 2-D data, in addition it is also necessary to by the target 2-D data (θ,
Radius), the transverse axis coordinate value X ' and ordinate of orthogonal axes value Y ' corresponding to screen coordinate system are converted to.
In a kind of embodiment shown, above-mentioned client can obtain the central point of above-mentioned painting canvas first, correspond to
The coordinate (xCenter, yCenter) of screen coordinate system, and by default helical coefficient a, and the target 2-D data (θ,
Radius mapping polar angle value θ) is as calculating parameter, and the polar equation for being updated to Archimedes spiral calculates the mapping polar angle
The corresponding pole axis length r of value θ.
After mapping polar angle value θ corresponding pole axis length r are calculated, if necessary to further by the target 2-D data
Transverse axis coordinate value X ' and ordinate of orthogonal axes value Y ' of (θ, the radius) conversion corresponding to screen coordinate system, then will can be somebody's turn to do first
The coordinate value (θ, radius) that target 2-D data corresponds to above-mentioned spiral shape two-dimensional coordinate system is converted to corresponding to polar coordinate system
Coordinate value, then further according to the standard handovers relation between polar coordinates and screen coordinate system, to complete target 2-D data
(θ, radius) is converted to the Coordinate Conversion of (X ', the Y ') corresponding to screen coordinate system;
Wherein, due to based on above-mentioned mapping polar angle value θ, and the above-mentioned pole axis length r calculated, polar coordinates table can be used
It is θ, and above-mentioned mapping brachium radius to show a polar angle being located on the helix of above-mentioned spiral shape two-dimensional coordinate system
For 0 mapping point (θ, r);And the mapping point (the θ, r), with above-mentioned target 2-D data (θ, radius) correspondence under polar coordinate system
Compared in the coordinate value of polar coordinate system, polar angle value θ does not change, and pole axis length be r and above-mentioned mapping brachium radius it
With, therefore above-mentioned target 2-D data (θ, radius) can be expressed as (θ, r+ corresponding to the coordinate value of polar coordinate system
radius);
For example, as shown in figure 3, the length that the corresponding pole axis length r of mapping polar angle θ are line segment OQ, the mapping brachium of P points
Radius be line segment QP length, P points correspond to polar coordinate system pole axis length for line segment OQ and line segment QP length sum (i.e.
OP length), then P points, which are based on polar coordinate system, can be expressed as (θ, r+radius).
When above-mentioned client by above-mentioned target 2-D data correspond to above-mentioned spiral shape two-dimensional coordinate system coordinate value (θ,
Radius) be converted to after the coordinate value (θ, r+radius) corresponding to polar coordinate system, now above-mentioned client can be based on above-mentioned
The center point coordinate (xCenter, yCenter) of painting canvas, and the transformational relation between polar coordinate system and the screen coordinate system,
The coordinate value (θ, r+radius) that the target 2-D data corresponds to polar coordinate system is converted to corresponding to the screen coordinate system
Coordinate value (X ', Y '), so that most the mapping polar angle value θ of the target 2-D data (θ, radius) is converted to corresponding to screen at last
The transverse axis coordinate value X ' of coordinate system, and the mapping brachium radius of the target 2-D data (θ, radius) is converted into correspondence
In the ordinate of orthogonal axes value Y ' of screen coordinate system;
For example, so that screen coordinate system is cartesian coordinate system as an example, polar angle value θ and pole axis length p, with cartesian coordinate system
Transverse axis coordinate value X and ordinate of orthogonal axes value Y between transformational relation, be usually:
X=pcos θ;
Y=psin θ;
Therefore, in the case where considering the coordinate (xCenter, yCenter) of central point of above-mentioned painting canvas, above-mentioned conversion is closed
System can be expressed as:
X '=xCenter+cos (θ) (r+radius)
Y '=yCenter+sin (θ) (r+radius)
Above-mentioned client can be by the center point coordinate (xCenter, yCenter), and the target 2-D data
Corresponding to the coordinate value (θ, r+radius) of polar coordinate system, the expression formula of above-mentioned transformational relation is substituted into as parametric variable, so that it may
To calculate the transverse axis coordinate value X ' that the mapping polar angle value θ of target 2-D data (θ, radius) corresponds to screen coordinate system, with
And the mapping brachium radius of target 2-D data (θ, radius) corresponds to the ordinate of orthogonal axes value Y ' of screen coordinate system.
Expression formula more than is visible, and target 2-D data is being corresponded to the coordinate of above-mentioned spiral shape two-dimensional coordinate system
When value (θ, radius) is converted to coordinate value (X ', the Y ') corresponding to screen coordinate system, transverse axis coordinate value X ' and ordinate of orthogonal axes
Value Y ' value size, will be together decided on by above-mentioned mapping polar angle θ and mapping brachium radius value.
In this example, when the mapping polar angle value θ for calculating target 2-D data (θ, radius) corresponds to screen coordinate system
Transverse axis coordinate value X ', and the mapping brachium radius of target 2-D data (θ, radius) corresponds to the vertical of screen coordinate system
After axial coordinate value Y ', above-mentioned target 2-D data can be expressed as (X ', Y ') in screen coordinate system, and now above-mentioned client can
So that target 2-D data (X ', Y ') is labeled in screen coordinate system according to specific visualization presentation mode, visualized
Present;
, now can be from above-mentioned two dimension after target 2-D data visualization has been presented in painting canvas by above-mentioned client
Data acquisition system relaying, which is resumed studies, takes next target 2-D data, then repeats process illustrated above continuing with target two dimension
Data carry out visualization presentation, and detailed process is repeated no more.When all 2-D datas in above-mentioned 2-D data set are presented
After in above-mentioned painting canvas, the now visualization for the above-mentioned 2-D data set is presented process and terminated.
Wherein, specifically can point when carrying out visualization presentation in by target two dimension according to the above-mentioned painting canvas in screen
Any form in shape figure number, line graph, block diagram, administrative division map, or other types of visualization presentation mode, in screen
Above-mentioned painting canvas in carry out visualization presentation.
For example, refer to Fig. 4~7, Fig. 4~7 for shown in the application based on spiral shape two-dimensional coordinate system respectively with point-like
Figure, line graph, block diagram, the form of administrative division map carry out the schematic diagram of visual presentation to 2-D data.With phase illustrated in fig. 1
The visualization that there is the 2-D data of periodic data change is presented based on cartesian coordinate system and polar coordinate system in the technology of pass
Scheme is compared, and scheme is presented in the visualization based on spiral shape two-dimensional coordinate system gone out as also shown in e.g. figs. 4-7, can be more intuitively
Show the periodic regularity of 2-D data.
In addition, it is necessary to which explanation, in actual applications, due to the 2-D data in above-mentioned 2-D data set, is present
Certain data variation cycle, and the quantity of each data variation cycle corresponding 2-D data generally remain it is constant, therefore
It is in based on spiral shape two-dimensional coordinate system as illustrated in FIG. 3, visualization is carried out to the 2-D data in the 2-D data set
Now, user can be set by controlling the helical number of turns of the spiral shape two-dimensional coordinate system for the spiral shape two-dimensional coordinate system
The rational data arrangement cycle, and then the periodic regularity of the 2-D data in the 2-D data set is more intuitively presented.
In a kind of embodiment shown, user can be set by the θ axles for above-mentioned spiral shape two-dimensional coordinate system and be closed
The θ spans of reason are interval [θ Start, θ End], to control the number of turns of helical;Such as, θ spans interval can be set
For [0,6 π], the helical number of turns of the spiral shape two-dimensional coordinate system is set to 3 circles (each π of circle 2);Due to above-mentioned two-dimentional data set
The constant number of 2-D data in conjunction, therefore user is by controlling the helical number of turns of the spiral shape two-dimensional coordinate system, Ke Yijin
The quantity of the 2-D data presented on each circle helical of one step control.
In this case, user based on spiral shape two-dimensional coordinate system as illustrated in FIG. 3 to above-mentioned two-dimentional data set
During 2-D data in conjunction carries out visualization presentation, it is only necessary to by controlling the number of turns of helical, by spiral shape two dimension
The quantity of the 2-D data presented in coordinate system on each circle helical, is set to and each data in above-mentioned 2-D data set
The quantity of the corresponding 2-D data of period of change is identical, or is set to and each data variation in above-mentioned 2-D data set
The integral multiple of the quantity of cycle corresponding 2-D data;I.e. above-mentioned spiral shape two-dimensional coordinate system each circle helical correspondence one or
During the individual data periods of change of person N (integer), it is possible to more intuitively show the 2-D data in above-mentioned 2-D data set
The data variation cycle;
For example, it is assumed that including 100 in 2-D data set altogether treats the 2-D data that visualization is presented, altogether including 10
Individual data period of change, each data variation cycle 10 2-D datas of correspondence (reach highest every 10 2-D datas
Point), user can be interval [0,10 π] by the θ spans of above-mentioned spiral shape two-dimensional coordinate system, totally 5 circle helical, when based on
The spiral shape two-dimensional coordinate system carries out this 100 2-D datas after visualization presentation, and now each circle helical averagely shows 20
Individual 2-D data, i.e., each circle helical averagely shows 2 data periods of change, so as to intuitively give expression to the cycle of data
Property changing rule.
It can be seen that, to 2-D data visualize the side of presentation based on spiral shape two-dimensional coordinate system as illustrated in FIG. 3
Case, compared with the visual presentation scheme based on cartesian coordinate system and based on polar coordinate system shown in Fig. 1:
On the one hand, user it is determined that each loop loop parameter when, be more prone to, it is only necessary to by controlling solenoid
Number, by the quantity phase of the quantity 2-D data corresponding with each data variation cycle of the 2-D data of each circle helical displaying
Together, or into integral multiple, it is possible to intuitively show the periodic regularity of 2-D data;
On the other hand, using the spiral shape two-dimensional coordinate system based on Archimedes spiral, by all 2-D datas along spiral shell
Line is evenly distributed in painting canvas, and the effect of visualization of data is more preferably directly perceived, is contained using deep excavate in 2-D data set
Periodic regularity.
By above example, it is used to enter the 2-D data with the data variation cycle present applicant proposes a kind of
The spiral shape two-dimensional coordinate system that row visualization is rendered, the spiral shape two-dimensional coordinate system includes the polar angle structure based on Archimedes spiral
The spiral shape transverse axis built, the longitudinal axis that the arm based on Archimedes spiral is built, and the spiral shape two-dimensional coordinate system are preset respectively
Correspond to the polar angle range intervals of spiral shape transverse axis;And it is interval corresponding to the arms length of the longitudinal axis;
When the 2-D data that client has the data variation cycle in for default 2-D data set is carried out visually
Change when presenting, by being successively read target 2-D data from the 2-D data set, and by the transverse axis of the target 2-D data
Coordinate value maps to the polar angle range intervals and obtains corresponding mapping polar angle value, by the ordinate of orthogonal axes value of the target 2-D data
Map to the arms length interval and obtain corresponding mapping brachium, then the mapping polar angle value is converted to and sat corresponding to screen
Mark the transverse axis coordinate value of system;And the mapping brachium value is converted into the ordinate of orthogonal axes value corresponding to screen coordinate system, in screen
In default painting canvas in carry out visualization presentation so that user is come by controlling the helical number of turns of the spiral shape two-dimensional coordinate system
Be set for the spiral shape two-dimensional coordinate system, it is possible to the periodicity rule of 2-D data are intuitively presented the rational data arrangement cycle
Rule.
Corresponding with above method embodiment, present invention also provides the embodiment of device.
Fig. 8 is referred to, the application proposes a kind of visualization processing device 80 of data, applied to data processing client;
Wherein, the data processing client includes the spiral shape two-dimensional coordinate system built based on Archimedes spiral, the spiral shape
Two-dimensional coordinate system includes the spiral shape transverse axis that the polar angle based on Archimedes spiral is built, and the arm based on Archimedes spiral
The longitudinal axis of structure;Wherein, the spiral shape two-dimensional coordinate system has preset the polar angle range intervals corresponding to the spiral shape transverse axis;
And it is interval corresponding to the arms length of the longitudinal axis;
Fig. 9 is referred to, as involved by the data processing client for the visualization processing device 80 for carrying the data
In hardware structure, CPU, internal memory, nonvolatile memory, network interface and internal bus etc. are generally included;It is implemented in software
Exemplified by, the visualization processing device 80 of the data is generally understood that the computer program being carried in internal memory, passes through CPU
The logic device that the software and hardware formed after operation is combined, the system 80 includes:
Read module 801, target 2-D data is successively read from default 2-D data set;Wherein, the two dimension
There is the default data variation cycle in the 2-D data in data acquisition system;
Mapping block 802, maps to the polar angle range intervals by the transverse axis coordinate value of the target 2-D data, obtains
Corresponding mapping polar angle value;And, the ordinate of orthogonal axes value of the target 2-D data is mapped into the arms length interval, obtained
To corresponding mapping brachium;
Modular converter 803, the mapping polar angle value is converted to the transverse axis coordinate value corresponding to screen coordinate system;And will
The mapping brachium value is converted to the ordinate of orthogonal axes value corresponding to screen coordinate system;
Module 804 is presented, the target 2-D data is existed based on the transverse axis coordinate value and ordinate of orthogonal axes value after conversion
Visualization presentation is carried out in default painting canvas in screen.
In this example, the number of the target 2-D data presented in each circle helical of the spiral shape two-dimensional coordinate system
Amount is identical with the quantity of the 2-D data corresponding to the data variation cycle;Or, the spiral shape two-dimensional coordinate system it is every
The quantity of the target 2-D data presented in one circle helical, for the number of the 2-D data corresponding to the data variation cycle
The integral multiple of amount.
In this example, the mapping block 802:
The target 2-D data (X, Y) is normalized to by [0,1] interval by equation below;
X[0,1]=(x-xMin)/(xMax-xMin)
Y[0,1]=(y-yMin)/(yMax-yMin)
Wherein, the span of the X-axis coordinate of the 2-D data in the 2-D data set is [xMin, xMax];Y-axis
The span of coordinate is [yMin, yMax];X[0,1]Expression is normalized to the X-axis of [0,1] the interval target 2-D data
Coordinate;Y[0,1]Expression is normalized to the Y-axis coordinate of [0,1] the interval target 2-D data.
In this example, the mapping block 802 is further:
The X-axis coordinate value of the target 2-D data (X, Y) is mapped to by the polar angle range intervals by equation below:
θ=θ Start+X[0,1](θEnd-θStart)
Wherein, the polar angle range intervals are [θ Start, θ End];θ is represented X[0,1]Map to the polar angle scope area
Between [θ Start, θ End], obtained mapping polar angle value;
The ordinate of orthogonal axes value by the target 2-D data maps to the arms length interval, including:
The Y-axis coordinate value of the target 2-D data (X, Y) is mapped to by the arms length interval by equation below:
Radius=y[0,1]d
Wherein, the arms length interval is [0, d];Radius is represented Y[0,1]Map to the arms length interval
[0, d], obtained mapping brachium value.
In this example, the modular converter 803:
The central point for obtaining the default painting canvas corresponds to the coordinate (xCenter, yCenter) of the screen coordinate system;
The central point for obtaining the default painting canvas corresponds to the coordinate (xCenter, yCenter) of the screen coordinate system;
Polar equation based on default helical coefficient a, the mapping polar angle value θ, and Archimedes spiral is calculated
Corresponding to the pole axis length r of the mapping polar angle value θ;
Based on mapping polar angle value θ, the pole axis length r, and the mapping brachium value radius, by the target
2-D data is converted to the coordinate corresponding to polar coordinate system corresponding to the coordinate value (θ, radius) of the spiral shape two-dimensional coordinate
It is worth (θ, r+radius);
Based on the center point coordinate (xCenter, yCenter), and between polar coordinate system and the screen coordinate system
Transformational relation, by the target 2-D data correspond to polar coordinate system coordinate value (θ, r+radius) be converted to corresponding to institute
State the coordinate value (X ', Y ') of screen coordinate system.
In this example, the modular converter 803 is further:
The center point coordinate (xCenter, yCenter), and the target 2-D data are corresponded into polar coordinate system
Coordinate value (θ, r+radius) as parametric variable, the target 2-D data is calculated based on equation below and corresponds to the screen
The coordinate value (X ', Y ') of curtain coordinate system:
X '=xCenter+cos (θ) (r+radius);
Y '=yCenter+sin (θ) (r+radius).
In this example, the presentation module 804:
By any form in target two dimension according to this scattergram number, line graph, block diagram and administrative division map in screen
In default painting canvas in carry out visualization presentation.
In this example, the two-dimentional data set is combined into time series data set;When the spiral shape transverse axis is spiral shape
Countershaft.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method
Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component
The unit of explanation can be or may not be physically separate, and the part shown as unit can be or can also
It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Selection some or all of module therein is needed to realize the purpose of application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
System, device, module or unit that above-described embodiment is illustrated, can specifically be realized by computer chip or entity,
Or realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cell phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet PC, wearable device or these equipment
The combination of any several equipment.
Those skilled in the art will readily occur to its of the application after considering specification and putting into practice invention disclosed herein
Its embodiment.The application is intended to any modification, purposes or the adaptations of the application, these modifications, purposes or
Person's adaptations follow the general principle of the application and including the undocumented common knowledge in the art of the application
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the application and spirit are by following
Claim is pointed out.
It should be appreciated that the precision architecture that the application is not limited to be described above and is shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.Scope of the present application is only limited by appended claim.
The preferred embodiment of the application is the foregoing is only, not to limit the application, all essences in the application
God is with principle, and any modification, equivalent substitution and improvements done etc. should be included within the scope of the application protection.