CN104008122A - Dynamic multi-stage pie chart display method of layering data - Google Patents

Dynamic multi-stage pie chart display method of layering data Download PDF

Info

Publication number
CN104008122A
CN104008122A CN201410055561.1A CN201410055561A CN104008122A CN 104008122 A CN104008122 A CN 104008122A CN 201410055561 A CN201410055561 A CN 201410055561A CN 104008122 A CN104008122 A CN 104008122A
Authority
CN
China
Prior art keywords
node
level
pie chart
angle
ratio
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.)
Pending
Application number
CN201410055561.1A
Other languages
Chinese (zh)
Inventor
孔丁科
刘菁菁
刘丹
卢挺
黄道峰
王勋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Gongshang University
Original Assignee
Zhejiang Gongshang University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Gongshang University filed Critical Zhejiang Gongshang University
Priority to CN201410055561.1A priority Critical patent/CN104008122A/en
Publication of CN104008122A publication Critical patent/CN104008122A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists

Abstract

The invention discloses a dynamic multi-stage pie chart display method of layering data. According to the dynamic multi-stage pie chart display method of the layering data, drawing parameters of nodes are calculated through quantized attribute values of the nodes and a layering relationship of the nodes in the layering data, the volume of node space and located positions represent quantized attribute values of the data nodes and layering positions where the data nodes are located respectively, and sub-nodes of the nodes are subjected to recursion layer by layer to calculate relevant drawing parameters to achieve information visibility of the layering data. The dynamic multi-stage pie chart display method has the advantages of being capable of effectively utilizing display space of a mobile platform display screen, displaying the layering relationship corresponding to the data, simultaneously presenting data quantized attributes and the layering relationship in the same view, and achieving dynamic, visual and graphic display.

Description

The dynamic multistage pie chart methods of exhibiting of hierarchical data
Technical field
The present invention relates to data visualization technique field, especially relate to a kind of dynamic multistage pie chart methods of exhibiting of the hierarchical data that can draw efficiently, rapidly pie chart on mobile platform.
Background technology
Tree graph, as a kind of visual presentation method of spatial level data, can utilize screen space fully, presents the data of large stratification, and by quantified property and the distribution relation of its size of node, position emphasis representation of data node.
The placement algorithm of tree graph is the core content of tree graph method for visualizing, for drawing visualized graphs according to the hierarchical structure of the tree graph of hierarchical data, node weights and sequence node in two-dimentional plane.
But, due to the recursive nature of tree graph placement algorithm, can not be used for the Dynamic Display to hierarchical data.
Chinese patent mandate publication number: CN103106197A, authorizes open day on November 9th, 2011, discloses a kind of methods of exhibiting and system of hierarchical data, comprises the following steps: obtain node locating request; In hierarchical data, search destination node according to described node locating request; The destination node finding described in showing in the mode of level mode and two-dimentional form.The weak point of this invention is that function singleness, can not be used for the Dynamic Display to hierarchical data.
Summary of the invention
Goal of the invention of the present invention is the deficiency that can not be used for the Dynamic Display to hierarchical data in order to overcome methods of exhibiting of the prior art, and a kind of dynamic multistage pie chart methods of exhibiting of the hierarchical data that can draw efficiently, rapidly pie chart on mobile platform is provided.
To achieve these goals, the present invention is by the following technical solutions:
A kind of dynamic multistage pie chart methods of exhibiting of hierarchical data, described hierarchical data is stored in the CPU of mobile platform, described hierarchical data is tree graph shape and distributes, hierarchical data comprises several nodes, each node comprises 1 quantified property and several non-quantified property, and value is quantified property value;
(1-1) traversal node quantified property value:
CPU calculates the quantified property value value sum Sum of each child node of all nodes in hierarchical data, and Sum is made as to the quantified property value of described node;
(1-2) CPU calculates ratio ratio and the level value level of all nodes in hierarchical data:
If have n sub-node i in arbitrary node A, utilize formula calculate the quantified property value ratio (i) of child node i, i=1 ..., n;
The level of setting root node is 0, sets the level value level that the number of plies of other node in tree graph is described node;
(1-3) angle of each node in CPU calculating hierarchical data is cross-domain:
(1-3-1) CPU utilizes formula ang p(1)=2 π ratio (p) calculate the cross-domain ang of angle of the each node p in the 1st level p(1), wherein, ratio (p) is the ratio of any node in the 1st level;
(1-3-2) setting level is L, the cross-domain cross-domain product of angle that is the ratio of described node and the father node of described node of angle of each node of each level of L >=2, and it is cross-domain that CPU calculates the angle of each node of L level;
(1-4) calculate start angle and the fan-shaped radius of each node:
(1-4-1) start angle of first node of setting the first level is that the start angle of 0, a j node is that the angle of a start angle+the j-1 node of j-1 node is cross-domain, j >=2;
(1-4-2) CPU utilizes formula according to each level node shared ratio in the father node of a level thereon, distributes to successively each level node by cross-domain the angle of each node of the first level:
Set ang q(m)=ang qf(m-1) ratio (q), m>=2; Wherein, ang q(m) be that the angle of m level node is cross-domain, ang qf(m-1) cross-domain for being positioned at the angle of father node of m level node of m-1 level, the ratio of arbitrary node q that ratio (q) is m level;
(1-4-3) radius of setting the first level to the m level node is followed successively by R, 2R ..., mR:
(1-5) in CPU, be provided with and show that the number of plies is L x, with the corresponding region of arbitrary node C on finger touch display screen, CPU controls display screen by the L of node C and node C xthe pie chart of-1 straton node is presented in display screen:
Wherein, described node c is taking the some A on display screen as round dot, according to level from low to high and in same level the order of each node draw successively circle, fan-shaped or fan ring figure, obtain the L of node C xlayer is pie chart dynamically.
With the corresponding region of arbitrary node C on finger touch display screen, CPU controls display screen by the L of node C and node C xthe pie chart of-1 straton node is presented in display screen, thereby has realized Dynamic Display.
The present invention realizes quantified property value to hierarchical data and the visual presence of hierarchical structure by the form of level pie chart; The hierarchical relationship of can the each node of presentation layer secondary data asking, has also improved the effective rate of utilization of spacial flex.The hierarchical relationship that the present invention asks by quantified property value size and each node of the each node in level data calculates the rendering parameter (comprising the residing level of this node, start angle and angular span etc.) of each node, the position at node space size and place represents respectively quantified property value and its residing hierarchical position of back end, and successively the child node of this node is carried out to the relevant rendering parameter of recursive calculation, the visualization of information of implementation level data.
The present invention has the spacial flex that can effectively utilize mobile platform display screen, can ask corresponding hierarchical relationship by representation of data again; The hierarchical relationship that nodes different in hierarchical data and each node are asked changes into the pie chart of corresponding level, realizes the object that simultaneously presents data quantified property and hierarchical relationship in same view.The displaying of the hierarchical data that the present invention is mobile platform provides a kind of dynamic, directly perceived and vivid methods of exhibiting.
As preferably, when the length of the display screen of described mobile platform is height, when width is width, described in
As preferably, described L xbe 3 to 6.
As preferably, described some A is the mid point of mobile platform display screen.
As preferably, step (1-5) also comprises the steps: that CPU fills respectively different colours in each pie chart afterwards, and the color of adjacent pie chart is close.
Therefore, the present invention has following beneficial effect: (1) can effectively utilize the spacial flex of mobile platform display screen, can ask corresponding hierarchical relationship by representation of data again, can in same view, present data quantified property and hierarchical relationship simultaneously; (2) can realize dynamic, directly perceived and vivid displaying.
Brief description of the drawings
Fig. 1 is a kind of process flow diagram of embodiments of the invention;
Fig. 2 is a kind of tree graph of hierarchical data of the present invention;
Fig. 3 is the second layer dynamic data exploded view of hierarchical data of the present invention.
In figure: the pie chart 4 of the pie chart 3 of the pie chart 2 of the pie chart 1 of the node that level is 0, the node that level is 1, the node that level is 2, the node that level is 3.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention will be further described.
Embodiment is as shown in Figure 1 the dynamic multistage pie chart methods of exhibiting of hierarchical data, and as shown in Figure 2, second layer node comprises node analytics, animate, data, display, flex, physics, query, scale, util and vis, also comprise each node of the 3rd layer and the 4th layer.
As shown in Figure 1, comprise the steps:
Step 100, traversal node quantified property value:
CPU calculates the quantified property value value sum Sum of each child node of all nodes in hierarchical data, and Sum is made as to the quantified property value of described node; For example, in the present embodiment, node analytics is that 3938, animate is that 1986, data is 5555;
Step 200, CPU calculates ratio ratio and the level value level of all nodes in hierarchical data:
If have n sub-node i in arbitrary node A, utilize formula calculate the quantified property value ratio (i) of child node i, i=1 ..., n;
The level of setting root node is 0, sets the level value level that the number of plies of other node in tree graph is described node;
For example, in the present embodiment, the ratio value of analytics is that 0.25, level is 1; The ratio value of util is that 0.75, level is 1 etc.;
Step 300, the angle of each node in CPU calculating hierarchical data is cross-domain:
Step 310, CPU utilizes formula ang p(1)=2 π ratio (p) calculate the cross-domain ang of angle of the each node p in the 1st level p(1), wherein, ratio (p) is the ratio of any node in the 1st level;
Step 320, setting level is L, the cross-domain cross-domain product of angle that is the ratio of described node and the father node of described node of angle of each node of each level of L >=2, it is cross-domain that CPU calculates the angle of each node of L level;
For example, in the present embodiment, analytics is the 1st level node, and ratio is 0.25, and the angle of analytics is cross-domain is 90 degree, and the ratio of mil is 0.75, and angle is cross-domain is 270 degree;
Step 400, calculate start angle and the fan-shaped radius of each node:
Step 410, the start angle of first node of setting the first level is that the start angle of 0, a j node is that the angle of a start angle+the j-1 node of j-1 node is cross-domain, j >=2;
Step 420, CPU utilizes formula according to each level node shared ratio in the father node of a level thereon, distributes to successively each level node by cross-domain the angle of each node of the first level:
Set ang q(m)=ang qf(m-1) ratio (q), m>=2; Wherein, ang q(m) be that the angle of m level node is cross-domain, ang qr(m-1) cross-domain for being positioned at the angle of father node of m level node of m-1 level, the ratio of arbitrary node q that ratio (q) is m level;
Step 430, the radius of setting the first level to the m level node is followed successively by R, 2R ..., mR;
For example, in the present embodiment, flare is root node, and radius is R=1.5 centimetre, the 1st straton node that analytics and util are flare, and radius is all 2 × R, increases progressively successively.
Step 500, shows the L of arbitrary node C and node C xthe pie chart of-1 straton node:
In CPU, be provided with and show that the number of plies is L x=4, with the corresponding region of arbitrary node C on finger touch display screen, CPU control display screen is presented at the pie chart of the 3 straton nodes of node C and node C in display screen:
Wherein, described node c is taking the some A on display screen as round dot, according to level from low to high and in same level the order of each node draw successively circle, fan-shaped or fan ring figure, obtain 4 layers of dynamic pie chart of node C.
In the present embodiment lx is 4, and some A is the mid point of mobile platform display screen.
Step 600, CPU fills respectively different colours in each pie chart, and the color of adjacent pie chart is close.
In the present embodiment, node C is root node flare, and the 4 layer cake figure of root node flare as shown in Figure 3.
Should be understood that the present embodiment is only not used in and limits the scope of the invention for the present invention is described.In addition should be understood that those skilled in the art can make various changes or modifications the present invention after having read the content of the present invention's instruction, these equivalent form of values fall within the application's appended claims limited range equally.

Claims (5)

1. the dynamic multistage pie chart methods of exhibiting of a hierarchical data, described hierarchical data is stored in the CPU of mobile platform, hierarchical data is tree graph shape and distributes, hierarchical data comprises several nodes, each node comprises 1 quantified property and several non-quantified property, and value is quantified property value; It is characterized in that,
(1-1) traversal node quantified property value:
CPU calculates the quantified property value value sum Sum of each child node of all nodes in hierarchical data, and Sum is made as to the quantified property value of described node;
(1-2) CPU calculates ratio ratio and the level value level of all nodes in hierarchical data:
If have n sub-node i in arbitrary node A, utilize formula calculate the quantified property value ratio (i) of child node i, i=l ..., n;
The level of setting root node is 0, sets the level value level that the number of plies of other node in tree graph is described node;
(1-3) angle of each node in CPU calculating hierarchical data is cross-domain:
(1-3-1) CPU utilizes formula ang p(1)=2 π rratio (p) calculate the cross-domain ang of angle of the each node p in the 1st level p(1), wherein, ratio (p) is the ratio of any node in the 1st level;
(1-3-2) setting level is L, the cross-domain cross-domain product of angle that is the ratio of described node and the father node of described node of angle of each node of each level of L >=2, and it is cross-domain that CPU calculates the angle of each node of L level;
(1-4) calculate start angle and the fan-shaped radius of each node:
(1-4-1) start angle of first node of setting the first level is that the start angle of 0, a j node is that the angle of a start angle+the j-1 node of j-1 node is cross-domain, j >=2;
(1-4-2) CPU utilizes formula according to each level node shared ratio in the father node of a level thereon, distributes to successively each level node by cross-domain the angle of each node of the first level:
Set ang q(m)=ang qf(m-1) ratio (q), m>=2; Wherein, ang q(m) be that the angle of m level node is cross-domain, ang qf(m-1) cross-domain for being positioned at the angle of father node of m level node of m-1 level, the ratio of arbitrary node q that ratio (q) is m level;
(1-4-3) radius of setting the first level to the m level node is followed successively by R, 2R ..., mR:
(1-5) in CPU, be provided with and show that the number of plies is L x, with the corresponding region of arbitrary node C on finger touch display screen, CPU controls display screen by the L of node C and node C xthe pie chart of-1 straton node is presented in display screen:
Wherein, described node c is taking the some A on display screen as round dot, according to level from low to high and in same level the order of each node draw successively circle, fan-shaped or fan ring figure, obtain the L of node C xlayer is pie chart dynamically.
2. the dynamic multistage pie chart methods of exhibiting of hierarchical data according to claim 1, is characterized in that, when the length of the display screen of described mobile platform is height, and when width is width, described in
3. the dynamic multistage pie chart methods of exhibiting of hierarchical data according to claim 1, is characterized in that described L xbe 3 to 6.
4. the dynamic multistage pie chart methods of exhibiting of hierarchical data according to claim 1, is characterized in that, described some A is the mid point of mobile platform display screen.
5. the dynamic multistage pie chart methods of exhibiting of hierarchical data according to claim 1, is characterized in that, step (1-5) also comprises the steps: that cPU fills respectively different colours in each pie chart afterwards, and the color of adjacent pie chart is close.
CN201410055561.1A 2014-02-19 2014-02-19 Dynamic multi-stage pie chart display method of layering data Pending CN104008122A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410055561.1A CN104008122A (en) 2014-02-19 2014-02-19 Dynamic multi-stage pie chart display method of layering data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410055561.1A CN104008122A (en) 2014-02-19 2014-02-19 Dynamic multi-stage pie chart display method of layering data

Publications (1)

Publication Number Publication Date
CN104008122A true CN104008122A (en) 2014-08-27

Family

ID=51368780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410055561.1A Pending CN104008122A (en) 2014-02-19 2014-02-19 Dynamic multi-stage pie chart display method of layering data

Country Status (1)

Country Link
CN (1) CN104008122A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106156369A (en) * 2016-08-24 2016-11-23 北京京东尚科信息技术有限公司 Multi-layer subordinate method for exhibiting data and device
CN106407164A (en) * 2016-09-29 2017-02-15 杭州迪普科技有限公司 Data display method and device
CN108399251A (en) * 2018-03-05 2018-08-14 贵州工程应用技术学院 A kind of Intelligence Generator and data exhibiting process that multi-layer data shows
CN108804570A (en) * 2018-05-23 2018-11-13 成都直赢九州科技有限公司 A kind of distribution of tree hierarchy, storage and retrieval method
CN108846075A (en) * 2018-06-08 2018-11-20 成都深思科技有限公司 A kind of intelligent distribution rendering method based on organization structure tree

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101261628A (en) * 2007-03-07 2008-09-10 国际商业机器公司 Method, mutual method and its apparatus using angle chart for displaying hierarchical structure data
CN101470711A (en) * 2007-12-25 2009-07-01 国际商业机器公司 Data visualization method and apparatus for layered graph structure
US20110205231A1 (en) * 2010-02-24 2011-08-25 Oracle International Corporation Mapping data in enterprise applications for operational visibility
CN103049580A (en) * 2013-01-17 2013-04-17 北京工商大学 Method and device for visualization of layering data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101261628A (en) * 2007-03-07 2008-09-10 国际商业机器公司 Method, mutual method and its apparatus using angle chart for displaying hierarchical structure data
CN101470711A (en) * 2007-12-25 2009-07-01 国际商业机器公司 Data visualization method and apparatus for layered graph structure
US20110205231A1 (en) * 2010-02-24 2011-08-25 Oracle International Corporation Mapping data in enterprise applications for operational visibility
CN103049580A (en) * 2013-01-17 2013-04-17 北京工商大学 Method and device for visualization of layering data

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106156369A (en) * 2016-08-24 2016-11-23 北京京东尚科信息技术有限公司 Multi-layer subordinate method for exhibiting data and device
CN106407164A (en) * 2016-09-29 2017-02-15 杭州迪普科技有限公司 Data display method and device
CN108399251A (en) * 2018-03-05 2018-08-14 贵州工程应用技术学院 A kind of Intelligence Generator and data exhibiting process that multi-layer data shows
CN108804570A (en) * 2018-05-23 2018-11-13 成都直赢九州科技有限公司 A kind of distribution of tree hierarchy, storage and retrieval method
CN108846075A (en) * 2018-06-08 2018-11-20 成都深思科技有限公司 A kind of intelligent distribution rendering method based on organization structure tree

Similar Documents

Publication Publication Date Title
CN106354760B (en) Multiple view space-time data method for visualizing and application based on deformable statistical map
CN104008122A (en) Dynamic multi-stage pie chart display method of layering data
CN110990516B (en) Map data processing method, device and server
CN103810756B (en) The method for drafting of self adaptive Loop subdivision curved surface based on irregular area
CN104966320B (en) A kind of pattern-painting automatic generation method based on three rank Bezier curves
CN104537024B (en) A kind of magnanimity position is registered the method for visualizing of data
CN106204719B (en) Magnanimity model real-time scheduling method in three-dimensional scenic based on two-dimensional neighbourhood retrieval
CN103345534A (en) Dynamic graph processing method and device
CN104764937A (en) Electromagnetic environment complexity quick mesh generation and display method
CN110781446A (en) Method for rapidly calculating average vorticity deviation of ocean mesoscale vortex Lagrange
CN111339599B (en) Conversion method from BIM model to GIS model
CN111563963B (en) Tornado weather simulation method, intelligent terminal and storage medium
CN102364522B (en) Large-scale weather volume data drawing method based on global division
CN105512194A (en) Game scene management method and device
CN107749074A (en) A kind of method, apparatus and computing device for map making
US10062193B2 (en) Attribute based map marker clustering
CN106340046A (en) Radar target location analysis method based on graphic geographic information
CN109087391A (en) Drawing method is marked by a kind of army under three-dimensional scenic
Burch et al. Partial link drawings for nodes, links, and regions of interest
CN104008125B (en) The dynamic multi-level histogram methods of exhibiting of hierarchical data
CN115424261A (en) Warehouse point cloud semantic segmentation method and device, computer equipment and storage medium
JP5777736B2 (en) MAP DATA CREATION DEVICE, MAP DATA CREATION METHOD, AND STORAGE MEDIUM
Chen et al. Fractal generator for efficient production of random planar patterns and symbols in digital mapping
CN105184869B (en) Building line draws the method that data show three-dimensional perspective effect in two-dimensional stage
CN116309852B (en) Fitting method and device of mapping catheter and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140827

RJ01 Rejection of invention patent application after publication