CN106570026A - Bubble chart creation method and apparatus - Google Patents
Bubble chart creation method and apparatus Download PDFInfo
- Publication number
- CN106570026A CN106570026A CN201510654734.6A CN201510654734A CN106570026A CN 106570026 A CN106570026 A CN 106570026A CN 201510654734 A CN201510654734 A CN 201510654734A CN 106570026 A CN106570026 A CN 106570026A
- Authority
- CN
- China
- Prior art keywords
- target
- interval
- mapping relations
- value element
- target value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/904—Browsing; Visualisation therefor
Abstract
The invention discloses a bubble chart creation method and apparatus. The method comprises the steps of obtaining a target data sequence, wherein the target data sequence comprises a plurality of target numerical elements; determining a plurality of target intervals according to the target numerical elements, wherein the number of the target intervals is greater than or equal to the number of the target numerical elements; establishing target mapping relationships between the target numerical elements and the target intervals according to preset rules, wherein each target numerical element corresponds to a target interval; and creating a bubble chart according to the target mapping relationships. According to the method and the apparatus, the technical problem that the display effect is influenced due to bubble overlapping in the bubble chart in related technologies is solved.
Description
Technical field
The application is related to data processing field, in particular to the creation method and device of a kind of bubble diagram.
Background technology
Bubble diagram is a kind of conventional data visualization mode.Similar to scatterplot, difference is that bubble diagram is permitted
Perhaps the variable of an expression size is additionally added in the graph.In fact, this is just as drawing in two dimensions comprising three
The chart of variable is the same.Bubble is represented by labelling (instruction relative importance) of different sizes.Bubble diagram can be represented
The absolute value of data, it is also possible to represent the relativeness between data.Numerical value relatively when, can occur between bubble
Overlap, and then affect display effect.
Can overlap for bubble in bubble diagram in correlation technique, and then affect the technical problem of display effect, at present
Not yet propose effective solution.
The content of the invention
The embodiment of the present application provides a kind of creation method and device of bubble diagram, at least to solve bubble meeting in bubble diagram
Overlap, and then affect the technical problem of display effect.
According to the one side of the embodiment of the present application, there is provided a kind of creation method of bubble diagram, including:Obtain target
Data sequence, wherein, target data sequence includes multiple target value elements;Determined according to multiple target value elements
Multiple target intervals, wherein, the number of multiple target intervals is more than or equal to the number of multiple target value elements;
According to the target mapping relations that preset rules are set up between multiple target value elements and multiple target intervals, wherein, often
One target interval of individual target value element correspondence;And create bubble diagram according to target mapping relations.
Further, determine that multiple target intervals include according to multiple target value elements:Obtain multiple target value units
Minima and maximum in element;Determine the interval range that minima and maximum are formed;And by minima and most
The interval range that big value is formed is evenly dividing as multiple target intervals.
Further, the number of multiple target value elements is predetermined number, and according to preset rules multiple number of targets are set up
Target mapping relations between value element and multiple target intervals include:By multiple target value elements and predetermined number
Target interval sets up one by one mapping relations;Detect whether the target value element corresponding to each target interval is included in mesh
Among mark interval, testing result is obtained;And mapping relations are updated according to testing result, obtain target mapping relations.
Further, multiple target value elements are set up one by one into mapping relations with the target interval of predetermined number includes:
First object numerical value element and first object interval are set up into the first mapping relations, wherein, multiple target value element bags
First object numerical value element is included, multiple target intervals include that first object is interval, detect corresponding to each target interval
Whether target value element is included among target interval includes:Whether detection first object numerical value element is included in first
Among target interval, updating mapping relations according to testing result includes:If detecting that first object numerical value element is included
Among first object interval, then keep the first mapping relations constant;If detecting that first object numerical value element is not wrapped
Among being contained in first object interval, then the second target interval is obtained, wherein, first object numerical value element is included in second
Among target interval;Detect whether the second target interval has set up mapping relations;If detecting the second target interval not
Foundation has mapping relations, then the first mapping relations are updated between first object numerical value element and the second target interval
Mapping relations;And if detecting that the foundation of the second target interval has mapping relations, then keep the first mapping relations constant.
Further, multiple target value elements are set up one by one into mapping relations with the target interval of predetermined number includes:
Multiple target value elements are ranked up according to ascending order, the target value element after being sorted;With
And from the beginning of the minimum target interval of central value in multiple target intervals, according to the order that central value is ascending, will be pre-
If the target interval of number sets up one by one mapping relations with the target value element after sequence successively, wherein, each sequence
Target value element one target interval of correspondence afterwards.
Further, detect the target value element corresponding to each target interval whether to be included among target interval to wrap
Include:According to the order that multiple target value elements are descending, detect whether each target value element is included in successively
In the corresponding target interval of target value element.
Further, before bubble diagram is created according to target mapping relations, the method also includes:Obtain multiple targets
The length of an interval degree that minima and maximum are formed in numerical value element;And default bubble is determined according to length of an interval degree
Width parameter, wherein, 1/N of the bubble width parameter less than or equal to length of an interval degree is preset, N is multiple target areas
Between number, according to target mapping relations create bubble diagram include:Joined according to target mapping relations and default bubble width
Number creates bubble diagram.
Further, before bubble diagram is created according to target mapping relations and default bubble width parameter, the method is also
Including:The intermediate value of multiple target intervals is tied to into target number axis.
Further, before bubble diagram is created according to target mapping relations and default bubble width parameter, the method is also
Including:Multiple target value elements are tied to into bubble suggestion content.
According to the another aspect of the embodiment of the present application, a kind of creating device of bubble diagram is additionally provided, including:First obtains
Unit is taken, for obtaining target data sequence, wherein, target data sequence includes multiple target value elements;First
Determining unit, for determining multiple target intervals according to multiple target value elements, wherein, multiple target intervals
Number of the number more than or equal to multiple target value elements;Unit is set up, for setting up multiple mesh according to preset rules
Target mapping relations between mark numerical value element and multiple target intervals, wherein, each target value element correspondence one
Target interval;And creating unit, for creating bubble diagram according to target mapping relations.
In the embodiment of the present application, by obtaining target data sequence, wherein, target data sequence includes multiple targets
Numerical value element;Determine multiple target intervals according to multiple target value elements, wherein, the number of multiple target intervals is big
In or equal to the number of multiple target value elements;Multiple target value elements and multiple mesh are set up according to preset rules
Target mapping relations between mark interval, wherein, each target value element one target interval of correspondence;And according to
Target mapping relations create bubble diagram, and solving bubble in bubble diagram can overlap, and then affect the skill of display effect
Art problem, and then the target mapping pass set up between multiple target value elements and multiple target intervals according to preset rules
System, and bubble diagram is created according to target mapping relations, reach the technique effect for being prevented effectively from that bubble is overlapped in bubble diagram.
Description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, this Shen
Schematic description and description please does not constitute the improper restriction to the application for explaining the application.In accompanying drawing
In:
Fig. 1 is the flow chart of the creation method of the bubble diagram according to the application first embodiment;And
Fig. 2 is the schematic diagram of the creating device of the bubble diagram according to the embodiment of the present application.
Specific embodiment
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application
Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present application, it is clear that described embodiment
The only embodiment of the application part, rather than the embodiment of whole.Based on the embodiment in the application, ability
The every other embodiment that domain those of ordinary skill is obtained under the premise of creative work is not made, all should belong to
The scope of the application protection.
It should be noted that the description and claims of this application and the term " first " in above-mentioned accompanying drawing, "
Two " it is etc. the object for distinguishing similar, without for describing specific order or precedence.It should be appreciated that this
The data that sample is used can be exchanged in the appropriate case, so as to embodiments herein described herein can with except
Here the order beyond those for illustrating or describing is implemented.Additionally, term " comprising " and " having " and they
Any deformation, it is intended that covering is non-exclusive to be included, and for example, contains process, the side of series of steps or unit
Method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include unclear
List or other steps intrinsic for these processes, method, product or equipment or unit.
According to the embodiment of the present application, there is provided a kind of embodiment of the method for the creation method of bubble diagram, it should be noted that
Can perform in the such as computer system of one group of computer executable instructions the step of the flow process of accompanying drawing is illustrated,
And, although show logical order in flow charts, but in some cases, can be with suitable different from herein
Sequence performs shown or described step.
Fig. 1 is the flow chart of the creation method of the bubble diagram according to the application first embodiment, as shown in figure 1, the party
Method comprises the steps:
Step S102, obtains target data sequence, wherein, target data sequence includes multiple target value elements.
Bubble diagram is to the displaying pattern of data similar to chart of the drafting comprising three variables in two dimensions.For example, certain
Sale result situation of the product in three areas is as shown in table 1.
Table 1
Sales volume | Sales growth rate | Market share | |
A is regional | 400 | - 18% | 15% |
B is regional | 1200 | 38% | 60% |
C is regional | 800 | 22% | 30% |
In table 1 data include three sequences, sales volume sequence, including:400、1200、800;Sales growth rate
Sequence, including:- 18%, 38%, 22%;And market share sequence, including:15%th, 60%, 30%.Wherein,
Can be using any two variable in above-mentioned 3 variables as x-axis and the variable of y-axis, the 3rd variable is with bubble shape
Formula carries out size displaying.
Target data sequence can be any one column data in above-mentioned steps, and sales volume sequence described above, sales volume increase
Long rate sequence or sales growth rate sequence.Target data sequence can be the number for describing x-axis variable in bubble diagram
According to or y-axis variable data.Target value element is the numerical value element included in target data sequence, for example, mesh
Mark data sequence is sales volume sequence, then 400,1200,800 for wherein including are target value element.
Step S104, according to multiple target value elements multiple target intervals are determined, wherein, multiple target intervals
Number of the number more than or equal to multiple target value elements.
Determine multiple target intervals according to multiple target value elements, multiple target intervals cover above-mentioned multiple targets
Numerical value element, and the number of target interval is no less than the number of target value element.Preferably, according to multiple targets
Numerical value element determines that multiple target intervals include:Obtain the minima and maximum in multiple target value elements;It is determined that
The interval range that minima and maximum are formed;And uniformly draw the interval range that minima and maximum are formed
It is divided into multiple target intervals.It should be noted that according to user's request can with the interval number of target setting, wherein,
The number of the target interval of setting is more, and accuracy is higher, but can correspondingly reduce execution efficiency.
For example, target data sequence is for the variable shown in x-axis, multiple target value element difference in bubble diagram
For 0,11,15,21,26,29,32,47,48,50.The interval range that above-mentioned target value element determines is 0
To 50, the number of multiple target value elements is m=10, then the number n >=m=10 of the multiple target intervals for marking off.
If n=10, can determine multiple target intervals for [0,5), [5,10), [10,15), [15,20), [20,25),
[25,30)、[30,35)、[35,40)、[40,45)、[45,50]。
Step S106, the target set up between multiple target value elements and multiple target intervals according to preset rules maps
Relation, wherein, each target value element one target interval of correspondence.
In this step, the mapping relations set up between each target value element and target interval, a target value
Element correspondence mappings are to a target interval.
Preferably, the number of multiple target value elements is predetermined number, and according to preset rules multiple target values are set up
Target mapping relations between element and multiple target intervals include:By multiple target value elements and the mesh of predetermined number
Mapping relations are set up one by one in mark interval;Detect whether the target value element corresponding to each target interval is included in target
Among interval, testing result is obtained;And mapping relations are updated according to testing result, obtain target mapping relations.Need
It is noted that above-mentioned multiple target value elements are due to the mapping relations set up with multiple independent target intervals respectively,
Therefore, when bubble diagram displaying is carried out, effectively prevent the generation of bubble overlapping cases.In addition, each target value
Element sets up the target interval of mapping relations, may include the target value element, it is also possible to not comprising the number of targets
Value element.
For example, 10 target value elements are respectively 0,10,11,15,21,26,32,47,56,100,10
Individual target interval is for [0,10), [10,20), [20,30), [30,40), [40,50), [50,60), [60,70),
[70,80)、[80,90)、[90,100].Initially set up mapping relations 0 → [0,10), 10 → [10,20), 11 →
[20,30)、15→[30,40)、21→[40,50)、26→[50,60)、32→[60,70)、47→[70,80)、
56→[80,90)、100→[90,100].In above-mentioned mapping relations, [0,10) including 0, [10,20) do not include 10,
[20,30) do not include 11, [30,40) do not include 15, [40,50) do not include 21, [50,60) do not include 26, [60,70)
Do not include 32, [70,80) do not include 47, [80,90) do not include 56, [90,100] are including 100.According to above-mentioned acquisition
Arrive comprising or not comprising relation, mapping relations can be updated according to preset rules so that ensure mesh
On the basis of mark numerical value element relative target interval is uniformly distributed, there is target value element as much as possible to fall and building with it
It is vertical to have within the target interval of mapping relations, and then get final target mapping relations.It should be noted that on
State for the ease of description, represent that A and B sets up mapping relations using symbol " A → B ".
Preferably, multiple target value elements are set up one by one into mapping relations with the target interval of predetermined number includes:Will
First object numerical value element sets up the first mapping relations with first object interval, wherein, multiple target value elements include
First object numerical value element, multiple target intervals include that first object is interval, detect the mesh corresponding to each target interval
Whether mark numerical value element is included among target interval and includes:Whether detection first object numerical value element is included in the first mesh
Among mark interval, updating mapping relations according to testing result includes:If detecting that first object numerical value element is included in
Among first object interval, then keep the first mapping relations constant;If detecting that first object numerical value element is not included
Among first object interval, then the second target interval is obtained, wherein, first object numerical value element is included in the second mesh
Among mark interval;Detect whether the second target interval has set up mapping relations;If detecting that the second target interval is not built
It is vertical to have mapping relations, then the first mapping relations are updated to into reflecting between first object numerical value element and the second target interval
Penetrate relation;And if detecting that the foundation of the second target interval has mapping relations, then keep the first mapping relations constant.
In this embodiment, can successively detect whether each target value element is included according to order set in advance
In corresponding target interval, if detecting certain target value element is not included in corresponding target interval
Interior, then whether target interval of the detection comprising the target value element is set up with other target value elements mapping
Relation, if result is yes, keeps the target value element constant with the mapping relations of previous target interval, such as
Fruit result is no, then previous mapping relations are updated to into the target value element with the mesh comprising the target value element
Mapping relations between mark interval.
For example, 3 target value elements are respectively 10,15,40.The number for assuming target interval is 6, point
Wei [10,15), [15,20), [20,25), [25,30), [30,35), [35,40].Assume 10 with [10,15)
Foundation has mapping relations, and 15 with [15,20) setting up has mapping relations, and 40 with [20,25) setting up has mapping relations.Assume
According to the order that target value element is descending, first it is detected that [20,25) do not include 40, then detect that [35,40] are
No foundation with other target value elements has mapping relations, it is seen that [35,40] are not yet built with other target value elements
Vertical have mapping relations, then can by 40 with [20,25) between mapping relations be updated to reflecting between 40 and [35,40]
Penetrate relation.It is then detected that be not included in 15 [15,20) in, detection [10,15) whether with other target values
Element set up have mapping relations, it is seen that [10,15) with 10 set up have mapping relations, then keep 15 with [15,20)
Between mapping relations it is constant.Finally, detect [10,15) comprising 10, then keep 10 with [10,15) between reflect
Penetrate relation constant.It should be noted that the mapping relations set up when initial in the example are not limited to above-mentioned mapping
Relation, for example, can also set up following mapping relations when initial:40 → [35,40], 15 → [30,35), 10 →
[25,30).The different mapping relations set up when initial can be to the acquisition efficiency of target mapping relations and the bubble of establishment
The degree of accuracy of figure produces different degrees of impact.
Preferably, multiple target value elements are set up one by one into mapping relations with the target interval of predetermined number includes:Will
Multiple target value elements are ranked up according to ascending order, the target value element after being sorted;And
From the beginning of the minimum target interval of central value in multiple target intervals, according to the order that central value is ascending, will be default
The target interval of number sets up one by one mapping relations with the target value element after sequence successively, wherein, after each sequence
Target value element correspondence one target interval.
In order to improve the efficiency for obtaining target mapping relations, can be in advance by multiple target value elements according to ascending
Order be ranked up, by target interval also according to the order sequence that central value is ascending, from the mesh that central value is minimum
Mark interval starts, and each target interval and a target value element set up mapping relations, wherein, central value minimum
Target interval sets up mapping relations with the target value element of minimum, and the rest may be inferred.For example, data sequence be 89,20,
26th, 100, then the numerical value element in data sequence can be ranked up according to ascending order first, obtain
20th, 26,89 and 100.Target interval is respectively [20,40), [40,60), [60,80), [80,100].According in
The ascending order of center value, will [20,40), [40,60), [60,80), [80,100] respectively with 20,26,89
Correspond with 100 and set up mapping relations.
Preferably, detecting whether the target value element corresponding to each target interval is included among target interval includes:
According to the order that multiple target value elements are descending, detect whether each target value element is included in target successively
In the corresponding target interval of numerical value element.
It is in this embodiment, descending according to target value element in order to improve the efficiency for obtaining target mapping relations
Order, detect whether each target value element is included in the corresponding target interval of target value element successively.Example
Such as, 3 target value elements are respectively 10,15,40.The number for assuming target interval is 6, respectively [10,15),
[15,20)、[20,25)、[25,30)、[30,35)、[35,40].When initial, mapping is set up as follows:10 → [10,15),
15 → [15,20), 40 → [20,25).Then detecting whether the target value element corresponding to each target interval includes
When among target interval, first detection 40 whether be included in [20,25) in, be as a result no, then detect [36,40]
Whether had built up mapping relations, be as a result it is no, then by 40 → [20,25) be updated to 40 → [35,40].Then,
Target value element 15 and 10 is detected successively according to identical step.
Step S108, according to target mapping relations bubble diagram is created.
After target mapping relations are set up by above-mentioned steps S102 to step S106, can be closed based on target mapping
System creates bubble diagram.That is, in the bubble diagram for creating, each target value element is relative with corresponding target interval
Should.For example, target data sequence is the variable data for showing in x-axis, target mapping relations are 10 → [10,15),
15→[15,20)、40→[35,40].Then in the bubble diagram for creating, in x-axis, 10 be located at it is interval [10,15),
15 are located at interval, and [15,20), 40 are located at interval [35,40].
Preferably, before bubble diagram is created according to target mapping relations, the method also includes:Obtain multiple number of targets
The length of an interval degree that minima and maximum are formed in value element;And default bubble width is determined according to length of an interval degree
Degree parameter, wherein, 1/N of the bubble width parameter less than or equal to length of an interval degree is preset, N is multiple target intervals
Number, according to target mapping relations create bubble diagram include:According to target mapping relations and default bubble width parameter
Create bubble diagram.
Before bubble diagram is created according to target mapping relations, Air Bubble Size (the default bubble width that bubble diagram is set is needed
Degree parameter).In this embodiment, in order to be prevented effectively from bubble diagram in bubble overlap, default bubble width ginseng is set
Number be less than or equal to the 1/N of length of an interval degree, wherein, N is the number of multiple target intervals, and length of an interval degree is
The length of an interval degree that minima and maximum are formed in multiple target value elements.For example, multiple target value elements
For 20,25,45,50, then the interval that minima and maximum are formed is [20,50], and the length of an interval degree is 30.
Target interval is [20,25), [25,30), [30,35), [35,40), [40,45), [45,50].Default bubble width
Degree parameter is maximum no more than 30/6=5.
Preferably, before bubble diagram is created according to target mapping relations and default bubble width parameter, the method is also wrapped
Include:The intermediate value of multiple target intervals is tied to into target number axis.
It should be noted that the intermediate value of multiple target intervals is tied to into target number axis in the embodiment, also will be many
The intermediate value of individual target interval is set to the data source of target number axis.For example, target data sequence is in x-axis exhibition
The variable data shown.Multiple target intervals are respectively [10,20), [20,30), [30,40].Closed according to target mapping
System and default bubble width parameter are created before bubble diagram, can be tied to x-axis by 15,25,35.
Preferably, before bubble diagram is created according to target mapping relations and default bubble width parameter, the method is also wrapped
Include:Multiple target value elements are tied to into bubble suggestion content.
In this embodiment, in order to further improve Consumer's Experience, multiple target value elements can be respectively tied to
In corresponding bubble suggestion content, it has been effectively ensured in the case where bubble does not overlap, to user original number has been shown
It is believed that breath.
According to the creation method of the bubble diagram of the embodiment, by obtaining target data sequence, wherein, target data sequence
Row include multiple target value elements;Determine multiple target intervals according to multiple target value elements, wherein, multiple mesh
Number of the interval number of mark more than or equal to multiple target value elements;Multiple number of targets are set up according to preset rules
Target mapping relations between value element and multiple target intervals, wherein, each target value element one target of correspondence
It is interval;And bubble diagram is created according to target mapping relations, solving bubble in bubble diagram can overlap, Jin Erying
Ring the technical problem of display effect.The present embodiment sets up multiple target value elements and multiple target areas according to preset rules
Between between target mapping relations, and bubble diagram is created according to target mapping relations, and then according to relative between data
Magnitude relationship sets up bubble diagram, and the absolute size relation between non-used data sets up bubble diagram, has reached and has effectively kept away
Exempt from the technique effect that bubble is overlapped in bubble diagram.
The creation method of the bubble diagram according to the application second embodiment has been provided below.The embodiment can be used as Fig. 1
A kind of preferred implementation of illustrated embodiment.Specifically, it is assumed that the number of the numerical value element that data sequence is included is n,
Respectively A1, A2, A3 ... An.Wherein each element includes a numerical value X:The numerical value of A1 is X1;The numerical value of A2
Numerical value for X2 ... An is Xn.Wherein, X1, X2 ... Xn is same as the unit of the target value in embodiment illustrated in fig. 1
Element.To show numerical value X in the X-axis of bubble diagram in the embodiment.
First, the numerical value element to including in data sequence does pretreatment:A numerical value D, number are created to each element
Value D is equal to numerical value X.For elements A n, numerical value Dn, and Dn=Xn are created.Here, numerical value can be claimed
X is actual value, and numerical value D is processing costs.The X-axis of bubble diagram will bind (logarithm value D is not shown) with numerical value D,
And show numerical value X (as bubble suggestion content).
Secondly, the interval of data sequence is equally divided into into m small data interval K1, K2 ... Kn, m >=n.Such as
N=10, the minima included in data sequence is 0, and maximum is 100, then m >=10, and K1 is [0,10].Its
In, small data interval is same as the target interval in embodiment illustrated in fig. 1.
Again, according to preset rules, data are arranged in order in each small data interval according to the actual value of element.
The preset rules are:
1) by actual value X to data according to sorting from small to large, obtain new sequence data A1 ', A2 ' ... An '.
2) sequence data A ' is set up in order the mapping relations with interval K:A1 ' and K1 set up mapping relations, A2 ' with
K2 sets up mapping relations ... ..., and An ' and Kn sets up mapping relations.Due to m>=n, may also have between K-region and not set up
The interval of mapping relations.
3) iteration mobile element.
Mobile principle:If an actual value is located at set up in the interval of mapping relations with it, do not move.It is no
Then, whether interval of the detection comprising actual value is set up with other elements mapping relations.If testing result is no, will
This element is set up and this interval mapping relations, and the mapping relations set up before the element are accordingly cancelled;If detection knot
Fruit is yes, then keep the mapping relations set up before the element constant.
Iteration order:From big to small, i.e., detected one by one to A1 ' from An ', and in the case where above-mentioned condition is met
Carry out the renewal of mapping relations.
Iterative process:Every time iteration (namely traveling through once from An ' to A1 '), records the unit that mapping relations occur to update
Number a of element.After the completion of an iteration, if a is equal to 0, stop iteration;If a is more than 0, continue to press
The iteration (namely traveling through once from An ' to A1 ') of a new round is entered according to iteration order.
4) the processing costs Dn for arranging element is each interval central value.
In addition, arranging the Air Bubble Size of bubble diagram.Bubble maximum no more than X-axis siding-to-siding block length (in sequence data most
The difference of big value and minima) 1/m, wherein, m is the number in small data interval.
Finally, the processing costs D of element is tied to into the X-axis of bubble diagram, actual value X is tied to into bubble suggestion content.
Because X-axis can bind processing costs D, processing costs D is interval central value, in addition, through constraining Air Bubble Size,
Bubble just can not possibly be interval beyond being located, and then each bubble also will not be overlapped (fusion), effectively increase regarding for user
Feel experience.
According to the creation method of the bubble diagram of the embodiment, data are made to build with rational interval by the pretreatment to data
Vertical mapping relations, and Air Bubble Size is set, make Air Bubble Size less than the interval for arranging, having reached makes bubble diagram exist
On the premise of retention data relativeness, effectively prevent the overlapped situation of bubble and occur, improve Consumer's Experience.
The suggestion content for making bubble simultaneously binds actual value, thus can't affect the practical application of bubble diagram.
Below according to the embodiment of the present application, there is provided a kind of creating device of bubble diagram.
It should be noted that can be used for performing according to the application according to the creating device of the bubble diagram of the embodiment of the present application
The creation method of the bubble diagram of embodiment, according to the creation method of the bubble diagram of the embodiment of the present application basis can also be passed through
The creating device of the bubble diagram of the embodiment of the present application is performing.
Fig. 2 is the schematic diagram of the creating device of the bubble diagram according to the embodiment of the present application.As shown in Fig. 2 the device bag
Include:First acquisition unit 20, the first determining unit 22, set up unit 24 and creating unit 26.
First acquisition unit 20, for obtaining target data sequence, wherein, target data sequence includes multiple number of targets
Value element.
First determining unit 22, for determining multiple target intervals according to multiple target value elements, wherein, multiple mesh
Number of the interval number of mark more than or equal to multiple target value elements.
Unit 24 is set up, for the mesh set up between multiple target value elements and multiple target intervals according to preset rules
Mark mapping relations, wherein, each target value element one target interval of correspondence.
Creating unit 26, for creating bubble diagram according to target mapping relations.
According to the creating device of the bubble diagram of the embodiment, target data sequence is obtained by first acquisition unit 20, its
In, target data sequence includes multiple target value elements;First determining unit 22 is true according to multiple target value elements
Fixed multiple target intervals, wherein, the number of multiple target intervals is more than or equal to the number of multiple target value elements;
Set up unit 24 to close according to the target mapping that preset rules are set up between multiple target value elements and multiple target intervals
System, wherein, each target value element one target interval of correspondence;And creating unit 26 is according to target mapping relations
Bubble diagram is created, solving bubble in bubble diagram can overlap, and then affect the technical problem of display effect, and then
Reflected according to the target that preset rules are set up between multiple target value elements and multiple target intervals by setting up unit 24
Relation is penetrated, creating unit 26 creates bubble diagram, reached and be prevented effectively from bubble weight in bubble diagram according to target mapping relations
Folded technique effect.
Alternatively, the first determining unit 22 includes:Acquisition module, for obtaining multiple target value elements in minimum
Value and maximum;Determining module, for determining the interval range that minima and maximum are formed;And division module,
For the interval range that minima and maximum are formed to be evenly dividing as multiple target intervals.
Alternatively, the number of multiple target value elements is predetermined number, and setting up unit 24 includes:Module is set up, is used
In the target interval of multiple target value elements and predetermined number is set up one by one into mapping relations;Detection module, for examining
Survey whether the target value element corresponding to each target interval is included among target interval, obtain testing result;With
And update module, for updating mapping relations according to testing result, obtain target mapping relations.
Alternatively, setting up module includes:First setting up submodule, for by first object numerical value element and first object
The first mapping relations are set up in interval, wherein, multiple target value elements include first object numerical value element, multiple targets
Interval includes that first object is interval, and detection module includes:First detection sub-module, for detecting first object numerical value unit
Whether element is included among first object interval, and update module includes:First keeps submodule, for detecting the
When one target value element is included among first object interval, keep the first mapping relations constant;Acquisition submodule,
For when detecting that first object numerical value element is not included among first object interval, obtaining the second target interval,
Wherein, first object numerical value element is included among the second target interval;Second detection sub-module, for detection second
Whether target interval has set up mapping relations;Submodule is updated, for reflecting detecting that the second target interval has not set up
When penetrating relation, the first mapping relations are updated to into the mapping relations between first object numerical value element and the second target interval;
And second keep submodule, for detect the second target interval set up have mapping relations when, keep first map
Relation is constant.
Alternatively, setting up module includes:Sorting sub-module, for by multiple target value elements according to ascending
Order is ranked up, the target value element after being sorted;And second setting up submodule, for from multiple targets
The minimum target interval of central value starts in interval, according to the order that central value is ascending, by the target of predetermined number
Mapping relations are set up one by one in interval with the target value element after sequence successively, wherein, the target value after each sequence
Element one target interval of correspondence.
Alternatively, detection module includes:3rd detection sub-module, for descending according to multiple target value elements
Order, detect whether each target value element is included in the corresponding target interval of target value element successively.
Alternatively, the device also includes:Second acquisition unit, for obtaining multiple target value elements in minima and
The length of an interval degree that maximum is formed;And second determining unit, for determining default bubble according to length of an interval degree
Width parameter, wherein, 1/N of the bubble width parameter less than or equal to length of an interval degree is preset, N is multiple target areas
Between number, creating unit 26 includes:Creation module, for according to target mapping relations and default bubble width parameter
Create bubble diagram.
Alternatively, the device also includes:First binding unit, for the intermediate value of multiple target intervals to be tied to into mesh
Mark number axis.
Alternatively, the device also includes:Second binding unit, carries for multiple target value elements to be tied to into bubble
Show content.
Above-mentioned the embodiment of the present application sequence number is for illustration only, does not represent the quality of embodiment.
In above-described embodiment of the application, the description to each embodiment all emphasizes particularly on different fields, and does not have in certain embodiment
The part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, other can be passed through
Mode realize.Wherein, device embodiment described above is only schematic, such as division of described unit,
Can be a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing
Can with reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, institute
The coupling each other for showing or discussing or direct-coupling or communication connection can be by some interfaces, unit or mould
The INDIRECT COUPLING of block or communication connection, can be electrical or other forms.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to
On multiple units.Some or all of unit therein can be according to the actual needs selected to realize this embodiment scheme
Purpose.
In addition, each functional unit in the application each embodiment can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.It is above-mentioned integrated
Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized and as independent production marketing or when using using in the form of SFU software functional unit,
During a computer read/write memory medium can be stored in.Based on such understanding, the technical scheme essence of the application
On all or part of prior art is contributed part in other words or the technical scheme can be with software product
Form is embodied, and the computer software product is stored in a storage medium, including some instructions are used so that one
Platform computer equipment (can be personal computer, server or network equipment etc.) performs each embodiment institute of the application
State all or part of step of method.And aforesaid storage medium includes:USB flash disk, read only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD
Etc. it is various can be with the medium of store program codes.
The above is only the preferred implementation of the application, it is noted that for the ordinary skill people of the art
For member, on the premise of without departing from the application principle, some improvements and modifications can also be made, these improve and moisten
Decorations also should be regarded as the protection domain of the application.
Claims (10)
1. a kind of creation method of bubble diagram, it is characterised in that include:
Target data sequence is obtained, wherein, the target data sequence includes multiple target value elements;
Multiple target intervals are determined according to the plurality of target value element, wherein, the plurality of target interval
Number of the number more than or equal to the plurality of target value element;
The target set up between the plurality of target value element and the plurality of target interval according to preset rules is reflected
Relation is penetrated, wherein, each target value element one target interval of correspondence;And
Bubble diagram is created according to the target mapping relations.
2. method according to claim 1, it is characterised in that determined according to the plurality of target value element multiple
Target interval includes:
Obtain the minima and maximum in the plurality of target value element;
Determine the interval range that the minima and the maximum are formed;And
The interval range that the minima and the maximum are formed is evenly dividing as the plurality of target interval.
3. method according to claim 1, it is characterised in that the number of the plurality of target value element is default
Number, according to the target that preset rules are set up between the plurality of target value element and the plurality of target interval
Mapping relations include:
The plurality of target value element is set up into one by one mapping relations with the target interval of the predetermined number;
Detect whether the target value element corresponding to each target interval is included among the target interval, obtain
To testing result;And
The mapping relations are updated according to the testing result, the target mapping relations are obtained.
4. method according to claim 3, it is characterised in that
The plurality of target value element is set up one by one into mapping relations with the target interval of the predetermined number includes:
First object numerical value element and first object interval are set up into the first mapping relations, wherein, the plurality of number of targets
Value element includes the first object numerical value element, and the plurality of target interval includes that the first object is interval,
Whether detect the target value element corresponding to each target interval to be included among the target interval includes:
Detect whether the first object numerical value element is included among the first object interval,
Updating the mapping relations according to the testing result includes:If detecting the first object numerical value unit
Element is included among the first object interval, then keep first mapping relations constant;If detecting institute
State first object numerical value element to be not included among the first object interval, then obtain the second target interval, its
In, the first object numerical value element is included among second target interval;Detect second target area
Between whether set up mapping relations;If detecting that second target interval has not set up mapping relations, will
First mapping relations are updated to the mapping between the first object numerical value element and second target interval
Relation;And if detecting that the second target interval foundation has mapping relations, then keep first mapping
Relation is constant.
5. method according to claim 3, it is characterised in that the plurality of target value element is default with described
The target interval of number sets up one by one mapping relations to be included:
The plurality of target value element is ranked up according to ascending order, the target after being sorted
Numerical value element;And
From the beginning of the minimum target interval of central value in the plurality of target interval, according to the central value by it is little to
Big order, the target interval of the predetermined number is built one by one successively with the target value element after the sequence
Vertical mapping relations, wherein, target value element one target interval of correspondence after each sequence.
6. method according to claim 5, it is characterised in that detect the target value corresponding to each target interval
Whether element is included among the target interval includes:
According to the order that the plurality of target value element is descending, detect that each target value element is successively
It is no to be included in the corresponding target interval of the target value element.
7. the method according to any one of claim 1-6, it is characterised in that
Before bubble diagram is created according to the target mapping relations, methods described also includes:Obtain the plurality of
The length of an interval degree that minima and maximum are formed in target value element;And according to the length of an interval degree
It is determined that default bubble width parameter, wherein, the default bubble width parameter is less than or equal to the interval
The 1/N of length, N are the number of the plurality of target interval,
Creating bubble diagram according to the target mapping relations includes:According to target mapping relations and described default
Bubble width parameter creates the bubble diagram.
8. method according to claim 7, it is characterised in that according to target mapping relations and described default
Bubble width parameter is created before the bubble diagram, and methods described also includes:
The intermediate value of the plurality of target interval is tied to into target number axis.
9. method according to claim 7, it is characterised in that according to target mapping relations and described default
Bubble width parameter is created before the bubble diagram, and methods described also includes:
The plurality of target value element is tied to into bubble suggestion content.
10. a kind of creating device of bubble diagram, it is characterised in that include:
First acquisition unit, for obtaining target data sequence, wherein, the target data sequence includes multiple
Target value element;
First determining unit, for determining multiple target intervals according to the plurality of target value element, wherein,
Number of the number of the plurality of target interval more than or equal to the plurality of target value element;
Unit is set up, for setting up the plurality of target value element and the plurality of target area according to preset rules
Between between target mapping relations, wherein, each target value element one target interval of correspondence;And
Creating unit, for creating bubble diagram according to the target mapping relations.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510654734.6A CN106570026B (en) | 2015-10-10 | 2015-10-10 | The creation method and device of bubble diagram |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510654734.6A CN106570026B (en) | 2015-10-10 | 2015-10-10 | The creation method and device of bubble diagram |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106570026A true CN106570026A (en) | 2017-04-19 |
CN106570026B CN106570026B (en) | 2019-09-20 |
Family
ID=58506178
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510654734.6A Active CN106570026B (en) | 2015-10-10 | 2015-10-10 | The creation method and device of bubble diagram |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106570026B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107945249A (en) * | 2016-10-13 | 2018-04-20 | 北京国双科技有限公司 | A kind of bubble diagram display methods and device |
CN109316781A (en) * | 2018-11-02 | 2019-02-12 | 四川大学 | Bubble separation method in a kind of visualization of bubble level |
CN109582939A (en) * | 2017-09-29 | 2019-04-05 | 北京国双科技有限公司 | A kind of bubble diagram methods of exhibiting and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040085316A1 (en) * | 2002-10-30 | 2004-05-06 | Web Information Technologies, Inc | Interactive data visualization and charting framework with self-detection of data commonality |
CN101557245A (en) * | 2008-04-10 | 2009-10-14 | 中兴通讯股份有限公司 | Method for controlling authorization power in time code division multiple access system |
US20140372924A1 (en) * | 2013-06-14 | 2014-12-18 | Sap Ag | Graphically managing interactive analytic data |
CN104809751A (en) * | 2015-04-30 | 2015-07-29 | 百度在线网络技术(北京)有限公司 | Method and device for generating event group evolution diagram |
CN104899908A (en) * | 2015-06-12 | 2015-09-09 | 百度在线网络技术(北京)有限公司 | Method and device for generating evolution diagram of event group |
-
2015
- 2015-10-10 CN CN201510654734.6A patent/CN106570026B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040085316A1 (en) * | 2002-10-30 | 2004-05-06 | Web Information Technologies, Inc | Interactive data visualization and charting framework with self-detection of data commonality |
CN101557245A (en) * | 2008-04-10 | 2009-10-14 | 中兴通讯股份有限公司 | Method for controlling authorization power in time code division multiple access system |
US20140372924A1 (en) * | 2013-06-14 | 2014-12-18 | Sap Ag | Graphically managing interactive analytic data |
CN104809751A (en) * | 2015-04-30 | 2015-07-29 | 百度在线网络技术(北京)有限公司 | Method and device for generating event group evolution diagram |
CN104899908A (en) * | 2015-06-12 | 2015-09-09 | 百度在线网络技术(北京)有限公司 | Method and device for generating evolution diagram of event group |
Non-Patent Citations (1)
Title |
---|
罗文静: "数据挖掘中可视化技术研究与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107945249A (en) * | 2016-10-13 | 2018-04-20 | 北京国双科技有限公司 | A kind of bubble diagram display methods and device |
CN109582939A (en) * | 2017-09-29 | 2019-04-05 | 北京国双科技有限公司 | A kind of bubble diagram methods of exhibiting and device |
CN109316781A (en) * | 2018-11-02 | 2019-02-12 | 四川大学 | Bubble separation method in a kind of visualization of bubble level |
CN109316781B (en) * | 2018-11-02 | 2021-03-19 | 四川大学 | Bubble separation method in bubble level visualization |
Also Published As
Publication number | Publication date |
---|---|
CN106570026B (en) | 2019-09-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104407779B (en) | The arrangement display methods and device of graphical interfaces | |
CN103793349A (en) | Data processing method and data processing device | |
CN106570026A (en) | Bubble chart creation method and apparatus | |
CN104239567B (en) | Dimension treating method and apparatus in data warehouse | |
CN105893017A (en) | Method and device for presenting project menu on equipment | |
CN106375120A (en) | Fast topology method and apparatus of IT infrastructure | |
CN109582716A (en) | Data visualization treating method and apparatus | |
CN103699614B (en) | A kind of method and apparatus for determining Default saving path when downloading resource | |
CN106909688A (en) | A kind of method and apparatus that search word is recommended based on input search word | |
CN106156281A (en) | Arest neighbors point set method for quickly retrieving based on Hash Cube spatial level partition structure | |
CN106934679B (en) | Information matching method and device | |
CN105989114A (en) | Collection content recommendation method and terminal | |
CN109522933A (en) | Commodity detection method and device for shelf | |
CN103488476B (en) | associated data processing system and associated data processing method | |
CN109756533A (en) | A kind of mirror image accelerated method, device and server | |
CN111080781A (en) | Three-dimensional map display method and mobile terminal | |
CN104506636B (en) | A kind of method of data synchronization and device | |
CN104331429B (en) | The method and device of multiple features dimension quantization is carried out to network object | |
CN103927325A (en) | URL (uniform resource locator) classifying method and device | |
CN108256666A (en) | The location determining method and device of charging pile, processor | |
CN103853347B (en) | Information release method based on gravity sensing horizontal screen display of mobile terminal | |
CN107016079A (en) | The methods of exhibiting and device of a kind of knowledge point | |
CN101650689B (en) | Nonvolatile data storage and search method and device | |
CN105589683B (en) | Sample extraction method and device | |
CN106611003A (en) | Data display method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: Beijing Guoshuang Technology Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Applicant before: Beijing Guoshuang Technology Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |