Event sequence data display method and apparatus, terminal device, and storage medium

The polygon spliced ​​graphics represent the event sequence data set and support user operations, which solves the problem of low space utilization in the existing technology when displaying multiple event sequences, and achieves compact and efficient data display.

WO2024148926A9PCT designated stage expired Publication Date: 2024-08-29TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/129266
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-01-09
Filing Date
2023-11-02
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

When displaying multiple event sequences, the existing technology requires a larger display screen and has low space utilization, and cannot efficiently display a large amount of event sequence data.

Method used

The event sequence data set is represented by using a graph spliced ​​by multiple polygons. Each polygon represents an event sequence, and users can view the corresponding event sequence data by operating the polygons in the graph to achieve compact data display.

Benefits of technology

It improves the space utilization of the display screen of event sequence data, and can display multiple event sequences and their corresponding data in one graph. Each event sequence only occupies a polygonal area, which improves the display efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023129266_29082024_PF_FP_ABST
    Figure CN2023129266_29082024_PF_FP_ABST
Patent Text Reader

Abstract

An event sequence data display method and apparatus, a terminal device, and a storage medium, which are related to the technical field of data visualization. The method comprises: displaying a graph corresponding to an event sequence dataset, the graph being formed by splicing together at least two polygons, each polygon corresponding to one piece of event sequence data in the event sequence dataset, and the event sequence data being used for recording a sequence composed of events (310); and in response to an operation directed at a first polygon in the graph, displaying event sequence data corresponding to the first polygon (320). The technical solutions provided in the embodiments of the present application improve the spatial utilization rate of a display picture required for displaying an event sequence.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, terminal device and storage medium for displaying event sequence data

[0001] This application claims priority to Chinese patent application No. 202310029659.9, filed on January 9, 2023, entitled “Method, device, terminal device and storage medium for displaying event sequence data”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] The embodiments of the present application relate to the field of data visualization technology, and in particular to a method, apparatus, terminal device, and storage medium for displaying event sequence data. Background Art

[0003] An event sequence is a sequence of one or more events.

[0004] In related technologies, in order to display multiple event sequences, the event sequences are displayed in the form of a list, with each event sequence occupying one row of the list, and the attribute parameters of each event sequence, such as the start time, duration, location, etc., are displayed in the form of text.

[0005] However, when there are too many event sequences to be displayed, the related technology requires a larger display screen to fully display these event sequences, and the space utilization rate of the display screen is low.

[0006] Summary of the Invention

[0007] The present invention provides a method, apparatus, terminal device, and storage medium for displaying event sequence data, which can improve the space utilization of the display screen required for displaying event sequences. The technical solution is as follows:

[0008] According to one aspect of an embodiment of the present application, a method for displaying event sequence data is provided, the method being executed by a terminal device, the method comprising:

[0009] Display a graph corresponding to an event sequence dataset, wherein the graph is composed of at least two polygons, each polygon corresponding to an event sequence data in the event sequence dataset, and the event sequence data is used to record a sequence composed of events;

[0010] In response to an operation on a first polygon in the graphic, event sequence data corresponding to the first polygon is displayed.

[0011] According to one aspect of an embodiment of the present application, a device for displaying event sequence data is provided, the device comprising:

[0012] A map display module is used to display a graph corresponding to an event sequence data set, wherein the graph is composed of at least two polygons, each polygon corresponding to an event sequence data in the event sequence data set, and the event sequence data is used to record a sequence composed of events;

[0013] The information display module is configured to display event sequence data corresponding to a first polygon in the map in response to an operation on the first polygon.

[0014] In some embodiments, the graph is divided into multiple blocks, each block includes at least one polygon, the polygons included in different blocks correspond to different event sequence data, and the multiple polygons included in the same block correspond to the same event sequence data.

[0015] In some embodiments, each block has an edge outline, and different blocks are distinguished by the edge outline.

[0016] In some embodiments, polygons corresponding to the same event sequence data have the same appearance, and polygons corresponding to different event sequence data have different appearances.

[0017] In some embodiments, polygons corresponding to the same event sequence data have the same color, and polygons corresponding to different event sequence data have different colors.

[0018] In some embodiments, an attribute mark is displayed inside the polygon, and the attribute mark is used to display the attribute parameters of the event sequence data corresponding to the polygon.

[0019] In some embodiments, different attribute tags are used to display different attribute parameters.

[0020] In some embodiments, attribute marks of different sizes are used to display attribute parameters with different values.

[0021] In some embodiments, the information display module is used to:

[0022] In response to a first operation on the first polygon, basic information of event sequence data corresponding to the first polygon is displayed;

[0023] or,

[0024] In response to a second operation on the first polygon, detailed information of the event sequence data corresponding to the first polygon is displayed.

[0025] In some embodiments, the map display module is used to:

[0026] Displaying each event sequence data in the event sequence data set in a list form;

[0027] In response to the display mode switching operation, a graphic corresponding to the event sequence data set is displayed.

[0028] In some embodiments, the polygon is a regular hexagon.

[0029] In some embodiments, the apparatus further comprises:

[0030] a structure generation module, configured to generate a tree structure corresponding to the event sequence data set; wherein each node in the tree structure corresponds to an event, each node in the tree structure has a corresponding event sequence data group, and the event sequence data group corresponding to the first node in the tree structure includes: at least one event sequence data with the event corresponding to the first node as the last event;

[0031] a sorting module, configured to sort each event sequence data in the event sequence data set based on the tree structure to obtain an event sequence data list;

[0032] a coordinate determination module, configured to map each event sequence data in the event sequence data list into a two-dimensional space, and determine the two-dimensional space coordinates corresponding to each event sequence data;

[0033] The map generation module is used to draw polygons corresponding to each of the event sequence data according to the two-dimensional spatial coordinates corresponding to each of the event sequence data to obtain the graph.

[0034] In some embodiments, the structure generation module is configured to:

[0035] Generating a root node of the tree structure;

[0036] Traversing each event sequence data in the event sequence data set, and determining the root node as the current node;

[0037] Traversing each event in the event sequence data in the order of occurrence of each event contained in the event sequence data; if a node corresponding to the event exists among the child nodes of the current node, determining the node corresponding to the event as the current node, and searching for the next event in the event sequence data, until all events in the event sequence data are traversed; if a node corresponding to the event does not exist among the child nodes of the current node, adding the node corresponding to the event to the child nodes of the current node, determining the node corresponding to the event as the current node, and searching for the next event in the event sequence data, until all events in the event sequence data are traversed;

[0038] When all event sequence data in the event sequence data set are traversed, the tree structure corresponding to the event sequence data set is constructed.

[0039] In some embodiments, the sorting module includes:

[0040] A node traversal submodule, configured to traverse each node in the tree structure starting from the root node of the tree structure;

[0041] An initialization submodule, configured to initialize the root node as a first node;

[0042] a sorting submodule, configured to sort the child nodes of the first node in ascending order of depth to obtain a child node sequence of the first node; wherein the depth of the child node refers to the number of layers of descendant nodes contained in the child node;

[0043] The sorting submodule is further configured to reorder the first node and each child node in the child node sequence of the first node to obtain a node sequence corresponding to the first node;

[0044] a sequence determination submodule, configured to determine the node sequence corresponding to the first node as a complete node sequence;

[0045] The sequence determination submodule is further configured to, if the first child node of the first node has a descendant node, determine the first child node as the first node, obtain a node sequence corresponding to the first node, and replace the first node in the complete node sequence with the node sequence corresponding to the first node to obtain an updated complete node sequence;

[0046] The sequence determination submodule is further configured to determine the complete node sequence after the last update as the final complete node sequence when all nodes in the tree structure are traversed;

[0047] The sorting submodule is further configured to sort the event sequence data contained in the event sequence data group corresponding to each node according to the order of each node contained in the final complete node sequence, so as to obtain the event sequence data list.

[0048] In some embodiments, the sorting submodule is used to:

[0049] If the number of child nodes of the first node is 1, then arrange the child nodes of the first node and the first node in order to obtain a node sequence corresponding to the first node;

[0050] If the number of child nodes of the first node is greater than 1, the child node sequence of the first node is split into a first subsequence and a second subsequence according to the index of the child nodes; wherein the first subsequence contains child nodes with odd indexes, and the second subsequence contains child nodes with even indexes; the child nodes in the first subsequence arranged in reverse order, the first node, and the child nodes in the second subsequence arranged in sequential order are arranged in sequence to obtain a node sequence corresponding to the first node.

[0051] In some embodiments, the coordinate determination module is configured to:

[0052] Based on the Gosper curve generation algorithm, a two-dimensional space coordinate array of length k is generated; wherein k is greater than or equal to the number N of event sequence data included in the event sequence data list, and both k and N are positive integers;

[0053] For the i-th event sequence data in the event sequence data list, select the [i+(Nk) / 2]-th two-dimensional space coordinate from the two-dimensional space coordinate array of length k as the two-dimensional space coordinate corresponding to the i-th event sequence data, where i is a positive integer less than or equal to N.

[0054] According to one aspect of an embodiment of the present application, a terminal device is provided, comprising a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the above-mentioned method for displaying event sequence data.

[0055] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned method for displaying event sequence data.

[0056] According to one aspect of an embodiment of the present application, a computer program product is provided, comprising a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the above-described method for displaying event sequence data.

[0057] The technical solutions provided by the embodiments of the present application may have the following beneficial effects:

[0058] By using a graphic composed of multiple polygons (such as a map) to represent the event sequence data set, each polygon is used to represent an event sequence, and users can view the event sequence data corresponding to a polygon in the graphic by operating on the polygon. This allows multiple event sequences and their corresponding event sequence data to be displayed in one graphic, and each event sequence only occupies the area where a polygon is located in the graphic, which is more compact, thereby improving the space utilization of the display screen required to display the event sequence.

[0059] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] FIG1 is a schematic diagram of a method for displaying event sequence data provided by one embodiment of the present application;

[0061] FIG2 is a schematic diagram of an implementation environment provided by an embodiment of the present application;

[0062] FIG3 is a flow chart of a method for displaying event sequence data provided by one embodiment of the present application;

[0063] FIG4 is a schematic diagram of a map provided in one embodiment of the present application;

[0064] FIG5 is a schematic diagram of a map provided in another embodiment of the present application;

[0065] FIG6 is a schematic diagram of a map provided in another embodiment of the present application;

[0066] FIG7 is a schematic diagram of a map provided in another embodiment of the present application;

[0067] FIG8 is a schematic diagram of a map provided in another embodiment of the present application;

[0068] FIG9 is a flowchart of a method for displaying event sequence data provided by another embodiment of the present application;

[0069] FIG10 is a schematic diagram of a tree structure provided by an embodiment of the present application;

[0070] FIG11 is a schematic diagram of a tree structure provided by another embodiment of the present application;

[0071] FIG12 is a schematic diagram of a method for displaying event sequence data provided by another embodiment of the present application;

[0072] FIG13 is a block diagram of a device for displaying event sequence data according to an embodiment of the present application;

[0073] FIG14 is a block diagram of a device for displaying event sequence data provided by another embodiment of the present application;

[0074] FIG15 is a block diagram of a terminal device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0075] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numbers in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present application. Rather, they are merely examples of methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0076] Please refer to Figure 1, which shows a schematic diagram of a method for displaying event sequence data provided by an embodiment of the present application. The method may include:

[0077] Step 110 , displaying a graph 11 corresponding to the event sequence data set.

[0078] Among them, the figure 11 is composed of multiple polygons, each polygon corresponds to an event sequence data in the event sequence data set; wherein, the polygons corresponding to the same event sequence data have the same color, and the polygons corresponding to different event sequence data have different colors.

[0079] Step 120 : In response to a hovering operation on the first polygon 12 in the graphic 11 (ie, the mouse cursor only hovers over the first polygon 12 ), basic information 13 of the event sequence data corresponding to the first polygon 12 is displayed.

[0080] Step 130 : In response to a click operation on the first polygon 12 in the map 11 , detailed information 14 of the event sequence data corresponding to the first polygon 12 is displayed.

[0081] Please refer to FIG2 , which shows a schematic diagram of an implementation environment provided by an embodiment of the present application, wherein the implementation environment can be implemented as a data analysis system. As shown in FIG2 , the system 20 can include: a terminal device 15 .

[0082] A target application, such as a client of the target application, is installed and running in the terminal device 15. The terminal device is an electronic device with data calculation, processing and storage capabilities. The terminal device can be a smart phone, tablet computer, PC (Personal Computer), wearable device, etc., and this embodiment of the application is not limited to this. The target application can be a data analysis application, or it can be any application with the function of displaying event sequence data, such as a social application, payment application, video application, music application, shopping application, news application, etc. In the method provided in the embodiment of the present application, the execution entity of each step can be the terminal device 15, such as a client running in the terminal device 15.

[0083] Optionally, a user can generate a graph corresponding to the event sequence dataset through the target application and view analysis results corresponding to the event sequence dataset through the graph, such as user experience analysis results for a specific application. The user can also view specific event sequence data within the event sequence dataset through the graph, although this is not limited in this embodiment of the application.

[0084] In some embodiments, the system 20 further includes a server 16, which establishes a communication connection (e.g., a network connection) with the terminal device 15. The server 16 is configured to provide background services for the target application. The server can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server providing cloud computing services. In some embodiments, a graph corresponding to the event sequence dataset can be generated by the server 16 and displayed by the terminal device 15.

[0085] The technical solution of this application is introduced and explained through several embodiments below.

[0086] Please refer to Figure 3, which shows a flow chart of a method for displaying event sequence data provided by an embodiment of the present application. In this embodiment, the method is applied to the client described above as an example. The method may include the following steps (310-320):

[0087] Step 310 : Display a graph corresponding to the event sequence data set. The graph is composed of at least two polygons, and each polygon corresponds to an event sequence data in the event sequence data set.

[0088] The event sequence dataset is a dataset consisting of multiple event sequence data. In some embodiments, the event sequence dataset includes multiple event sequence data. The event sequence data is used to record an event sequence. An event sequence is a sequence consisting of one or more events. For example, the event sequence data may be a sequence data consisting of a series of events with timestamps.

[0089] The embodiments of the present application do not limit event sequence data. In some embodiments, event sequence data can be a series of behavioral sequences in a user's daily life, such as: getting up, eating breakfast, going to school, and attending classes; or: going to work, driving home, making dinner, eating dinner, taking a shower, and going to bed. In some embodiments, event sequence data can be the order in which a user visits a website or uses an application or uses a terminal device, such as: visiting the homepage of a target website, opening the query function of the target website, querying the target data through the query function, and downloading the data file corresponding to the target data; or: opening the target application, entering the personal account management module, viewing the nickname corresponding to the personal account, modifying the nickname, and exiting the target application; or: starting a terminal device, opening and logging into an email application, opening a browser application, opening and logging into an internal corporate website, and opening and logging into a social application.

[0090] Optionally, the events in the event sequence data may be arranged in chronological order. For the same event sequence data, the events included therein may be different from each other, or there may be repeated events, which is not limited in the present embodiment.

[0091] For an event sequence data set, the event sequence data included therein may belong to the same region (city), the same school, the same application, etc. The embodiment of the present application does not limit the collection time of the event sequence data, which may be in units of hours, days, weeks, etc. The embodiment of the present application does not limit the collection period of the event sequence data set, for example, it may refer to collecting event sequence data corresponding to a certain application in units of days within a week.

[0092] In some embodiments, the event sequence data being the same means that the events corresponding to the event sequence data and the order of different events are the same; the event sequence data being different means that the events corresponding to the event sequence data are different or the order of different events is different. The polygons corresponding to the same event sequence data have the same appearance; the polygons corresponding to different event sequence data also have different appearances. For example, for the first event sequence data: A, B, and C, the second event sequence data: A, B, and C, and the third event sequence data: A, C, and B, the first event sequence data and the second event sequence data are the same, and the first event sequence data and the third event sequence data are different, then the polygon corresponding to the first event sequence data and the polygon corresponding to the second event sequence data have the same appearance, and the polygon corresponding to the first event sequence data and the polygon corresponding to the third event sequence data have different appearances.

[0093] The above-mentioned graph is used to display an event sequence data set, for example, it can be used to batch visualize the individual event sequence data in the event sequence data set. The present application embodiment does not limit the graph, for example, the graph can be a map-like graph or a map. The above-mentioned graph can refer to a graph in a two-dimensional space, which represents each point in the graph with two-dimensional coordinates.

[0094] For example, the plurality of event sequence data are displayed in the form of a map, wherein the map is composed of a plurality of polygons, and each polygon in the map represents an event sequence data. Each event sequence data includes at least one event and a sequence between at least one event.

[0095] Among them, the above-mentioned polygon can be used to indicate an area enclosed by multiple edges, and the edges of the polygon serve as the boundary (outline) of the area. The embodiment of the present application does not limit the number of edges of the polygon, the shape of the opposite sides, etc. In some embodiments, the polygons in the map are polygons that can be densely paved, such as equilateral triangles, regular quadrilaterals, regular pentagons, regular hexagons, isosceles right triangles, rectangles, parallelograms, isosceles trapezoids, isosceles triangles, right trapezoids, etc., because the opposite sides can be densely paved, this is conducive to improving the space utilization of the display screen. In some embodiments, the polygon is a regular hexagon as shown in Figure 1, and each regular hexagon can be seamlessly spliced, thereby achieving dense paving and reducing space waste.

[0096] In some embodiments, polygons corresponding to identical event sequence data have identical appearances, while polygons corresponding to different event sequence data have different appearances. The polygon appearance may include at least one of the following: shape, color, size, and fill. Optionally, each polygon in the graph occupies the same area, such as having the same shape and size. This facilitates users to quickly distinguish between identical and different event sequence data, improving the efficiency and convenience of information acquisition.

[0097] Exemplarily, polygons corresponding to the same event sequence data have the same appearance, and polygons corresponding to different event sequence data have different appearances, which means that polygons corresponding to the same event sequence data have the same color, and polygons corresponding to different event sequence data have different colors. The colors of different polygons can be red, pink, yellow, green, blue, purple, etc. In some embodiments, as long as the RGB (Red, Green, Blue, red, green, blue color system) values ​​of the polygon colors are different, it means that the polygons have different colors. Distinguishing event sequence data by color in this way makes it easier for users to distinguish event sequence data, which is conducive to further improving the efficiency and convenience of information acquisition.

[0098] For example, based on the above embodiment, the polygon corresponding to the first event sequence data and the polygon corresponding to the second event sequence data have the same color, and the polygon corresponding to the first event sequence data and the polygon corresponding to the third event sequence data have different colors.

[0099] In some embodiments, the conditions for determining that polygons have the same appearance include, but are not limited to, at least one of the following: the polygons have the same color, the polygons have the same outline color, the polygons have the same line type of edge lines, and the polygons have the same brightness. Accordingly, the conditions for determining that polygons have different appearances include, but are not limited to, at least one of the following: the polygons have different colors, the polygons have different outline colors, the polygons have different line types of edge lines, and the polygons have different brightness. The base color of a polygon may refer to the color of the area near the edge of the polygon, and the outline color of a polygon refers to the color of the polygon's edge lines.

[0100] In some embodiments, the above-mentioned graphics are divided into multiple blocks, each block includes at least one polygon, the event sequence data corresponding to the polygons included in different blocks are different, and the event sequence data corresponding to the multiple polygons included in the same block are the same. Taking the graphics in the form of a map as an example, the event sequence data corresponding to the polygons in the same block in the map are the same, that is, the events corresponding to the polygons included in the same block are the same, and the order of events between events is also the same. Optionally, the attribute parameters corresponding to the event sequence data corresponding to different polygons in the same block may be the same or different. The event sequence data corresponding to the polygons in different blocks in the map are different, that is, the events corresponding to the polygons in different blocks are different, or the order of events between events is different.

[0101] Since the polygons corresponding to the same event sequence data have the same appearance, and the polygons corresponding to different event sequence data have different appearances, the polygons in the same block have the same appearance, and the polygons in different blocks have different appearances. In this way, the same event sequence data is divided into a block, which helps users quickly complete the clustering of event sequence data and further improves the efficiency and convenience of information acquisition.

[0102] As shown in FIG. 4 , the polygons in block 17 all have the same color, indicating that the event sequence data corresponding to the polygons in block 17 are the same.

[0103] As shown in Figure 5, blocks 18 and 19 are different blocks and have different colors. Therefore, the event sequence data corresponding to the polygons in block 18 is different from the event sequence data corresponding to the polygons in block 19. In some embodiments, the colors of the polygons in adjacent or nearby blocks are also similar, and the corresponding event sequence data are also similar. If block 18 and block 19 are adjacent, this indicates that the event sequence data corresponding to the polygons in block 18 is similar to the event sequence data corresponding to the polygons in block 19, for example, with only minor differences in the included events or the order of the events. Therefore, the color of the polygons in block 18 can be set to be similar to the color of the polygons in block 19 to indicate that the event sequence data corresponding to the polygons in block 18 is similar to the event sequence data corresponding to the polygons in block 19. By placing polygons corresponding to similar event sequence data in adjacent blocks, the analysis efficiency of the event sequence dataset is improved, allowing users to quickly understand the differences and similarities between event sequence data.

[0104] In some embodiments, each block has an edge outline, and different blocks are distinguished by the edge outlines. This facilitates users to quickly access different blocks, further improving the efficiency and convenience of information acquisition. In some embodiments, the edge outlines between different blocks are different from the edge outlines between different polygons in the same block. For example, the edge outlines between different blocks are black, while the edge outlines between different polygons in the same block are white; for another example, the edge outlines between different blocks are solid lines, while the edge outlines between different polygons in the same block are dashed lines.

[0105] As shown in FIG6 , block 21 and block 22 are two similar but different blocks, and the boundary between block 21 and block 22 is distinguished by a black solid line; there is no black solid line between the boundaries of different polygons in the same block (such as block 21 or block 22).

[0106] In some embodiments, attribute tags are displayed within the polygon to indicate attribute parameters of the event sequence data corresponding to the polygon. Attribute parameters may include at least one of the start time, end time, duration, and location of the corresponding event sequence data. Optionally, a polygon may have one or more attribute tags.

[0107] In some embodiments, different attribute tags are used to display different attribute parameters. For example, the attribute tag corresponding to the start time is used to display the start time of the event sequence data, and the attribute tag corresponding to the duration is used to display the duration of the event sequence data. This helps users intuitively understand the different attribute parameters of the event sequence data and the differences between different event sequence data.

[0108] Optionally, attribute tags of different sizes are used to display attribute parameters with different values. For example, attribute tags in different polygons all represent parameters of the same attribute type, but the values ​​corresponding to the attribute parameters of attribute tags of different sizes are different. Optionally, the larger the size of the attribute tag, the larger the value of the corresponding attribute parameter; the smaller the size of the attribute tag, the smaller the value of the corresponding attribute parameter. In some embodiments, attribute tags in different polygons are all used to represent the duration or access duration of a series of events in the corresponding event sequence data. The larger the size of the attribute tag, the longer the corresponding duration; the smaller the size of the attribute tag, the shorter the corresponding duration. Optionally, for attribute tags of the same size, the duration or access duration of a series of events in the corresponding event sequence data is the same.

[0109] For example, as shown in Figure 7, an attribute tag is used to represent the visit duration corresponding to a user's event sequence data for a website. The polygon is a hexagon, and the attribute tag is a hexagon constrained by the polygon's outline. The attribute tag and the polygon share the same center point. The size of the hexagon corresponding to the attribute tag is positively correlated with the visit duration; for example, the size of attribute tag 25 corresponding to event sequence data with a visit duration of 3 minutes is smaller than the size of attribute tag 33 corresponding to event sequence data with a visit duration of 9 minutes. By visualizing the values ​​of attribute parameters through the size of the attribute tags, users can more easily understand the value size of the corresponding attribute parameters, as well as the overall value of the attribute parameters of each event sequence data in the entire block. This allows users to intuitively and clearly understand the attribute parameters of a single event sequence data set and the overall properties of the event sequence data set, thereby improving the efficiency and convenience of information acquisition.

[0110] In some embodiments, the attribute mark can be a polygon mark that has the same shape as the above-mentioned polygon and is smaller in size than the above-mentioned polygon. Optionally, the color of the attribute mark is different from the color of the corresponding polygon (the color of the polygon can be considered as the background color of the polygon). For example, as shown in Figure 8, the color of the attribute mark 23 is darker than the color of the corresponding polygon 24; the size of the attribute mark 23 is smaller than the size of the corresponding polygon 24. In some embodiments, each polygon (the hexagonal cell shown in Figure 7) represents an event sequence data corresponding to a user, and multiple event sequence data corresponding to the user can exist simultaneously in the event sequence data set.

[0111] In some embodiments, the client can display the event sequence dataset in different display modes, allowing the user to switch the display mode of the event sequence dataset according to their needs. For example, the client first displays the individual event sequence data in the event sequence dataset in a list format; in response to a display mode switching operation, the client displays a graphic corresponding to the event sequence dataset. The display mode switching operation refers to an operation by the user to switch the display mode, such as a trigger operation on a mode switching control, such as clicking, pressing, or sliding.

[0112] For example, each event sequence data in an event sequence dataset is initially displayed in list format. Users can switch the display mode from list format to map format to display the event sequence dataset. In other words, event sequence datasets can be displayed in multiple formats, enriching the display format of event sequence data. Furthermore, users can select and switch the display format of event sequence datasets, allowing users to understand event sequence data in the format that suits their needs as much as possible, thereby improving the user experience.

[0113] Step 320 : In response to the operation on the first polygon in the graphic, display the event sequence data corresponding to the first polygon.

[0114] The first polygon can refer to any polygon in the graph, and the first polygon can also be referred to as the target polygon. The event sequence data in the embodiments of the present application includes content information of the event sequence, which includes basic information and detailed information of the event sequence. The basic information may include the name, start time, duration, access path, etc., and the detailed information may include analysis results, events included in the event sequence, etc. Optionally, the amount of information corresponding to the detailed information is greater than the amount of information corresponding to the basic information.

[0115] In some embodiments, the polygons in the graph can show the overall general situation of the event sequence data set. If you want to know a specific event sequence data, you can view the content information of the event sequence data by operating the polygon corresponding to the event sequence data.

[0116] In some embodiments, different content information is displayed corresponding to different operations on the first polygon. For example, in response to a first operation on the first polygon, basic information of the event sequence data corresponding to the first polygon is displayed; in response to a second operation on the first polygon, detailed information of the event sequence data corresponding to the first polygon is displayed.

[0117] The first and second operations are different modes of operation. For example, the first operation is an operation in which the operating body hovers over the first polygon, and the second operation is an operation in which the first polygon is clicked (e.g., single-clicked, double-clicked, etc.); another example is an operation in which the first operation is an operation in which the operating body clicks the first polygon, and the second operation is an operation in which the first polygon is double-clicked; another example is an operation in which the first operation is an operation in which the operating body clicks the first polygon, and the second operation is an operation in which the first polygon is long-pressed. In some embodiments, the operating body can be a mouse cursor, a touch device (e.g., a stylus, a touch ball, etc.), or a part of the user's body such as a finger or palm.

[0118] Obviously, the above is only an example of the first operation and the second operation. The first operation and the second operation may also be other operation forms, which are not specifically limited in the embodiments of the present application.

[0119] In some embodiments, the basic information and the detailed information contain different information. Optionally, the detailed information contains more information than the basic information. For example, as shown in Figure 1, the detailed information 14 contains more detailed and specific information than the basic information 13.

[0120] In an embodiment of the present application, different operations are used to display different content information, thereby realizing a hierarchical display of content information. For a certain polygon, the user can choose to perform the first operation, the second operation, or no operation according to his or her own needs to understand the content information he or she needs or not view the content information of the corresponding event sequence data, thereby improving the flexibility of the operation.

[0121] To sum up, in the technical solution provided in the embodiment of the present application, an event sequence data set is represented by using a graphic (such as a map) composed of multiple polygons, each polygon is used to represent an event sequence, and the user can view the event sequence data corresponding to a polygon in the graphic by operating the polygon in the graphic, so that multiple event sequences and their corresponding event sequence data can be displayed through one graphic, and each event sequence only occupies the area where a polygon in the graphic is located, which is more compact, thereby improving the space utilization of the display screen required to display the event sequence.

[0122] Please refer to Figure 9, which shows a flow chart of a method for displaying event sequence data provided by another embodiment of the present application. In this embodiment, the method is applied to the client described above as an example. The method may include the following steps (910-940):

[0123] Step 910: Generate a tree structure corresponding to the event sequence data set.

[0124] A tree structure is a hierarchical nested structure. In the embodiments of this application, a tree structure is one with events as nodes and the order in which events occur as edges. For example, based on the events corresponding to each event sequence data set in the event sequence data set and the order in which the events occur, the tree structure corresponding to the event sequence data set is constructed. The event sequence data set is the same as that described in the above embodiments and will not be further described here.

[0125] In some embodiments, each node in the tree structure except the root node corresponds to an event, and each node in the tree structure except the root node has a corresponding event sequence data group. The event sequence data group corresponding to the first node in the tree structure includes: at least one event sequence data with the event corresponding to the first node as the last event.

[0126] The event sequence data group refers to a group consisting of event sequence data with the same last event. The first node refers to any node except the root node.

[0127] In some embodiments, a tree structure uses multiple nodes and directed lines between the nodes to indicate the events contained in the event sequence data and the order of the events. In each event sequence data, events corresponding to nodes closer to the root node occur earlier and are ranked higher in the event sequence data; events corresponding to nodes farther from the root node occur later and are ranked lower in the event sequence data.

[0128] In some embodiments, step 910 further includes the following steps (1.1 to 1.4, not shown in the figure):

[0129] 1.1. Generate the root node of the tree structure.

[0130] In some embodiments, for an event sequence data set, the corresponding tree structure has only one root node. As shown in Figure 10, the root node 26 can be represented as root. The root node has no incoming edges, that is, no parent node.

[0131] 1.2. Traverse each event sequence data in the event sequence data set and determine the root node as the current node.

[0132] In some embodiments, when traversing each event sequence data, the root node is initially used as the current node. That is, for any event sequence data, the root node is used as the current node, and the events corresponding to the event sequence data are traversed to construct the nodes and edges corresponding to the event sequence data.

[0133] 1.3. Traverse each event in the event sequence data in the order of occurrence of each event contained in the event sequence data. If there is a node corresponding to the event in the child nodes of the current node, determine the node corresponding to the event as the current node, and search for the next event in the event sequence data until all events in the event sequence data are traversed. If there is no node corresponding to the event in the child nodes of the current node, add the node corresponding to the event to the child nodes of the current node, determine the node corresponding to the event as the current node, and search for the next event in the event sequence data until all events in the event sequence data are traversed.

[0134] In some embodiments, a child node of a node refers to the node in the next layer below the node, as shown in the tree structure. A child node of a node has only one directed edge corresponding to the path between it and the node (the direction of the edge is from the node to the child node); a child node of a node has no other nodes between it and the node.

[0135] In some embodiments, if there is a child node corresponding to the m-th event in the event sequence data among the child nodes of the current node, then the child node is determined as the current node (i.e., the current node is updated to the child node), and the child node is the node corresponding to the m-th event in the event sequence data, where m is a positive integer. In some embodiments, if there is no child node corresponding to the m-th event in the event sequence data among the child nodes of the current node, then the node corresponding to the m-th event in the event sequence data is added as a child node of the current node, and then the node corresponding to the m-th event in the event sequence data is determined as the current node (i.e., the current node is updated to the node corresponding to the m-th event in the event sequence data). In some embodiments, each time the current node is updated, it continues to search for the next event in the event sequence data (such as the m+1-th event in the event sequence data) until all events in the event sequence data are traversed.

[0136] For example, when the root node is the current node, if there is a child node corresponding to the first event in the event sequence data among the child nodes of the root node, then the child node is determined to be the current node, and the child node is the node corresponding to the first event in the event sequence data. If there is no child node corresponding to the first event in the event sequence data among the child nodes of the root node, then the node corresponding to the first event is added as a child node of the root node, and then the node corresponding to the first event (i.e., the child node) is determined to be the current node. After that, the second event in the event sequence data is searched in the above manner until all events in the event sequence data are traversed.

[0137] For example, as shown in FIG10 , the event sequence data set 27 includes 7 event sequence data, namely:

[0138] Event sequence data 1 (abbreviated as Seq (Sequence) 1): A→B→D

[0139] Event sequence data 2 (abbreviated as Seq2): A→B

[0140] Event sequence data 3 (abbreviated as Seq3): A→C

[0141] Event sequence data 4 (abbreviated as Seq4): A→B→D

[0142] Event sequence data 5 (abbreviated as Seq5): B

[0143] Event sequence data 6 (abbreviated as Seq6): A

[0144] Event sequence data 7 (abbreviated as Seq7): A→D

[0145] As shown in FIG10 , after the root node 26 of the tree structure is generated, for Seq1 (A→B→D):

[0146] When traversing to event A in Seq1, first set root node 26 as the current node. Root node 26 currently has no child nodes, so the node corresponding to event A in Seq1 is added as a child node of root node 26, that is, node A, and node A is determined as the current node;

[0147] When traversing to event B in Seq1, if node A currently has no child node, the node corresponding to event B in Seq1 is added as a child node of node A, that is, node B1, and node B1 is determined as the current node;

[0148] When traversing to event D in Seq1, if node B1 currently has no child node, the node corresponding to event D in Seq1 is added as a child node of node B1, that is, node D1, and node D1 is determined as the current node;

[0149] At this point, the traversal of all events in Seq1 is completed, and the tree structure corresponding to Seq1 is root node → node A → node B1 → node D1.

[0150] For Seq2(A→B):

[0151] When traversing to event A in Seq2, first set root node 26 as the current node. Among the child nodes of root node 26, there is a child node corresponding to event A, that is, node A, then node A is determined as the current node;

[0152] When traversing to event B in Seq2, there is a child node corresponding to event B among the child nodes of node A, that is, node B1, then node B1 is determined as the current node;

[0153] At this point, the traversal of all events in Seq2 is completed, and the tree structure corresponding to Seq2 is root node → node A → node B1.

[0154] For Seq3(A→C):

[0155] When traversing to event A in Seq3, the root node 26 is first used as the current node. Among the child nodes of the root node 26, there is a child node corresponding to event A, that is, node A, so node A is determined as the current node;

[0156] When traversing to event C in Seq3, if there is no node corresponding to event C in the child nodes of node A, then the node corresponding to event C in Seq3 is added as a child node of node A, that is, node C, and node C is determined as the current node;

[0157] At this point, the traversal of all events in Seq3 is completed, and the tree structure corresponding to Seq3 is root node → node A → node C.

[0158] For Seq4(A→B→D):

[0159] When traversing to event A in Seq4, the root node 26 is first used as the current node. Among the child nodes of the root node 26, there is a child node corresponding to event A, that is, node A, so node A is determined as the current node;

[0160] When traversing to event B in Seq4, there is a child node corresponding to event B among the child nodes of node A, that is, node B1, then node B1 is determined as the current node;

[0161] When traversing to event D in Seq4, there is a child node corresponding to event D among the child nodes of node B1, that is, node D1, then node D1 is determined as the current node;

[0162] At this point, all events in Seq4 are traversed, and the tree structure corresponding to Seq4 is root node → node A → node B1 → node D1.

[0163] For Seq5(B):

[0164] When traversing to event B in Seq5, there is currently no node corresponding to event B among the child nodes of root node 26. In this case, the node corresponding to event B in Seq5 is added as a child node of root node 26, that is, node B2, and node B2 is determined as the current node.

[0165] At this point, all events in Seq5 are traversed, and the tree structure corresponding to Seq4 is the root node → node B2.

[0166] For Seq6(A):

[0167] When traversing to event A in Seq6, first set root node 26 as the current node. Among the child nodes of root node 26, there is a child node corresponding to event A, that is, node A, then node A is determined as the current node;

[0168] At this point, the traversal of all events in Seq6 is completed, and the tree structure part corresponding to Seq6 is the root node → node A.

[0169] For Seq7(A→D):

[0170] When traversing to event A in Seq4, the root node 26 is first used as the current node. Among the child nodes of the root node 26, there is a child node corresponding to event A, that is, node A, so node A is determined as the current node;

[0171] When traversing to event D in Seq3, if there is no node corresponding to event D among the child nodes of node A, then the node corresponding to event D in Seq3 is added as a child node of node A, that is, node D2, and node D2 is determined as the current node;

[0172] At this point, the traversal of all events in Seq3 is completed, and the tree structure corresponding to Seq3 is the root node → node A → node D2.

[0173] 1.4. When all event sequence data in the event sequence dataset are traversed, a tree structure corresponding to the event sequence dataset is constructed.

[0174] In some embodiments, as shown in FIG10 , after traversing all event sequence data in the event sequence dataset 27, a tree structure 28 corresponding to the event sequence dataset 27 is obtained. By converting the event sequence dataset into a tree structure, the associations between the various event sequence data and the associations between the various times in the event sequence data are made clearer, thereby facilitating improved accuracy in graph generation.

[0175] Step 920 : sorting each event sequence data in the event sequence data set based on the tree structure to obtain an event sequence data list.

[0176] The above-mentioned event sequence data list refers to a list of event sequence data arranged in order. In some embodiments, it is necessary to sort the individual event sequence data in the event sequence data set so that identical event sequence data are arranged close to each other, and similar event sequence data are arranged close to each other. Then, constructing a graph based on the event sequence data list is beneficial to improving the display effect of the graph and thus improving the convenience of obtaining information.

[0177] In some embodiments, step 920 includes the following sub-steps (2.1 to 2.8):

[0178] 2.1. Starting from the root node of the tree structure, traverse each node in the tree structure;

[0179] 2.2. Initialize the root node as the first node; the first node can also be called the target node.

[0180] 2.3. Sort the child nodes of the first node in ascending order of depth to obtain a child node sequence of the first node; where the depth of a child node refers to the number of layers of descendant nodes contained in the child node;

[0181] 2.4. Reorder the first node and each child node in the child node sequence of the first node to obtain a node sequence corresponding to the first node;

[0182] 2.5. Determine the node sequence corresponding to the first node as the complete node sequence;

[0183] 2.6. If the first child node of the first node has descendant nodes, the first child node is determined as the first node, and the node sequence corresponding to the first node is obtained. The first node in the complete node sequence is replaced with the node sequence corresponding to the first node to obtain an updated complete node sequence; the first child node can also be called the target child node.

[0184] 2.7. When all nodes in the tree structure are traversed, the complete node sequence after the last update is determined as the final complete node sequence;

[0185] 2.8. According to the order of each node included in the final complete node sequence, the event sequence data included in the event sequence data group corresponding to each node is sorted to obtain an event sequence data list.

[0186] In some embodiments, the event sequence data group corresponding to the node of the last event in each event sequence data is determined as the event sequence data group that the event sequence data belongs to. As shown in FIG11 , the node corresponding to the last event corresponding to Seq1 (i.e., event D in Seq1) is node D1, so Seq1 belongs to the event sequence data group corresponding to node D1.

[0187] In some embodiments, reordering the first node and each of the child nodes in the child node sequence of the first node to obtain the node sequence corresponding to the first node includes the following steps (2.4.1-2.4.2):

[0188] 2.4.1. If the number of child nodes of the first node is 1, arrange the child nodes of the first node and the first node in order to obtain a node sequence corresponding to the first node;

[0189] 2.4.2. If the number of child nodes of the first node is greater than 1, split the child node sequence of the first node into a first subsequence and a second subsequence according to the child node indexes; wherein the first subsequence contains child nodes with odd indexes, and the second subsequence contains child nodes with even indexes; arrange the child nodes in the first subsequence arranged in reverse order, the first node, and the child nodes in the second subsequence arranged in sequential order to obtain a node sequence corresponding to the first node.

[0190] In some embodiments, as shown in FIG11 , the steps of sorting all event sequence data Seq1 to Seq7 corresponding to the tree structure 28 are as follows (3.1 to 3.10):

[0191] 3.1. Use the root node 26 as the first node to be initialized.

[0192] 3.2. Sort the child nodes (i.e., node A and node B2) of the first node (i.e., root node 26) in ascending order of depth.

[0193] Since the depth of node A is 2 and the depth of node B2 is 0, the child node sequence of the root node 26 (which may be referred to as children_root) is: node B2 →node A.

[0194] 3.3. Reorder the root node 26, node A, and node B2.

[0195] Reordering the root node 26, node A, and node B2 includes the following steps (3.3.1-3.3.2):

[0196] 3.3.1. Since the number of child nodes of root node 26 is greater than 1 (the number of child nodes of root node 26 is 2), the child nodes of root node 26 (node ​​A and node B2) are split into a first subsequence and a second subsequence according to the index of the child nodes.

[0197] Among them, the index of the child node refers to the order of the child node in the child node sequence of the root node 26. The index of node A is 2, and the index of node B2 is 1. The child nodes with odd indexes are determined as the first subsequence, and the child nodes with even indexes are determined as the second subsequence. Then, the first subsequence of the root node 26 includes node B2, and the second subsequence includes node A.

[0198] 3.3.2. Arrange the child nodes (i.e., node A) and the first node (i.e., root node 26) in the first subsequence in reverse order, and the child nodes (i.e., node B2) in the second subsequence in the order they are arranged, to obtain the node sequence corresponding to root node 26: node B2 → root node → node A.

[0199] 3.4. Determine the current complete node sequence as: node B2 → root node → node A.

[0200] 3.5. Since the child node A of the root node 26 has descendant nodes, node A is determined as the first node, and the node sequence corresponding to node A is determined. Specifically, the following steps (3.5.1-3.5.2) may be included:

[0201] 3.5.1. Reorder the child nodes corresponding to node A (i.e., nodes B1, C, and D2).

[0202] Since the depth of node B1 is 1, and the depths of nodes C and D2 are both 0, nodes B1, C, and D2 are reordered according to their depths to obtain the child node sequence of node A: node C → node D2 → node B1.

[0203] 3.5.2. Reorder nodes A, B1, C, and D2 to obtain the node sequence corresponding to node A.

[0204] Following the method described in 3.3.1 above, based on the child node sequence of node A: node C → node D2 → node B1, nodes B1, C, and D2 are split into the first subsequence of node A: node B1 → node C (nodes within the same subsequence are also sorted from smallest to largest depth), and the second subsequence of node A: node D2. Next, following the sorting method described in 3.3.2 above, the child nodes in the first subsequence (i.e., nodes C and B1), the first node (i.e., node A), and the child nodes in the sequentially arranged second subsequence (i.e., node D2) are sorted in reverse order, resulting in the node sequence corresponding to node A: node B1 → node C → node A → node D2.

[0205] 3.6. Replace node A in the above complete sequence with the node sequence corresponding to node A, and obtain the updated complete sequence: node B2 → root node → node B1 → node C → node A → node D2.

[0206] 3.7. Since node B1 among the child nodes of node A has another child node (i.e., node D1), node D1 belongs to the first subsequence of node B1, and the node sequence corresponding to node B1 is: node D1 → node B1.

[0207] 3.8. Replace node B1 in the current complete sequence with the node sequence corresponding to node B1 to obtain the updated complete sequence: node B2 → root node → node D1 → node B1 → node C → node A → node D2.

[0208] 3.9. Node B1 has no child nodes, so the final complete node sequence is: node B2 → root node → node D1 → node B1 → node C → node A → node D2.

[0209] 3.10. According to the order of each node contained in the final complete node sequence, the event sequence data contained in the event sequence data group corresponding to each node is sorted to obtain the event sequence data list: Seq5, Seq1, Seq4, Seq2, Seq3, Seq6, Seq7.

[0210] Step 930: Map each event sequence data in the event sequence data list into a two-dimensional space, and determine the two-dimensional space coordinates corresponding to each event sequence data.

[0211] Optionally, the two-dimensional space is the two-dimensional space corresponding to the graph, and the two-dimensional space coordinates are used to indicate the position of the event sequence data in the graph.

[0212] In some embodiments, the two-dimensional space coordinates corresponding to each event sequence data are obtained by mapping each event sequence data to the two-dimensional space where the map is located according to the order in the event sequence data list.

[0213] In some embodiments, a large polygon is first generated, and then the number of small polygons (i.e., polygons in the above-mentioned map) obtained by dividing the large polygon is determined according to the number of event sequence data in the event sequence data list. A plurality of small polygons constitute the initial map. Taking the polygon as an equilateral triangle as an example, since an equilateral triangle can be divided into 4 smaller equilateral triangles, if the size of each small equilateral triangle needs to be equal, the number of small triangles obtained by dividing the large triangle must be an exponential multiple of 4, such as 4, 16, 64, and so on. Obviously, the number of small triangles obtained by dividing the large triangle needs to be greater than or equal to the number of event sequence data. For example, if the number of event sequence data is 7, the number of small triangles obtained by dividing the large triangle is at least 16; if the number of event sequence data is 18, 16 small triangles are obviously not enough, and the number of small triangles obtained by dividing the large triangle is at least 64.

[0214] In some embodiments, k polygons are densely packed to obtain an initial map, where k may refer to the number of event sequence data included in the event sequence data list.

[0215] In some embodiments, step 930 includes the following steps (4.1-4.2):

[0216] 4.1. Generate a two-dimensional spatial coordinate array of length k based on the Gosper curve generation algorithm; where k is greater than or equal to the number N of event sequence data contained in the event sequence data list, and both k and N are positive integers;

[0217] 4.2. For the i-th event sequence data in the event sequence data list, select the [i+(Nk) / 2]-th two-dimensional space coordinate from the two-dimensional space coordinate array of length k as the two-dimensional space coordinate corresponding to the i-th event sequence data, where i is a positive integer less than or equal to N.

[0218] In some embodiments, k is equal to the number of small polygons obtained by dividing the large polygon. The small polygons are numbered from left to right and from top to bottom. The coordinates of the upper-leftmost polygon are the first two-dimensional coordinates in the two-dimensional coordinate array of k. [i + (Nk) / 2] refers to the integer portion of the result of calculating i + (Nk) / 2.

[0219] In one example, the number of event sequence data, N, is 7, and k is 16. If i is 1, then [i+(Nk) / 2] = [1+(16-7) / 2] = 5, meaning the two-dimensional spatial coordinate corresponding to the first event sequence data is the fifth two-dimensional spatial coordinate in the two-dimensional spatial coordinate array. If i is 2, then [i+(Nk) / 2] = [1+(16-7) / 2] = 6, meaning the two-dimensional spatial coordinate corresponding to the second event sequence data is the sixth two-dimensional spatial coordinate in the two-dimensional spatial coordinate array. By sequentially calculating, we can obtain the following: the two-dimensional spatial coordinates corresponding to the third, fourth, fifth, sixth, and seventh event sequence data are the seventh, eighth, ninth, tenth, and eleventh two-dimensional spatial coordinates in the two-dimensional spatial coordinate array, respectively.

[0220] It can be seen that the two-dimensional spatial coordinates of the polygons corresponding to adjacent event sequence data in the event sequence data list are also adjacent, and the polygons corresponding to adjacent event sequence data are made adjacent polygons as much as possible. Since the events contained in adjacent event sequence data and the order of the events are also similar, the polygons corresponding to similar event sequence data are made as close as possible through the above implementation method, thereby improving the overall coordination of the map.

[0221] Step 940 : Draw polygons corresponding to the respective event sequence data according to the two-dimensional spatial coordinates corresponding to the respective event sequence data to obtain a graph.

[0222] In some embodiments, after determining the two-dimensional spatial coordinates corresponding to each event sequence data, the polygon corresponding to each event sequence data is determined; the polygons corresponding to the same event sequence data are filled with the same color, and attribute tags for generating the corresponding event sequence data are added to each polygon, and the polygons corresponding to different event sequence data are divided into different blocks through contours, and the polygons corresponding to the same event sequence data are included in the blocks surrounded by the same contour, so that the graphics corresponding to the event sequence data set can be obtained.

[0223] In some embodiments, after the polygons corresponding to each event sequence data are determined, redundant polygons (ie, polygons without corresponding event sequence data) are removed, thereby streamlining the layout of the graph.

[0224] In some embodiments, the colors of the polygons corresponding to similar but different event sequence data are also similar. For example, for two similar but different event sequence data, the colors of the corresponding polygons may be yellow-green and light green, respectively.

[0225] In summary, the technical solution provided by the embodiment of the present application generates a tree structure corresponding to an event sequence data set, and sorts the event sequence data in the event sequence data set based on the tree structure, arranges similar event sequence data in similar positions, and obtains an event sequence data list. Then, based on the order of each event sequence data in the list, the coordinates of each event sequence data in the two-dimensional space are determined, and a graphic (such as a map) is generated based on this, so that the positions of the polygons corresponding to similar event sequence data in the graphic are as close as possible, so that the event sequence data corresponding to the polygons distributed in the graphic have a progressive and gradual arrangement effect, thereby improving the inductiveness and uniformity of the graphic.

[0226] In some embodiments, as shown in FIG12 , a method for displaying event sequence data may include the following steps:

[0227] Step 1210, first determine the two-dimensional space coordinates corresponding to each event sequence data, and obtain the hexagon 29 corresponding to each event sequence data;

[0228] Step 1220: Fill the hexagons corresponding to the same event sequence data with the same color; and fill the hexagons corresponding to different event sequence data with different colors;

[0229] Step 1230 , drawing the outline boundary 30 of each block;

[0230] Step 1240 , adding corresponding attribute marks 31 in each hexagon. The size of the attribute mark is used to indicate the length of the access time, so as to generate a graph corresponding to the event sequence data set.

[0231] The following are device embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0232] Please refer to Figure 13, which shows a block diagram of a device for displaying event sequence data provided by one embodiment of the present application. This device has the functionality to implement the aforementioned example method for displaying event sequence data. This functionality can be implemented by hardware or by hardware executing corresponding software. This device can be the terminal device described above, or it can be provided on a terminal device. This device 1300 may include a map display module 1310 and an information display module 1320.

[0233] The map display module 1310 is used to display a graph corresponding to an event sequence dataset. The graph is composed of at least two polygons, each polygon corresponds to an event sequence data in the event sequence dataset, and the event sequence data is used to record a sequence composed of events.

[0234] The information display module 1320 is configured to display event sequence data corresponding to a first polygon in the graphic in response to an operation on the first polygon.

[0235] In some embodiments, the graph is divided into multiple blocks, each block includes at least one polygon, the polygons included in different blocks correspond to different event sequence data, and the multiple polygons included in the same block correspond to the same event sequence data.

[0236] In some embodiments, each block has an edge outline, and different blocks are distinguished by the edge outline.

[0237] In some embodiments, polygons corresponding to the same event sequence data have the same appearance, and polygons corresponding to different event sequence data have different appearances.

[0238] In some embodiments, polygons corresponding to the same event sequence data have the same color, and polygons corresponding to different event sequence data have different colors.

[0239] In some embodiments, an attribute mark is displayed inside the polygon, and the attribute mark is used to display the attribute parameters of the event sequence data corresponding to the polygon.

[0240] In some embodiments, different attribute tags are used to display different attribute parameters.

[0241] In some embodiments, attribute marks of different sizes are used to display attribute parameters with different values.

[0242] In some embodiments, the information display module 1320 is used to:

[0243] In response to a first operation on the first polygon, basic information of event sequence data corresponding to the first polygon is displayed;

[0244] Alternatively, in response to a second operation on the first polygon, detailed information of the event sequence data corresponding to the first polygon is displayed.

[0245] In some embodiments, the map display module 1310 is configured to:

[0246] Displaying each event sequence data in the event sequence data set in a list form;

[0247] In response to the display mode switching operation, a graphic corresponding to the event sequence data set is displayed.

[0248] In some embodiments, the polygon is a regular hexagon.

[0249] In some embodiments, as shown in FIG. 14 , the apparatus 1300 further includes: a structure generation module 1330 , a sorting module 1340 , a coordinate determination module 1350 , and a map generation module 1360 .

[0250] The structure generation module 1330 is used to generate a tree structure corresponding to the event sequence data set; wherein each node in the tree structure corresponds to an event, each node in the tree structure has a corresponding event sequence data group, and the event sequence data group corresponding to the first node in the tree structure includes: at least one event sequence data with the event corresponding to the first node as the last event.

[0251] The sorting module 1340 is configured to sort the event sequence data in the event sequence data set based on the tree structure to obtain an event sequence data list.

[0252] The coordinate determination module 1350 is configured to map each event sequence data in the event sequence data list into a two-dimensional space, and determine the two-dimensional space coordinates corresponding to each event sequence data.

[0253] The map generation module 1360 is configured to draw polygons corresponding to the respective event sequence data according to the two-dimensional spatial coordinates corresponding to the respective event sequence data to obtain the graph.

[0254] In some embodiments, as shown in FIG14 , the structure generation module 1330 is configured to:

[0255] Generating a root node of the tree structure;

[0256] Traversing each event sequence data in the event sequence data set, and determining the root node as the current node;

[0257] Traversing each event in the event sequence data in the order of occurrence of each event contained in the event sequence data; if a node corresponding to the event exists among the child nodes of the current node, determining the node corresponding to the event as the current node, and searching for the next event in the event sequence data, until all events in the event sequence data are traversed; if a node corresponding to the event does not exist among the child nodes of the current node, adding the node corresponding to the event to the child nodes of the current node, determining the node corresponding to the event as the current node, and searching for the next event in the event sequence data, until all events in the event sequence data are traversed;

[0258] When all event sequence data in the event sequence data set are traversed, the tree structure corresponding to the event sequence data set is constructed.

[0259] In some embodiments, as shown in FIG. 14 , the sorting module 1340 includes: a node traversal submodule 1341 , an initialization submodule 1342 , a sorting submodule 1343 , and a sequence determination submodule 1344 .

[0260] The node traversal submodule 1341 is configured to traverse each node in the tree structure starting from the root node of the tree structure.

[0261] The initialization submodule 1342 is configured to initialize the root node as the first node.

[0262] The sorting submodule 1343 is configured to sort the child nodes of the first node in ascending order of depth to obtain a child node sequence of the first node; wherein the depth of the child node refers to the number of layers of descendant nodes contained in the child node.

[0263] The sorting submodule 1343 is further configured to reorder the first node and each child node in the child node sequence of the first node to obtain a node sequence corresponding to the first node.

[0264] The sequence determination submodule 1344 is configured to determine the node sequence corresponding to the first node as a complete node sequence.

[0265] The sequence determination submodule 1344 is also used to determine the first child node as the first node if the first child node of the first node has a descendant node, obtain the node sequence corresponding to the first node, replace the first node in the complete node sequence with the node sequence corresponding to the first node, and obtain an updated complete node sequence.

[0266] The sequence determination submodule 1344 is further configured to determine the complete node sequence after the last update as the final complete node sequence when all nodes in the tree structure are traversed.

[0267] The sorting submodule 1343 is further configured to sort the event sequence data contained in the event sequence data group corresponding to each node according to the order of the nodes contained in the final complete node sequence, to obtain the event sequence data list.

[0268] In some embodiments, as shown in FIG14 , the sorting submodule 1343 is configured to:

[0269] If the number of child nodes of the first node is 1, then arrange the child nodes of the first node and the first node in order to obtain a node sequence corresponding to the first node;

[0270] If the number of child nodes of the first node is greater than 1, the child node sequence of the first node is split into a first subsequence and a second subsequence according to the index of the child nodes; wherein the first subsequence contains child nodes with odd indexes, and the second subsequence contains child nodes with even indexes; the child nodes in the first subsequence arranged in reverse order, the first node, and the child nodes in the second subsequence arranged in sequential order are arranged in sequence to obtain a node sequence corresponding to the first node.

[0271] In some embodiments, as shown in FIG14 , the coordinate determination module 1350 is configured to:

[0272] Based on the Gosper curve generation algorithm, a two-dimensional space coordinate array of length k is generated; wherein k is greater than or equal to the number N of event sequence data included in the event sequence data list, and both k and N are positive integers;

[0273] For the i-th event sequence data in the event sequence data list, select the [i+(Nk) / 2]-th two-dimensional space coordinate from the two-dimensional space coordinate array of length k as the two-dimensional space coordinate corresponding to the i-th event sequence data, where i is a positive integer less than or equal to N.

[0274] To sum up, in the technical solution provided in the embodiment of the present application, an event sequence data set is represented by using a graphic (such as a map) composed of multiple polygons, each polygon is used to represent an event sequence, and the user can view the event sequence data corresponding to a polygon in the graphic by operating the polygon in the graphic, so that multiple event sequences and their corresponding event sequence data can be displayed through one graphic, and each event sequence only occupies the area where a polygon in the graphic is located, which is more compact, thereby improving the space utilization of the display screen required to display the event sequence.

[0275] It should be noted that the apparatus provided in the above embodiments, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0276] Please refer to Figure 15, which shows a block diagram of a terminal device 1500 provided in one embodiment of the present application. The terminal device 1500 can be an electronic device such as a mobile phone, a tablet computer, a game console, an e-book reader, a multimedia player, a wearable device, a PC, etc. The terminal device is used to implement the method for displaying event sequence data provided in the above embodiment. The terminal device can be the terminal device 15 in the implementation environment shown in Figure 2. Specifically:

[0277] Typically, the terminal device 1500 includes a processor 1501 and a memory 1502 .

[0278] The processor 1501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1501 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1501 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0279] Memory 1502 may include one or more computer-readable storage media, which may be non-transitory. Memory 1502 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 1502 is used to store at least one instruction, at least one program, code set, or instruction set, and is configured to be executed by one or more processors to implement the above-mentioned method for displaying event sequence data.

[0280] In some embodiments, terminal device 1500 may optionally include a peripheral device interface 1503 and at least one peripheral device. The processor 1501, memory 1502, and peripheral device interface 1503 may be connected via a bus or signal lines. Each peripheral device may be connected to peripheral device interface 1503 via a bus, signal lines, or circuit boards. Specifically, the peripheral device may include at least one of a radio frequency circuit 1504, a display screen 1505, an audio circuit 1506, and a power supply 1507.

[0281] Those skilled in the art will understand that the structure shown in FIG15 does not constitute a limitation on the terminal device 1500 , and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0282] In an exemplary embodiment, a computer-readable storage medium is further provided, wherein a computer program is stored in the storage medium. When the computer program is executed by a processor, the computer program implements the above-mentioned method for displaying event sequence data.

[0283] Optionally, the computer-readable storage medium may include: ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives), or an optical disk, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).

[0284] In an exemplary embodiment, a computer program product is also provided, the computer program product including a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the above-mentioned method for displaying event sequence data.

[0285] It should be noted that, in the embodiment of the present application, before collecting the relevant data of the user and during the process of collecting the relevant data of the user, a prompt interface, pop-up window or voice prompt information can be displayed. The prompt interface, pop-up window or voice prompt information is used to remind the user that its relevant data is currently being collected, so that the present application only starts to execute the relevant steps of obtaining the relevant data of the user after obtaining the confirmation operation issued by the user on the prompt interface or pop-up window. Otherwise (that is, when the confirmation operation issued by the user on the prompt interface or pop-up window is not obtained), the relevant steps of obtaining the relevant data of the user are terminated, that is, the relevant data of the user is not obtained. In other words, all user data collected by this application are processed strictly in accordance with the requirements of relevant national laws and regulations. The informed consent or separate consent of the personal information subject is obtained only with the consent and authorization of the user. Subsequent data use and processing behavior is carried out within the scope of authorization of laws and regulations and personal information subjects, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the event sequence data, events, attribute parameters, etc. involved in this application are all obtained with full authorization.

[0286] It should be understood that the term "plurality" used herein refers to two or more. "And / or" describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. The character " / " generally indicates an "or" relationship between the associated objects.

[0287] The above description is merely an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for displaying event sequence data, the method being executed by a terminal device, the method comprising: Display a graph corresponding to an event sequence data set, wherein the graph is composed of at least two polygons, each polygon corresponds to an event sequence data in the event sequence data set, and the event sequence data is used to record a sequence composed of events; In response to an operation on a first polygon in the graphic, event sequence data corresponding to the first polygon is displayed.

2. The method according to claim 1, wherein: The graph is divided into a plurality of blocks, each block includes at least one polygon, the polygons included in different blocks correspond to different event sequence data, and the multiple polygons included in the same block correspond to the same event sequence data.

3. The method according to claim 2, wherein: Each block has an edge contour, and different blocks are distinguished by the edge contour.

4. The method according to any one of claims 1 to 3, wherein: The polygons corresponding to the same event sequence data have the same appearance, and the polygons corresponding to different event sequence data have different appearances.

5. The method according to claim 4, wherein: The polygons corresponding to the same event sequence data have the same appearance, and the polygons corresponding to different event sequence data have different appearances, including: The polygons corresponding to the same event sequence data have the same color, and the polygons corresponding to different event sequence data have different colors.

6. The method according to any one of claims 1 to 5, wherein: An attribute mark is displayed inside the polygon, and the attribute mark is used to display the attribute parameters of the event sequence data corresponding to the polygon.

7. The method according to claim 6, wherein: Different attribute tags are used to display different attribute parameters.

8. The method according to claim 7, wherein: Attribute tags of different sizes are used to display attribute parameters with different values.

9. The method according to any one of claims 1 to 8, wherein: In response to the operation on the first polygon in the graphic, displaying the event sequence data corresponding to the first polygon includes: In response to a first operation on the first polygon, basic information of the event sequence data corresponding to the first polygon is displayed; or, In response to a second operation on the first polygon, detailed information of the event sequence data corresponding to the first polygon is displayed.

10. The method according to any one of claims 1 to 9, wherein: The graphics corresponding to the display event sequence data set include: Displaying each of the event sequence data in the event sequence data set in a list form; In response to the display mode switching operation, a graph corresponding to the event sequence data set is displayed.

11. The method according to any one of claims 1 to 10, wherein: The polygon is a regular hexagon.

12. The method according to any one of claims 1 to 11, wherein: The method further comprises: Generate a tree structure corresponding to the event sequence data set; wherein each node except the root node in the tree structure corresponds to an event, each node except the root node in the tree structure has a corresponding event sequence data group, and the event sequence data group corresponding to the first node in the tree structure includes: at least one event sequence data with the event corresponding to the first node as the last event; Based on the tree structure, sorting each of the event sequence data in the event sequence data set to obtain an event sequence data list; Mapping each of the event sequence data in the event sequence data list into a two-dimensional space, and determining the two-dimensional space coordinates corresponding to each of the event sequence data; According to the two-dimensional space coordinates corresponding to each of the event sequence data, polygons corresponding to each of the event sequence data are drawn to obtain the graph.

13. The method according to claim 12, wherein: The generating a tree structure corresponding to the event sequence data set includes: Generate a root node of the tree structure; Traversing each event sequence data in the event sequence data set, and determining the root node as the current node; According to the occurrence order of each event contained in the event sequence data, each event in the event sequence data is traversed, and when there is a node corresponding to the event in the child nodes of the current node, the node corresponding to the event is determined as the current node, and the next event in the event sequence data is searched until all events in the event sequence data are traversed; when there is no node corresponding to the event in the child nodes of the current node, the node corresponding to the event is added to the child nodes of the current node, the node corresponding to the event is determined as the current node, and the next event in the event sequence data is searched until all events in the event sequence data are traversed; When all event sequence data in the event sequence data set are traversed, the tree structure corresponding to the event sequence data set is constructed.

14. The method according to any one of claims 12 to 13, wherein: The step of sorting each of the event sequence data in the event sequence data set based on the tree structure to obtain an event sequence data list includes: Starting from the root node of the tree structure, traverse each node in the tree structure; Initialize the root node as the first node; Sort the child nodes of the first node from small to large according to depth, to obtain a child node sequence of the first node; wherein the depth of the child node refers to the number of layers of descendant nodes contained in the child node; Reordering the first node and each child node in the child node sequence of the first node to obtain a node sequence corresponding to the first node; Determine the node sequence corresponding to the first node as a complete node sequence; If the first child node of the first node has a descendant node, the first child node is determined as the first node, a node sequence corresponding to the first node is obtained, and the first node in the complete node sequence is replaced with the node sequence corresponding to the first node to obtain an updated complete node sequence; When all nodes in the tree structure are traversed, the complete node sequence after the last update is determined as the final complete node sequence; According to the order of each node contained in the final complete node sequence, the event sequence data contained in the event sequence data group corresponding to each node is sorted to obtain the event sequence data list.

15. The method according to claim 14, wherein: The step of reordering the first node and each child node in the child node sequence of the first node to obtain a node sequence corresponding to the first node includes: If the number of child nodes of the first node is 1, the child nodes of the first node and the first node are Arrange in sequence to obtain a node sequence corresponding to the first node; If the number of child nodes of the first node is greater than 1, the child node sequence of the first node is split into a first subsequence and a second subsequence according to the index of the child nodes; wherein the first subsequence contains child nodes with odd indexes, and the second subsequence contains child nodes with even indexes; the child nodes in the first subsequence arranged in reverse order, the first node, and the child nodes in the second subsequence arranged in sequence are arranged in order to obtain a node sequence corresponding to the first node.

16. The method according to any one of claims 12 to 15, wherein: The step of mapping each of the event sequence data in the event sequence data list to a two-dimensional space and determining the two-dimensional space coordinates corresponding to each of the event sequence data includes: Based on the Gosper curve generation algorithm, a two-dimensional space coordinate array with a length of k is generated; wherein k is greater than or equal to the number N of event sequence data included in the event sequence data list, and k and N are both positive integers; For the i-th event sequence data in the event sequence data list, select the [i+(Nk) / 2]th two-dimensional space coordinate from the two-dimensional space coordinate array of length k as the two-dimensional space coordinate corresponding to the i-th event sequence data, where i is a positive integer less than or equal to N.

17. A device for displaying event sequence data, the device comprising: A map display module, used for displaying a graph corresponding to an event sequence data set, wherein the graph is composed of at least two polygons, each polygon corresponds to an event sequence data in the event sequence data set, and the event sequence data is used for recording a sequence composed of events; The information display module is used to display event sequence data corresponding to a first polygon in the map in response to an operation on the first polygon.

18. A terminal device, comprising a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the method for displaying event sequence data as described in any one of claims 1 to 16.

19. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program is loaded and executed by a processor to implement the method for displaying event sequence data according to any one of claims 1 to 16.

20. A computer program product, comprising a computer program, wherein the computer program is stored in a computer-readable storage medium, and a processor reads and executes the computer program from the computer-readable storage medium to implement the method for displaying event sequence data according to any one of claims 1 to 16.