Bar chart generation method, storage medium and electronic equipment
By using the adjacent relationship in the configuration information database to determine the display position of data attributes in the bar chart, and calculate the data change information, and generate a bar chart containing the display area, the problem of insufficient intuitiveness of bar charts in the prior art is solved and the user experience is improved.
Patent Information
- Application Number
- CN202311305619.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-09
- Publication Date
- 2025-04-11
AI Technical Summary
When existing bar charts display data changes between adjacent data attributes, they are not intuitive enough, which affects the user experience.
By obtaining the adjacent relationship of data attributes saved in the configuration information library, the bar display position of the target data attributes is determined, and the adjacent data attributes are divided according to these positions, their data change information is calculated, and a bar chart containing the display area of the data change information is finally generated.
It improves the direct and explicitness of the data display of the bar chart, enhances users' intuitive understanding of data changes between adjacent data attributes, and thus improves the user experience of visual display.
Smart Images

Figure CN119807307A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing technology, and in particular to a bar chart generation method and device, a computer-readable storage medium, and an electronic device. Background Art
[0002] A bar chart is a common data visualization chart style that can represent data changes through the height or length of bars of the same width. A bar chart can be placed horizontally or vertically. When placed horizontally, the data categories can be placed on the vertical axis, and when placed vertically, the data categories can be placed on the horizontal axis. The resulting graph is also called a column chart.
[0003] In practical applications, the height or length of a bar can be used to represent the size of the quantity of each thing. As user demand increases, problems such as the single function of existing bar charts and the lack of intuitive data display have become particularly prominent. How to optimize the data display effect of the bar chart and improve the user experience has become a technical problem that needs to be solved by technical personnel in this field. Summary of the invention
[0004] The present application provides a bar chart generation method and device, a computer-readable storage medium, and an electronic device, which can intuitively display data change information between adjacent data attributes, thereby helping to improve the user experience of visual display.
[0005] This application provides the following solutions:
[0006] A bar graph generating method, comprising:
[0007] Obtaining a configuration information base, wherein the information base stores data attributes associated with different data types and adjacent relationships between different data attributes;
[0008] When the target data submitted for the target data attribute associated with the target data type is obtained, the display positions of the bars corresponding to the different target data attributes in the bar chart are determined according to the adjacent relationship between the target data attributes;
[0009] Determine at least one group of adjacent target data attributes according to the display position, so as to obtain data change information corresponding to each of the at least one group of adjacent target data attributes according to the target data corresponding to each of the at least one group of adjacent target data attributes;
[0010] The bar chart is generated according to the target data, the display position, and the data change information, and the bar chart includes an area for displaying the data change information.
[0011] A bar graph generating method, comprising:
[0012] The client provides optional data types associated with the target object through the target page, and the optional data types are respectively associated with different data attributes;
[0013] When the target data type is selected, obtaining target data corresponding to the target data attribute associated with the target data type;
[0014] Determine the display positions of the bars corresponding to the different target data attributes in the bar chart according to the adjacent relationship between the target data attributes;
[0015] After obtaining the data change information corresponding to each of the adjacent target data attributes determined based on the display position according to the target data corresponding to the target data attribute, a bar chart display page is provided to display a bar chart generated according to the target data, the display position, and the data change information, wherein the bar chart includes an area for displaying the data change information.
[0016] A bar graph generation method, wherein the bar graph is used to represent the predicted advertising delivery effect of a target point, the method comprising:
[0017] The client provides the first user with an operation option for submitting the target point;
[0018] After obtaining the target point through the operation options, providing optional data types associated with the target point, wherein the optional data types are respectively associated with different data attributes;
[0019] When the target data type is selected, obtaining prediction data corresponding to the target data attribute associated with the target data type, wherein the prediction data matches the advertisement delivery demand of the second user;
[0020] Determine the display positions of the bars corresponding to the different target data attributes in the bar chart according to the adjacent relationship between the target data attributes;
[0021] After obtaining the data change information corresponding to each of the adjacent target data attributes determined based on the display position according to the predicted data corresponding to the target data attribute, a bar chart display page is provided to display a bar chart generated according to the predicted data, the display position, and the data change information, wherein the bar chart includes an area for displaying the data change information.
[0022] A bar graph generation method, wherein the bar graph is used to represent the actual advertising effect of a target point, the method comprising:
[0023] The client provides the first user with an operation option for submitting the target point;
[0024] After obtaining the target point through the operation options, providing optional data types associated with the target point, wherein the optional data types are respectively associated with different data attributes;
[0025] When the target data type is selected, obtaining real data corresponding to the target data attribute associated with the target data type, the real data being the recovered data after the advertisement is placed at the target location;
[0026] Determine the display positions of the bars corresponding to the different target data attributes in the bar chart according to the adjacent relationship between the target data attributes;
[0027] After obtaining the data change information corresponding to each of the adjacent target data attributes determined based on the display position according to the real data corresponding to the target data attribute, a bar chart display page is provided to display a bar chart generated according to the real data, the display position, and the data change information, wherein the bar chart includes an area for displaying the data change information.
[0028] A bar graph generating device, comprising:
[0029] An information base obtaining unit, used to obtain a configuration information base, wherein the information base stores data attributes associated with different data types and adjacent relationships between different data attributes;
[0030] a display position determination unit, configured to determine, when obtaining target data submitted for target data attributes associated with a target data type, display positions of bars corresponding to different target data attributes in the bar chart according to adjacent relationships between the target data attributes;
[0031] a change information obtaining unit, configured to determine at least one group of adjacent target data attributes according to the display position, and obtain data change information corresponding to each of the at least one group of adjacent target data attributes according to target data corresponding to each of the at least one group of adjacent target data attributes;
[0032] A bar chart generating unit is used to generate the bar chart according to the target data, the display position, and the data change information, wherein the bar chart includes an area for displaying the data change information.
[0033] A bar chart generating device, applied to a client, comprising:
[0034] A data type providing unit, used for providing optional data types associated with a target object through a target page, wherein the optional data types are respectively associated with different data attributes;
[0035] a target data obtaining unit, configured to obtain target data corresponding to a target data attribute associated with the target data type when the target data type is selected;
[0036] A display position determination unit, used to determine the display positions of the bars corresponding to the different target data attributes in the bar chart according to the adjacent relationship between the target data attributes;
[0037] A display page providing unit is used to obtain data change information corresponding to each of adjacent target data attributes determined based on the display position according to the target data corresponding to the target data attribute, and then provide a bar chart display page to display a bar chart generated according to the target data, the display position, and the data change information, wherein the bar chart includes an area for displaying the data change information.
[0038] A bar graph generating device is applied to a client, wherein the bar graph is used to represent the predicted advertising delivery effect of a target point, and the device comprises:
[0039] An operation option providing unit, configured to provide the first user with an operation option for submitting a target point;
[0040] A data type providing unit, configured to provide optional data types associated with the target point after the target point is obtained through the operation options, wherein the optional data types are respectively associated with different data attributes;
[0041] a prediction data obtaining unit, configured to obtain, when a target data type is selected, prediction data corresponding to a target data attribute associated with the target data type, wherein the prediction data matches an advertisement delivery demand of a second user;
[0042] A display position determination unit, used to determine the display positions of the bars corresponding to the different target data attributes in the bar chart according to the adjacent relationship between the target data attributes;
[0043] A display page providing unit is used to obtain data change information corresponding to each of the adjacent target data attributes determined based on the display position according to the predicted data corresponding to the target data attribute, and then provide a bar chart display page to display a bar chart generated according to the predicted data, the display position, and the data change information, wherein the bar chart includes an area for displaying the data change information.
[0044] A bar graph generating device is applied to a client, wherein the bar graph is used to represent the actual advertising effect of a target point, and the device comprises:
[0045] An operation option providing unit, configured to provide the first user with an operation option for submitting a target point;
[0046] A data type providing unit, configured to provide optional data types associated with the target point after the target point is obtained through the operation options, wherein the optional data types are respectively associated with different data attributes;
[0047] A real data obtaining unit, used for obtaining, when a target data type is selected, real data corresponding to a target data attribute associated with the target data type, the real data being recovered data after advertisement delivery at the target location;
[0048] A display position determination unit, used to determine the display positions of the bars corresponding to the different target data attributes in the bar chart according to the adjacent relationship between the target data attributes;
[0049] A display page providing unit is used to obtain data change information corresponding to each of the adjacent target data attributes determined based on the display position according to the real data corresponding to the target data attribute, and then provide a bar chart display page to display a bar chart generated according to the real data, the display position, and the data change information, wherein the bar chart includes an area for displaying the data change information.
[0050] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of any of the methods described above.
[0051] An electronic device, comprising:
[0052] one or more processors; and
[0053] A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of any of the aforementioned methods.
[0054] According to the specific embodiments provided in this application, this application discloses the following technical effects:
[0055] In an embodiment of the present application, the display position of the bar corresponding to the target data attribute in the bar chart can be determined according to the adjacent relationship between the target data attributes, and then at least one group of adjacent target data attributes can be divided based on the display position, and according to the two target data corresponding to each group of adjacent target data attributes, the data change information corresponding to the adjacent target data attributes can be determined, and a bar chart can be generated, and a display area can be set in the bar chart to intuitively display the data change information corresponding to each adjacent target data attribute.
[0056] Such a solution can further enrich the bar chart display function, intuitively display the data change information between two adjacent data attributes, improve the directness of data display, and thus enhance the user experience of visual display.
[0057] Of course, any product implementing the present application does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0059] Figure 1 is a flowchart of a bar chart generation method provided in an embodiment of the present application;
[0060] Figure 2 It is a schematic diagram showing a bar graph provided in an embodiment of the present application;
[0061] Figure 3 It is a schematic diagram showing another bar graph provided in an embodiment of the present application;
[0062] Figure 4 is a schematic diagram of generating a trapezoidal area provided in an embodiment of the present application;
[0063] Figure 5 is another schematic diagram of generating a trapezoidal area provided in an embodiment of the present application;
[0064] Figure 6 This is a schematic diagram showing another bar graph provided in an embodiment of the present application;
[0065] Figure 7 is a schematic diagram of a bar graph generating device provided in an embodiment of the present application;
[0066] Figure 8 is a schematic diagram of another bar graph generating device provided in an embodiment of the present application;
[0067] Fig. 9 is a schematic diagram of another bar graph generating device provided in an embodiment of the present application;
[0068] Fig.10 It is a schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0069] 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. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0070] A bar chart is a statistical chart that uses the height (for vertical bar charts) or length (for horizontal bar charts) of the bars as a variable.
[0071] Compared with other visualization charts, bar charts have the advantage of being easy to compare the differences between different data. Specifically, when expressing comparative relationships through bar charts, the size and difference of the quantity between things are mainly expressed by the height or length of the bars.
[0072] The inventors found in actual applications that when bar charts show data comparison relationships, they can usually only present the relative size relationship between the quantities of things. If you want to obtain real data values, data change values, etc., you need to perform related operations on the bar chart through hovering, clicking, etc., and then obtain the specific data changes through mathematical calculations. The intuitiveness is poor, which affects the user experience.
[0073] In addition, for scenarios where the above operations cannot be performed, for example, when copying a bar chart to other files such as PPT for data display in the form of a screenshot, it is impossible to obtain the specific value corresponding to the bar through hovering, clicking, etc., and it is also impossible to obtain the data changes between adjacent bars.
[0074] In summary, although the existing bar chart can realize basic functions such as data comparison and color distinction, it cannot intuitively display the data change relationship between adjacent bars (including not only the change trend but also the specific change value), resulting in poor user experience.
[0075] Correspondingly, the embodiment of the present application can provide a bar chart generation client, and the generated bar chart can intuitively display the data changes between adjacent bars, that is, two data attributes that are adjacent in the display position. The client can be deployed on a terminal device associated with the first user, and generate a bar chart that can intuitively display the data changes for the target data type associated with the target object selected by the first user. Among them, the first user can be a data analyst, an operation and maintenance personnel, etc.
[0076] Specifically, the client can provide the first user with optional data types associated with the target object through the target page, and the optional data types are respectively associated with different data attributes; when the target data type is selected, the target data corresponding to the target data attribute associated with the target data type can be obtained, and then the display positions of the bars corresponding to the different target data attributes in the bar chart can be determined according to the adjacent relationship between the target data attributes. In this way, after obtaining the data change information corresponding to the adjacent target data attributes determined based on the display position according to the target data corresponding to the target data attribute, a bar chart display page can be provided to the first user to display a bar chart generated according to the target data, the display position, and the data change information, and the bar chart includes an area for displaying the data change information.
[0077] In actual applications, the client can obtain the target data corresponding to the target data attribute in a variety of ways. For example, an operation option for submitting the target data can be provided for the first user to enter manually; or, with legal authorization, the client can interact with the data system storing the target data and read the required target data from the data system.
[0078] In addition, the bar chart display page provided by the client can be reflected as a designated area of the target page. For example, a designated area of a preset size is divided in the upper right corner of the target page, and after the client generates a bar chart, the bar chart can be displayed through the designated area provided in the target page.
[0079] Alternatively, the bar chart display page can be embodied as a pop-up window on the target page, that is, after the client generates the bar chart, it can be visually displayed in a pop-up window. Alternatively, the bar chart display page can be embodied as a dedicated page independent of the target page, that is, after the first user performs relevant operations on the target page and clicks the submit button, the client can generate the bar chart in the background and jump to the dedicated page for display.
[0080] The specific implementation process of the bar chart generation method provided in the embodiment of the present application is described in detail below with reference to examples. Figure 1 The flow chart shown may include:
[0081] S101: Obtain a configuration information base, in which data attributes associated with different data types and adjacent relationships between different data attributes are stored.
[0082] The bar chart generation scheme provided in the embodiment of the present application can generate bar charts that can intuitively display data changes for different data types. In practical applications, information configuration can be performed in advance based on the association between data types and data attributes, and the association between data attributes, to determine which dimensions of data attributes need to be displayed when the bar chart is generated, as well as the adjacent relationship between these data attributes.
[0083] In actual applications, different data types are usually associated with multiple data attributes of different dimensions. Taking the advertising application scenario as an example, different data types can be included, such as exposure action index and brand search index. In terms of the crowd dimension, the data attributes associated with the exposure action index can at least include: exposure potential customer group, exposure crowd, unexposed crowd in the same city, homogeneous crowd, same category crowd, potential customer group, etc. The specific data attributes can be determined based on actual usage needs.
[0084] Taking the teaching application scenario as an example, different data types may be included, such as test scores and homework completion status. Still in terms of the population dimension, the data attributes associated with homework completion status may at least include: the total number of students in the class, the number of students who completed the homework, the number of students who completed the homework with full marks, the number of students who completed the homework with good grades, the number of students who completed the homework with qualified grades, the number of students who failed the homework, etc. The data attributes associated with the data type may also be configured according to the usage requirements, and the embodiments of the present application do not limit this.
[0085] In addition, the adjacent relationship between the data attributes can be determined based on the correlation between the data attributes, so as to determine the display position of the bar corresponding to each data attribute in the bar chart.
[0086] As an example, the adjacent relationship can be reflected as the correlation or contrast between any two data attributes. In other words, two data attributes with strong correlation can be displayed adjacent to each other to highlight the correlation between the two through data, such as the exposed potential customer group and the exposed population; or two data attributes with strong contrast can be displayed adjacent to each other to highlight the difference between the two through data, such as the number of completed people and the number of uncompleted people.
[0087] As another example, the adjacent relationship can also be reflected as a positional ranking between multiple data attributes, that is, the display positions corresponding to multiple data attributes associated with the data type can be preconfigured. The embodiment of the present application does not limit the form of expression of the adjacent relationship, as long as the display position of the bar corresponding to the data attribute in the bar chart is determined according to the adjacent relationship of the data attribute.
[0088] In this example, after configuring the data attributes associated with the data type, the adjacent relationship between the attributes can be determined through the system default configuration, and a bar chart can be generated accordingly; alternatively, the usage behavior of the first user can be analyzed, and the adjacent relationship can be personalized according to the usage preference; alternatively, the adjacent relationship can be personalized according to the viewing preference of the user who views the bar chart. Taking the advertising application scenario as an example, personalized configuration can be performed according to the viewing preference of the advertiser (i.e., the initiator of the advertising campaign), which can not only improve the flexibility of bar chart generation, but also better adapt to user needs such as usage preferences and viewing preferences.
[0089] Optionally, the configuration information library may also store card display modes associated with different data types, and the card display mode is related to the number of bars, the width of the bars, and the width of the gap between adjacent bars. In addition, in combination with actual applications, the card display mode may also be related to the number of cards displayed in a single row.
[0090] Generally, when designing a page for a bar chart display page, the page width is fixed. Taking a proprietary page as an example, the page width is 1440 pixels (px for short). In order to further optimize the page display effect, the embodiment of the present application can determine the card display mode associated with each data type according to the number of data attributes associated with each data type. As an example, the card display mode can include at least a small card display mode and a large card display mode.
[0091] For example, if the number of data attributes associated with a data type does not exceed a preset number, a bar chart can be generated by displaying a small card; otherwise, a bar chart can be generated by displaying a large card. The preset number can be used to indicate the maximum number of bars that can be displayed on a small card.
[0092] In one implementation, the preset number can be a variable value. Specifically, the card width of the small card, the width of the bar, and the gap width of adjacent bars can be predetermined, and the corresponding preset number can be calculated accordingly. Among them, the card width can be related to the page width and the number of cards displayed in a single row. For example, when the page width is 1440px and 2 small cards are displayed in a single row, the card width of each small card can be 502px. In the bar chart, the widths of different bars are the same, the widths of different gaps are also the same, and both can be set to fixed values. In this way, the maximum number of bars that can be displayed by the small card can be calculated based on the card width, bar width and gap width as the preset number.
[0093] In another implementation, the preset number may be a fixed value, that is, the preset number may be determined in advance, and the card width, column width, and gap width may be dynamically adjusted to ensure that the fixed preset number of columns can be displayed through the small card.
[0094] In addition, in actual applications, dynamic linkage adjustment can be performed between parameters such as the number of cards displayed in a single row, card width, bar width, gap width, preset number, etc. to determine the final card display method. The embodiment of the present application does not limit the implementation process of determining the card display method, the card display method associated with the data type, etc., which can be determined by actual use requirements.
[0095] As an example, Figure 2 As shown, two bar charts generated by small card display are displayed side by side in a single row; or, Figure 3 As shown, a bar chart generated by a large card display method is displayed in a single row. Correspondingly, the card width of the large card can be twice the card width of the small card, which helps to optimize the page layout and provide users with a more optimized visual presentation effect.
[0096] In addition, it should be noted that, when the card width is fixed, if the number of data attributes to be displayed is large and exceeds the maximum number of bars that can be displayed on the large card, you can also add a scroll bar control below the bar chart to display the remaining bars by dragging and scrolling.
[0097] Optionally, the bars corresponding to different data attributes may be distinguished by color. Correspondingly, the configuration information library may store associations between different data attributes and bar colors, or associations between different display positions and bar colors.
[0098] In summary, the configuration information library can store the association relationship shown in Table 1 below.
[0099]
[0100] Table 1
[0101] S102: When target data submitted for target data attributes associated with a target data type is obtained, display positions of bars corresponding to different target data attributes in a bar chart are determined according to adjacent relationships between the target data attributes.
[0102] In this example, after the target data is manually submitted by the first user or automatically read from a legally authorized data system, the display position of the bar corresponding to each data attribute in the bar chart can be determined based on the adjacent relationship between the target data attributes.
[0103] In actual applications, a bar graph may be generated for all target data attributes associated with the target data type, or a bar graph may be generated for some target data attributes, which may be specifically determined by the first user according to usage requirements.
[0104] S103: Determine at least one group of adjacent target data attributes according to the display position, and obtain data change information corresponding to each of the at least one group of adjacent target data attributes according to the target data corresponding to each of the at least one group of adjacent target data attributes.
[0105] S104: Generate the bar chart according to the target data, the display position, and the data change information, wherein the bar chart includes an area for displaying the data change information.
[0106] After determining the display position of the bar corresponding to the target data attribute in the bar chart, at least one set of adjacent target data attributes can be obtained. Figure 3 Taking the bar chart shown as an example, the target data type is associated with 8 target data attributes, and 7 groups of adjacent target data attributes can be obtained accordingly.
[0107] In this way, the data change information corresponding to the adjacent target data attributes can be calculated based on the two target data corresponding to the adjacent target data attributes. The data change information may include the data change trend, such as the rising arrow or the falling arrow shown in the figure; and the data change value, such as the rising multiple or the falling multiple shown in the figure.
[0108] In this example, a bar chart can be generated based on the target data, display position, and data change information. Specifically, the target data attribute corresponding to each display position can be determined, and the height of the bar at the display position can be determined based on the target data corresponding to the target data attribute. The height of the bar (for a horizontal bar chart, the length of the bar) can represent the frequency or frequency of the corresponding target data attribute.
[0109] It is understandable that if the target card display mode associated with the target data type is also determined, a bar chart can be generated according to the target data, display position, data change information, and target card display mode. That is, the bar chart can be generated according to the card width, bar width, and gap width corresponding to the target card display mode. In addition, if a single row can display at least two cards, the distribution positions of different cards on the bar chart display page can also be determined according to the number of cards displayed in a single row, so as to provide users with a more optimized visual presentation effect.
[0110] In this example, the bar chart includes an area for displaying data change information, through which the data change information of adjacent data attributes is intuitively displayed, thereby improving the user experience.
[0111] As an example, the area for displaying data change information may be a specific area in a bar chart display page, through which data change information corresponding to different adjacent target data attributes is displayed.
[0112] Alternatively, as a preferred solution, in order to improve the visual display effect, the area for displaying data change information can be located in the gap between two bars corresponding to adjacent target data attributes, and can be trapezoidal. In other words, a trapezoidal arc with an upward or downward slope can be generated according to the difference between the bar heights of two adjacent target data attributes, so as to more intuitively show the data change between the two target data attributes.
[0113] In the embodiments of the present application, the above trapezoidal area can be generated in different ways, which are illustrated below with examples.
[0114] In a first approach, a trapezoidal area at each gap may be generated based on the maximum value in the target data.
[0115] Specifically, a maximum value can be determined from target data associated with different target data attributes; the height of a rectangle corresponding to the maximum value is determined to be a preset maximum rectangular height, and a rectangular area located at the gap is generated according to the width of the gap and the maximum rectangular height; the relative values of two target data corresponding to the adjacent target data attributes and the maximum value are obtained, and the rectangular area is subtracted according to the relative values to obtain the trapezoidal area.
[0116] See also Figure 4 In the example given, for the target data associated with the three target data attributes, the target data 15.09 associated with the potential customer exposure group can be determined as the maximum value first, and then the rectangular height corresponding to the maximum value can be determined based on the preset maximum rectangular height. For example, if the preset maximum rectangular height is 200 pixels, then the rectangular height corresponding to the maximum value 15.09 is 200 pixels. In this way, two identical rectangular areas can be generated at the gaps corresponding to the following two groups of adjacent target data attributes based on the gap width and the maximum rectangular height: the gap between the unexposed group and the exposed group in the same city, and the gap between the exposed group and the potential customer exposure group. In this example, the rectangle width is the gap width, and the rectangle height is 200 pixels.
[0117] Then, according to the relative value of the target data and the maximum value, the rectangular area is subtracted to obtain the trapezoidal area at each gap. In this example, it can be determined that the relative value of the target data 9.25 associated with the unexposed population in the same city and the maximum value is 61.3%, the relative value of the target data 10.09 associated with the exposed population and the maximum value is 66.9%, and the relative value of the target value 15.09 associated with the potential customer exposed population and the maximum value is 100%. The dotted part of the rectangular area can be subtracted according to the above relative values to obtain the trapezoidal area at the two gaps, and the data change trend can be intuitively displayed by the rising or falling slope of the trapezoid. At the same time, the specific data change situation can also be displayed through the data change information displayed in the trapezoidal area for users to view according to their needs.
[0118] The relative value in this example can be obtained by calculating the relative value of each target data and the maximum value after the maximum value is determined. When the subtraction processing is performed on the rectangular area, the required relative value can be obtained by reading the data; or, when the subtraction processing is performed, the relative value to the maximum value can be calculated in real time according to the target data corresponding to the target data attribute (which may be part of the target data attribute) to be displayed.
[0119] In this example, the maximum rectangle height is preset to ensure the visual presentation of the generated bar chart on the page.
[0120] In a second method, a trapezoidal area at a gap corresponding to an adjacent target data attribute may be generated based on the target data corresponding to the adjacent target data attribute.
[0121] Specifically, for each adjacent target data attribute, a maximum value can be determined from the two target data corresponding to the adjacent target data attribute; the rectangular height corresponding to the maximum value is determined according to a preset ratio between the target data and the rectangle height; a rectangular area is generated at the gap corresponding to the adjacent target data attribute according to the gap width and the rectangle height; and then the rectangular area is subtracted according to the relative value of the minimum value of the two target data and the maximum value to obtain a trapezoidal area at the gap.
[0122] See also Figure 5 In the example given, for the following set of adjacent target data attributes: the unexposed population and the exposed population in the same city, it can be determined that the maximum value is the target data 10.09 associated with the exposed population, and the minimum value is the target data 9.25 associated with the unexposed population in the same city. When generating a rectangular area, the height of the rectangle corresponding to the maximum value can be determined first according to the preset ratio between the target data and the height of the rectangle. For example, if the preset ratio is 1:10, the height of the rectangle corresponding to the maximum value 10.09 is 100.9 pixels. In this way, a rectangular area can be generated at the gap according to the gap width and the rectangle height corresponding to the maximum value, and the rectangular area can be subtracted according to the relative values of the minimum value and the maximum value to obtain the trapezoidal area at the gap. In this example, the rectangle width is the gap width, and the rectangle height is 100.9 pixels; the relative value of the minimum value 9.25 and the maximum value 10.09 is 91.7%.
[0123] Similarly, for another set of adjacent target data attributes: the exposed population and the potential customer exposed population, it can be determined that the maximum value is the target value 15.09 associated with the potential customer exposed population, and the minimum value is the target data 10.09 associated with the exposed population. In the rectangular area generated at the gap, the rectangle width is the gap width, and the rectangle height is 150.9 pixels determined based on the maximum value and the preset ratio. When the rectangular area is subtracted, the relative value of the minimum value 10.09 and the maximum value 15.09 is 66.9%.
[0124] Optionally, the embodiment of the present application can also present the color flow trend to the user by filling the trapezoidal area with color, that is, the visual experience of the user when viewing the bar chart can be further improved on the basis of the intuitive data experience as the primary priority. Among them, the color flow trend can be understood as color gradient filling through the path from the start point to the end point, and the color flow relationship between two adjacent data attributes can be expressed in the color path.
[0125] Specifically, the display colors of the two bars corresponding to the adjacent target data attributes in the bar chart can be determined as the starting point and end point of the color filling, and the color filling is performed in a soft gradient manner in the trapezoidal area to present the color flow trend. Preferably, the color flow trend can be presented in a soft gradient manner with a preset transparency, such as 15% transparency.
[0126] In one implementation, the lower left corner of the trapezoidal area can be determined as the path starting point, the display color of the bar at the path starting point can be determined as the filling color of the starting point, the upper right corner of the trapezoidal area can be determined as the path ending point, the display color of the bar at the path ending point can be determined as the filling color of the ending point, and gradient filling can be performed. That is, for two adjacent bars, the display color of the bar at the front display position is the filling color of the starting point, and the display color of the bar at the back display position is the filling color of the ending point.
[0127] In this way, when a trapezoidal area is generated based on method 2, the filling path from the starting color to the end color can be completely retained, ensuring a better visual presentation effect of the color flow trend.
[0128] In summary, the bar chart solution provided in the embodiment of the present application can further enrich the bar chart display function, intuitively display the data change information between two adjacent data attributes through the bar chart, improve the directness of data display, and thus enhance the user experience of visual display. Specifically, the data change trend can be represented by an upward arrow or a downward arrow, the data change value can be represented by an upward multiple or a downward multiple, and the data change trend can be represented by an upward slope or a downward slope. Users can understand the data change situation in different ways according to their usage needs.
[0129] Optionally, in order to improve the flexibility of using the bar chart, after the bar chart is generated, the data attributes displayed by the bar chart can be dynamically adjusted according to usage requirements.
[0130] For the client, operation options for adjusting data attributes can be provided for different display positions, such as the drop-down button shown in the figure. In this way, the first user can submit the adjusted target data attributes through the operation options corresponding to the display position, and dynamically adjust the current target data attributes corresponding to the display position.
[0131] Specifically, when it is determined that data attributes need to be adjusted for the first display position, the current target data attributes and the adjusted target data attributes corresponding to the first display position can be obtained; the positions of the bars corresponding to the current target data attributes and the adjusted target data attributes are adjusted, and new adjacent target data attributes respectively related to the current target data attributes and the adjusted target data attributes after the position adjustment are obtained; data change information corresponding to the new adjacent target data attributes is obtained, and data is updated in the area.
[0132] Figure 3 In the example given, when the first user clicks the drop-down button associated with "Potential Customer Homogeneous Group", the display position corresponding to the data attribute (the 4th display position from left to right) can be determined as the first display position, and an instruction for adjusting the data attribute for the display position can be generated.
[0133] If the first user selects "same category population" in the drop-down options, the current target data attribute can be determined as "potential customer homogeneous population", and the adjusted target data attribute is "same category population". At this time, the positions of the bars corresponding to the two attributes can be adjusted, and the identification information of the target data attributes corresponding to the two display positions can be adjusted synchronously. At the same time, after the position adjustment, the new adjacent target data attributes related to the current target data attributes and the new adjacent target data attributes related to the adjusted target data attributes should be obtained to synchronize the data change information.
[0134] In this example, the new adjacent target data attributes related to "potential customer homogeneous population" are: same category population and potential customer homogeneous population, potential customer homogeneous population and exposure homogeneous population, and the new adjacent target data attributes related to "same category population" are: exposure population and same category population, same category population and potential customer homogeneous population. You can adjust and update the data change information corresponding to the new adjacent target data attributes according to the above introduction to obtain Figure 6 Bar graph shown.
[0135] It can be understood that in the case where the bar chart displays part of the target data attributes, the adjusted target data attributes may be data attributes that are not displayed in the current bar chart. Correspondingly, after determining the current target data attributes and the adjusted target data attributes corresponding to the first display position, the bar corresponding to the adjusted target data attributes can be displayed at the first display position, and the new adjacent target data attributes related to the adjusted target data attributes can be obtained to update the data change information. The specific implementation process can be referred to the above introduction, which will not be repeated here.
[0136] In actual applications, if the trapezoidal area is filled with gradient colors, then when adjusting the data attributes, the display colors of the two bars corresponding to the new adjacent target data attributes in the bar chart can also be obtained, and the filling colors in the trapezoidal area corresponding to the new adjacent target data attributes can be dynamically adjusted accordingly.
[0137] In addition, it should be noted that if the trapezoidal area is generated based on method one, the relative values corresponding to different target data attributes are calculated by the maximum value determined from all target data. Even if the data attributes are adjusted, the relative values will not be affected, which helps to improve the response speed of data attribute adjustment and thus enhance the user experience.
[0138] Optionally, in order to further improve the user experience, after the bar chart is generated, the data attributes displayed by the bar chart can be hidden according to usage requirements.
[0139] For the client, operation options for hiding data attributes can be provided for different display positions. When the first user performs a hiding operation through the operation option corresponding to a display position, the display position can be determined as the second display position, and an instruction for hiding data attributes for the display position can be generated.
[0140] Specifically, when it is determined that data attributes need to be hidden for the second display position, the bar corresponding to the display position behind the second display position can be moved forward; the target data attributes corresponding to the two display positions adjacent to the second display position are determined as new adjacent target data attributes; the data change information corresponding to the new adjacent target data attributes is obtained, and the data is updated in the area.
[0141] Figure 6In the example given, when the first user performs data hiding processing on the "same category population", the display position corresponding to the data attribute (the 4th display position from left to right) can be determined as the second display position, and the bars corresponding to the 5th, 6th, 7th, and 8th display positions can be moved forward one display position in sequence, and the "exposed population" and "potential customer homogeneous population" can be determined as new adjacent target data attributes, and the data change information corresponding to the new adjacent target data attribute can be updated as described above.
[0142] It can be understood that if the second display position is the first display position of the bar graph, for example, Figure 6 When the "national data" in the bar chart shown is subjected to attribute hiding processing, there are no new adjacent target data attributes, so there is no need to update the data change information. The bar corresponding to the "national data" and the trapezoidal area between the "national data" and the "exposure potential customer group" can be hidden, and the rear bar can be moved forward. Similarly, if the second display position is the last display position of the bar chart, there are no new adjacent target data attributes, and the hiding process can be performed as described above, and no example will be given here.
[0143] Similarly, the display colors of the two bars corresponding to the new adjacent target data attributes in the bar chart can also be obtained, and the fill color of the trapezoidal area in the gap can be dynamically adjusted.
[0144] The following uses an advertising delivery application scenario as an example to illustrate the bar chart generation solution of the embodiment of the present application.
[0145] Taking offline advertising as an example, when the second user (i.e., the advertiser mentioned above) has an advertising demand, the first user can formulate an advertising proposal to produce the greatest possible advertising effect. At the same time, a bar chart corresponding to the advertising proposal can be generated through the solution provided in the embodiment of the present application to intuitively display the advertising effect for the second user to view.
[0146] In actual applications, the first user can be a user associated with the advertiser, that is, the initiator of the advertising campaign can make an internal proposal, and visually display the proposal effect through the client provided in the embodiment of the present application, and perform proposal screening. Alternatively, the first user can be a user associated with the advertising delivery platform, such as the holder of offline large-screen equipment such as roads and bus stations, who can make proposals based on the advertiser's advertising delivery needs, and visually display the proposal effect through the client provided in the embodiment of the present application, and recommend the advertising delivery point. Alternatively, the first user can be a user associated with a third-party platform, who can make proposals based on the advertiser's advertising delivery needs and the delivery resources held by the advertising delivery platform, and provide media services for both.
[0147] Specifically, an embodiment of the present application can provide a bar chart generation method, and the generated bar chart can be used to represent the predicted advertising delivery effect of a target point: the client provides an operation option for submitting the target point to the first user; after obtaining the target point through the operation option, an optional data type associated with the target point is provided, and the optional data types are respectively associated with different data attributes; when the target data type is selected, the predicted data corresponding to the target data attribute associated with the target data type is obtained, and the predicted data matches the advertising delivery demand of the second user; according to the adjacent relationship between the target data attributes, the display position of the bars corresponding to the different target data attributes in the bar chart is determined; according to the predicted data corresponding to the target data attribute, after obtaining the data change information corresponding to the adjacent target data attributes determined based on the display position, a bar chart display page is provided to display the bar chart generated according to the predicted data, the display position, and the data change information, and the bar chart includes an area for displaying the data change information.
[0148] In the offline advertising application scenario, each offline large-screen device that can deliver advertisements is a point. Taking the display screen at a bus station as an example, the flow of people on the display screen can be counted based on LBS technology (Location Based Services). When a pedestrian passes by, the location of the pedestrian will overlap with the location of the display screen, which is regarded as an exposure. The flow of people at the point can be obtained by counting the exposures, and then based on the user portrait of the pedestrian (for example, the user portrait can be obtained from other legally authorized systems), the crowd can be classified to obtain the predicted data corresponding to the data attributes in the example given above.
[0149] In this way, when data display is required, the target location and target data type can be determined first, and then a bar chart can be generated according to the forecast data corresponding to the target data attribute associated with the target data type as described above. The forecast data is determined based on the advertising proposal and matches the advertising demand, that is, it meets the advertising requirements such as the advertising amount and the advertising population.
[0150] In the embodiments of the present application, in addition to visually displaying the effects of the advertising proposals, data can also be recovered after the advertising is released. The solution provided in the embodiments of the present application can be used to visually display the actual advertising effects, and then compare the expected effects and actual effects of the advertising to determine whether the expected effects have been achieved.
[0151] Specifically, the client provides the first user with an operation option for submitting a target point; after obtaining the target point through the operation option, provides optional data types associated with the target point, and the optional data types are respectively associated with different data attributes; when the target data type is selected, obtains real data corresponding to the target data attribute associated with the target data type, and the real data is the recovered data after the target point is advertised; according to the adjacent relationship between the target data attributes, determines the display position of the bars corresponding to the different target data attributes in the bar chart; according to the real data corresponding to the target data attributes, after obtaining the data change information corresponding to the adjacent target data attributes determined based on the display position, provides a bar chart display page to display a bar chart generated according to the real data, the display position, and the data change information, and the bar chart includes an area for displaying the data change information.
[0152] The real data in this example may be data collected after advertisements are placed at the target locations, so the generated bar chart may be used to represent the real advertisement placement effect at the target locations.
[0153] In the above advertising application scenarios, the target object can be reflected as a target point. For the teaching application scenario mentioned above, the target object can be reflected as a class in one example. The specific form of expression of the target object can be determined in combination with usage requirements.
[0154] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0155] Corresponding to the above method embodiment, the present application embodiment also provides a bar graph generating device, see Figure 7 , the device may include:
[0156] The information base obtaining unit 701 is used to obtain a configuration information base, wherein the information base stores data attributes associated with different data types and adjacent relationships between different data attributes;
[0157] The display position determination unit 702 is used to determine the display positions of the bars corresponding to the different target data attributes in the bar chart according to the adjacent relationship between the target data attributes when the target data submitted for the target data attribute associated with the target data type is obtained;
[0158] The change information obtaining unit 703 is used to determine at least one group of adjacent target data attributes according to the display position, and obtain data change information corresponding to each of the at least one group of adjacent target data attributes according to the target data corresponding to each of the at least one group of adjacent target data attributes;
[0159] The bar chart generating unit 704 is used to generate the bar chart according to the target data, the display position, and the data change information, wherein the bar chart includes an area for displaying the data change information.
[0160] The area for displaying the data change information is located in the gap between two bars corresponding to the adjacent target data attributes, and the area is trapezoidal.
[0161] Wherein, the device further comprises:
[0162] A trapezoidal area generating unit is used to determine a maximum value from target data associated with different target data attributes; determine that the rectangular height corresponding to the maximum value is a preset maximum rectangular height, and generate a rectangular area located at the gap according to the width of the gap and the maximum rectangular height; obtain the relative values of the two target data corresponding to the adjacent target data attributes and the maximum value, and perform a subtraction process on the rectangular area according to the relative values to obtain the trapezoidal area.
[0163] Wherein, the device further comprises:
[0164] The color filling unit is used to determine the display colors of the two bars corresponding to the adjacent target data attributes in the bar chart, which are used as the starting point and end point of the color filling respectively, and to fill the color in the trapezoidal area in a soft gradient manner to present the color flow trend.
[0165] Wherein, the device further comprises:
[0166] A data attribute adjustment unit is used to obtain the current target data attribute and the adjusted target data attribute corresponding to the first display position when it is determined that the data attribute needs to be adjusted for the first display position after the bar chart is generated; adjust the position of the bars corresponding to the current target data attribute and the adjusted target data attribute, and obtain new adjacent target data attributes related to the current target data attribute and the adjusted target data attribute after the position adjustment; obtain data change information corresponding to the new adjacent target data attributes, and update data in the area.
[0167] Wherein, the device further comprises:
[0168] A data attribute hiding unit is used to, after generating the bar chart, when it is determined that data attributes need to be hidden for a second display position, move forward the bar corresponding to the display position that is positioned after the second display position; determine the target data attributes corresponding to the two display positions adjacent to the second display position as new adjacent target data attributes; obtain data change information corresponding to the new adjacent target data attributes, and update data in the area.
[0169] Wherein, the area is a trapezoidal area located in the gap and is filled with color, and the device further includes:
[0170] The color adjustment unit is used to obtain the display colors of the two bars corresponding to the new adjacent target data attributes in the bar chart, and dynamically adjust the filling color in the trapezoidal area.
[0171] The configuration information library also stores card display modes associated with different data types, and the card display modes are related to the number of bars, the width of the bars, and the width of the gaps between adjacent bars;
[0172] The bar chart generating unit can be specifically used to: determine the target card display mode associated with the target data type, and generate the bar chart according to the target data, the display position, the data change information, and the target card display mode.
[0173] Corresponding to the aforementioned method embodiment, the embodiment of the present application further provides a bar chart generating device, which is applied to a client and may include:
[0174] A data type providing unit, used for providing optional data types associated with a target object through a target page, wherein the optional data types are respectively associated with different data attributes;
[0175] a target data obtaining unit, configured to obtain target data corresponding to a target data attribute associated with the target data type when the target data type is selected;
[0176] A display position determination unit, used to determine the display positions of the bars corresponding to the different target data attributes in the bar chart according to the adjacent relationship between the target data attributes;
[0177] A display page providing unit is used to obtain data change information corresponding to each of adjacent target data attributes determined based on the display position according to the target data corresponding to the target data attribute, and then provide a bar chart display page to display a bar chart generated according to the target data, the display position, and the data change information, wherein the bar chart includes an area for displaying the data change information.
[0178] Wherein, the device further comprises:
[0179] A data attribute adjustment unit is used to provide operation options for adjusting data attributes for different display positions; after submitting the adjusted target data attributes through the operation options corresponding to the first display position, the positions of the bars corresponding to the current target data attributes and the adjusted target data attributes corresponding to the first display position are adjusted, and new adjacent target data attributes related to the current target data attributes and the adjusted target data attributes are obtained after the position adjustment; data change information corresponding to the new adjacent target data attributes is obtained, and data is updated in the area.
[0180] Corresponding to the above method embodiment, the present application embodiment also provides a bar graph generating device, which is applied to a client, and the bar graph is used to represent the predicted advertising delivery effect of the target point, see Figure 8 , the device may include:
[0181] An operation option providing unit 801 is used to provide the first user with an operation option for submitting a target point;
[0182] A data type providing unit 802 is used to provide optional data types associated with the target point after the target point is obtained through the operation options, wherein the optional data types are respectively associated with different data attributes;
[0183] A prediction data obtaining unit 803, configured to obtain prediction data corresponding to a target data attribute associated with the target data type when the target data type is selected, wherein the prediction data matches the advertisement delivery demand of the second user;
[0184] A display position determination unit 804, configured to determine the display positions of the bars corresponding to the different target data attributes in the bar chart according to the adjacent relationship between the target data attributes;
[0185] The display page providing unit 805 is used to obtain data change information corresponding to each of the adjacent target data attributes determined based on the display position according to the predicted data corresponding to the target data attribute, and then provide a bar chart display page to display a bar chart generated according to the predicted data, the display position, and the data change information, wherein the bar chart includes an area for displaying the data change information.
[0186] Corresponding to the above method embodiment, the present application embodiment also provides a bar graph generating device, which is applied to the client, and the bar graph is used to represent the actual advertising effect of the target point, see Fig. 9 , the device may include:
[0187] An operation option providing unit 901 is used to provide the first user with an operation option for submitting a target point;
[0188] A data type providing unit 902 is used to provide optional data types associated with the target point after the target point is obtained through the operation option, and the optional data types are respectively associated with different data attributes;
[0189] A real data obtaining unit 903 is used to obtain real data corresponding to a target data attribute associated with the target data type when the target data type is selected, wherein the real data is the recovered data after the advertisement is placed at the target location;
[0190] A display position determination unit 904, configured to determine the display positions of the bars corresponding to the different target data attributes in the bar chart according to the adjacent relationship between the target data attributes;
[0191] The display page providing unit 905 is used to obtain data change information corresponding to each of the adjacent target data attributes determined based on the display position according to the real data corresponding to the target data attribute, and then provide a bar chart display page to display a bar chart generated according to the real data, the display position, and the data change information, wherein the bar chart includes an area for displaying the data change information.
[0192] In addition, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of any one of the methods in the aforementioned method embodiments are implemented.
[0193] And an electronic device, comprising:
[0194] one or more processors; and
[0195] A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of the method described in any one of the aforementioned method embodiments.
[0196] in, Fig.10 The architecture of an electronic device is exemplarily shown. For example, device 1000 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, an aircraft, etc.
[0197] Reference Fig.10, device 1000 may include one or more of the following components: a processing component 1002 , a memory 1004 , a power component 1006 , a multimedia component 1008 , an audio component 1010 , an input / output (I / O) interface 1012 , a sensor component 1014 , and a communication component 1016 .
[0198] The processing component 1002 generally controls the overall operation of the device 1000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute instructions to complete all or part of the steps of the method provided by the technical solution of the present disclosure. In addition, the processing component 1002 may include one or more modules to facilitate the interaction between the processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate the interaction between the multimedia component 1008 and the processing component 1002.
[0199] The memory 1004 is configured to store various types of data to support the operation of the device 1000. Examples of such data include instructions for any application or method operating on the device 1000, contact data, phone book data, messages, pictures, videos, etc. The memory 1004 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0200] The power supply component 1006 provides power to the various components of the device 1000. The power supply component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1000.
[0201] The multimedia component 1008 includes a screen that provides an output interface between the device 1000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front camera and / or a rear camera. When the device 1000 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0202] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC), and when the device 1000 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1004 or sent via the communication component 1016. In some embodiments, the audio component 1010 also includes a speaker for outputting audio signals.
[0203] The input / output (I / O) interface 1012 provides an interface between the processing component 1002 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0204] The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the device 1000. For example, the sensor assembly 1014 can detect the open / closed state of the device 1000, the relative positioning of components, such as the display and keypad of the device 1000, and the sensor assembly 1014 can also detect the position change of the device 1000 or a component of the device 1000, the presence or absence of user contact with the device 1000, the orientation or acceleration / deceleration of the device 1000, and the temperature change of the device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1014 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0205] The communication component 1016 is configured to facilitate wired or wireless communication between the device 1000 and other devices. The device 1000 can access a wireless network based on a communication standard, such as WiFi, or a mobile communication network such as 2G, 3G, 4G / LTE, 5G, etc. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0206] In an exemplary embodiment, the device 1000 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0207] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1004 including instructions, and the above instructions can be executed by the processor 1020 of the device 1000 to complete the method provided by the technical solution of the present disclosure. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0208] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0209] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0210] The above is a detailed introduction to the scheme provided by the present application. The principles and implementation methods of the present application are described in detail using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. A bar graph generation method, characterized in that: include: Obtaining a configuration information base, wherein the information base stores data attributes associated with different data types and adjacent relationships between different data attributes; When the target data submitted for the target data attribute associated with the target data type is obtained, the display positions of the bars corresponding to the different target data attributes in the bar chart are determined according to the adjacent relationship between the target data attributes; Determine at least one group of adjacent target data attributes according to the display position, so as to obtain data change information corresponding to each of the at least one group of adjacent target data attributes according to the target data corresponding to each of the at least one group of adjacent target data attributes; The bar chart is generated according to the target data, the display position, and the data change information, and the bar chart includes an area for displaying the data change information.
2. The method according to claim 1, characterized in that The area for displaying the data change information is located in the gap between two bars corresponding to the adjacent target data attributes, and the area is trapezoidal.
3. The method according to claim 2, characterized in that The area of the trapezoid is generated as follows: Determine a maximum value from target data associated with different target data attributes; Determine that the height of the rectangle corresponding to the maximum value is a preset maximum rectangular height, and generate a rectangular area located at the gap according to the width of the gap and the maximum rectangular height; The relative values of the two target data corresponding to the adjacent target data attributes and the maximum value are obtained, and the rectangular area is subtracted according to the relative values to obtain the trapezoidal area.
4. The method according to claim 3, characterized in that Also includes: Determine the display colors of the two bars corresponding to the adjacent target data attributes in the bar chart as the starting point and end point of color filling respectively, and fill the color in the trapezoidal area in a soft gradient manner to present a color flow trend.
5. The method according to any one of claims 1 to 4, characterized in that: After generating the bar graph, the method further includes: When it is determined that the data attribute needs to be adjusted for the first presentation position, obtaining a current target data attribute and an adjusted target data attribute corresponding to the first presentation position; Adjusting the positions of the bars corresponding to the current target data attribute and the adjusted target data attribute, and obtaining new adjacent target data attributes respectively related to the current target data attribute and the adjusted target data attribute after the position adjustment; The data change information corresponding to the new adjacent target data attribute is obtained, and data is updated in the area.
6. The method according to any one of claims 1 to 4, characterized in that: After generating the bar graph, the method further includes: When it is determined that the data attribute needs to be hidden for the second display position, the bar corresponding to the display position after the second display position is moved forward; determining the target data attributes corresponding to the two presentation positions adjacent to the second presentation position as new adjacent target data attributes; The data change information corresponding to the new adjacent target data attribute is obtained, and data is updated in the area.
7. The method according to claim 5 or 6, characterized in that: The region is a trapezoidal region located in the gap and is filled with color. The method further includes: The display colors of the two bars corresponding to the new adjacent target data attributes in the bar chart are obtained, and the filling color in the trapezoidal area is dynamically adjusted.
8. The method according to any one of claims 1 to 4, characterized in that: The configuration information library also stores card display modes associated with different data types, and the card display modes are related to the number of bars, the width of the bars, and the width of the gaps between adjacent bars; The generating of the bar chart according to the target data, the display position, and the data change information includes: determining the target card display method associated with the target data type, and generating the bar chart according to the target data, the display position, the data change information, and the target card display method.
9. A bar graph generation method, characterized in that: include: The client provides optional data types associated with the target object through the target page, and the optional data types are respectively associated with different data attributes; When the target data type is selected, obtaining target data corresponding to the target data attribute associated with the target data type; Determine the display positions of the bars corresponding to the different target data attributes in the bar chart according to the adjacent relationship between the target data attributes; After obtaining the data change information corresponding to each of the adjacent target data attributes determined based on the display position according to the target data corresponding to the target data attribute, a bar chart display page is provided to display a bar chart generated according to the target data, the display position, and the data change information, wherein the bar chart includes an area for displaying the data change information.
10. The method according to claim 9, characterized in that Provide operation options for adjusting data attributes for different display positions; After submitting the adjusted target data attribute through the operation option corresponding to the first display position, the positions of the bars corresponding to the current target data attribute corresponding to the first display position and the adjusted target data attribute are adjusted, and new adjacent target data attributes respectively related to the current target data attribute and the adjusted target data attribute after the position adjustment are obtained; The data change information corresponding to the new adjacent target data attribute is obtained, and data is updated in the area.
11. A bar graph generation method, characterized in that: The bar graph is used to represent the predicted advertising delivery effect of the target point, and the method includes: The client provides the first user with an operation option for submitting the target point; After obtaining the target point through the operation options, providing optional data types associated with the target point, wherein the optional data types are respectively associated with different data attributes; When the target data type is selected, obtaining prediction data corresponding to the target data attribute associated with the target data type, wherein the prediction data matches the advertisement delivery demand of the second user; Determine the display positions of the bars corresponding to the different target data attributes in the bar chart according to the adjacent relationship between the target data attributes; After obtaining the data change information corresponding to each of the adjacent target data attributes determined based on the display position according to the predicted data corresponding to the target data attribute, a bar chart display page is provided to display a bar chart generated according to the predicted data, the display position, and the data change information, wherein the bar chart includes an area for displaying the data change information.
12. A bar graph generation method, characterized in that: The bar graph is used to represent the actual advertising effect of the target point, and the method includes: The client provides the first user with an operation option for submitting the target point; After obtaining the target point through the operation options, providing optional data types associated with the target point, wherein the optional data types are respectively associated with different data attributes; When the target data type is selected, obtaining real data corresponding to the target data attribute associated with the target data type, the real data being the recovered data after the advertisement is placed at the target location; Determine the display positions of the bars corresponding to the different target data attributes in the bar chart according to the adjacent relationship between the target data attributes; After obtaining the data change information corresponding to each of the adjacent target data attributes determined based on the display position according to the real data corresponding to the target data attribute, a bar chart display page is provided to display a bar chart generated according to the real data, the display position, and the data change information, wherein the bar chart includes an area for displaying the data change information.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 12 are implemented.
14. An electronic device, characterized in that: include: one or more processors; as well as A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of the method according to any one of claims 1 to 12.