Multi-object association display method and device and computer readable storage medium

文档序号:1921681 发布日期:2021-12-03 浏览:25次 中文

阅读说明:本技术 多对象的关联显示方法、装置和计算机可读存储介质 (Multi-object association display method and device and computer readable storage medium ) 是由 周涛 申作军 于 2020-07-10 设计创作,主要内容包括:本公开涉及一种多对象的关联显示方法、装置和计算机可读存储介质,涉及计算机技术领域。本公开的方法包括:获取各个待显示对象的标识、参考数据和关系,多个待显示对象包括一个主对象,以及一个或多个与主对象具有预设关系的相关对象;确定主对象对应的中心图形的面积;根据各个相关对象的参考数据与主对象的参考数据的比值,确定各个相关对象对应的图形的面积;根据各个相关对象与主对象的关系强度,确定各个相关对象与主对象的距离;将主对象对应的中心图形显示在可视区域中心,将各个相关对象对应的图形分散且不重叠的环绕显示在主对象的周围,并将主对象的标识与中心图形关联显示,将各个相关对象的标识分别与对应的图形关联显示。(The disclosure relates to a multi-object association display method and device and a computer readable storage medium, and relates to the technical field of computers. The method of the present disclosure comprises: acquiring the identification, reference data and relationship of each object to be displayed, wherein the plurality of objects to be displayed comprise a main object and one or more related objects having a preset relationship with the main object; determining the area of a central graph corresponding to the main object; determining the area of the graph corresponding to each related object according to the ratio of the reference data of each related object to the reference data of the main object; determining the distance between each related object and the main object according to the relationship strength between each related object and the main object; displaying a central graph corresponding to the main object in the center of the visual area, displaying graphs corresponding to all related objects around the main object in a scattered and non-overlapping surrounding manner, displaying the identification of the main object in association with the central graph, and displaying the identification of each related object in association with the corresponding graph respectively.)

1. A multi-object association display method comprises the following steps:

responding to a plurality of objects to be displayed selected by a user, and acquiring an identifier, reference data and a relation of each object to be displayed, wherein the plurality of objects to be displayed comprise a main object and one or more related objects having a preset relation with the main object;

determining the area of a central graph corresponding to the main object;

determining the area of the graph corresponding to each related object according to the ratio of the reference data of each related object to the reference data of the main object;

determining the distance between each related object and the main object according to the relationship strength between each related object and the main object;

displaying a central graph corresponding to the main object in the center of a visual area, displaying graphs corresponding to the related objects around the main object in a scattered and non-overlapping surrounding manner according to the distance between the related objects and the main object, displaying the marks of the main object in association with the central graph, and displaying the marks of the related objects in association with the corresponding graphs respectively.

2. The association display method according to claim 1, wherein the displaying, according to the distance between each related object and the main object, the graphics corresponding to each related object around the main object in a scattered and non-overlapping surrounding manner comprises:

constructing a polar coordinate system by taking the center of the visible area as a coordinate origin;

respectively taking a preset minimum distance and a preset maximum distance from the coordinate origin as the length of a radius, constructing a minimum circle and a maximum circle, and taking an area enclosed by the maximum circle and the minimum circle as a display area of each related object, wherein the display area of each related object is positioned in the visible area;

and in the display area of each related object, displaying graphs corresponding to each related object on each axis in the polar coordinate system in a scattered and non-overlapping manner according to the distance between each related object and the main object.

3. The association display method according to claim 2, wherein, in a case where the visible region is a rectangle, the display region of the related object is a region surrounded by the side of the maximum circle, the side of the minimum circle, and the side of the rectangle;

the displaying graphs corresponding to the related objects on the axes in the polar coordinate system in a scattered and non-overlapping manner according to the distances between the related objects and the main object comprises:

determining a related object, as a first related object, of which the distance from the main object is less than the length of a preset first axis, wherein the preset first axis is a plurality of axes of which the length is less than the maximum circle radius length and which are spaced by a preset first angle;

and displaying graphs corresponding to the first related objects on the preset first axes in a scattered and non-overlapping manner according to the distance between the first related objects and the main object.

4. The association display method according to claim 3, wherein the displaying the graphs corresponding to the respective related objects on the respective axes in the polar coordinate system in a scattered and non-overlapping manner according to the distances between the respective related objects and the main object further comprises:

sequentially displaying graphs corresponding to second related objects except the first related objects on preset second shafts, wherein the length of the preset second shafts is equal to the length of the maximum circle radius and the preset second shafts are uniformly distributed in an area except the first shaft, and the interval between every two adjacent preset second shafts is a preset second angle;

under the condition that the number of the graphs corresponding to the second related objects on each preset second shaft reaches a preset number, sequentially displaying the graphs corresponding to the remaining second related objects on each preset third shaft, wherein the length of each preset third shaft is equal to the length of the maximum circle radius, and the interval between every two adjacent preset third shafts is a preset third angle;

and each preset third shaft is positioned between two adjacent preset second shafts.

5. The association display method according to claim 1, wherein the determining an area of the central graphic corresponding to the main object includes:

determining the ratio of the area of the visible area to a preset basic area;

taking the product of the ratio and the area of a preset graph as the area of a central graph corresponding to the main object;

wherein the preset base area corresponds to the preset pattern area.

6. The association display method according to claim 1, wherein determining the area of the graph corresponding to each related object according to the ratio of the reference data of each related object to the reference data of the main object comprises:

and for each relevant object, multiplying the ratio of the reference data of the relevant object to the reference data of the main object by the area of the central graph to obtain the area of the graph corresponding to the object.

7. The association display method according to claim 6, wherein the determining an area of the graph corresponding to each related object further comprises:

comparing the area of the graph corresponding to each related object with a preset maximum area and a preset minimum area, correcting the area of the graph corresponding to each related object to be the preset maximum area under the condition that the area of the graph corresponding to each related object is larger than the preset maximum area, and correcting the area of the graph corresponding to each related object to be the preset minimum area under the condition that the area of the graph corresponding to each related object is smaller than the preset minimum area;

and the preset maximum area and the preset minimum area are respectively in direct proportion to the area of the visible area.

8. The association display method according to claim 1, further comprising:

respectively displaying the central graph and the graphs corresponding to the related objects into different colors;

or, in response to a user selecting a graphic, displaying at least one of reference data corresponding to the graphic and a strength of relationship between a related object corresponding to the graphic and the main object.

9. The association display method according to any one of claims 1 to 8,

the higher the strength of the relationship between each related object and the main object, the closer the distance to the main object.

10. A multi-object associative display apparatus, comprising:

the display device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for responding to a plurality of objects to be displayed selected by a user and acquiring the identification, reference data and relationship of each object to be displayed, and the plurality of objects to be displayed comprise a main object and one or more related objects which have preset relationship with the main object;

the first area determining module is used for determining the area of a central graph corresponding to the main object;

the second area determining module is used for determining the area of the graph corresponding to each related object according to the ratio of the reference data of each related object to the reference data of the main object;

the distance determining module is used for determining the distance between each related object and the main object according to the relationship strength between each related object and the main object;

and the display module is used for displaying the central graph corresponding to the main object in the center of a visual area, displaying the graphs corresponding to the related objects around the main object in a scattered and non-overlapping surrounding manner according to the distance between the related objects and the main object, displaying the identifications of the main object in association with the central graph, and displaying the identifications of the related objects in association with the corresponding graphs respectively.

11. A multi-object associative display apparatus, comprising:

a processor; and

a memory coupled to the processor for storing instructions that, when executed by the processor, cause the processor to perform the method of associated display of multiple objects of any of claims 1-9.

12. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the program when executed by a processor implements the steps of the method of any one of claims 1-9.

Technical Field

The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for displaying an association of multiple objects, and a computer-readable storage medium.

Background

The chart can realize the visualization of data, more vividly show the difference between the data, and enable a user to more visually see the characteristics of various data. For example, commonly used charts are bar charts, line charts, and the like.

Disclosure of Invention

The inventor finds that: when a plurality of objects need to be displayed, since the coordinate system has only two dimensions, generally, only different objects and respectively corresponding data can be displayed, and the relationship between the objects cannot be displayed at the same time. For example, a bar graph, or the like can only display sales of various kinds of commodities, but cannot display a pulling relationship due to the correlation between commodities. In practical application, users hope to see the difference and the relationship between data of different objects at the same time, and the displayed information amount and the display effect are improved.

One technical problem to be solved by the present disclosure is: a new display method is provided to improve the amount of information displayed and the display effect.

According to some embodiments of the present disclosure, a method for displaying an association of multiple objects is provided, including: responding to a plurality of objects to be displayed selected by a user, and acquiring the identification, reference data and relationship of each object to be displayed, wherein the plurality of objects to be displayed comprise a main object and one or more related objects having a preset relationship with the main object; determining the area of a central graph corresponding to the main object; determining the area of the graph corresponding to each related object according to the ratio of the reference data of each related object to the reference data of the main object; determining the distance between each related object and the main object according to the relationship strength between each related object and the main object; displaying a central graph corresponding to the main object in the center of the visual area, displaying graphs corresponding to the related objects around the main object in a scattered and non-overlapping surrounding manner according to the distance between the related objects and the main object, displaying the identification of the main object in association with the central graph, and displaying the identification of the related objects in association with the corresponding graphs respectively.

In some embodiments, displaying the graphics corresponding to each related object in a scattered and non-overlapping surround manner around the main object according to the distance between each related object and the main object comprises: constructing a polar coordinate system by taking the center of the visible area as a coordinate origin; respectively taking a preset minimum distance and a preset maximum distance from the origin of coordinates as the length of a radius, constructing a minimum circle and a maximum circle, and taking an area enclosed by the maximum circle and the minimum circle as a display area of each related object, wherein the display area of each related object is positioned in a visible area; in the display area of each related object, the graphs corresponding to the related objects are displayed on each axis in the polar coordinate system in a scattered and non-overlapping manner according to the distance between the related objects and the main object.

In some embodiments, in the case that the visible region is a rectangle, the display region of the related object is a region surrounded by the side of the maximum circle, the side of the minimum circle, and the side of the rectangle; displaying the graphs corresponding to the related objects on the axes in the polar coordinate system in a scattered and non-overlapping manner according to the distances between the related objects and the main object comprises the following steps: determining a related object, as a first related object, of which the distance from the main object is less than the length of a preset first axis, wherein the preset first axis is a plurality of axes of which the length is less than the length of the maximum circle radius and which are spaced by a preset first angle; and displaying graphs corresponding to the first related objects on the preset first axes in a scattered and non-overlapping manner according to the distance between the first related objects and the main object.

In some embodiments, displaying the graphs corresponding to the related objects on the axes in the polar coordinate system in a scattered and non-overlapping manner according to the distances between the related objects and the main object further includes: sequentially displaying graphs corresponding to second related objects except the first related objects on preset second shafts, wherein the preset second shafts are areas with lengths equal to the length of the maximum circle radius and are uniformly distributed outside the first shafts, and the interval between every two adjacent preset second shafts is a preset second angle; under the condition that the number of the graphs corresponding to the second related objects on each preset second shaft reaches a preset number, sequentially displaying the graphs corresponding to the remaining second related objects on each preset third shaft, wherein the length of each preset third shaft is equal to the length of the maximum circle radius, and the interval between every two adjacent preset third shafts is a preset third angle; and each preset third shaft is positioned between two adjacent preset second shafts.

In some embodiments, determining the area of the central graphic corresponding to the primary object comprises: determining the ratio of the area of the visible area to a preset basic area; taking the product of the ratio and the area of the preset graph as the area of the central graph corresponding to the main object; wherein the preset basic area corresponds to the preset graph area.

In some embodiments, determining the area of the graph corresponding to each related object according to the ratio of the reference data of each related object to the reference data of the main object includes: and for each relevant object, multiplying the ratio of the reference data of the relevant object to the reference data of the main object by the area of the central graph to obtain the area of the graph corresponding to the object.

In some embodiments, determining the area of the graph corresponding to each related object further comprises: comparing the area of the graph corresponding to each related object with a preset maximum area and a preset minimum area, correcting the area of the graph corresponding to each related object to be the preset maximum area under the condition that the area of the graph corresponding to each related object is larger than the preset maximum area, and correcting the area of the graph corresponding to each related object to be the preset minimum area under the condition that the area of the graph corresponding to each related object is smaller than the preset minimum area; the preset maximum area and the preset minimum area are respectively in direct proportion to the area of the visible area.

In some embodiments, the method further comprises: respectively displaying the central graph and the graphs corresponding to the related objects into different colors; or, in response to a user selecting a graphic, displaying at least one of reference data corresponding to the graphic and a strength of relationship between a related object corresponding to the graphic and the main object.

In some embodiments, the higher the strength of the relationship of each related object to the main object, the closer the distance to the main object.

According to other embodiments of the present disclosure, there is provided a multi-object related display device including: the display device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for responding to a plurality of objects to be displayed selected by a user and acquiring the identification, reference data and relationship of each object to be displayed, and the plurality of objects to be displayed comprise a main object and one or more related objects which have preset relationship with the main object; the first area determining module is used for determining the area of a central graph corresponding to the main object; the second area determining module is used for determining the area of the graph corresponding to each related object according to the ratio of the reference data of each related object to the reference data of the main object; the distance determining module is used for determining the distance between each related object and the main object according to the relation strength between each related object and the main object, wherein the higher the relation strength is, the closer the distance between each related object and the main object is; and the display module is used for displaying the central graph corresponding to the main object in the center of the visual area, displaying the graphs corresponding to the related objects around the main object in a scattered and non-overlapping surrounding manner according to the distance between the related objects and the main object, displaying the marks of the main object in a correlation manner with the central graph, and displaying the marks of the related objects in a correlation manner with the corresponding graphs respectively.

In some embodiments, the display module is configured to construct a polar coordinate system with a center of the viewable area as an origin of coordinates; respectively taking a preset minimum distance and a preset maximum distance from the origin of coordinates as the length of a radius, constructing a minimum circle and a maximum circle, and taking an area enclosed by the maximum circle and the minimum circle as a display area of each related object, wherein the display area of each related object is positioned in a visible area; in the display area of each related object, the graphs corresponding to the related objects are displayed on each axis in the polar coordinate system in a scattered and non-overlapping manner according to the distance between the related objects and the main object.

In some embodiments, in the case that the visible region is a rectangle, the display region of the related object is a region surrounded by the side of the maximum circle, the side of the minimum circle, and the side of the rectangle; the display module is used for determining related objects of which the distance to the main object is smaller than the length of a preset first axis, the related objects serve as first related objects, and graphs corresponding to the first related objects are displayed on the preset first axis in a scattered and non-overlapping mode according to the distance between the first related objects and the main object, wherein the preset first axis is a plurality of axes of which the length is smaller than the length of the maximum circle radius and which are spaced by preset first angles.

In some embodiments, the display module is configured to sequentially display a graph corresponding to each second related object outside the first related object on each preset second axis, where the preset second axis is an area whose length is equal to the maximum circle radius length and is uniformly distributed outside the first axis, and an interval between adjacent preset second axes is a preset second angle; under the condition that the number of the graphs corresponding to the second related objects on each preset second shaft reaches a preset number, sequentially displaying the graphs corresponding to the remaining second related objects on each preset third shaft, wherein the length of each preset third shaft is equal to the length of the maximum circle radius, and the interval between every two adjacent preset third shafts is a preset third angle; and each preset third shaft is positioned between two adjacent preset second shafts.

In some embodiments, the first area determination module is configured to determine a ratio of an area of the viewable area to a preset base area; taking the product of the ratio and the area of the preset graph as the area of the central graph corresponding to the main object; wherein the preset basic area corresponds to the preset graph area.

In some embodiments, the second area determination module is configured to, for each relevant object, multiply the ratio of the reference data of the relevant object to the reference data of the main object by the area of the central graph as the area of the graph corresponding to the object.

In some embodiments, the second area determining module is configured to compare, for each related object, an area of a graph corresponding to the related object with a preset maximum area and a preset minimum area, correct the area of the graph corresponding to the related object to the preset maximum area when the area of the graph corresponding to the related object is greater than the preset maximum area, and correct the area of the graph corresponding to the related object to the preset minimum area when the area of the graph corresponding to the related object is less than the preset minimum area; the preset maximum area and the preset minimum area are respectively in direct proportion to the area of the visible area.

In some embodiments, the display module is further configured to display the center graphic and the graphic corresponding to each related object as different colors, respectively; or, in response to a user selecting a graphic, displaying at least one of reference data corresponding to the graphic and a strength of relationship between a related object corresponding to the graphic and the main object.

According to still other embodiments of the present disclosure, there is provided a multi-object related display device, including: a processor; and a memory coupled to the processor for storing instructions that, when executed by the processor, cause the processor to perform a method of associated display of multiple objects as in any of the preceding embodiments.

According to still further embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon a computer program, wherein the program when executed by a processor implements the multi-object associative display method of any of the foregoing embodiments.

The method and the device respond to a plurality of objects to be displayed selected by a user, and obtain the identification, the reference data and the relation of each object to be displayed. The plurality of objects to be displayed comprise a main object and one or more related objects having a preset relationship with the main object. The difference of the reference data of different objects is reflected visually through the areas of the graphs corresponding to the main object and each related object, and the relationship between each related object and the main object is reflected visually as the distance between each related object and the main object is closer. Finally, the center graphic of the main object is displayed at the center of the visual area, and the related objects are displayed around the main object in a surrounding manner dispersed by the distance from the main object. The user can clearly and visually see the difference of the reference data of each object to be displayed and the relation between the objects to be displayed, the displayed information amount and the display effect are improved, and the user experience is improved.

Other features of the present disclosure and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.

Drawings

In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative efforts.

Fig. 1 illustrates a flow diagram of an associated display method of multiple objects of some embodiments of the present disclosure.

Fig. 2A illustrates a display effect schematic of some embodiments of the present disclosure.

Fig. 2B shows a display effect schematic diagram of further embodiments of the present disclosure.

Fig. 3 shows a flow diagram of a method of multi-object association display according to further embodiments of the disclosure.

Fig. 4 illustrates a schematic structural diagram of a multi-object associative display device according to some embodiments of the present disclosure.

Fig. 5 shows a schematic structural diagram of a multi-object associated display apparatus according to further embodiments of the present disclosure.

Fig. 6 is a schematic structural diagram of a multi-object associated display device according to still other embodiments of the present disclosure.

Detailed Description

The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.

The present disclosure proposes a method for displaying multiple objects in association, which is described below with reference to fig. 1.

FIG. 1 is a flow chart of some embodiments of a multi-object association display method of the present disclosure. As shown in fig. 1, the method of this embodiment includes: steps S102 to S110.

In step S102, in response to a plurality of objects to be displayed selected by the user, the identifier, reference data, and relationship of each object to be displayed are obtained.

The plurality of objects to be displayed comprise a main object and one or more related objects having a preset relationship with the main object. In the case where the user wants to view reference data and relationships of a plurality of objects to be displayed in the form of a graph, the objects to be displayed can be selected. For example, information such as the identification, reference data, and relationship of each object to be displayed may be first displayed in the form of a data table, and a table generation button may be displayed. And responding to the user clicking the chart generation button, and displaying prompt information for selecting the object to be displayed to the user. And responding to the user selecting part or all of the objects in the data table (for example, clicking the objects in the data table or clicking a full selection button and the like), and acquiring the objects clicked by the user as the objects to be displayed. Furthermore, prompt information for selecting the main object can be displayed for the user, and all objects to be displayed selected by the user are displayed for the user to select the main object from the objects. In response to the user selecting the master object, a corresponding master object tag is set for the master object (the identity of the master object and the corresponding tag may be recorded in the background).

Of course, the prompt information for selecting the main object may be displayed to the user, and the prompt information for selecting other objects to be displayed may be displayed to the user after the main object is selected. The data table, the information selected by the user, etc. may be stored in a database or cache. When the main object and each related object have multiple relations, prompt information for selecting the relation type can be displayed for the user. And responding to the relationship type selected by the user, and acquiring the identifier of the relationship type.

Under the condition that a user selects a plurality of objects to be displayed, the identification of each object to be displayed can be obtained, and corresponding reference data and relation information can be searched for from a database further according to the identification of the objects to be displayed. The relationship information may include: the strength of the relationship of each related object to the master object. When the main object and each related object have multiple relationships and a user selects a relationship type, corresponding relationship information needs to be searched for from a database according to the identifier of the relationship type and the identifier of the object to be displayed.

In step S104, the area of the center graphic corresponding to the main object is determined.

In some embodiments, a ratio of an area of the viewable area to a preset base area is determined. And taking the product of the ratio and the area of the preset graph as the area of the central graph corresponding to the main object. The predetermined base area corresponds to the predetermined pattern area. The area of the visible area can be obtained according to the sizes of different display screens, and the area of the central graph corresponding to the main object can be dynamically adjusted according to the area of the visible area.

The central graphic corresponding to the main object and the graphic corresponding to each related object may be the same graphic, and may be regular graphics, such as a circle, a square, or a star

In step S106, the area of the graph corresponding to each related object is determined according to the ratio of the reference data of each related object to the reference data of the main object.

The main object and the related objects are, for example, commodities of different categories, and the reference data may be click rate, browsing amount, search amount, sales amount, bargain amount, etc. of the commodities, or the main object and the related objects are different users, and the reference data is click rate, browsing amount, search amount, number of purchased commodities, sharing number, etc. of the users.

In some embodiments, for each relevant object, the area of the graph corresponding to the relevant object is determined by multiplying the ratio of the reference data of the relevant object to the reference data of the main object by the area of the central graph. The difference of the reference data of each object can be intuitively reflected through the area size, and the display effect is better.

The maximum area and the minimum area of each related object can be set, and the influence of undersize or oversize display on the display effect is avoided. In some embodiments, for each related object, comparing an area of a graph corresponding to the related object with a preset maximum area and a preset minimum area, modifying the area of the graph corresponding to the related object to the preset maximum area if the area of the graph corresponding to the related object is greater than the preset maximum area, and modifying the area of the graph corresponding to the related object to the preset minimum area if the area of the graph corresponding to the related object is less than the preset minimum area. The preset maximum area and the preset minimum area are respectively in direct proportion to the area of the visible area. Namely, the preset maximum area and the preset minimum area can be dynamically adjusted according to the size of the visible area.

In step S108, the distance between each related object and the main object is determined according to the relationship strength between each related object and the main object.

For example, the higher the strength of the relationship, the closer the relevant object is to the main object. The relationship strength of each related object main object may be predetermined, and the relationship strength expressed by a unit distance may be preset, for example, 1cm represents that the relationship strength value is 5, and the distance between each related object and the main object may be determined according to the relationship strength of each related object main object. The relationship strength between each related object and the main object can be visually displayed through the distance, and the display effect is good. Let the strength of the relationship expressed in unit distance be inversely proportional to the area of the viewable area.

In step S110, a central graphic corresponding to the main object is displayed in the center of the visual area, and the graphics corresponding to the related objects are displayed around the main object in a scattered and non-overlapping manner according to the distance between the related objects and the main object, and the identifier of the main object is displayed in association with the central graphic, and the identifier of each related object is displayed in association with the corresponding graphic.

The main object is displayed in the center of the visual area, and each related object is displayed around the main object, which may form a planetary chart, as shown in fig. 2A. In some embodiments, a polar coordinate system is constructed with the center of the viewable area as the origin of coordinates; and respectively taking the preset minimum distance and the preset maximum distance from the origin of coordinates as the length of the radius, constructing a minimum circle and a maximum circle, and taking an area enclosed by the maximum circle and the minimum circle as a display area of each related object, wherein the display area of each related object is positioned in the visible area. In the display area of each related object, the graphs corresponding to each related object are displayed on each axis in the polar coordinate system in a scattered and non-overlapping manner according to the distance between each related object and the main object, as shown in fig. 2B.

The maximum circle and the minimum circle are set in order to avoid that the graphic display corresponding to the relevant object exceeds the visible area or overlaps the central graphic. In case the central pattern is circular, the preset minimum distance may be greater than or equal to 2 times the radius of the central pattern. The preset maximum distance is determined according to the boundary of the visible area.

In some embodiments, if the maximum circle can be completely displayed in the visible area, the lengths of the polar axes are equal, the number of the polar axes in the polar coordinate system is determined according to the number of the related objects, the polar axes are equally arranged according to the included angle between two adjacent polar axes, a graph of the related object is selected on each polar axis, and the graph of the related object is displayed on the polar axis according to the distance between the related object and the main object. In this way, each related object can be uniformly displayed around the main object, and the distance between the related object and the main object can be the distance between the center of the graph corresponding to the related object and the center of the graph.

In some embodiments, in the case where the visible region is a rectangle, the display region of the related object is a region surrounded by the side of the maximum circle, the side of the minimum circle, and the side of the rectangle. In this case, as shown in fig. 2B, the lengths of the respective polar axes are different. And determining a related object, which has a length smaller than the length of the maximum circle radius and is spaced by a preset first angle, as a preset first axis, and determining the related object, which has a distance from the main object smaller than the length of the preset first axis, as a first related object. And displaying graphs corresponding to the first related objects on the preset first axes in a scattered and non-overlapping manner according to the distance between the first related objects and the main object.

Further, a plurality of axes which have the length equal to the length of the maximum circle radius and are spaced by a preset second angle are used as preset second axes, and graphs corresponding to second related objects except the first related objects are sequentially displayed on the preset second axes; the preset second shafts are uniformly distributed in the display area outside the first shaft, and the interval angles are larger as much as possible. The display effect is more uniform and the probability of mutual folding between the display effect and the display effect is reduced.

And under the condition that the number of the graphs corresponding to the second related objects on each preset second axis reaches a preset number, sequentially displaying the graphs corresponding to the remaining second related objects on each preset third axis. The preset third axis is a plurality of axes having a length equal to the maximum circle radius length and spaced by a preset third angle. Each of the predetermined third axes may be located between two adjacent predetermined second axes. The total number of the first axis, the second axis and the third axis is proportional to the number of the related objects. For example, the total number of the second axis and the third axis may be equal to the number of the related objects, so as to ensure that the graphics corresponding to all the related objects appear in the visible area.

Different polar axes (radial axes) and angles between the polar axes can be preset, and the principle is to ensure that the patterns are not shielded or overlapped as much as possible and the angle distribution is kept uniform. For example, the first axis is a preferentially assigned radial axis dedicated to displaying graphics corresponding to the relevant objects that are close to the central graphic. The first axis spacing should be as large as possible. When the graphics on the first axis reach a threshold value, or when the graphics cannot be displayed without overlapping, the allocation of the second axis is started. The spacing between the second axes is relatively large. And when the number of the graphs on the second axis reaches a preset number, starting to allocate a third axis. The third shaft may be interposed between the second shafts.

Under the condition of displaying the graphs corresponding to the related objects, the sizes of the graphs can be dynamically adjusted according to whether the graphs are shielded during displaying, and the areas of the graphs are adjusted according to the proportion of the reference data. By judging the distance from each related object to the main object, a plurality of images can be distributed in the same radial axis, so that the probability of mutual shielding of the images can be continuously reduced, and a better visual effect can be achieved.

In the embodiment, the identifier, the reference data and the relation of each object to be displayed are acquired in response to the plurality of objects to be displayed selected by the user. The plurality of objects to be displayed comprise a main object and one or more related objects having a preset relationship with the main object. The difference of the reference data of different objects is reflected visually through the areas of the graphs corresponding to the main object and each related object, and the relationship between each related object and the main object is reflected visually as the distance between each related object and the main object is closer. Finally, the center graphic of the main object is displayed at the center of the visual area, and the related objects are displayed around the main object in a surrounding manner dispersed by the distance from the main object. The user can clearly and visually see the difference of the reference data of each object to be displayed and the relation between the objects to be displayed, the displayed information amount and the display effect are improved, and the user experience is improved.

In addition, through the display area who sets up relevant object, the biggest area and the minimum area of control relevant object to and set up the different relevant object's of the scattered figure of demonstration of different radial axes, reduce the probability that each figure takes place to overlap and shelter from, the size of reasonable control figure realizes better visual effect, promotes user experience.

In some embodiments, the center graphic and the graphic corresponding to each related object may be displayed in different colors, respectively. The respective radial axes may also be displayed as desired. In other embodiments, in response to a user selecting a graphic, at least one of reference data corresponding to the graphic and a strength of relationship of a related object corresponding to the graphic to the primary object is displayed. For example, the user may click on the graphic or move a mouse over the graphic, thereby displaying the relevant information.

The main object and the related objects are commodities of different categories, and the reference data is the click rate as an example. And for each related object, determining a first time for purchasing the main object and the related object together within a preset time, a second time for clicking the main object and clicking the related object to continuously click for a time period less than a preset number of clicks, a third time for sharing the main object and the related object together, and the like, and weighting the first time, the second time and the third time to obtain the relationship strength between the main object and the related object.

The main object and the related object are different users, and the reference data is taken as the browsing volume as an example. For each related object, the number of times that the main object shares with the related object, the number of times of interaction (for example, sending information, approval, comment, and the like), the number of times that the main object browses the related object after sharing with the related object, and the like are determined within a preset time, and the various numbers are weighted to obtain the relationship strength between the main object and the related object.

Further embodiments of the disclosed multi-object association display method are described below in conjunction with fig. 3.

FIG. 3 is a flow chart of still other embodiments of a multi-object association display method of the present disclosure. As shown in fig. 3, the method of this embodiment includes: steps S302 to S322.

In step S302, in response to a plurality of objects to be displayed selected by the user, the identifier, reference data, and relationship of each object to be displayed are obtained.

In step S304, the area of the center graphic corresponding to the main object is determined.

In step S306, the area of the graph corresponding to each related object is determined according to the ratio of the reference data of each related object to the reference data of the main object.

In step S308, the area of the graph corresponding to each related object is corrected according to the preset maximum area and the preset minimum area.

And aiming at each related object, comparing the area of the graph corresponding to the related object with a preset maximum area and a preset minimum area, correcting the area of the graph corresponding to the related object to be the preset maximum area under the condition that the area of the graph corresponding to the related object is larger than the preset maximum area, and correcting the area of the graph corresponding to the related object to be the preset minimum area under the condition that the area of the graph corresponding to the related object is smaller than the preset minimum area.

In step S310, the distance between each related object and the main object is determined according to the relationship strength between each related object and the main object.

In step S312, a polar coordinate system is constructed with the center of the visible region as the origin of coordinates.

In step S314, a minimum circle and a maximum circle are constructed with a preset minimum distance and a preset maximum distance from the origin of coordinates as the length of the radius, respectively, and an area surrounded by the maximum circle and the minimum circle is used as a display area of each related object.

In step S316, a related object whose distance from the main object is less than the length of the preset first axis is determined as a first related object within the display area of each related object.

In step S318, the graphics corresponding to the first related objects are assigned to the preset first axes according to the distances between the first related objects and the main object, and displayed.

For example, one graphic is assigned to each first axis.

In step S320, when the preset number of the graphs on the first axis reaches the first preset number or the graphs of each first related object are completely allocated, the graphs corresponding to each second related object except the first related object are sequentially allocated to each preset second axis for displaying.

In step S322, when the number of the graphics on the second axis reaches the second preset number, the remaining graphics corresponding to the second related object are sequentially allocated to the preset third axes for displaying until all the graphics corresponding to the related objects are allocated completely.

The present disclosure also provides a multi-object association display apparatus, which is described below with reference to fig. 4.

FIG. 4 is a block diagram of some embodiments of a multi-object associative display apparatus of the present disclosure. As shown in fig. 4, the apparatus 40 of this embodiment includes: an acquisition module 402, a first area determination module 404, a second area determination module 406, a distance determination module 408, and a display module 410.

An obtaining module 402, configured to obtain, in response to a plurality of objects to be displayed selected by a user, an identifier, reference data, and a relationship of each object to be displayed, where the plurality of objects to be displayed include a main object and one or more related objects having a preset relationship with the main object.

A first area determining module 404, configured to determine an area of a central graph corresponding to the main object.

In some embodiments, the first area determination module 404 is configured to determine a ratio of an area of the visible region to a preset base area; taking the product of the ratio and the area of the preset graph as the area of the central graph corresponding to the main object; wherein the preset basic area corresponds to the preset graph area.

And a second area determining module 406, configured to determine an area of the graph corresponding to each related object according to a ratio of the reference data of each related object to the reference data of the main object.

In some embodiments, the second area determining module 406 is configured to, for each relevant object, multiply the ratio of the reference data of the relevant object to the reference data of the main object by the area of the central graph as the area of the graph corresponding to the object.

In some embodiments, the second area determining module 406 is configured to compare, for each related object, an area of a graph corresponding to the related object with a preset maximum area and a preset minimum area, modify the area of the graph corresponding to the related object to the preset maximum area when the area of the graph corresponding to the related object is greater than the preset maximum area, and modify the area of the graph corresponding to the related object to the preset minimum area when the area of the graph corresponding to the related object is less than the preset minimum area; the preset maximum area and the preset minimum area are respectively in direct proportion to the area of the visible area.

And a distance determining module 408, configured to determine a distance between each related object and the main object according to a relationship strength between each related object and the main object, where the distance between each related object and the main object is closer as the relationship strength is higher.

The display module 410 is configured to display a central graphic corresponding to the main object in the center of the visual area, display the graphics corresponding to each related object around the main object in a scattered and non-overlapping manner according to the distance between each related object and the main object, display the identifier of the main object in association with the central graphic, and display the identifier of each related object in association with the corresponding graphic.

In some embodiments, the display module 410 is configured to construct a polar coordinate system with the center of the viewable area as the origin of coordinates; respectively taking a preset minimum distance and a preset maximum distance from the origin of coordinates as the length of a radius, constructing a minimum circle and a maximum circle, and taking an area enclosed by the maximum circle and the minimum circle as a display area of each related object, wherein the display area of each related object is positioned in a visible area; in the display area of each related object, the graphs corresponding to the related objects are displayed on each axis in the polar coordinate system in a scattered and non-overlapping manner according to the distance between the related objects and the main object.

In some embodiments, in the case that the visible region is a rectangle, the display region of the related object is a region surrounded by the side of the maximum circle, the side of the minimum circle, and the side of the rectangle; the display module 410 is configured to determine related objects, as first related objects, whose distance from the main object is smaller than the length of a preset first axis, and display, as the first related objects, the graphs corresponding to the first related objects, on the preset first axes in a dispersed and non-overlapping manner according to the distance between the first related objects and the main object, where the preset first axis is a plurality of axes whose length is smaller than the length of the maximum circle radius and which are separated by a preset first angle.

In some embodiments, the display module 410 is configured to sequentially display a graph corresponding to each second related object except the first related object on each preset second axis, where the preset second axis is an area whose length is equal to the maximum circle radius length and is uniformly distributed outside the first axis, and an interval between adjacent preset second axes is a preset second angle; under the condition that the number of the graphs corresponding to the second related objects on each preset second shaft reaches a preset number, sequentially displaying the graphs corresponding to the remaining second related objects on each preset third shaft, wherein the length of each preset third shaft is equal to the length of the maximum circle radius, and the interval between every two adjacent preset third shafts is a preset third angle; and each preset third shaft is positioned between two adjacent preset second shafts.

In some embodiments, the display module 410 is further configured to display the center graphic and the graphic corresponding to each related object as different colors, respectively; or, in response to a user selecting a graphic, displaying at least one of reference data corresponding to the graphic and a strength of relationship between a related object corresponding to the graphic and the main object.

The multiple-object associated display apparatus in the embodiments of the present disclosure may each be implemented by various computing devices or computer systems, which are described below in conjunction with fig. 5 and 6.

FIG. 5 is a block diagram of some embodiments of a multi-object associative display apparatus of the present disclosure. As shown in fig. 5, the apparatus 50 of this embodiment includes: a memory 510 and a processor 520 coupled to the memory 510, the processor 520 configured to perform a method of associated display of multiple objects in any of the embodiments of the present disclosure based on instructions stored in the memory 510.

Memory 510 may include, for example, system memory, fixed non-volatile storage media, and the like. The system memory stores, for example, an operating system, an application program, a Boot Loader (Boot Loader), a database, and other programs.

FIG. 6 is a block diagram of another embodiment of a multi-object association display apparatus of the present disclosure. As shown in fig. 6, the apparatus 60 of this embodiment includes: memory 610 and processor 620 are similar to memory 510 and processor 520, respectively. An input output interface 630, a network interface 640, a storage interface 650, and the like may also be included. These interfaces 630, 640, 650 and the connections between the memory 610 and the processor 620 may be, for example, via a bus 660. The input/output interface 630 provides a connection interface for input/output devices such as a display, a mouse, a keyboard, and a touch screen. The network interface 640 provides a connection interface for various networking devices, such as a database server or a cloud storage server. The storage interface 650 provides a connection interface for external storage devices such as an SD card and a usb disk.

As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

The above description is only exemplary of the present disclosure and is not intended to limit the present disclosure, so that any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于动态情形查看证照百科的实现方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!