Funnel chart generation method, device, electronic device and computer-readable storage medium

By obtaining the total number of target indicators and conversion rate in the target behavior sequence, calculating and drawing the initial coordinates and offset of the funnel chart, it solves the problem that the existing funnel chart cannot display the number of users and conversion rate at the same time, and achieves user-friendly data Presentation and flexible chart settings.

CN114429510BActive Publication Date: 2024-09-10SENSOR NETWORKS TECH BEIJING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111626438.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2024-09-10
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

The existing funnel chart cannot display the number of users and conversion rate at the same time, causing trouble for users.

Method used

By obtaining the total number of target indicators and conversion rate in the target behavior sequence, determine the initial coordinates and heights of the indicator graphics and conversion rate graphics to be drawn, calculate the offset, and draw a funnel chart based on this information to simultaneously display the total number of target indicators and the conversion rate. Conversion rate.

Benefits of technology

It is possible to simultaneously display the number of users and conversion rate on the funnel chart, simplify user operations, and flexibly set the chart form according to user needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114429510B
    Figure CN114429510B
Patent Text Reader

Abstract

The embodiment of the present application discloses a funnel graph generation method, device, electronic device and computer-readable storage medium; in the embodiment of the present application, according to the total number of target indicators and the target conversion rate, the first initial coordinates of the indicator graph to be drawn are determined, and the second initial coordinates of the conversion rate graph to be drawn are determined; the first height of the indicator graph to be drawn and the second height of the conversion rate graph to be drawn are obtained, and the first target offset and the second target offset are determined based on the first height and the second height; the indicator graph to be drawn is drawn according to the first target offset and the first initial coordinates to obtain the drawn indicator graph, and the conversion rate graph to be drawn is drawn according to the second target offset and the second initial coordinates to obtain the drawn conversion rate graph; based on the drawn indicator graph and the drawn conversion rate graph, a target funnel graph corresponding to the target behavior sequence is generated. The embodiment of the present application can display the total number of target indicators and the target conversion rate at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a funnel plot generation method, device, electronic device and computer-readable storage medium. Background Art

[0002] With the development of science and technology, in order to obtain user needs more accurately, a funnel chart is generally drawn according to user behavior, and then the user behavior is analyzed based on the funnel chart.

[0003] However, the current funnel chart can only display the number of users or the conversion rate (the conversion rate refers to the ratio of the total number of users of the subsequent behavior to the total number of users of the previous behavior. The subsequent behavior may be, for example, adding a product to a shopping cart, and the previous behavior may be, for example, browsing a product page). It is not possible to display both the number of users and the conversion rate at the same time, which is rather troublesome for users. Summary of the invention

[0004] The embodiments of the present application provide a funnel chart generation method, device, electronic device and computer-readable storage medium, which can solve the technical problem that the number of users and conversion rate cannot be displayed simultaneously.

[0005] A funnel diagram generating method, comprising:

[0006] Obtain the total number of target indicators for each behavior in the target behavior sequence and the target conversion rate between each of the behaviors;

[0007] According to the total number of target indicators and the target conversion rate, determining the first initial coordinates of the indicator graph to be drawn corresponding to the total number of target indicators, and determining the second initial coordinates of the conversion rate graph to be drawn corresponding to the target conversion rate;

[0008] Acquire a first height of the indicator graph to be drawn and a second height of the conversion rate graph to be drawn, and determine a first target offset and a second target offset based on the first height and the second height;

[0009] Draw the indicator graph to be drawn according to the first target offset and the first initial coordinates to obtain a drawn indicator graph, and draw the conversion rate graph to be drawn according to the second target offset and the second initial coordinates to obtain a drawn conversion rate graph;

[0010] A target funnel graph corresponding to the target behavior sequence is generated based on the drawn indicator graph and the drawn conversion rate graph.

[0011] Accordingly, an embodiment of the present application provides a funnel diagram generating device, comprising:

[0012] A first acquisition module is used to acquire the total number of target indicators of each behavior in the target behavior sequence and the target conversion rate between each of the behaviors;

[0013] A determination module, configured to determine, according to the total number of target indicators and the target conversion rate, a first initial coordinate of an indicator graph to be drawn corresponding to the total number of target indicators, and a second initial coordinate of a conversion rate graph to be drawn corresponding to the target conversion rate;

[0014] A second acquisition module, configured to acquire a first height of the indicator graph to be drawn and a second height of the conversion rate graph to be drawn, and determine a first target offset and a second target offset based on the first height and the second height;

[0015] a drawing module, configured to draw the indicator graph to be drawn according to the first target offset and the first initial coordinates to obtain a drawn indicator graph, and to draw the conversion rate graph to be drawn according to the second target offset and the second initial coordinates to obtain a drawn conversion rate graph;

[0016] A generating module is used to generate a target funnel graph corresponding to the target behavior sequence based on the drawn indicator graph and the drawn conversion rate graph.

[0017] In addition, an embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to implement the funnel plot generation method provided in the embodiment of the present application.

[0018] In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for loading by a processor to execute any funnel plot generation method provided in the embodiment of the present application.

[0019] In addition, an embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements any funnel plot generation method provided in the embodiment of the present application.

[0020] In an embodiment of the present application, the total number of target indicators for each behavior in the target behavior sequence and the target conversion rate between each behavior are first obtained. Then, based on the total number of target indicators and the target conversion rate, the first initial coordinates of the indicator graph to be drawn corresponding to the total number of target indicators are determined, and the second initial coordinates of the conversion rate graph to be drawn corresponding to the target conversion rate are determined. Next, the first height of the indicator graph to be drawn and the second height of the conversion rate graph to be drawn are obtained, and the first target offset and the second target offset are determined based on the first height and the second height. Secondly, the indicator graph to be drawn is drawn according to the first target offset and the first initial coordinates to obtain the drawn indicator graph, and the conversion rate graph to be drawn is drawn according to the second target offset and the second initial coordinates to obtain the drawn conversion rate graph. Finally, a target funnel graph corresponding to the target behavior sequence is generated based on the drawn indicator graph and the drawn conversion rate graph.

[0021] That is, in the embodiment of the present application, the first initial coordinates of the indicator graph to be drawn corresponding to the total number of target indicators are first determined, and the second initial coordinates of the conversion rate graph to be drawn corresponding to the target conversion rate are determined, so that the total number of target indicators and the target conversion rate can be displayed at the same time.

[0022] Then, the first target offset and the second target offset are determined according to the first height of the indicator graph to be drawn and the second height of the conversion rate graph to be drawn, so that the indicator graph to be drawn can be drawn according to the first target offset and the first initial coordinate, and the conversion rate graph to be drawn can be drawn according to the second target offset and the second initial coordinates to obtain the drawn conversion rate graph, and finally, the target funnel graph corresponding to the target behavior sequence is generated based on the drawn indicator graph and the drawn conversion rate graph.

[0023] The first height and the second height can be set according to the actual needs of the user. Therefore, in this embodiment, not only can the total number of target indicators and the target conversion rate be displayed simultaneously on the target funnel chart, but the target funnel chart can also be set according to the actual needs of the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0025] Figure 1 It is a flowchart of a funnel diagram generation method provided in an embodiment of the present application;

[0026] Figure 2 is a schematic diagram of a format conversion method of key points provided in an embodiment of the present application;

[0027] Figure 3 It is a schematic diagram of the key points provided in the embodiments of the present application;

[0028] Figure 4 It is a schematic diagram of the initial conversion rate graph and the initial index graph provided in the embodiment of the present application;

[0029] Figure 5 is a schematic diagram of an offset method provided in an embodiment of the present application;

[0030] Figure 6 is a schematic diagram of a target funnel diagram provided in an embodiment of the present application;

[0031] Figure 7 is a schematic diagram of another target funnel diagram provided in an embodiment of the present application;

[0032] Figure 8 is a structural schematic diagram of a funnel plot generating device provided in an embodiment of the present application;

[0033] Fig. 9 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0035] The embodiment of the present application provides a funnel plot generation method, device, electronic device and computer readable storage medium. The funnel plot generation device can be integrated in an electronic device, which can be a server or a terminal.

[0036] Among them, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), as well as big data and artificial intelligence platforms.

[0037] The terminal may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal and the server may be directly or indirectly connected via wired or wireless communication, and this application does not limit this.

[0038] In addition, the term "plurality" in the embodiments of the present application refers to two or more than two. The terms "first" and "second" in the embodiments of the present application are used to distinguish descriptions and should not be understood as implying relative importance.

[0039] A funnel chart is a chart generated based on user behavior. Through the funnel chart, we can get the user's needs and preferences. Funnel charts are often used to analyze user behavior in e-commerce scenarios and user behavior in social scenarios.

[0040] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.

[0041] In this embodiment, the funnel plot generating device will be described from the perspective of the funnel plot generating device. The funnel plot generating device can be specifically integrated in a device such as a server or a terminal. In order to facilitate the description of the funnel plot generating method of the present application, the funnel plot generating device will be integrated in the terminal for detailed description below, that is, the terminal will be used as the execution subject for detailed description.

[0042] See also Figure 1 , Figure 1 : is a flow chart of a funnel plot generation method provided by an embodiment of the present application. The funnel plot generation method may include:

[0043] S101, obtaining the total number of target indicators of each behavior in the target behavior sequence and the target conversion rate between each behavior.

[0044] The target behavior sequence refers to a set of behaviors initiated in a time sequence for a preset event, and the preset event refers to an event that is achieved through behaviors in a sequential order. For example, when the preset event is a purchase event, the preset event includes page browsing behavior, adding goods to the shopping cart behavior, and payment behavior, then the target behavior sequence may include at least one of page browsing behavior, adding goods to the shopping cart behavior, and payment behavior.

[0045] The total number of target indicators may refer to the total number of target users for each behavior in the target behavior sequence, or may refer to the target number of times for each behavior in the target behavior sequence. The user may select according to actual conditions, and this embodiment does not limit this.

[0046] The terminal can obtain the user's behavior in real time, and then sort the user's behavior according to the timestamp corresponding to the user's behavior to obtain the target behavior sequence, and store the target behavior sequence. Finally, when the terminal receives the analysis instruction, the terminal obtains the target behavior sequence from the storage space.

[0047] Since there is a corresponding relationship between the user and the target behavior sequence for the preset items, the terminal can associate the user's logo with the target behavior sequence corresponding to the user and store them in the storage space.

[0048] Alternatively, when receiving the analysis instruction, the terminal may also obtain the user behavior log, obtain the user's behavior from the user behavior log, and then sort the user's behavior according to the timestamps corresponding to the user's behavior, so as to obtain the target behavior sequence.

[0049] Regarding the method for the terminal to obtain the target behavior sequence, the user can choose according to the actual situation, and this application does not limit it here.

[0050] After the terminal obtains the total number of target indicators of each behavior, it divides the total number of target indicators of the subsequent behavior by the total number of target indicators of the previous behavior, thereby obtaining the target conversion rate between the subsequent behavior and the previous behavior.

[0051] S102: Determine, according to the total number of target indicators and the target conversion rate, first initial coordinates of the indicator graph to be drawn corresponding to the total number of target indicators, and second initial coordinates of the conversion rate graph to be drawn corresponding to the target conversion rate.

[0052] The terminal can use the G2 visualization engine to determine the first initial coordinates of the indicator graph to be drawn corresponding to the total number of target indicators and the second initial coordinates of the conversion rate graph to be drawn corresponding to the target conversion rate according to the total number of target indicators and the target conversion rate.

[0053] Before using the G2 visualization engine to determine the first initial coordinate and the second initial coordinate, the terminal may first customize the funnel drawing method on the G2 visualization engine. The process of customizing the funnel drawing method may be as follows:

[0054] First, register the funnel drawing method. When registering, you can define the drawing type as a point type (the drawing type is a point type, which means that the coordinates of the points can be connected by lines to form a chart to be drawn), the shape of the chart to be drawn is a funnel shape, the shape of each figure in the chart to be drawn is a rectangle, the interval between each figure, and the symmetry of the chart to be drawn, etc.

[0055] Then, define the key points of the graph, that is, define the area of ​​each graph in the chart to be drawn (the area of ​​the graph can be determined by the coordinates of the key points). For example, call the draw method in the G2 visualization engine. In the draw method, first obtain the four key points of the graph, and then convert the coordinates of the four key points into the format of the G2 visualization engine, such as Figure 2 As shown (0, 1, 2 and 3 represent the four key points of the graph respectively), and finally the graph is drawn according to the key points after format conversion.

[0056] For key points, users can set them according to actual conditions. For example, in this embodiment, four key points can be defined as the upper left corner point 0 of the graphic, the upper right corner point 1 of the graphic, the lower right corner point 2 of the graphic, and the lower left corner point 3 of the graphic. Figure 3 This embodiment is not limited.

[0057] After obtaining the total number of target indicators and the target conversion rate, the terminal can determine the coordinates of four key points through the getPoints method in the G2 visualization engine, that is, determine the first initial coordinates of the indicator graph to be drawn and the second initial coordinates of the conversion rate graph to be drawn.

[0058] In the getPoints method, the coordinates of the four key points are determined by the cfg parameter, which includes the coordinates of the middle point of the key points (for example, Figure 3 As shown, the key points are 1 and 2, then the middle coordinates are the middle point coordinates (x, y) of key points 1 and 2), the minimum vertical coordinate y0 of the figure, and the height size of the figure.

[0059] When using Figure 3 When the four key points are shown, the process of determining the coordinates of the four key points through the cfg parameters is as follows:

[0060] First, the height of the target funnel graph (the height of the target funnel graph is the preset height) is divided by the height size to obtain the number of graphics in the target funnel graph (the total number of indicator graphics to be drawn and conversion rate graphics to be drawn). After obtaining the number, the terminal can subtract 1 from the number to obtain the difference, and then divide the height of the target funnel graph by the difference to obtain the preset height of the indicator graphics to be drawn and the conversion rate graphics to be drawn.

[0061] Then, the terminal determines the coordinates of the four key points in the indicator graph to be drawn and the coordinates of the four key points in the conversion rate graph to be drawn according to the total number of target indicators, the target conversion rate, the coordinates of the middle point (x, y) (at this time, y is equivalent to the maximum vertical coordinate of the target funnel graph), the minimum vertical coordinate y0, and the preset height. It should be noted that since the horizontal coordinate of key point 0 cannot be a negative number, if the horizontal coordinate of key point 0 of the first graph in the target funnel graph (for example, the first graph is the indicator graph to be drawn) is a negative number, the horizontal coordinate of key point 0 is set to 0.

[0062] After obtaining the horizontal coordinates of each key point in the first figure, the horizontal coordinates of each key point in the second figure are determined according to the horizontal coordinates of each key point in the first figure. For example, the horizontal coordinates of each key point in the first figure can be multiplied by 2 to obtain the horizontal coordinates of each key point in the second figure.

[0063] For the vertical coordinates of each graph in the target funnel chart, that is, the vertical coordinates of the indicator graph to be drawn and the vertical coordinates of the conversion rate graph to be drawn, they can be determined according to the minimum vertical coordinate y0 and the maximum vertical coordinate y, and finally the coordinates of the four key points of each indicator graph to be drawn are obtained, that is, the first initial coordinates of each indicator graph to be drawn, and the coordinates of the four key points of each conversion rate graph to be drawn are obtained, that is, the second initial coordinates of each conversion rate graph to be drawn.

[0064] In some embodiments, according to the total number of target indicators and the target conversion rate, determining the first initial coordinates of the indicator graph to be drawn corresponding to the total number of target indicators, and determining the second initial coordinates of the conversion rate graph to be drawn corresponding to the target conversion rate, includes:

[0065] Alternately arrange the total number of target indicators and the target conversion rate to obtain the target data;

[0066] According to the target data, the first initial coordinates of the indicator graph to be drawn corresponding to the total number of target indicators are determined, and the second initial coordinates of the conversion rate graph to be drawn corresponding to the target conversion rate are determined.

[0067] After arranging the total number of target indicators and the target conversion rate alternately, the format of the target data obtained can be: [total number of target indicators, target conversion rate, total number of target indicators, target conversion rate, ...].

[0068] If the first initial coordinates of the indicator graph to be drawn corresponding to the total number of target indicators and the second initial coordinates of the conversion rate graph to be drawn corresponding to the target conversion rate are determined by the getPoints method according to the target data, then the initial indicator graph drawn directly according to the first initial coordinates and the initial conversion rate graph drawn according to the second initial coordinates can be drawn as follows using the draw method. Figure 4 401 or Figure 4 As shown in 402, at this time, the heights of the initial indicator graph and the initial conversion rate graph are both preset heights.

[0069] S103 , obtaining a first height of the indicator graph to be drawn and a second height of the conversion rate graph to be drawn, and determining a first target offset and a second target offset based on the first height and the second height.

[0070] The first height and the second height can be set according to actual needs of the user. For example, the first height can be the same as the preset height, or the second height can be the same as the preset height. This embodiment does not limit this.

[0071] Wherein, determining the first target offset and the second target offset based on the first height and the second height includes:

[0072] determining a first ratio according to the first height and the second height;

[0073] A first target offset and a second target offset are determined according to the first height and the first ratio.

[0074] The first height is divided by the second height to obtain a first ratio. It should be noted that if the first height is the same as the preset height, the first target offset and the second target offset are determined according to the first height and the first ratio; if the second height is the same as the preset height, the first target offset and the second target offset are determined according to the second height and the first ratio.

[0075] In some embodiments, determining the first target offset and the second target offset according to the first height and the first ratio includes:

[0076] determining an initial offset according to the first height and the first ratio;

[0077] Obtaining a first identifier of the indicator graph to be drawn and a second identifier of the conversion rate graph to be drawn;

[0078] Determine a first target offset according to the first identifier and the initial offset;

[0079] A second target offset is determined according to the second identifier and the initial offset.

[0080] If the first height is the same as the preset height, the initial offset is determined according to the first height and the first ratio; if the second height is the same as the preset height, the initial offset is determined according to the second height and the first ratio. The process of determining the initial offset according to the first height and the first ratio is as follows:

[0081] offsetX = h × (1-rate)

[0082] Wherein, offsetX represents the initial offset, h represents the first height, and rate represents the first ratio.

[0083] It should be noted that because the first target offset of each indicator graph to be drawn is different, the second target offset of each conversion rate graph to be drawn is also different. Therefore, in this embodiment, the first target offset can be determined based on the first identifier and the initial offset, and the second target offset can be determined based on the second identifier and the initial offset, so that each first target offset and each second target offset can be obtained more accurately.

[0084] In some other embodiments, the first identifier is a first digital identifier and the second identifier is a second digital identifier;

[0085] Determining a first target offset according to the first identifier and the initial offset includes:

[0086] Obtaining a first preset value;

[0087] Performing four arithmetic operations on the first digital identifier and the first preset value to obtain a first value;

[0088] determining a first target offset according to the first value and the initial offset;

[0089] Determining a second target offset according to the second identifier and the initial offset includes:

[0090] Obtaining a second preset value;

[0091] Determine a second initial value according to the second digital identifier and the second preset value;

[0092] Performing four arithmetic operations on the second initial value and the first preset value to obtain a second value;

[0093] A second target offset is determined based on the second value and the initial offset.

[0094] If the first preset value is 2, the first digital identifier is divided by the first preset value to obtain the first value. If the second preset value is 1 / 2, the first digital identifier is multiplied by the first preset value to obtain the first value.

[0095] If the first preset value is 2 and the second preset value is 1, the second preset value is subtracted from the second digital identifier to obtain a second initial value, and the second initial value is divided by the first preset value to obtain the second value. If the first preset value is 2 and the second preset value is -1, the second preset value is added to the second digital identifier to obtain a second initial value, and the second initial value is divided by the first preset value to obtain the second value.

[0096] If the first preset value is 1 / 2 and the second preset value is 1, the second preset value is subtracted from the second digital identifier to obtain a second initial value, and the second initial value is multiplied by the first preset value to obtain the second value. If the first preset value is 1 / 2 and the second preset value is -1, the second preset value is added to the second digital identifier to obtain a second initial value, and the second initial value is multiplied by the first preset value to obtain the second value.

[0097] Finally, substitute the first value and the initial offset into the following formula to get the first target offset, and substitute the second value and the initial offset into the following formula to get the second target offset:

[0098]

[0099] Wherein, itemOffsetX represents the first target offset, index represents the first digital identifier, 2 represents the first preset value, and index / 2 represents the first value. constitenmOffsetX represents the second target offset, 1 represents the second preset value, indexa represents the second digital identifier, (indexa-1) represents the second initial value, and (indexa-1) / 2 represents the second value.

[0100] For example, the preset height is 30, the first height is 30, and the second height is 15, then the initialization offset is 15, the first digital identifier of the first indicator graphic to be drawn is 0, the first digital identifier of the second indicator graphic to be drawn is 2, and the first digital identifier of the third indicator graphic to be drawn is 4, then the first target offset of the first indicator graphic to be drawn is 0, the first target offset of the second indicator graphic to be drawn is 15, and the first target offset of the third indicator graphic to be drawn is 30.

[0101] The first digital identifier of the first conversion rate graphic to be drawn is 1, and the first digital identifier of the second conversion rate graphic to be drawn is 3. Then the second target offset of the first conversion rate graphic to be drawn is 0, and the second target offset of the second conversion rate graphic to be drawn is 15.

[0102] S104, drawing the indicator graph to be drawn according to the first target offset and the first initial coordinate to obtain a drawn indicator graph, and drawing the conversion rate graph to be drawn according to the second target offset and the second initial coordinate to obtain a drawn conversion rate graph.

[0103] The terminal can offset the first initial coordinate according to the first target offset to obtain the first target coordinate, and then draw the indicator graph to be drawn according to the first target coordinate to obtain the drawn indicator graph. The second initial coordinate can be offset according to the second target offset to obtain the second target coordinate, and then draw the conversion rate graph to be drawn according to the second target coordinate.

[0104] If the terminal directly draws the initial indicator graph according to the first initial coordinates, and directly draws the initial conversion rate graph according to the second initial coordinates, the heights of the initial indicator graph and the initial conversion rate graph are both preset heights.

[0105] In this embodiment, the terminal can obtain the first height of the indicator graphic to be drawn and the second height of the conversion rate graphic to be drawn, and determine the first target offset and the second target offset based on the first height and the second height, so that the indicator graphic to be drawn can be drawn according to the first target offset and the first initial coordinates to obtain the drawn indicator graphic, and the conversion rate graphic to be drawn can be drawn according to the second target offset and the second initial coordinates to obtain the drawn conversion rate graphic.

[0106] The first height and the second height can be set according to the actual needs of the user. Therefore, in this example, the target funnel chart can be set according to the actual needs of the user.

[0107] In some embodiments, the first initial coordinate includes a first initial ordinate and a first initial abscissa, and the second initial coordinate includes a second initial ordinate and a second initial abscissa;

[0108] Accordingly, drawing the indicator graph to be drawn according to the first target offset and the first initial coordinate to obtain the drawn indicator graph, and drawing the conversion rate graph to be drawn according to the second target offset and the second initial coordinate to obtain the drawn conversion rate graph, including:

[0109] The first initial horizontal coordinate is offset according to the first target offset to obtain the first target horizontal coordinate of the indicator graph to be drawn, and the second initial horizontal coordinate is offset according to the second target offset to obtain the second target horizontal coordinate of the conversion rate graph to be drawn;

[0110] The indicator graph to be drawn is drawn according to the first target horizontal coordinate and the first initial vertical coordinate to obtain the drawn indicator graph, and the conversion rate graph to be drawn is drawn according to the second target horizontal coordinate and the second initial vertical coordinate to obtain the drawn conversion rate graph.

[0111] In this embodiment, the first initial horizontal coordinate may be offset according to the first target offset to obtain the first target horizontal coordinate of the indicator graphic to be drawn, without the need to offset the first initial vertical coordinate according to the first target offset.

[0112] For example, Figure 5 As shown, the first initial horizontal coordinates include four, the first target offset of the first indicator graphic to be drawn is 0, the first target offset of the second indicator graphic to be drawn is 15, and the first target offset of the third indicator graphic to be drawn is 30.

[0113] Then, there is no need to move the first indicator figure to be drawn. The first initial horizontal coordinate of the second indicator figure to be drawn is subtracted by 15 to obtain the first target horizontal coordinate of the second indicator figure to be drawn. The first initial horizontal coordinate of the third indicator figure to be drawn is subtracted by 30 to obtain the first target horizontal coordinate of the third indicator figure to be drawn, that is:

[0114] Path.push(

[0115] ['M',point[0].x-itenmOffsetX,point[0].y],

[0116] ['L',point[1].x-itenmOffsetX,point[1].y],

[0117] ['L',point[2].x-itenmOffsetX,point[2].y],

[0118] ['L',point[3].x-itenmOffsetX,point[3].y],

[0119] ['Z'],

[0120] ).

[0121] Among them, point[0].x represents the first initial horizontal coordinate of key point 0 in the indicator graph to be drawn, point[0].y represents the first initial vertical coordinate of key point 0 in the indicator graph to be drawn, point[1].x represents the first initial horizontal coordinate of key point 1 in the indicator graph to be drawn, point[1].y represents the first initial vertical coordinate of key point 1 in the indicator graph to be drawn, point[2].x represents the first initial horizontal coordinate of key point 2 in the indicator graph to be drawn, point[2].y represents the first initial vertical coordinate of key point 2 in the indicator graph to be drawn, point[3].x represents the first initial horizontal coordinate of key point 3 in the indicator graph to be drawn, and point[3].y represents the first initial vertical coordinate of key point 3 in the indicator graph to be drawn.

[0122] The second initial horizontal coordinate may be offset according to the second target offset to obtain the second target horizontal coordinate of the conversion rate graph to be drawn, without the need to offset the second initial vertical coordinate according to the second target offset.

[0123] In some other embodiments, the second initial abscissa includes a first sub-initial abscissa, a second sub-initial abscissa, a third sub-initial abscissa, and a fourth sub-initial abscissa;

[0124] Accordingly, the second initial horizontal coordinate is offset according to the second target offset to obtain the second target horizontal coordinate of the conversion rate graph to be drawn, including:

[0125] The first sub-initial horizontal coordinate and the second sub-initial horizontal coordinate are offset according to the second target offset to obtain the first sub-target horizontal coordinate and the second sub-target horizontal coordinate of the conversion rate graph to be drawn;

[0126] The third sub-initial horizontal coordinate and the fourth sub-initial horizontal coordinate are offset according to the second target offset and the initial offset to obtain the third sub-target horizontal coordinate and the fourth sub-target horizontal coordinate of the conversion rate graph to be drawn.

[0127] Draw the conversion rate graph to be drawn according to the second target horizontal coordinate and the second initial vertical coordinate to obtain the drawn conversion rate graph, including:

[0128] A conversion rate graph to be drawn is drawn according to the first sub-target horizontal coordinate, the second sub-target horizontal coordinate, the third sub-target horizontal coordinate, the fourth sub-target horizontal coordinate and the second initial vertical coordinate to obtain a drawn conversion rate graph.

[0129] In this embodiment, since the second height of the conversion rate graph to be drawn is different from the preset height, the first sub-initial horizontal coordinate and the second sub-initial horizontal coordinate of the conversion rate graph to be drawn are offset differently from the third sub-initial horizontal coordinate and the fourth sub-initial horizontal coordinate.

[0130] For example, Figure 5 As shown, the second target offset of the first conversion rate graph to be drawn is 0, the second target offset of the second conversion rate graph to be drawn is 15, the first sub-initial horizontal coordinate can be the horizontal coordinate of key point 0 in the conversion rate graph to be drawn, the second sub-initial horizontal coordinate can be the horizontal coordinate of key point 1 in the conversion rate graph to be drawn, the third sub-initial horizontal coordinate can be the horizontal coordinate of key point 2 in the conversion rate graph to be drawn, and the fourth sub-initial horizontal coordinate can be the horizontal coordinate of key point 3 in the conversion rate graph to be drawn.

[0131] There is no need to offset key point 0 and key point 1 in the first conversion rate graph to be drawn. The horizontal coordinates of key point 2 and key point 3 in the first conversion rate graph to be drawn are offset by 15, and the key point coordinates of key point 0 and key point 1 in the second conversion rate graph to be drawn are offset by 15, and the horizontal coordinates of key point 2 and key point 3 in the second conversion rate graph to be drawn are offset by 30, that is:

[0132] Path.push(

[0133] ['M',point[0].x-itenmOffsetX,point[0].y],

[0134] ['L',point[1].x-itenmOffsetX,point[1].y],

[0135] ['L',point[2].x-itenmOffsetX-offsetX,point[2].y],

[0136] ['L',point[3].x-itenmOffsetX-offsetX,point[3].y],

[0137] ['Z'],

[0138] ).

[0139] At this point, the target funnel diagram can be obtained as follows Figure 6 As shown in 601 or Figure 6 As shown in 602.

[0140] It should be noted that if the first height of the indicator graphic to be drawn is different from the preset height, the first sub-initial horizontal coordinate and the second sub-initial horizontal coordinate of the indicator graphic to be drawn are offset differently from the third sub-initial horizontal coordinate and the fourth sub-initial horizontal coordinate, that is, at this time:

[0141] The first sub-initial horizontal coordinate and the second sub-initial horizontal coordinate of the indicator graphic to be drawn are offset according to the first target offset to obtain the first sub-target horizontal coordinate and the second sub-target horizontal coordinate of the indicator graphic to be drawn; the third sub-initial horizontal coordinate and the fourth sub-initial horizontal coordinate of the indicator graphic to be drawn are offset according to the first target offset and the initial offset to obtain the third sub-target horizontal coordinate and the fourth sub-target horizontal coordinate of the indicator graphic to be drawn.

[0142] In other embodiments, in order to further change the display form of the target funnel graph, the target funnel graph is obtained as follows: Figure 7 As shown in 701 or Figure 7 As shown in 702, when the conversion rate graph to be drawn is offset, the second initial vertical coordinate of the conversion rate graph to be drawn may also be offset.

[0143] At this time, the second initial vertical coordinate of the conversion rate graph to be drawn includes the first sub-initial vertical coordinate (for example, the first sub-initial vertical coordinate can be the vertical coordinate of key point 0), the second sub-initial vertical coordinate (for example, the second sub-initial vertical coordinate can be the vertical coordinate of key point 1), the third sub-initial vertical coordinate (for example, the third sub-initial vertical coordinate can be the vertical coordinate of key point 2) and the fourth sub-initial vertical coordinate (for example, the fourth sub-initial vertical coordinate can be the vertical coordinate of key point 3), and the first initial vertical coordinate of the indicator graph to be drawn includes the first sub-initial vertical coordinate, the second sub-initial vertical coordinate, the third sub-initial vertical coordinate and the fourth sub-initial vertical coordinate.

[0144] If the first sub-initial ordinate of the conversion rate graph to be drawn is the same as the fourth sub-initial ordinate of the previous indicator graph to be drawn, that is, if the funnel graph is as follows Figure 6 As shown in 601, the method for offsetting the second initial vertical coordinate of the conversion rate graph to be drawn is: determining the first initial difference between the third sub-initial vertical coordinate of the conversion rate graph to be drawn and the second sub-initial vertical coordinate of the next indicator graph to be drawn (for example, determining the first initial difference between the vertical coordinate of key point 2 in the first conversion rate graph to be drawn and the vertical coordinate of key point 1 in the second indicator graph to be drawn), and offsetting the third sub-initial vertical coordinate and the fourth sub-initial vertical coordinate of the conversion rate graph to be drawn by the first initial difference to obtain the third sub-target vertical coordinate and the fourth sub-target vertical coordinate of the conversion rate graph to be drawn.

[0145] The conversion rate graph to be drawn is drawn according to the second target horizontal coordinate of the conversion rate graph to be drawn, the first sub-initial vertical coordinate of the conversion rate graph to be drawn, the second sub-initial vertical coordinate of the conversion rate graph to be drawn, the third sub-target vertical coordinate of the conversion rate graph to be drawn and the fourth sub-target vertical coordinate of the conversion rate graph to be drawn to obtain the drawn conversion rate graph.

[0146] If the fourth sub-initial ordinate of the conversion rate graph to be drawn is the same as the first sub-initial ordinate of the next indicator graph to be drawn, that is, if the funnel graph is as follows Figure 6 As shown in 602, the method for offsetting the second initial vertical coordinate of the conversion rate graph to be drawn is: determining the second initial difference between the second sub-initial vertical coordinate of the conversion rate graph to be drawn and the third sub-initial vertical coordinate of the previous indicator graph to be drawn (for example, determining the second initial difference between the vertical coordinate of key point 1 in the first conversion rate graph to be drawn and the vertical coordinate of key point 2 in the first indicator graph to be drawn), and offsetting the first sub-initial vertical coordinate and the second sub-initial vertical coordinate of the conversion rate graph to be drawn by the second initial difference to obtain the first sub-target vertical coordinate and the second sub-target vertical coordinate of the conversion rate graph to be drawn.

[0147] The conversion rate graph to be drawn is drawn according to the second target horizontal coordinate of the conversion rate graph to be drawn, the first sub-target vertical coordinate of the conversion rate graph to be drawn, the second sub-target vertical coordinate of the conversion rate graph to be drawn, the third sub-initial vertical coordinate of the conversion rate graph to be drawn and the fourth sub-initial vertical coordinate of the conversion rate graph to be drawn to obtain the drawn conversion rate graph.

[0148] In other embodiments, in order to further reduce the amount of calculation of the conversion rate graph to be drawn, when the first sub-initial ordinate of the conversion rate graph to be drawn is the same as the fourth sub-initial ordinate of the previous indicator graph to be drawn, the first sub-initial ordinate of the next indicator graph to be drawn can be directly used as the fourth sub-initial ordinate of the conversion rate graph to be drawn, and the second sub-initial ordinate of the next indicator graph to be drawn can be used as the third sub-initial ordinate of the conversion rate graph to be drawn, that is:

[0149] Path.push(

[0150] ['M',point[0].x-itenmOffsetX,point[0].y],

[0151] ['L',point[1].x-itenmOffsetX,point[1].y],

[0152] ['L',nextpoint[1].x-itenmOffsetX-offsetX,nextpoint[1].y],

[0153] ['L',nextpoint[0].x-itenmOffsetX-offsetX,nextpoint[0].y],

[0154] ['Z'],

[0155] ).

[0156] Among them, nextpiont[1].y represents the second sub-initial ordinate of the next indicator graph to be drawn, nextpiont[1].x represents the second sub-initial abscissa of the next indicator graph to be drawn (the second sub-initial abscissa of the next indicator graph to be drawn is the same as the third sub-initial abscissa of the conversion rate graph to be drawn), nextpiont[0].y represents the first sub-initial ordinate of the next indicator graph to be drawn, and nextpiont[0].x represents the first sub-initial abscissa of the next indicator graph to be drawn (the first sub-initial abscissa of the next indicator graph to be drawn is the same as the fourth sub-initial abscissa of the conversion rate graph to be drawn).

[0157] When the fourth sub-initial ordinate of the conversion rate graph to be drawn is the same as the first sub-initial ordinate of the next indicator graph to be drawn, the third sub-initial ordinate of the previous indicator graph to be drawn can be directly used as the second sub-initial ordinate of the conversion rate graph to be drawn, and the fourth sub-initial ordinate of the previous indicator graph to be drawn can be used as the first sub-initial ordinate of the conversion rate graph to be drawn, that is:

[0158] Path.push(

[0159] ['M',lastpoint[3].x-itenmOffsetX,lastpoint[3].y],

[0160] ['L',lastpoint[2].x-itenmOffsetX,lastpoint[2].y],

[0161] ['L',point[2].x-itenmOffsetX-offsetX,point[2].y],

[0162] ['L',point[3].x-itenmOffsetX-offsetX,point[3].y],

[0163] ['Z'],

[0164] ).

[0165] Among them, lastpiont[3].y represents the fourth sub-initial ordinate of the previous indicator graph to be drawn, lastpiont[3].x represents the fourth sub-initial abscissa of the previous indicator graph to be drawn (the fourth sub-initial abscissa of the previous indicator graph to be drawn is the same as the first sub-initial abscissa of the conversion rate graph to be drawn), lastpiont[2].y represents the third sub-initial ordinate of the previous indicator graph to be drawn, and lastpiont[2].x represents the second sub-initial abscissa of the previous indicator graph to be drawn (the third sub-initial abscissa of the previous indicator graph to be drawn is the same as the second sub-initial abscissa of the conversion rate graph to be drawn).

[0166] S105 . Generate a target funnel graph corresponding to the target behavior sequence based on the drawn indicator graph and the drawn conversion rate graph.

[0167] After the drawn indicator graph and the drawn conversion rate graph are obtained, the drawn indicator graph and the drawn conversion rate graph form a target funnel graph.

[0168] As can be seen from the above, in an embodiment of the present application, the total number of target indicators for each behavior in the target behavior sequence and the target conversion rate between each behavior are first obtained. Then, based on the total number of target indicators and the target conversion rate, the first initial coordinates of the indicator graph to be drawn corresponding to the total number of target indicators are determined, and the second initial coordinates of the conversion rate graph to be drawn corresponding to the target conversion rate are determined. Next, the first height of the indicator graph to be drawn and the second height of the conversion rate graph to be drawn are obtained, and the first target offset and the second target offset are determined based on the first height and the second height. Secondly, the indicator graph to be drawn is drawn according to the first target offset and the first initial coordinates to obtain the drawn indicator graph, and the conversion rate graph to be drawn is drawn according to the second target offset and the second initial coordinates to obtain the drawn conversion rate graph. Finally, a target funnel graph corresponding to the target behavior sequence is generated based on the drawn indicator graph and the drawn conversion rate graph.

[0169] That is, in the embodiment of the present application, the first initial coordinates of the indicator graph to be drawn corresponding to the total number of target indicators are first determined, and the second initial coordinates of the conversion rate graph to be drawn corresponding to the target conversion rate are determined, so that the total number of target indicators and the target conversion rate can be displayed at the same time.

[0170] Then, the first target offset and the second target offset are determined according to the first height of the indicator graph to be drawn and the second height of the conversion rate graph to be drawn, so that the indicator graph to be drawn can be drawn according to the first target offset and the first initial coordinate, and the conversion rate graph to be drawn can be drawn according to the second target offset and the second initial coordinates to obtain the drawn conversion rate graph, and finally, the target funnel graph corresponding to the target behavior sequence is generated based on the drawn indicator graph and the drawn conversion rate graph.

[0171] The first height and the second height can be set according to the actual needs of the user. Therefore, in this embodiment, not only can the total number of target indicators and the target conversion rate be displayed simultaneously on the target funnel chart, but the target funnel chart can also be set according to the actual needs of the user.

[0172] In order to better implement the funnel plot generation method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the funnel plot generation method. The meanings of the terms are the same as those in the funnel plot generation method, and the specific implementation details can refer to the description in the method embodiment.

[0173] For example, Figure 8 As shown, the funnel diagram generating device may include:

[0174] The first acquisition module 801 is used to acquire the total number of target indicators of each behavior in the target behavior sequence and the target conversion rate between each behavior.

[0175] The determination module 802 is used to determine the first initial coordinates of the indicator graph to be drawn corresponding to the total number of target indicators and the second initial coordinates of the conversion rate graph to be drawn corresponding to the target conversion rate according to the total number of target indicators and the target conversion rate.

[0176] The second acquisition module 803 is used to acquire a first height of the indicator graph to be drawn and a second height of the conversion rate graph to be drawn, and determine a first target offset and a second target offset based on the first height and the second height.

[0177] The drawing module 804 is used to draw the indicator graph to be drawn according to the first target offset and the first initial coordinate to obtain the drawn indicator graph, and to draw the conversion rate graph to be drawn according to the second target offset and the second initial coordinate to obtain the drawn conversion rate graph.

[0178] The generating module 805 is used to generate a target funnel graph corresponding to the target behavior sequence based on the drawn indicator graph and the drawn conversion rate graph.

[0179] Optionally, the second acquisition module 803 is specifically configured to execute:

[0180] determining a first ratio according to the first height and the second height;

[0181] A first target offset and a second target offset are determined according to the first height and the first ratio.

[0182] Optionally, the second acquisition module 803 is specifically configured to execute:

[0183] determining an initial offset according to the first height and the first ratio;

[0184] Obtaining a first identifier of the indicator graph to be drawn and a second identifier of the conversion rate graph to be drawn;

[0185] Determine a first target offset according to the first identifier and the initial offset;

[0186] A second target offset is determined according to the second identifier and the initial offset.

[0187] Optionally, the first identifier is a first digital identifier, and the second identifier is a second digital identifier;

[0188] Accordingly, the second acquisition module 803 is specifically used to execute:

[0189] Obtaining a first preset value;

[0190] Performing four arithmetic operations on the first digital identifier and the first preset value to obtain a first value;

[0191] determining a first target offset according to the first value and the initial offset;

[0192] Obtaining a second preset value;

[0193] Determine a second initial value according to the second digital identifier and the second preset value;

[0194] Performing four arithmetic operations on the second initial value and the first preset value to obtain a second value;

[0195] A second target offset is determined based on the second value and the initial offset.

[0196] Optionally, the first initial coordinate includes a first initial ordinate and a first initial abscissa, and the second initial coordinate includes a second initial ordinate and a second initial abscissa.

[0197] Accordingly, the drawing module 804 is specifically used to execute:

[0198] The first initial horizontal coordinate is offset according to the first target offset to obtain the first target horizontal coordinate of the indicator graph to be drawn, and the second initial horizontal coordinate is offset according to the second target offset to obtain the second target horizontal coordinate of the conversion rate graph to be drawn;

[0199] The indicator graph to be drawn is drawn according to the first target horizontal coordinate and the first initial vertical coordinate to obtain the drawn indicator graph, and the conversion rate graph to be drawn is drawn according to the second target horizontal coordinate and the second initial vertical coordinate to obtain the drawn conversion rate graph.

[0200] Optionally, the second initial horizontal coordinate includes a first sub-initial horizontal coordinate, a second sub-initial horizontal coordinate, a third sub-initial horizontal coordinate and a fourth sub-initial horizontal coordinate.

[0201] Accordingly, the drawing module 804 is specifically used to execute:

[0202] The first sub-initial horizontal coordinate and the second sub-initial horizontal coordinate are offset according to the second target offset to obtain the first sub-target horizontal coordinate and the second sub-target horizontal coordinate of the conversion rate graph to be drawn;

[0203] The third sub-initial horizontal coordinate and the fourth sub-initial horizontal coordinate are offset according to the second target offset and the initial offset to obtain the third sub-target horizontal coordinate and the fourth sub-target horizontal coordinate of the conversion rate graph to be drawn.

[0204] Optionally, the first initial ordinate includes a first sub-initial ordinate, a second sub-initial ordinate, a third sub-initial ordinate and a fourth sub-initial ordinate, and the second initial ordinate includes a first sub-initial ordinate, a second sub-initial ordinate, a third sub-initial ordinate and a fourth sub-initial ordinate;

[0205] Accordingly, the drawing module 804 is specifically used to execute:

[0206] If the first sub-initial ordinate of the conversion rate graph to be drawn is the same as the fourth sub-initial ordinate of the previous indicator graph to be drawn, then determining a first initial difference between the third sub-initial ordinate of the conversion rate graph to be drawn and the second sub-initial ordinate of the next indicator graph to be drawn;

[0207] The third sub-initial ordinate and the fourth sub-initial ordinate of the conversion rate graph to be drawn are offset by the first initial difference value to obtain the third sub-target ordinate and the fourth sub-target ordinate of the conversion rate graph to be drawn;

[0208] Draw the conversion rate graph to be drawn according to the second target abscissa of the conversion rate graph to be drawn, the first sub-initial ordinate of the conversion rate graph to be drawn, the second sub-initial ordinate of the conversion rate graph to be drawn, the third sub-target ordinate of the conversion rate graph to be drawn, and the fourth sub-target ordinate of the conversion rate graph to be drawn, to obtain a drawn conversion rate graph;

[0209] If the fourth sub-initial ordinate of the conversion rate graph to be drawn is the same as the first sub-initial ordinate of the next indicator graph to be drawn, then determining a second initial difference between the second sub-initial ordinate of the conversion rate graph to be drawn and the third sub-initial ordinate of the previous indicator graph to be drawn;

[0210] The first sub-initial ordinate and the second sub-initial ordinate of the conversion rate graph to be drawn are offset by a second initial difference to obtain the first sub-target ordinate and the second sub-target ordinate of the conversion rate graph to be drawn;

[0211] The conversion rate graph to be drawn is drawn according to the second target horizontal coordinate of the conversion rate graph to be drawn, the first sub-target vertical coordinate of the conversion rate graph to be drawn, the second sub-target vertical coordinate of the conversion rate graph to be drawn, the third sub-initial vertical coordinate of the conversion rate graph to be drawn and the fourth sub-initial vertical coordinate of the conversion rate graph to be drawn to obtain the drawn conversion rate graph.

[0212] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation methods and corresponding beneficial effects of the above modules can be found in the previous method embodiments, which will not be repeated here.

[0213] The present application also provides an electronic device, which may be a server or a terminal, etc. Fig. 9 As shown, it shows a schematic diagram of the structure of the electronic device involved in the embodiment of the present application, specifically:

[0214] The electronic device may include components such as a processor 901 with one or more processing cores, a memory 902 with one or more computer-readable storage media, a power supply 903, and an input unit 904. Those skilled in the art will appreciate that Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0215] The processor 901 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing computer programs and / or modules stored in the memory 902, and calling data stored in the memory 902, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 901 may include one or more processing cores; preferably, the processor 901 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 901.

[0216] The memory 902 can be used to store computer programs and modules. The processor 901 executes various functional applications and data processing by running the computer programs and modules stored in the memory 902. The memory 902 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 902 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 902 may also include a memory controller to provide the processor 901 with access to the memory 902.

[0217] The electronic device also includes a power supply 903 for supplying power to each component. Preferably, the power supply 903 can be logically connected to the processor 901 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 903 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

[0218] The electronic device may further include an input unit 904, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0219] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 901 in the electronic device will load the executable files corresponding to the processes of one or more computer programs into the memory 902 according to the following instructions, and the processor 901 will run the computer programs stored in the memory 902, thereby realizing various functions, such as:

[0220] Obtain the total number of target indicators for each behavior in the target behavior sequence and the target conversion rate between each behavior;

[0221] According to the total number of target indicators and the target conversion rate, determine the first initial coordinates of the indicator graph to be drawn corresponding to the total number of target indicators, and determine the second initial coordinates of the conversion rate graph to be drawn corresponding to the target conversion rate;

[0222] Obtaining a first height of the indicator graph to be drawn and a second height of the conversion rate graph to be drawn, and determining a first target offset and a second target offset based on the first height and the second height;

[0223] Draw the indicator graph to be drawn according to the first target offset and the first initial coordinates to obtain a drawn indicator graph, and draw the conversion rate graph to be drawn according to the second target offset and the second initial coordinates to obtain a drawn conversion rate graph;

[0224] A target funnel graph corresponding to the target behavior sequence is generated based on the drawn indicator graph and the drawn conversion rate graph.

[0225] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the detailed description of the funnel plot generation method above, which will not be elaborated here.

[0226] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0227] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program can be loaded by a processor to execute the steps in any funnel plot generation method provided in the embodiment of the present application. For example, the computer program can execute the following steps:

[0228] Obtain the total number of target indicators for each behavior in the target behavior sequence and the target conversion rate between each behavior;

[0229] According to the total number of target indicators and the target conversion rate, determine the first initial coordinates of the indicator graph to be drawn corresponding to the total number of target indicators, and determine the second initial coordinates of the conversion rate graph to be drawn corresponding to the target conversion rate;

[0230] Obtaining a first height of the indicator graph to be drawn and a second height of the conversion rate graph to be drawn, and determining a first target offset and a second target offset based on the first height and the second height;

[0231] Draw the indicator graph to be drawn according to the first target offset and the first initial coordinates to obtain a drawn indicator graph, and draw the conversion rate graph to be drawn according to the second target offset and the second initial coordinates to obtain a drawn conversion rate graph;

[0232] A target funnel graph corresponding to the target behavior sequence is generated based on the drawn indicator graph and the drawn conversion rate graph.

[0233] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0234] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0235] Since the computer program stored in the computer-readable storage medium can execute the steps in any funnel plot generation method provided in the embodiments of the present application, the beneficial effects that can be achieved by any funnel plot generation method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0236] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the funnel diagram generation method.

[0237] The funnel plot generation method, device, electronic device and computer-readable storage medium provided in the embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A funnel plot generation method, characterized in that: include: Obtain the total number of target indicators for each behavior in the target behavior sequence and the target conversion rate between each of the behaviors; According to the total number of target indicators and the target conversion rate, determining the first initial coordinates of the indicator graph to be drawn corresponding to the total number of target indicators, and determining the second initial coordinates of the conversion rate graph to be drawn corresponding to the target conversion rate; Acquire a first height of the indicator graph to be drawn and a second height of the conversion rate graph to be drawn, and determine a first target offset and a second target offset based on the first height and the second height; Draw the indicator graph to be drawn according to the first target offset and the first initial coordinates to obtain a drawn indicator graph, and draw the conversion rate graph to be drawn according to the second target offset and the second initial coordinates to obtain a drawn conversion rate graph; A target funnel graph corresponding to the target behavior sequence is generated based on the drawn indicator graph and the drawn conversion rate graph.

2. The funnel plot generation method according to claim 1, characterized in that: The determining a first target offset and a second target offset based on the first height and the second height includes: determining a first ratio according to the first height and the second height; A first target offset and a second target offset are determined according to the first height and the first ratio.

3. The funnel plot generation method according to claim 2, characterized in that: The determining of the first target offset and the second target offset according to the first height and the first ratio includes: determining an initial offset according to the first height and the first ratio; Obtaining a first identifier of the indicator graph to be drawn and a second identifier of the conversion rate graph to be drawn; Determine a first target offset according to the first identifier and the initial offset; A second target offset is determined according to the second identifier and the initial offset.

4. The funnel plot generation method according to claim 3, characterized in that: The first identifier is a first digital identifier, and the second identifier is a second digital identifier; The determining the first target offset according to the first identifier and the initial offset includes: Obtaining a first preset value; Performing four arithmetic operations on the first digital identifier and the first preset value to obtain a first value; determining a first target offset according to the first value and the initial offset; The determining the second target offset according to the second identifier and the initial offset includes: Obtaining a second preset value; Determine a second initial value according to the second digital identifier and the second preset value; Performing four arithmetic operations on the second initial value and the first preset value to obtain a second value; A second target offset is determined according to the second value and the initial offset.

5. The funnel plot generation method according to claim 3, characterized in that: The first initial coordinates include a first initial ordinate and a first initial abscissa, and the second initial coordinates include a second initial ordinate and a second initial abscissa; Correspondingly, drawing the indicator graph to be drawn according to the first target offset and the first initial coordinate to obtain a drawn indicator graph, and drawing the conversion rate graph to be drawn according to the second target offset and the second initial coordinate to obtain a drawn conversion rate graph, includes: The first initial horizontal coordinate is offset according to the first target offset to obtain a first target horizontal coordinate of the indicator graph to be drawn, and the second initial horizontal coordinate is offset according to the second target offset to obtain a second target horizontal coordinate of the conversion rate graph to be drawn; The indicator graph to be drawn is drawn according to the first target horizontal coordinate and the first initial vertical coordinate to obtain a drawn indicator graph, and the conversion rate graph to be drawn is drawn according to the second target horizontal coordinate and the second initial vertical coordinate to obtain a drawn conversion rate graph.

6. The funnel plot generation method according to claim 5, characterized in that: The second initial horizontal coordinate includes a first sub-initial horizontal coordinate, a second sub-initial horizontal coordinate, a third sub-initial horizontal coordinate and a fourth sub-initial horizontal coordinate; Correspondingly, the second initial horizontal coordinate is offset according to the second target offset to obtain the second target horizontal coordinate of the conversion rate graph to be drawn, including: The first sub-initial horizontal coordinate and the second sub-initial horizontal coordinate are offset according to the second target offset to obtain the first sub-target horizontal coordinate and the second sub-target horizontal coordinate of the conversion rate graph to be drawn; The third sub-initial horizontal coordinate and the fourth sub-initial horizontal coordinate are offset according to the second target offset and the initial offset to obtain the third sub-target horizontal coordinate and the fourth sub-target horizontal coordinate of the conversion rate graph to be drawn; The step of drawing the conversion rate graph to be drawn according to the second target horizontal coordinate and the second initial vertical coordinate to obtain the drawn conversion rate graph includes: A conversion rate graph to be drawn is drawn according to the first sub-target horizontal coordinate, the second sub-target horizontal coordinate, the third sub-target horizontal coordinate, the fourth sub-target horizontal coordinate and the second initial vertical coordinate to obtain a drawn conversion rate graph.

7. The funnel plot generation method according to claim 5, characterized in that: The first initial ordinate includes a first sub-initial ordinate, a second sub-initial ordinate, a third sub-initial ordinate and a fourth sub-initial ordinate, and the second initial ordinate includes a first sub-initial ordinate, a second sub-initial ordinate, a third sub-initial ordinate and a fourth sub-initial ordinate; Correspondingly, drawing the to-be-drawn conversion rate graph according to the second target horizontal coordinate and the second initial vertical coordinate to obtain the drawn conversion rate graph includes: If the first sub-initial ordinate of the conversion rate graph to be drawn is the same as the fourth sub-initial ordinate of the previous indicator graph to be drawn, determining a first initial difference between the third sub-initial ordinate of the conversion rate graph to be drawn and the second sub-initial ordinate of the next indicator graph to be drawn; offsetting the third sub-initial ordinate and the fourth sub-initial ordinate of the conversion rate graph to be drawn by the first initial difference to obtain the third sub-target ordinate and the fourth sub-target ordinate of the conversion rate graph to be drawn; Draw the conversion rate graph to be drawn according to the second target abscissa of the conversion rate graph to be drawn, the first sub-initial ordinate of the conversion rate graph to be drawn, the second sub-initial ordinate of the conversion rate graph to be drawn, the third sub-target ordinate of the conversion rate graph to be drawn, and the fourth sub-target ordinate of the conversion rate graph to be drawn, to obtain a drawn conversion rate graph; If the fourth sub-initial ordinate of the conversion rate graph to be drawn is the same as the first sub-initial ordinate of the next indicator graph to be drawn, determining a second initial difference between the second sub-initial ordinate of the conversion rate graph to be drawn and the third sub-initial ordinate of the previous indicator graph to be drawn; The first sub-initial ordinate and the second sub-initial ordinate of the conversion rate graph to be drawn are offset by the second initial difference to obtain the first sub-target ordinate and the second sub-target ordinate of the conversion rate graph to be drawn; The conversion rate graph to be drawn is drawn according to the second target horizontal coordinate of the conversion rate graph to be drawn, the first sub-target vertical coordinate of the conversion rate graph to be drawn, the second sub-target vertical coordinate of the conversion rate graph to be drawn, the third sub-initial vertical coordinate of the conversion rate graph to be drawn and the fourth sub-initial vertical coordinate of the conversion rate graph to be drawn to obtain a drawn conversion rate graph.

8. A funnel plot generating device, characterized in that: include: A first acquisition module is used to acquire the total number of target indicators of each behavior in the target behavior sequence and the target conversion rate between each of the behaviors; A determination module, configured to determine, according to the total number of target indicators and the target conversion rate, a first initial coordinate of an indicator graph to be drawn corresponding to the total number of target indicators, and a second initial coordinate of a conversion rate graph to be drawn corresponding to the target conversion rate; A second acquisition module, configured to acquire a first height of the indicator graph to be drawn and a second height of the conversion rate graph to be drawn, and determine a first target offset and a second target offset based on the first height and the second height; a drawing module, configured to draw the indicator graph to be drawn according to the first target offset and the first initial coordinates to obtain a drawn indicator graph, and to draw the conversion rate graph to be drawn according to the second target offset and the second initial coordinates to obtain a drawn conversion rate graph; A generating module is used to generate a target funnel graph corresponding to the target behavior sequence based on the drawn indicator graph and the drawn conversion rate graph.

9. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the funnel plot generation method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the funnel plot generation method according to any one of claims 1 to 7.