CN115272513A - Multi-dimensional analysis method and device, electronic equipment and medium - Google Patents

Multi-dimensional analysis method and device, electronic equipment and medium Download PDF

Info

Publication number
CN115272513A
CN115272513A CN202210449212.2A CN202210449212A CN115272513A CN 115272513 A CN115272513 A CN 115272513A CN 202210449212 A CN202210449212 A CN 202210449212A CN 115272513 A CN115272513 A CN 115272513A
Authority
CN
China
Prior art keywords
information
hexagon
cellular
honeycomb
area
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
CN202210449212.2A
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.)
Beijing Bo Hongyuan Data Polytron Technologies Inc
Original Assignee
Beijing Bo Hongyuan Data Polytron Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Bo Hongyuan Data Polytron Technologies Inc filed Critical Beijing Bo Hongyuan Data Polytron Technologies Inc
Priority to CN202210449212.2A priority Critical patent/CN115272513A/en
Publication of CN115272513A publication Critical patent/CN115272513A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses a multi-dimensional analysis method, a multi-dimensional analysis device, multi-dimensional analysis equipment and a storage medium. Obtaining dimension information and attribute information of an object to be analyzed; acquiring size information and layout information of a drawing area; calculating the target size of the cellular graph grouping area and the drawing information of the cellular hexagons according to the dimension information, the size information of the drawing area and the layout information; determining a cellular graph grouping area in the drawing area according to the target size and the layout information, and drawing a cellular hexagon in the cellular graph grouping area according to the drawing information; and determining the filling color of each honeycomb hexagon according to the attribute information, and representing the attribute state of the object to be analyzed in the corresponding dimension through the filling color of the honeycomb hexagons. The embodiment adaptively determines the target size of the cellular map grouping region and the drawing information of the cellular hexagons, realizes the adaptive adjustment of the cellular map grouping region, and also realizes the adaptive layout of the cellular hexagons in the cellular map grouping region.

Description

Multi-dimensional analysis method and device, electronic equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a multidimensional analysis method, apparatus, electronic device, and medium.
Background
Multidimensional analysis is a measure-gathering statistic after performing a dimensional analysis on data. The dimensionality is to classify according to the characteristics of the data, and the multidimensional analysis is used for measuring the relationship among the data among the classifications so as to obtain the relation among the statistical items with the same type of properties.
At present, there are various means, such as listing and carousel, for designing multidimensional analysis using web products. The honeycomb diagram is an optimal topological structure covering a two-bit plane, has an exquisite, compact and attractive composition, and has the advantages of high space utilization rate, multiple dimension display and sequential display support during multi-dimensional analysis. In the related art, the cellular hexagonal arrangement in the cellular graph is realized by CSS (Cascading Style Sheets), the effect is not as realistic as canvases, on one hand, when the number of cells realized by CSS is too large, the rendering speed becomes slow, which causes event response to be stuck, on the other hand, most of the cellular graphs in the current market exist as static pictures, and there is no separate cellular graph for dimension analysis. Therefore, how to improve the capability of the cell layout and how to display the dimension data by using the cell diagram become problems to be solved urgently.
Disclosure of Invention
The invention provides a multidimensional analysis method, a multidimensional analysis device, electronic equipment and a multidimensional analysis medium, which are used for solving the problems of how to improve the honeycomb layout capacity and how to display dimension data by using a honeycomb diagram.
According to an aspect of the present invention, there is provided a multi-dimensional analysis method including: acquiring dimension information and attribute information of an object to be analyzed;
acquiring size information and layout information of a drawing area;
calculating the target size of the honeycomb map grouping area and drawing information of the honeycomb hexagons according to the dimension information, the size information of the drawing area and the layout information;
according to the target size and layout information, determining the cellular graph grouping area in the drawing area, and drawing cellular hexagons in the cellular graph grouping area according to the drawing information;
and determining the filling color of each honeycomb hexagon according to the attribute information, and representing the attribute state of the object to be analyzed in the corresponding dimension through the filling color of the honeycomb hexagon.
According to another aspect of the present invention, there is provided a multi-dimensional analysis apparatus including: the first information acquisition module is used for acquiring dimension information and attribute information of an object to be analyzed;
the second information acquisition module is used for acquiring the size information and the layout information of the drawing area;
an information calculation module for performing calculation of a target size of the cellular diagram grouping region and drawing information of cellular hexagons based on the dimension information, size information of drawing regions, and layout information;
the graph drawing module is used for determining the cellular graph grouping area in the drawing area according to the target size and the layout information, and drawing cellular hexagons in the cellular graph grouping area according to the drawing information;
and the information display module is used for determining the filling color of each honeycomb hexagon according to the attribute information, and representing the attribute state of the object to be analyzed in the corresponding dimension through the filling color of the honeycomb hexagon.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform a multi-dimensional analysis method according to any of the embodiments of the invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to perform a multi-dimensional analysis method according to any one of the embodiments of the present invention when the computer instructions are executed.
According to the technical scheme of the embodiment of the invention, dimension information and attribute information of an object to be analyzed are obtained; acquiring size information and layout information of a drawing area; calculating the target size of the cellular graph grouping area and the drawing information of the cellular hexagons according to the dimension information, the size information of the drawing area and the layout information; determining a cellular graph grouping area in the drawing area according to the target size and the layout information, and drawing a cellular hexagon in the cellular graph grouping area according to the drawing information; the filling color of each cellular hexagon is determined according to the attribute information, the attribute state of the object to be analyzed in the corresponding dimension is represented through the filling color of the cellular hexagons, the problem that the cellular graph drawing is unsmooth due to excessive rendering quantity in the prior art is solved, the target size of a cellular graph grouping area and the drawing information of the cellular hexagons are determined in a self-adaptive mode according to the dimension information, the size information of a drawing area and the layout information of the object to be analyzed, the cellular hexagons are drawn in the cellular graph grouping area determined based on the target size and the layout information, self-adaptive adjustment of the cellular graph grouping area is achieved, and self-adaptive layout of the cellular hexagons in the cellular graph grouping area is also achieved.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present invention, nor are they intended to limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a multi-dimensional analysis method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a grouping layout of a cellular diagram according to an embodiment of the present invention;
FIG. 3 is a flowchart of a multidimensional analysis method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a multidimensional analysis apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device implementing the multidimensional analysis method according to the fifth embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
At present, there are various means, such as listing and carousel, for designing multidimensional analysis using web products. The honeycomb map is an optimal topology structure covering a two-dimensional plane, so that the honeycomb map has the advantages of high space utilization rate, multiple dimension display and sequential display support during multi-dimensional analysis.
The cell structure of the honeycomb pattern is generally represented by a regular hexagon, and may also be referred to as a honeycomb hexagon. The honeycomb hexagon can be laid out in the following way:
one of them is to use flex (HyperText Markup Language) structure to arrange honeycomb hexagons in layout mode commonly used by CSS3, and to control odd and even rows to be arranged in staggered mode by margin, and its drawing effect is not as realistic as canvas.
Another method for laying out cellular hexagons through the UI framework is given by Echarts (Enterprise Charts, business level data diagram) as an example.
Echarts is a pure Javascript diagram library, which is developed based on HTML5 (Hypertext Markup language 5.0), can smoothly run on PC and mobile equipment, and is compatible with most current browsers and the like. The embedded honeycomb appears in the layout, and the graphic presentation effect is poor.
The hexagonal arrangement of the honeycomb in the honeycomb map is realized by the CSS, the effect is not as realistic as canvas, on one hand, when the number of the honeycomb realized by the CSS is too large, the rendering speed becomes slow, which causes the event response to be stuck, on the other hand, most of the honeycomb maps in the current market exist as static pictures, and no separate honeycomb map for dimension analysis exists.
In order to solve the above problems, the present invention provides a scheme for performing adaptive layout and grouped adaptive layout on cellular hexagons based on a Canvas drawing manner, which can improve the cellular layout capability and the cellular graphic performance compared with the CSS drawing manner.
Example one
Fig. 1 is a flowchart of a multidimensional analysis method, which is applicable to a situation where a cellular diagram is laid out by using a rendering engine zr, and which can be implemented by a multidimensional analysis apparatus, which can be implemented in hardware and/or software, and which can be integrally configured in an electronic device according to an embodiment of the present invention. As shown in fig. 1, the method includes:
s110, obtaining dimension information and attribute information of the object to be analyzed.
The object to be analyzed may be an object that needs to be subjected to Web-based multidimensional analysis. The object to be analyzed may be configured in the Web-based multidimensional analysis system by means of manual configuration or file import, or may be configured according to an actual application scenario, for example, the object to be analyzed may be a server in a computer room, or may be an application service provided by the server. The embodiment is not particularly limited herein.
The Web-based multidimensional analysis system can include two ends: the system comprises a server side and a front end, wherein the server side can use NETC # language for development and is used for executing tasks such as data analysis and storage; the front end can use an open source framework library dojo based on JavaScript language to develop and execute tasks such as interface operation, image display of multi-dimensional analysis and the like.
Canvas is an element added to HTML5, and the element may be used to render a 2D image in conjunction with an API (Application Programming Interface) provided by JavaScript. The Canvas refers to a Canvas background in the Java language, and when processing an image file, a series of operations are performed by using the Canvas, that is, the Canvas is understood as an image background.
The dimension information may be monitoring dimensions of the object to be analyzed, for example, attributes such as memory occupancy of the server and CPU usage, and specifically, the dimension information may include the number of dimension groups and the number of dimensions in each dimension group.
The number of dimensions may be the number of monitoring dimensions of the object to be analyzed, for example, if the monitoring dimensions are cities around the world, the number of dimensions may be the number of cities around the world. If the monitoring dimension is the IP address of a certain urban area, the dimension number is the IP address number of the certain urban area. If the monitoring dimension is the number of rooms in a certain area, the dimension number may be the number of rooms in a certain area, the number of servers in a certain room, or the like. The dimension group number may be a grouping number of the objects to be analyzed grouped according to the dimension.
The attribute information may be attribute characteristics of an object to be analyzed, and specifically may be GDPs of various cities around the world, internet access time of an IP address of a certain urban area, memory occupancy of a server, CPU utilization, resource usage of a server in a certain machine room, or the like.
And S120, acquiring size information and layout information of the drawing area.
Specifically, the Graphics can be rendered by a ZRender (a two-dimensional drawing engine), which can provide multiple rendering modes such as Canvas, SVG (Scalable Vector Graphics), VML (Vector Graphics rendering Language), and the like. Meanwhile, the Zrender is also a brand-new lightweight Canvas class library, and comprises the following components: MVC (Model View Controller) encapsulation, data-driven, can provide a hierarchical mechanism for DOM (Document Object Model) classes.
In this embodiment, the drawing area, which may also be referred to as a visualization area, is used for drawing a honeycomb map. The drawing area can contain a plurality of honeycomb map grouping areas, and one honeycomb map is drawn in each honeycomb map grouping area based on dimension information and layout information in the same group, so that the honeycomb map of at least one dimension group is displayed in the whole drawing area and is used for multi-dimensional analysis under the condition of dimension nesting. FIG. 2 is a schematic view of a multi-dimensional analysis interface. Fig. 2 shows that the mapping area 210 includes 2 cellular map packet areas 220. The single cellular diagram grouping area 220 has a frame, and one cellular hexagon 230 may be formed by combining three hexagons, the cellular hexagons are arranged in a staggered manner, the frame portions of adjacent cellular hexagons cover each other, and the drawing area 210 and the cellular diagram grouping area 220 need to be left blank. The drawing area 210 may be the outermost Canvas. The size information may be the width and height exhibited by the drawing area 210. The layout information may be a ratio of the height to the width of the honeycomb map grouping area 220 to the width to the height of the drawing area 210 and whiteout configuration information.
Specifically, S120 may include: acquiring the width and the height of a drawing area; acquiring first margin configuration information of a drawing area; acquiring a first relation between the ratio of the height to the width of the honeycomb map grouping area and the ratio of the width to the height of the drawing area; acquiring a second relation between the height of the cellular map grouping area and the height of the drawing area; acquiring second blank configuration information of a cellular graph grouping area; and acquiring the radius ratio of a second hexagon to the first hexagon and the radius ratio of a third hexagon to the first hexagon in the three hexagons with coincident center points contained in each honeycomb hexagon.
Wherein the first margin configuration information may be a distance between the drawing area and the cellular diagram grouping area in the set azimuth. Wherein, the set orientation can include up, down, left, and right. The second whitespace configuration information may include a distance between an outermost (one or more of an uppermost layer, a lowermost layer, a leftmost layer, or a rightmost layer) cellular hexagon in the cellular graph grouping region and a border in a corresponding orientation (an upper border, a lower border, a left border, or a right border) of the cellular graph grouping region. For example, the second whiteout configuration information is the distance between the uppermost cell hexagon and the upper frame in the cell map grouping area, and the distance between the leftmost cell hexagon and the left frame in the cell map grouping area. The second whiteout configuration information also includes a distance between the groups of cell maps at the set position. Wherein, the set orientation includes up and down and left and right.
And S130, calculating the target size of the cellular graph grouping area and the drawing information of the cellular hexagons according to the dimension information, the size information of the drawing area and the layout information.
There may be multiple cellular diagram grouping areas within the drawing area, and a cellular diagram is drawn in each cellular diagram grouping area, that is, each cellular diagram grouping area may contain multiple rows and multiple columns of cellular hexagons to form a cellular diagram.
Optionally, S130 may include: calculating the number of rows, the number of columns and reference size information of the honeycomb hexagons in at least one honeycomb map grouping area according to the dimension information, the size information and the layout information of the drawing area, and taking the information as the drawing information of the honeycomb hexagons; and calculating the target size of at least one cellular graph grouping area according to the row number, the column number and the reference size information.
The row number of the honeycomb hexagons refers to the transverse numerical value of the honeycomb hexagons in each honeycomb map grouping area; the column number refers to the longitudinal numerical value of the honeycomb hexagon in each honeycomb map grouping area; the reference dimension refers to the radius of the first hexagon in each honeycomb hexagon; the target size may refer to a target width and a target height for each cellular map grouping region.
Optionally, calculating the number of rows and columns of the honeycomb hexagons in the at least one honeycomb map grouping region and the reference size information according to the dimension information, the size information of the drawing region, and the layout information may include: determining the number of the honeycomb map grouping areas according to the number of the dimension groups in the dimension information, and determining the number of honeycomb hexagons in each honeycomb map grouping area according to the number of the dimensions in each dimension group; calculating the number of rows and the number of columns of the honeycomb hexagons in each honeycomb map grouping area according to the width and the height of the drawing area and the number of the honeycomb hexagons; if the number of the cellular graph grouping areas is 1, calculating the radius of a first hexagon in the cellular hexagons as reference size information according to the height of the drawing area and the line number in the cellular graph grouping areas; if the number of the cellular graph grouping areas is at least two, determining the radius of a first hexagon in cellular hexagons in the corresponding cellular graph grouping area as reference size information according to the width of the drawing area, the number of rows and columns in each cellular graph grouping area, the first blank configuration information and the second blank configuration information; and calculating the target size of at least one cellular graph grouping area according to the row number, the column number and the reference size information, wherein the target size comprises the following steps: and calculating the target height and the target width of the corresponding cellular graph grouping area according to the row number, the column number, the reference dimension information, the first relation and the second relation in each cellular graph grouping area.
In the embodiment of the present invention, after the radius of the first hexagon is calculated, the radius of the second hexagon and the radius of the third hexagon may be determined based on the ratio of the radius of the second hexagon to the radius of the first hexagon and the ratio of the radius of the third hexagon to the radius of the first hexagon, respectively.
Alternatively, the ratio of the radii of the second hexagon to the first hexagon may be less than 1, and the ratio of the radii of the third hexagon to the first hexagon may be greater than 1. For example, the ratio p =8/9 of the radius of the second hexagon to the radius of the first hexagon, i.e. the radius r of the first hexagon is reduced to 8/9r to obtain the radius of the second hexagon. The ratio of the radius of the third hexagon to the radius of the first hexagon is 1=1.01/1, that is, the radius of the first hexagon is enlarged by 1.01 times to obtain the radius of the third hexagon. It will be appreciated that the other two hexagonal radii may be obtained by enlarging and/or reducing the first hexagonal radius. For example, the other two hexagonal radii may be calculated by gradually enlarging or gradually reducing, and are not limited to the combined enlarging and reducing manner listed in the above example.
And S140, determining the cellular graph grouping area in the drawing area according to the target size and the layout information, and drawing a cellular hexagon in the cellular graph grouping area according to the drawing information.
Optionally, S140 may include: for each cellular graph grouping area, drawing a frame of the corresponding cellular graph grouping area in the drawing area according to the target height, the target width and the first margin configuration information; calculating the radius of a second hexagon and the radius of a third hexagon in the frame based on the reference size information of the honeycomb hexagons in the corresponding honeycomb map grouping area, the radius ratio of the second hexagon to the first hexagon and the radius ratio of the third hexagon to the first hexagon; determining the coordinates of the center point of the first hexagon according to the second margin configuration information, the reference size information of the first hexagon in the corresponding honeycomb map grouping area, the edge center distance and the row number of the first hexagon; and drawing the honeycomb hexagon in the frame of the corresponding honeycomb map grouping area based on the center point coordinate of the first hexagon, the reference size information, the second hexagon radius and the third hexagon radius.
S150, determining the filling color of each honeycomb hexagon according to the attribute information, and representing the attribute state of the object to be analyzed in the corresponding dimension through the filling color of the honeycomb hexagons.
In this embodiment, after the honeycomb hexagon is drawn, the honeycomb hexagon is three-dimensionally rendered based on a Canvas, and a corresponding rendered graph is obtained. The hexagons in the honeycomb map can be used for distinguishing attribute states of corresponding dimensions through different filling colors, and different groupings of the honeycomb map can deepen dimension analysis levels. For example, attribute states of hexagons in different dimensions can be represented according to the shades of colors, the embodiment can take statistics of population density in a certain area as an example, and if the colors displayed on the graph are darker, the attribute states represent higher population density degree.
Optionally, S150 may include: comparing the attribute information of the object to be analyzed with the threshold interval under the corresponding dimension, and determining the target threshold interval to which the attribute information belongs; and taking the color corresponding to the target threshold interval as the filling color of the hexagon with the smallest radius in the honeycomb hexagons with the corresponding dimension, and representing the attribute state of the object to be analyzed in the corresponding dimension through the filling color of the hexagon with the smallest radius.
The threshold interval may be a numerical interval corresponding to different states set based on the attribute information of the object to be analyzed. Specifically, the threshold interval may be divided into a normal threshold interval, a suspicious threshold interval, and an abnormal threshold interval according to the severity. Alternatively, the threshold interval may be divided into a normal threshold interval and an abnormal threshold interval according to the degree of severity. The specific meaning of the threshold interval is not specifically limited in the embodiments of the present invention. A corresponding color is set in advance for each threshold interval. For example, the corresponding color may be set to green for the normal threshold interval, orange for the suspicious threshold interval, and red for the abnormal threshold interval. By comparing the attribute information of the object to be analyzed with the threshold interval, the target threshold interval corresponding to the attribute information can be determined, and further, the filling color corresponding to each target threshold interval is determined. And then determining the hexagon with the smallest radius in each hexagon with the same central point in each group, taking the color corresponding to the target threshold interval as the filling color of the hexagon, and visually displaying the attribute state of the corresponding dimension of the hexagon in the whole graph through the color.
The embodiment of the invention can adaptively determine the target size of the cellular graph grouping region and the drawing information of the cellular hexagon through the dimension information, the size information and the layout information of the object to be analyzed, and then draw the cellular hexagon based on the drawing information in the cellular graph grouping region determined based on the target size and the layout information, thereby realizing the adaptive adjustment of the cellular graph grouping region and also realizing the adaptive layout of the cellular hexagon in the cellular graph grouping region.
Example two
Fig. 3 is a flowchart of a multidimensional analysis method according to a second embodiment of the present invention, and in this embodiment, after drawing cellular hexagons in a border corresponding to a cellular graph grouping region, the method may further include mounting a browser event for at least one hexagon in the cellular hexagons based on the operation configuration information. The same terms as in the above embodiments are not described herein. As shown in fig. 3, the method includes:
s201, obtaining dimension information and attribute information of an object to be analyzed.
S202, acquiring size information and layout information of the drawing area.
Optionally, S202 may include: acquiring the width and the height of a drawing area; acquiring first whiteout configuration information of a drawing area; acquiring a first relation between the ratio of the height to the width of the honeycomb map grouping area and the ratio of the width to the height of the drawing area; acquiring a second relation between the height of the cellular map grouping area and the height of the drawing area; acquiring second blank configuration information of a cellular graph grouping area; and acquiring the radius ratio of the second hexagon to the first hexagon and the radius ratio of the third hexagon to the first hexagon in the three hexagons with coincident center points.
S203, calculating the target size of the cellular graph grouping area and the drawing information of the cellular hexagons according to the dimension information, the size information of the drawing area and the layout information.
Optionally, S203 may include: calculating the number of rows, the number of columns and reference size information of the honeycomb hexagons in at least one honeycomb map grouping area according to the dimension information, the size information and the layout information of the drawing area, and taking the information as the drawing information of the honeycomb hexagons; and calculating the target size of at least one cellular graph grouping area according to the row number, the column number and the reference size information.
Optionally, calculating the number of rows and columns of the honeycomb hexagons in the at least one honeycomb map grouping region and the reference size information according to the dimension information, the size information of the drawing region, and the layout information, includes: determining the number of the honeycomb map grouping areas according to the number of the dimension groups in the dimension information, and determining the number of honeycomb hexagons in each honeycomb map grouping area according to the number of the dimensions in each dimension group; calculating the number of rows and columns of the honeycomb hexagons in each honeycomb map grouping area according to the width and the height of the mapping area and the number of the honeycomb hexagons; if the number of the cellular graph grouping areas is 1, calculating the radius of a first hexagon in the cellular hexagons as reference size information according to the height of the drawing area and the line number in the cellular graph grouping areas; if the number of the cellular graph grouping areas is at least two, determining the radius of a first hexagon in cellular hexagons in the corresponding cellular graph grouping area as reference size information according to the width of the drawing area, the number of rows and columns in each cellular graph grouping area, the first blank configuration information and the second blank configuration information; and calculating the target size of the at least one cell graph grouping area according to the number of rows, the number of columns, and the reference size information may include: and calculating the target height and the target width of the corresponding cellular graph grouping area according to the row number, the column number, the reference size information, the first relation and the second relation in each cellular graph grouping area.
And S204, determining a cellular graph grouping area in the drawing area according to the target size and the layout information, and drawing a cellular hexagon in the cellular graph grouping area according to the drawing information.
Optionally, S204 may include: for each cellular graph grouping area, drawing a frame of the corresponding cellular graph grouping area in the drawing area according to the target height, the target width and the first margin configuration information; calculating the radius of the second hexagon and the radius of the third hexagon in the frame based on the reference size information of the honeycomb hexagon in the corresponding honeycomb map grouping region, the radius ratio of the second hexagon to the first hexagon and the radius ratio of the third hexagon to the first hexagon; determining the coordinates of the center point of the first hexagon according to the second margin configuration information, the reference size information of the first hexagon in the corresponding honeycomb map grouping area, the edge center distance and the row number of the first hexagon; and drawing the honeycomb hexagon in the frame of the corresponding honeycomb map grouping area based on the center point coordinate of the first hexagon, the reference size information, the second hexagon radius and the third hexagon radius.
Optionally, a second hexagon in the honeycomb hexagons is used as an inner layer hexagon of the honeycomb hexagons, a region between the second hexagon and the first hexagon is used as a border of the honeycomb hexagons, and a region between the third hexagon and the first hexagon is used as a border line of the honeycomb hexagons, wherein corners of each hexagon contained in the honeycomb hexagons are rounded corners.
S205, determining the filling color of each honeycomb hexagon according to the attribute information, and representing the attribute state of the object to be analyzed in the corresponding dimension through the filling color of the honeycomb hexagons.
Optionally, S205 may include: comparing the attribute information of the object to be analyzed with the threshold interval under the corresponding dimension, and determining the target threshold interval to which the attribute information belongs; and taking the color corresponding to the target threshold interval as the filling color of the hexagon with the smallest radius in the honeycomb hexagons with the corresponding dimension, and representing the attribute state of the object to be analyzed in the corresponding dimension through the filling color of the hexagon with the smallest radius.
S206, obtaining operation configuration information, and mounting a browser event for at least one hexagon in the cellular hexagons based on the operation configuration information.
The operation configuration information may be information for performing operation control on the cellular hexagons, and events may be mounted for each hexagon in each grouped cellular graph according to the operation configuration information, where the events refer to some specific interaction moments occurring in the browser, such as clicking and swiping, and the like.
And S207, if the mounted browser event is detected, adjusting the display state of the corresponding cellular hexagon according to the target operation configuration information corresponding to the detected browser event.
In one case, if the mouse is detected to be resting on the border line of the honeycomb hexagon, the width of the border line of the honeycomb hexagon is adjusted.
For example, when the mouse slides to the border line of the honeycomb hexagon, the third hexagon can be redrawn according to the preset ratio of the radius of the third hexagon to the radius of the first hexagon in the scene where the mouse slides. The radius ratio of the third hexagon to the first hexagon of the original honeycomb hexagon is greater than the radius ratio of the third hexagon to the first hexagon of the original honeycomb hexagon in the preset mouse sliding scene, so that the border line is widened, specifically, when the mouse slides over the border line of the honeycomb graph, the radius ratio of the third hexagon to the first hexagon is changed to 1=1.04/1, and the border line is thickened.
In another case, the radius of an inner layer hexagon contained in the corresponding cellular hexagon is adjusted according to the operation configuration information corresponding to the detected browsing event, and the shadow of the inner layer hexagon is drawn at the border of the cellular hexagon.
According to the embodiment of the invention, at least one hexagon in 3 hexagons contained in the honeycomb hexagon can be subjected to mounting events, so that the number of elements can be reduced, and the problem of blockage caused by event response is solved.
In a specific embodiment, the calculation of the target size of a grouped area of a honeycomb map based on the number of rows, the number of columns and the reference size information is as follows:
presetting the number of honeycomb as m, the width of canvas as width and the height of canvas as known quantities, and taking the number of rows as row, the number of columns as col and the radius r of a first hexagon in each honeycomb hexagon as unknown quantities, wherein the following relational expression exists:
when the number of cells m <10,
Figure BDA0003616629290000141
col = math. Ceil (m/row); ceil () represents a function whose value is rounded up.
r=height/(row*1.5+3);
When the number of cells m > = 10;
colTmp = math.ceil (math.sqrt (m)); wherein, math.sqrt () represents a function of an open square operation.
xx=colTmp*colTmp;
row=Math.ceil(Math.sqrt((xx*height*sqrt3)/1.5/width));
col=Math.ceil(m/row);
r=height/(row*1.5+3);
Wherein, colTmp is the side length of the minimum external square of the honeycomb hexagonal arrangement area.
When the number m of the honeycomb is less than 4:
the width of the cell map grouping region = margin + cell width-cell overlap + more than one row, more than half = r/2*2+ (sqrt 3r col + (sqrt 3/2) × r) - (col r sqrt 3/18) + (-sqrt 3/2) (-r.
When the number of cells m > 4:
the width of the honeycomb map packet area = margin + honeycomb width-honeycomb overlap = r/2*2+ (sqrt 3r col + (sqrt 3/2) r) - (col r sqrt 3)/18).
The height of the honeycomb map packet region = edge distance + honeycomb height-honeycomb overlap = r/2 + r + (row-1) × 1.5 + r- ((row-1) × r)/12 =3r + (row-1) × 1.5 + r- ((row-1) × r)/12.
The width and height of each honeycomb map grouping region and the radius of the honeycomb hexagon are calculated in the above manner.
And calculating the coordinates of the center point of the honeycomb hexagon by taking the edge center distance, the left inner margin of the honeycomb map grouping area and the upper inner margin of the honeycomb map grouping area as known quantities.
Wherein, the distance from the center to the edge (the distance from the center of the first hexagon to the edge):
margin=(sqrt3/2)*r;
canvas left inner side white, canvas MarginLeft = r/2;
canvas MarginTop = r/2;
for the first index number of cellular hexagons, the following relation exists, wherein the value of the index includes 1,2,3,4, … …, m is the number of cellular hexagons in the current cellular diagram grouping region:
const rowIndex=Math.ceil(index/col);
and calculating the remainder of the current index and the number of columns in the cellular map grouping area, and if the remainder is equal to 0, const colIndex = index% col. Its implementation is const colIndex = index% col = = = = 0col.
Taking the first honeycomb hexagon as an example, the value of 1% col is calculated, and if the value is equal to 0, the colIndex of the first honeycomb hexagon is 1% col.
Taking the x coordinate of the center point of the current honeycomb hexagon as an unknown quantity, the following relation exists:
when the current honeycomb hexagon is arranged in odd rows:
rowIndex%2==1;
x=canvasMarginLeft+margin+(colIndex-1)*margin*2-
((colIndex-1)*r*1*sqrt3)/18;
when the current honeycomb hexagon is arranged in even rows:
x=canvasMarginLeft+colIndex*margin*2-((colIndex-1)*r*sqrt3)
/18-((r*sqrt3)/2)*0.1-(-sqrt3/36)*r;
taking the y coordinate of the center point of the current honeycomb hexagon as an unknown quantity, the following relation exists:
first column:
rowIndex=1;
y=canvasMarginTop+r;
other columns:
y=canvasMarginTop+r+(rowIndex-1)*1.5*r-((rowIndex-1)*r*1*1)
/12;
the coordinates { x, y, r } of the index-th cell are obtained by the above steps.
In one specific embodiment, the calculation of the target size of the two cell map grouping areas from the number of rows, the number of columns, and the reference size information is as follows. It should be noted that the target size calculation process for 3 and more than 3 cell map packet areas is similar to that of 2, and the present invention is not listed. The number of cell groupings is set to 2, the number of cell hexagons in each cell map grouping area, and the height and width of the mapped area are set to known quantities in advance, and the radius r of the first hexagon in each cell hexagon is set to unknown quantity. The following correspondence exists: the left-right distance between the grouping areas of the adjacent honeycomb patterns is 2r, and the up-down distance is r; the margin on the inside of the drawing area is r +5 (5 is the height reserved for the packet header, which may be set to other values depending on the header height), the left margin on the inside of the drawing area is r, and the right margin on the inside of the drawing area is r.
When the number of cells m <10,
Figure BDA0003616629290000171
col=Math.ceil(m/row);
when the number of cells m > = 10:
colTmp=Math.ceil(Math.sqrt(m));
xx=colTmp*colTmp;
row=Math.ceil(Math.sqrt((xx*height*sqrt3)/1.5/width));
col=Math.ceil(m/row);
wherein colTmp is the side length of the minimum external square of the honeycomb hexagonal arrangement area;
the width of the drawing area = left blank in the drawing area + width of each cell pattern grouping area in one row of cell hexagons + interval between each cell pattern grouping area in the same row of cell hexagons + left blank in the drawing area + width of the first cell pattern grouping area + width of the second cell pattern grouping area +2r + r.
For the first cell graph grouping region width and the second cell graph grouping region width, the relationship with respect to r may be calculated with reference to the above-described one cell graph grouping region width and height calculation process. Since the width of the drawing area is a known quantity, r is obtained by solving the above-described width equation of the drawing area. Further, r is substituted into the relational expression of the width and height of the corresponding cell map grouping region to obtain the width and height of the first cell map grouping region, and the width and height of the second cell map grouping region.
After the width and the height of the first honeycomb map grouping region and the radius r of the honeycomb hexagon are calculated, the center point coordinates of each honeycomb hexagon in the first honeycomb map grouping region can be calculated by adopting the center point calculation process of the honeycomb hexagons in one honeycomb map grouping region, and the specific calculation process is not repeated. The coordinates of the center point of each honeycomb hexagon in the second honeycomb map grouping area can be calculated in the same manner, and the specific calculation process is not repeated.
In the embodiment of the invention, in a scene with dimension nesting, a honeycomb diagram is drawn for each dimension group, and the attribute state of an object to be analyzed in the corresponding dimension is displayed through the honeycomb diagram, so that the complete honeycomb diagram is generated on a drawing area in a regular arrangement manner, the attribute state of each dimension in the scene with multi-dimension nesting is clearly displayed, and the effects of using the honeycomb diagram for self-adaptive layout and displaying the dimension information with dimension nesting are achieved.
Example four
Fig. 4 is a schematic structural diagram of a multidimensional analysis apparatus according to a fourth embodiment of the present invention. As shown in fig. 4, the apparatus includes:
a first information obtaining module 401, configured to perform obtaining of dimension information and attribute information of an object to be analyzed;
a second information obtaining module 402, configured to perform obtaining size information and layout information of the drawing area;
an information calculation module 403 for performing calculation of a target size of a cellular diagram grouping region and drawing information of cellular hexagons from the dimension information, the size information of the drawing region, and the layout information;
a graph drawing module 404, configured to determine a cellular graph grouping area within the drawing area according to the target size and the layout information, and draw a cellular hexagon within the cellular graph grouping area according to the drawing information;
and the information display module 405 is configured to determine a filling color of each honeycomb hexagon according to the attribute information, and represent an attribute state of the object to be analyzed in a corresponding dimension through the filling color of the honeycomb hexagon.
Optionally, the second information obtaining module 402 includes:
a width and height acquisition unit for acquiring a width and a height of the drawing area;
the first margin configuration information acquisition unit is used for acquiring first margin configuration information of the drawing area;
a first relation obtaining unit configured to obtain a first relation between a ratio of a height to a width of the honeycomb map grouping area and a ratio of a width to a height of the drawing area;
a second relation acquisition unit configured to acquire a second relation between the height of the cellular map grouping area and the height of the drawing area;
a second blank configuration information obtaining unit, configured to obtain second blank configuration information of the cellular diagram grouping area;
and the radius ratio acquisition unit is used for acquiring the radius ratio of a second hexagon to the first hexagon and the radius ratio of a third hexagon to the first hexagon in the three hexagons with coincident center points contained in each honeycomb hexagon.
Optionally, the second information obtaining module 402 may include:
the drawing information determining unit is used for calculating the line number, the column number and the reference size information of the honeycomb hexagons in at least one honeycomb map grouping area according to the dimension information, the size information and the layout information of the drawing area, and using the line number, the column number and the reference size information as the drawing information of the honeycomb hexagons;
and the target size determining unit is used for calculating the target size of at least one honeycomb map grouping area according to the row number, the column number and the reference size information.
Optionally, the drawing information determining unit may include:
the number determining unit of the honeycomb hexagons is used for determining the number of the honeycomb image grouping areas according to the number of the dimension groups in the dimension information and determining the number of the honeycomb hexagons in each honeycomb image grouping area according to the number of the dimensions in each dimension group;
the row number and column number determining unit of the honeycomb hexagons is used for calculating the row number and column number of the honeycomb hexagons in each honeycomb map grouping area according to the width and height of the mapping area and the number of the honeycomb hexagons;
a reference size information determination unit configured to calculate, as reference size information, a radius of a first hexagon in the cellular hexagons based on a height of the drawing area and the number of lines in the cellular map grouping area if the number of cellular map grouping areas is 1; if the number of the cellular graph grouping areas is at least two, determining the radius of a first hexagon in cellular hexagons in the corresponding cellular graph grouping area as reference size information according to the width of the drawing area, the number of rows and columns in each cellular graph grouping area, the first blank configuration information and the second blank configuration information; and calculating the target size of at least one cellular graph grouping area according to the row number, the column number and the reference size information, wherein the target size comprises the following steps: and calculating the target height and the target width of the corresponding cellular graph grouping area according to the row number, the column number, the reference dimension information, the first relation and the second relation in each cellular graph grouping area.
Optionally, the graphics rendering module 404 may include:
the ratio calculation unit is used for drawing a frame of the corresponding cellular map grouping area in the drawing area according to the target height, the target width and the first margin configuration information for each cellular map grouping area; calculating the radius of a second hexagon and the radius of a third hexagon in the frame based on the reference size information of the honeycomb hexagons in the corresponding honeycomb map grouping area, the radius ratio of the second hexagon to the first hexagon and the radius ratio of the third hexagon to the first hexagon;
the central point coordinate determination unit is used for determining the central point coordinate of the first hexagon according to the second margin configuration information, the reference size information of the first hexagon in the corresponding honeycomb map grouping area, the edge center distance and the row number of the first hexagon; and drawing the honeycomb hexagon in the frame of the corresponding honeycomb map grouping area based on the center point coordinate of the first hexagon, the reference size information, the second hexagon radius and the third hexagon radius.
Optionally, after the information displaying module 503, the method further includes:
an operation configuration information unit, configured to obtain operation configuration information, and mount a browser event for at least one hexagon in the cellular hexagons based on the operation configuration information;
and the display state adjusting unit is used for adjusting the display state of the corresponding cellular hexagon according to the target operation configuration information corresponding to the detected browser event if the mounted browser event is detected.
Optionally, the information display module 504 may include:
the target threshold interval determining unit is used for comparing the attribute information of the object to be analyzed with the threshold interval under the corresponding dimension and determining the target threshold interval to which the attribute information belongs;
and the color filling unit is used for taking the color corresponding to the target threshold interval as the filling color of the hexagon with the smallest radius in the honeycomb hexagons with the corresponding dimension, and the attribute state of the object to be analyzed in the corresponding dimension is represented by the filling color of the hexagon with the smallest radius.
The multi-dimensional analysis device provided by the embodiment of the invention can execute the multi-dimensional analysis method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
FIG. 5 illustrates a schematic diagram of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as a multi-dimensional analysis method.
In some embodiments, a multi-dimensional analysis method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of a multi-dimensional analysis method as described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform a multi-dimensional analysis method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A multi-dimensional analysis method, comprising:
acquiring dimension information and attribute information of an object to be analyzed;
acquiring size information and layout information of a drawing area;
calculating the target size of the honeycomb map grouping area and drawing information of the honeycomb hexagons according to the dimension information, the size information of the drawing area and the layout information;
according to the target size and layout information, determining the cellular graph grouping area in the drawing area, and drawing cellular hexagons in the cellular graph grouping area according to the drawing information;
and determining the filling color of each honeycomb hexagon according to the attribute information, and representing the attribute state of the object to be analyzed in the corresponding dimension through the filling color of the honeycomb hexagon.
2. The method according to claim 1, wherein the acquiring size information and layout information of the drawing area comprises:
acquiring the width and the height of the drawing area;
acquiring first blank configuration information of the drawing area;
acquiring a first relation between the ratio of the height to the width of the honeycomb map grouping area and the ratio of the width to the height of the drawing area;
acquiring a second relation between the height of the honeycomb map grouping area and the height of a drawing area;
acquiring second blank configuration information of the cellular graph grouping area;
and acquiring the radius ratio of a second hexagon to the first hexagon and the radius ratio of a third hexagon to the first hexagon in the three hexagons with coincident center points contained in each honeycomb hexagon.
3. The method according to claim 1, wherein the calculating the target size of the cell map grouping region and the drawing information of the cell hexagons based on the dimension information, the size information of the drawing region, and the layout information includes:
calculating the line number, the column number and the reference size information of the honeycomb hexagons in at least one honeycomb map grouping area according to the dimension information, the size information and the layout information of the drawing area, and taking the line number, the column number and the reference size information as the drawing information of the honeycomb hexagons;
and calculating the target size of the grouping area of the at least one cellular graph according to the row number, the column number and the reference size information.
4. The method according to claim 3, wherein the calculating the number of rows, the number of columns, and the reference size information of the cell hexagons in at least one cell map grouping region according to the dimension information, the size information of the drawing region, and the layout information comprises:
determining the number of the honeycomb map grouping areas according to the number of the dimension groups in the dimension information, and determining the number of honeycomb hexagons in each honeycomb map grouping area according to the number of the dimensions in each dimension group;
calculating the number of rows and the number of columns of the honeycomb hexagons in each honeycomb map grouping area according to the width and the height of the drawing area and the number of the honeycomb hexagons;
if the number of the cellular graph grouping areas is 1, calculating the radius of the first hexagon in the cellular hexagon according to the height of the drawing area and the line number in the cellular graph grouping area to serve as reference size information;
if the number of the cellular graph grouping areas is at least two, determining the radius of the first hexagon in the cellular hexagons in the corresponding cellular graph grouping area as reference size information according to the width of the drawing area, the row number and the column number in each cellular graph grouping area, first blank configuration information and second blank configuration information;
and calculating the target size of the at least one honeycomb map grouping area according to the row number, the column number and the reference size information, wherein the calculating comprises the following steps:
and calculating the target height and the target width of the corresponding cellular graph grouping area according to the row number, the column number, the reference size information, the first relation and the second relation in each cellular graph grouping area.
5. The method according to claim 1, wherein the determining the cell map grouping area within the drawing area according to the target size and layout information, and drawing a cell hexagon within the cell map grouping area according to the drawing information comprises:
for each cellular graph grouping area, drawing a frame of the corresponding cellular graph grouping area in the drawing area according to the target height, the target width and the first margin configuration information;
calculating the radius of a second hexagon and the radius of a third hexagon in the frame based on the reference size information of the honeycomb hexagons in the corresponding honeycomb map grouping area, the radius ratio of the second hexagon to the first hexagon and the radius ratio of the third hexagon to the first hexagon;
determining the coordinates of the center point of the first hexagon according to the second margin configuration information, the reference size information of the first hexagon in the corresponding honeycomb map grouping area, the edge center distance and the row number of the first hexagon;
and drawing the honeycomb hexagon in the frame of the corresponding honeycomb map grouping area based on the center point coordinate of the first hexagon, the reference size information, the second hexagon radius and the third hexagon radius.
6. The method of claim 1, further comprising, after drawing the cell hexagon within a bounding box of the corresponding cell graph grouping region:
obtaining operation configuration information, and mounting a browser event for at least one hexagon in the cellular hexagons based on the operation configuration information;
and if the mounted browser event is detected, adjusting the display state of the corresponding cellular hexagon according to the target operation configuration information corresponding to the detected browser event.
7. The method according to claim 1, wherein the determining a filling color of each honeycomb hexagon according to the attribute information, the filling color of each honeycomb hexagon representing an attribute state of the object to be analyzed in a corresponding dimension, includes:
comparing the attribute information of the object to be analyzed with the threshold interval under the corresponding dimension, and determining the target threshold interval to which the attribute information belongs;
and taking the color corresponding to the target threshold interval as the filling color of the hexagon with the smallest radius in the honeycomb hexagons with the corresponding dimension, and representing the attribute state of the object to be analyzed in the corresponding dimension through the filling color of the hexagon with the smallest radius.
8. A multi-dimensional analysis apparatus, comprising:
the first information acquisition module is used for acquiring the dimension information and the attribute information of the object to be analyzed;
the second information acquisition module is used for executing acquisition of size information and layout information of the drawing area;
an information calculation module for performing calculation of a target size of the cellular diagram grouping region and drawing information of cellular hexagons based on the dimension information, size information of drawing regions, and layout information;
the graph drawing module is used for determining the cellular graph grouping area in the drawing area according to the target size and the layout information, and drawing cellular hexagons in the cellular graph grouping area according to the drawing information;
and the information display module is used for determining the filling color of each honeycomb hexagon according to the attribute information, and representing the attribute state of the object to be analyzed in the corresponding dimension through the filling color of the honeycomb hexagons.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the multi-dimensional analysis method of any one of claims 1-7.
10. A computer-readable storage medium storing computer instructions for causing a processor to perform the multidimensional analysis method of any one of claims 1-7 when executed.
CN202210449212.2A 2022-04-24 2022-04-24 Multi-dimensional analysis method and device, electronic equipment and medium Pending CN115272513A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210449212.2A CN115272513A (en) 2022-04-24 2022-04-24 Multi-dimensional analysis method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210449212.2A CN115272513A (en) 2022-04-24 2022-04-24 Multi-dimensional analysis method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN115272513A true CN115272513A (en) 2022-11-01

Family

ID=83759456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210449212.2A Pending CN115272513A (en) 2022-04-24 2022-04-24 Multi-dimensional analysis method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN115272513A (en)

Similar Documents

Publication Publication Date Title
US11481954B2 (en) Systems and methods for 3-D scene acceleration structure creation and updating
CN105261066B (en) A kind of three-dimensional geographic information system real-time rendering multithreading distribution and control method
CN110675728B (en) Generation method, device and equipment of thermodynamic diagram and computer readable storage medium
CN106934058B (en) Vector data reading method and system and vector data visualization method and system
CN109859109B (en) Series scale PDF map seamless organization and display method
US20220198748A1 (en) Method for visualizing large-scale point cloud based on normal
CN102937896B (en) The method of color mapping techniques Dynamic Display two-dimensional space data is utilized in SVG
US20190332861A1 (en) Digital Content Automated Layout System
CN108230433B (en) 3D map scatter data display method and system and information data processing terminal
CN115510337A (en) Three-dimensional annotation scheduling display method
CN105913475A (en) Dynamic visualized method of space-time change process
Shan et al. Interactive visual exploration of halos in large-scale cosmology simulation
Janetzko et al. Enhancing scatter plots using ellipsoid pixel placement and shading
CN110827407B (en) Method and system for automatically outputting meshing resource triangle fit degree
CN116595089A (en) Task dependency graph layout method, device, equipment and storage medium
CN115272513A (en) Multi-dimensional analysis method and device, electronic equipment and medium
CN114511862A (en) Form identification method and device and electronic equipment
CN111159480B (en) Graph drawing method based on power grid GIS data
CN111192339B (en) Geographic position data rendering method and device
CN114842109A (en) Method and device for realizing multidimensional analysis, electronic equipment and medium
US11600028B1 (en) Semantic resizing of line charts
CN110738719A (en) Web3D model rendering method based on visual range hierarchical optimization
US10102652B2 (en) Binning to prevent overplotting for data visualization
CN107749073B (en) Statistical map drawing method supporting timing sequence feature exploration
JP7427120B2 (en) Feature image processing method, device and storage medium

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