Bubble chart display method and device, storage medium, and electronic device
By displaying and carving bubbles in the bubble chart at preset time intervals, combining radius expansion and animation effects, the problems of bubble overlap and data observation difficulties in the bubble chart are solved, and the accurate display and optimization of the bubble chart are achieved.
Patent Information
- Application Number
- CN201910944076.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-30
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2039-09-30
AI Technical Summary
The overlap of a large number of bubbles in the bubble chart makes the data unable to be accurately observed, and the existing technology has failed to effectively solve this problem.
By obtaining and displaying the data of each bubble in the display layer of the bubble diagram in sequence according to preset time intervals, using the radius expansion and animation effects of the bubbles, combining tooltip suspension layer and trigger event processing, the carousel of the bubbles and the carousel of the bubbles and Highlight to avoid overlapping coverage.
It effectively solves the problem of bloated bubble charts and difficult to observe data, and achieves accurate observation and optimized display effects of each bubble data.
Smart Images

Figure CN112579844B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and more specifically, to a method and device for displaying a bubble chart, a storage medium, and an electronic device. Background Art
[0002] The bubble chart can be used to show the relationship between three variables. It is similar to the scatter plot. When drawing, one variable is placed on the horizontal axis, another variable is placed on the vertical axis, and the third variable is represented by the size of the bubble. It can intuitively display data in multiple dimensions and at multiple levels. It is one of the most common data visualization analysis charts.
[0003] However, data visualization is severely limited by data quality. The ideal situation for a bubble chart is that the bubbles are separated from each other with clear layers, but the actual situation is often that a large number of bubbles overlap, and the data corresponding to each bubble cannot be accurately observed.
[0004] Currently, no effective solution has been proposed to solve the problem of display defects in bubble charts. Summary of the invention
[0005] The embodiments of the present application provide a method and device for displaying a bubble chart, a storage medium, and an electronic device to at least solve the technical problem that a large number of bubbles overlap when displaying a bubble chart and the data corresponding to each bubble cannot be accurately observed.
[0006] According to one aspect of an embodiment of the present application, a method for displaying a bubble chart is provided, comprising: acquiring data corresponding to each bubble in the bubble chart in sequence at preset time intervals, wherein the bubbles are generated by data items in a database, and the data include: the horizontal coordinate, vertical coordinate, radius of each bubble and the content displayed by each bubble; and displaying each bubble in sequence at the top layer of the display layer of the bubble chart at preset time intervals based on the data corresponding to each bubble.
[0007] Optionally, each bubble is displayed in sequence at a preset time interval on the top layer of the bubble chart display layer, including: expanding the radius of each bubble by a preset multiple to obtain a target bubble corresponding to each bubble; and displaying the target bubble corresponding to each bubble in sequence on the top layer of the bubble chart display layer.
[0008] Optionally, after the top layer of the bubble chart display layer displays each bubble in sequence according to a preset time interval, the above method also includes: removing the target bubble corresponding to each bubble from the top layer of the bubble chart display layer, and restoring the radius of the target bubble corresponding to each bubble to the radius before expansion according to a preset multiple.
[0009] Optionally, displaying each bubble in sequence at a preset time interval on the top layer of the bubble chart display layer also includes: displaying each bubble according to a preset animation display rule; and / or highlighting each bubble.
[0010] Optionally, the method further includes: determining a tooltip suspension layer according to the horizontal coordinate and the vertical coordinate of each bubble; and displaying each bubble in the tooltip suspension layer.
[0011] Optionally, after each bubble is displayed in sequence on the top layer of the display layer of the bubble chart according to the preset time interval, the above method also includes: detecting whether there is a trigger event, the trigger event is a trigger event of the mouse on each bubble; if a trigger event is detected, displaying the content displayed in the bubble corresponding to the trigger event; if the trigger event disappears, refusing to display the content displayed in the bubble corresponding to the trigger event.
[0012] Optionally, data corresponding to each bubble in the bubble chart to be displayed is obtained one by one according to a preset time interval, including: setting a timer corresponding to the preset time interval; obtaining data corresponding to each bubble in the bubble chart in sequence according to the timer control; the above method also includes: if a trigger event is detected, pausing the timer; if the trigger event disappears, starting the timer.
[0013] According to another aspect of an embodiment of the present application, a display device for a bubble chart is also provided, including: an acquisition module, used to sequentially acquire data corresponding to each bubble in the bubble chart at preset time intervals, wherein the bubbles are generated by data items in a database, and the data include: the horizontal coordinate, vertical coordinate, radius of each bubble and the content displayed by each bubble; a display module, used to sequentially display each bubble on the top layer of the display layer of the bubble chart at preset time intervals based on the data corresponding to each bubble.
[0014] According to another aspect of the embodiments of the present application, a storage medium is further provided, the storage medium including a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the above bubble chart display method.
[0015] According to another aspect of the embodiments of the present application, a processor is further provided, and the processor is used to run a program, wherein the above bubble chart display method is executed when the program is running.
[0016] According to another aspect of the embodiment of the present application, an electronic device is also provided, which includes at least one processor, and at least one memory and a bus connected to the processor, wherein the processor and the memory communicate with each other through the bus; the processor is used to call program instructions in the memory to execute the above bubble chart display method.
[0017] In an embodiment of the present application, data corresponding to each bubble in a bubble chart is obtained in sequence at preset time intervals, wherein the bubbles are generated by data items in a database, and the data include: the horizontal coordinate, vertical coordinate, radius of each bubble and the content displayed by each bubble; each bubble is displayed in sequence at a preset time interval on the top layer of the display layer of the bubble chart according to the data corresponding to each bubble. A bubble chart is generated from a source data set, and then bubbles corresponding to data items in the source data set are obtained one by one at a certain time interval t, and special processing is performed to distinguish them. This can effectively solve the problem of bloated bubble charts and difficulty in observing data, and further solve the technical problem that a large number of bubbles overlap when displaying bubble charts and the data corresponding to each bubble cannot be accurately observed. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0019] Figure 1 is a flow chart of a method for displaying a bubble chart according to an embodiment of the present application;
[0020] Figure 2 is a structural diagram of a bubble chart display device according to an embodiment of the present application;
[0021] Figure 3 It is a structural diagram of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings 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 ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] According to an embodiment of the present application, an embodiment of a method for displaying a bubble chart is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0025] Figure 1 is a flow chart of a method for displaying a bubble chart according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0026] Step S102, sequentially obtaining data corresponding to each bubble in the bubble chart at preset time intervals, wherein the bubble is generated by a data item in a database, and the data includes: the horizontal coordinate, the vertical coordinate, the radius of each bubble, and the content displayed by each bubble.
[0027] A bubble chart can be used to show the relationship between three variables. When plotting, one variable is placed on the horizontal axis, another variable is placed on the vertical axis, and the third variable is represented by the size of the bubble.
[0028] According to an optional embodiment of the present application, the above-mentioned bubble chart is generated by a source data set (dataset), and when executing step S102, the bubble data corresponding to the data items in the dataset are obtained one by one according to a certain time interval t (for example, t is set to 3s). It should be noted that the time interval t can also be set to other times according to actual needs.
[0029] Step S104 , displaying each bubble in sequence at a preset time interval on the top layer of the bubble chart display layer according to the data corresponding to each bubble.
[0030] After executing step S102 to obtain the bubble corresponding to the current data item, record the horizontal coordinate, vertical coordinate, and radius (x, y, r) of the current bubble, and then raise the display "level" of the current bubble chart (because the current bubble may be directly covered by other bubbles, so the current bubble needs to be placed at the topmost display).
[0031] It should be noted that the aforementioned raising of the display "level" of the bubble chart refers to displaying the currently acquired bubble at the forefront of all bubbles. By raising the display level of the acquired bubble chart at a preset time interval, a "carousel" display effect of the bubbles can be achieved, that is, each bubble can be displayed at the forefront of all bubbles at a preset time interval. The above method can achieve the technical effect of accurately observing the data corresponding to each bubble even when there is overlapping coverage of bubbles in the bubble chart.
[0032] In an optional embodiment of the present application, when executing step S104, the radius of each bubble can be expanded according to a preset multiple to obtain a target bubble corresponding to each bubble; the target bubble corresponding to each bubble is displayed in turn on the top layer of the display layer of the bubble map.
[0033] According to an optional embodiment of the present application, when the currently acquired bubble is displayed on the top layer of the bubble map display layer, the current bubble can be enlarged according to an expansion coefficient expansion (for example, 1.2) (radius r multiplied by expansion coefficient expansion), and then the enlarged bubble is displayed on the top layer of the bubble map display layer. By enlarging the bubble, the bubble can be highlighted to achieve a better visual effect.
[0034] According to an optional embodiment of the present application, after step S104 is executed, the target bubble corresponding to each bubble is removed from the top layer of the display layer of the bubble map, and the radius of the target bubble corresponding to each bubble is restored to the radius before expansion according to a preset multiple.
[0035] As mentioned above, bubbles are displayed on the top layer of the bubble chart's display layer at preset time intervals to achieve a carousel display effect of bubbles. After a bubble is displayed, the bubble is removed from the top layer of the bubble chart's display layer and the radius of the bubble is restored to the radius before the enlargement process.
[0036] In an optional embodiment of the present application, step S104 may also be implemented by the following method: displaying each bubble according to a preset animation display rule; and / or highlighting each bubble.
[0037] When bubbles are displayed on the top layer of the display layer, some simple animation effects can be applied to the bubbles, for example, the bubbles can be rotated at a certain speed, so that the user can focus more when the bubbles are displayed, and a better visual effect can be achieved. The bubbles can also be highlighted, which can also achieve a prominent display effect.
[0038] In some embodiments of the present application, a tooltip suspension layer may be determined according to the horizontal coordinate and the vertical coordinate of each bubble; and each bubble may be displayed in the tooltip suspension layer.
[0039] Preferably, a tooltip floating layer may be generated according to the x and y coordinate values of the bubble as an expanded display area for the bubble data.
[0040] The method of highlighting bubbles in a carousel and displaying bubbles in a tooltip floating layer effectively solves the problem of bloated bubble charts and difficulty in observing data. In addition, this method is simple to implement and has clear logic.
[0041] According to an optional embodiment of the present application, after step S104 is executed, it is still necessary to detect whether there is a trigger event, which is a trigger event of the mouse on the bubble; if a trigger event is detected, the content displayed in the bubble corresponding to the trigger event is displayed; if the trigger event disappears, the content displayed in the bubble corresponding to the trigger event is refused to be displayed.
[0042] According to an optional embodiment of the present application, two events, mouse-in and mouse-out, can also be set. When a mouse-in event is detected, the content displayed in the bubble clicked by the mouse is displayed, such as the text content displayed in the bubble; when a mouse-out event is detected, the content displayed in the bubble is no longer displayed.
[0043] In some optional embodiments of the present application, when executing step S102, a timer corresponding to a preset time interval can also be set; data corresponding to each bubble in the bubble chart to be displayed is obtained one by one according to the timer control; the above method also includes: if a trigger event is detected, pausing the timer; if the trigger event disappears, starting the timer.
[0044] When obtaining bubbles corresponding to data items in the source data set, a time interval t is set and a timer (interval) is also required. The timer is used to control the acquisition of bubbles in the bubble chart to be displayed one by one from the source data set in the order of data items.
[0045] As mentioned above, by setting the mouse-in and mouse-out events, when a mouse-in event is detected, the data of the bubble clicked by the mouse is displayed; when a mouse-out event is detected, the data of the bubble is no longer displayed. Because the pre-set program obtains bubbles according to the preset time t and then displays them in a carousel, when the user clicks on a bubble with the mouse and displays the bubble data, if the background program still obtains and displays the bubble data according to the preset time t, it will cause a conflict. By introducing a timer, when a mouse-in event is detected, the timer is paused, and the background program pauses obtaining the bubbles corresponding to the data items in the source data; when a mouse-out event is detected, the timer is started, and the background data continues to obtain the bubbles corresponding to the data items in the source data according to the preset time t, and displays the bubbles. The above method not only realizes the optimized display function of the bubble chart, but also does not affect the original bubble chart function.
[0046] Figure 2 is a structural diagram of a bubble chart display device according to an embodiment of the present application, such as Figure 2 As shown, the device comprises:
[0047] The acquisition module 20 is used to sequentially acquire data corresponding to each bubble in the bubble chart at preset time intervals, wherein the bubble is generated by data items in a database, and the data includes: the horizontal coordinate, vertical coordinate, radius of each bubble and the content displayed by each bubble.
[0048] A bubble chart can be used to show the relationship between three variables. When plotting, one variable is placed on the horizontal axis, another variable is placed on the vertical axis, and the third variable is represented by the size of the bubble.
[0049] According to an optional embodiment of the present application, the above-mentioned bubble chart is generated by a source data set (dataset), and the acquisition module 20 acquires the bubble data corresponding to the data items in the dataset one by one at a certain time interval t (for example, t is set to 3s). It should be noted that the time interval t can also be set to other times according to actual needs.
[0050] The display module 24 is used to display each bubble in sequence at a preset time interval on the top layer of the display layer of the bubble chart according to the data corresponding to each bubble.
[0051] After obtaining the bubble corresponding to the current data item, record the horizontal coordinate, vertical coordinate, and radius (x, y, r) of the current bubble, and then raise the display "level" of the current bubble chart (because the current bubble may be directly covered by other bubbles, so the current bubble needs to be placed on the top layer for display), and then enlarge the current bubble according to an expansion coefficient expansion (for example, 1.2) (radius r multiplied by expansion coefficient expansion), and then highlight the enlarged bubble on the top layer.
[0052] It should be noted that the aforementioned raising of the display "level" of the bubble chart refers to displaying the currently acquired bubble at the forefront of all bubbles. By raising the display level of the acquired bubble chart at a preset time interval, a "carousel" display effect of the bubbles can be achieved, that is, each bubble can be displayed at the forefront of all bubbles at a preset time interval. The above method can achieve the technical effect of accurately observing the data corresponding to each bubble even when there is overlapping coverage of bubbles in the bubble chart.
[0053] Through the above device, a bubble chart is generated from the source data set, and then the bubbles corresponding to the data items in the source data set are obtained one by one at a certain time interval t, and special processing is performed to distinguish them, which can effectively solve the problem of bloated bubble charts and difficulty in observing data.
[0054] The display module 22 is also used to expand the radius of each bubble according to a preset multiple to obtain a target bubble corresponding to each bubble; and sequentially display the target bubble corresponding to each bubble on the top layer of the display layer of the bubble chart.
[0055] According to an optional embodiment of the present application, the above-mentioned device is also used to remove the target bubble corresponding to each bubble from the top layer of the display layer of the bubble chart after each bubble is displayed in sequence on the top layer of the display layer of the bubble chart according to a preset time interval, and restore the radius of the target bubble corresponding to each bubble to the radius before expansion according to a preset multiple.
[0056] The display module 22 is further configured to display each bubble according to a preset animation display rule; and / or highlight each bubble.
[0057] In an optional embodiment of the present application, the above-mentioned device is also used to determine a tooltip suspension layer according to the horizontal coordinate and the vertical coordinate of each bubble; and display each bubble in the tooltip suspension layer.
[0058] The method of highlighting bubbles in a carousel and displaying bubbles in a tooltip floating layer effectively solves the problem of bloated bubble charts and difficulty in observing data. In addition, this method is simple to implement and has clear logic.
[0059] In an optional embodiment of the present application, the above-mentioned device also includes a detection module for detecting whether there is a trigger event, where the trigger event is a trigger event of the mouse on each bubble; if a trigger event is detected, the content displayed in the bubble corresponding to the trigger event is displayed; if the trigger event disappears, the content displayed in the bubble corresponding to the trigger event is refused to be displayed.
[0060] By setting the mouse-in and mouse-out events, when a mouse-in event is detected, the data of the bubble clicked by the mouse is displayed; when a mouse-out event is detected, the data of the bubble is no longer displayed.
[0061] According to an optional embodiment of the present application, the acquisition module 20 is also used to set a timer corresponding to a preset time interval; obtain the data corresponding to each bubble in the bubble chart to be displayed in sequence according to the timer control; pause the timer when a trigger event is detected; and start the timer when the trigger event disappears.
[0062] As mentioned above, by setting the mouse-in and mouse-out events, when a mouse-in event is detected, the data of the bubble clicked by the mouse is displayed; when a mouse-out event is detected, the data of the bubble is no longer displayed. Because the pre-set program obtains bubbles according to the preset time t and then displays them in a carousel, when the user clicks on a bubble with the mouse and displays the bubble data, if the background program still obtains and displays the bubble data according to the preset time t, it will cause a conflict. By introducing a timer, when a mouse-in event is detected, the timer is paused, and the background program pauses obtaining the bubbles corresponding to the data items in the source data; when a mouse-out event is detected, the timer is started, and the background data continues to obtain the bubbles corresponding to the data items in the source data according to the preset time t, and displays the bubbles. The above method not only realizes the optimized display function of the bubble chart, but also does not affect the original bubble chart function.
[0063] The bubble chart display device includes a processor and a memory. The acquisition module 20 and the display module 22 are stored in the memory as program units. The processor executes the program units stored in the memory to realize corresponding functions.
[0064] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the problem of bubble chart display defects can be solved by adjusting kernel parameters.
[0065] An embodiment of the present application provides a storage medium on which a program is stored. When the program is executed by a processor, the above-mentioned bubble chart display method is implemented.
[0066] The storage medium is used to store a program that performs the following functions: sequentially obtaining data corresponding to each bubble in a bubble chart at preset time intervals, wherein the bubbles are generated by data items in a database, and the data include: the horizontal coordinate, vertical coordinate, radius of each bubble, and the content displayed by each bubble; and sequentially displaying each bubble at the top layer of the display layer of the bubble chart at preset time intervals based on the data corresponding to each bubble.
[0067] An embodiment of the present application provides a processor, which is used to run a program, wherein the above bubble chart display method is executed when the program is running.
[0068] The processor is used to process a program that performs the following functions: obtaining data corresponding to each bubble in a bubble chart in sequence at preset time intervals, wherein the bubbles are generated by data items in a database, and the data include: the horizontal coordinate, vertical coordinate, radius of each bubble and the content displayed by each bubble; and displaying each bubble in sequence at the top layer of the display layer of the bubble chart at preset time intervals based on the data corresponding to each bubble.
[0069] Figure 3 is a structural diagram of an electronic device according to an embodiment of the present application, such as Figure 3 As shown, the electronic device 30 includes at least one processor 301, at least one memory 302 and a bus 303 connected to the processor 301; wherein the processor 301 and the memory 302 communicate with each other through the bus 303; the processor 301 is used to call the program instructions in the memory 302 to execute the above-mentioned bubble chart display method. The electronic device 30 in this article can be a server, a PC, a PAD, a mobile phone, etc.
[0070] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the following method steps: sequentially obtaining data corresponding to each bubble in a bubble chart at preset time intervals, wherein the bubbles are generated by data items in a database, and the data include: the horizontal coordinate, vertical coordinate, radius of each bubble and the content displayed by each bubble; and sequentially displaying each bubble at the top layer of the display layer of the bubble chart at preset time intervals based on the data corresponding to each bubble.
[0071] Optionally, when the above-mentioned computer program product is executed on a data processing device, it is also suitable for executing a program that initializes the following method steps: expanding the radius of each bubble by a preset multiple to obtain a target bubble corresponding to each bubble; and displaying the target bubble corresponding to each bubble in turn on the top layer of the display layer of the bubble map.
[0072] Optionally, when the above-mentioned computer program product is executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: removing the target bubble corresponding to each bubble from the top layer of the display layer of the bubble map, and restoring the radius of the target bubble corresponding to each bubble to the radius before expansion according to a preset multiple.
[0073] Optionally, when the above-mentioned computer program product is executed on a data processing device, it is also suitable for executing a program that initializes the following method steps: displaying each bubble according to a preset animation display rule; and / or highlighting each bubble.
[0074] Optionally, when the above-mentioned computer program product is executed on a data processing device, it is also suitable for executing a program that initializes the following method steps: determining a tooltip floating layer according to the horizontal coordinate and the vertical coordinate of each bubble; and displaying each bubble in the tooltip floating layer.
[0075] Optionally, when the above-mentioned computer program product is executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: detecting whether there is a trigger event, where the trigger event is a trigger event of the mouse on each bubble; if a trigger event is detected, displaying the data displayed in the bubble corresponding to the trigger event; if the trigger event disappears, refusing to display the data displayed in the bubble corresponding to the trigger event.
[0076] Optionally, when the above-mentioned computer program product is executed on a data processing device, it is also suitable for executing a program that initializes the following method steps: setting a timer corresponding to a preset time interval; obtaining data corresponding to each bubble in the bubble chart to be displayed in sequence according to the timer control; the above-mentioned method also includes: if a trigger event is detected, pausing the timer; if the trigger event disappears, starting the timer.
[0077] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0078] In a typical configuration, the device includes one or more processors (CPU), memory and bus. The device may also include input / output interface, network interface and the like.
[0079] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
[0080] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0081] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0082] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0083] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for displaying a bubble chart, characterized in that: include: Sequentially obtain data corresponding to each bubble in the bubble chart at a preset time interval, wherein the bubble is generated by a data item in a database, and the data includes: the horizontal coordinate, the vertical coordinate, the radius of each bubble, and the content displayed by each bubble; Displaying each bubble in sequence at the preset time interval on the top layer of the display layer of the bubble chart according to the data corresponding to each bubble, wherein displaying each bubble in sequence at the preset time interval on the top layer of the display layer of the bubble chart comprises: expanding the radius of each bubble by a preset multiple to obtain a target bubble corresponding to each bubble; and displaying the target bubble corresponding to each bubble in sequence on the top layer of the display layer of the bubble chart; After the top layer of the display layer of the bubble chart sequentially displays each bubble at the preset time interval, the method further includes: removing the target bubble corresponding to each bubble from the top layer of the display layer of the bubble chart, and restoring the radius of the target bubble corresponding to each bubble to the radius before being expanded at the preset multiple; The data corresponding to each bubble in the bubble chart is obtained in sequence according to a preset time interval, including: setting a timer corresponding to the preset time interval; obtaining the data corresponding to each bubble in the bubble chart in sequence according to the timer control; if a trigger event is detected, pausing the timer; if the trigger event disappears, starting the timer.
2. The method according to claim 1, characterized in that: The method further comprises: sequentially displaying each bubble at the top layer of the bubble chart display layer according to the preset time interval; Display each bubble according to a preset animation display rule; and / or Each of the bubbles is highlighted.
3. The method according to claim 1, characterized in that The method further comprises: Determine the tooltip suspension layer according to the abscissa and ordinate of each bubble; Each bubble is displayed in the tooltip hover layer.
4. The method according to claim 1, characterized in that: After the top layer of the display layer of the bubble chart sequentially displays each bubble at the preset time interval, the method further includes: Detecting whether there is a trigger event, wherein the trigger event is a trigger event of the mouse on each bubble; If a trigger event is detected, display the content of the bubble corresponding to the trigger event; If the triggering event disappears, refuse to display the content displayed in the bubble corresponding to the triggering event.
5. A bubble chart display device, characterized in that: include: An acquisition module is used to sequentially acquire data corresponding to each bubble in the bubble map according to a preset time interval, wherein the bubble is generated by a data item in a database, and the data includes: the horizontal coordinate, the vertical coordinate, the radius of each bubble and the content displayed by each bubble; sequentially acquiring data corresponding to each bubble in the bubble map according to a preset time interval includes: setting a timer corresponding to the preset time interval; sequentially acquiring data corresponding to each bubble in the bubble map according to the timer control; if a trigger event is detected, pausing the timer; if the trigger event disappears, starting the timer; A display module, configured to sequentially display each bubble on the top layer of the display layer of the bubble chart at the preset time interval according to the data corresponding to each bubble, wherein sequentially displaying each bubble on the top layer of the display layer of the bubble chart at the preset time interval includes: expanding the radius of each bubble by a preset multiple to obtain a target bubble corresponding to each bubble; and sequentially displaying the target bubble corresponding to each bubble on the top layer of the display layer of the bubble chart; After the top layer of the display layer of the bubble chart displays each bubble in sequence according to the preset time interval, it also includes: removing the target bubble corresponding to each bubble from the top layer of the display layer of the bubble chart, and restoring the radius of the target bubble corresponding to each bubble to the radius before expanding according to the preset multiple.
6. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the bubble chart display method according to any one of claims 1 to 4.
7. An electronic device, characterized in that: The electronic device includes at least one processor, and at least one memory and a bus connected to the processor, wherein the processor and the memory communicate with each other through the bus; the processor is used to call program instructions in the memory to execute the bubble chart display method described in any one of claims 1 to 4.
