The present application claims priority of the Chinese Patent Application No. 202311725200.9, filed on Dec. 14, 2023, the disclosure of which is incorporated herein by reference in its entirety as part of the present application.
The present disclosure relates to the field of computer technologies, and in particular, to a data interaction method, a non-transitory computer-readable medium, and an electronic device
With the development of communication technologies, an increasing number of data platforms provide data push services, for example, data is pushed to an application program that subscribes to a push service, so that data can be acquired in a timely manner, and data utilization efficiency is improved.
In the related art, data pushed by a data platform can be viewed in an application program. However, when data interaction operations such as analyzing and processing data are required, it is necessary to enter the data platform to perform the data interaction operations, which is cumbersome, has a long data interaction link, and has low interaction efficiency.
The Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. The Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The present disclosure provides a data interaction method, and the data interaction method comprises:
The present disclosure provides a data interaction apparatus, and the data interaction apparatus comprises: a first display module and a second display module.
The first display module is configured to display target data pushed by a data platform through a first display panel on a display interface of a first application.
The second display module is configured to in response to a trigger operation on an interactive control in the first display panel, reduce the first display panel for display, and display a data interaction result based on the target data through a second display panel on the display interface of the first application, where the second display panel is displayed side by side with or in parallel to the first display panel.
The present disclosure provides a computer-readable medium having a computer program stored thereon, where when the program is executed by a processing apparatus, the steps of the data interaction method are implemented.
The present disclosure provides an electronic device, where the electronic device comprises: a storage apparatus and a processing apparatus.
The storage apparatus has a computer program stored thereon.
The processing apparatus is configured to execute the computer program in the storage apparatus, to implement the steps of the data interaction method.
The above and other features, advantages, and aspects of embodiments of the present disclosure become more apparent with reference to the following specific implementations and in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic and that parts and elements are not necessarily drawn to scale. In the drawings:
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and the embodiments of the present disclosure are only for exemplary purposes, and are not intended to limit the scope of protection of the present disclosure.
It should be understood that the various steps described in the method implementations of the present disclosure may be performed in different orders, and/or performed in parallel. In addition, additional steps may be included and/or the execution of the illustrated steps may be omitted in the method implementations. The scope of the present disclosure is not limited in this regard.
The terms “include/comprise” used herein and the variations thereof are an open-ended inclusion, namely, “include/comprise but not limited to”. The term “based on” is “at least partially based on”. The term “an embodiment” means “at least one embodiment”. The term “another embodiment” means “at least one another embodiment”. The term “some embodiments” means “at least some embodiments”. Related definitions of the other terms will be given in the description below.
It should be noted that the concepts such as “first” and “second” mentioned in the present disclosure are only used to distinguish different apparatuses, modules, or units, and are not used to limit the sequence of functions performed by these apparatuses, modules, or units or interdependence.
It should be noted that the modifiers “one” and “a plurality of” mentioned in the present disclosure are illustrative and not restrictive, and those skilled in the art should understand that unless the context clearly indicates otherwise, the modifiers should be understood as “one or more”.
The names of messages or information exchanged between a plurality of apparatuses in the implementations of the present disclosure are used for illustrative purposes only, and are not used to limit the scope of these messages or information.
It may be understood that before the technical solutions disclosed in the embodiments of the present disclosure are used, the user is informed of the type, scope of use, usage scenario, and the like of the personal information involved in the present disclosure in an appropriate manner according to the relevant laws and regulations, and the user's authorization is obtained.
For example, when receiving an active request from a user, a prompt message is sent to the user to explicitly prompt the user that the operation requested by the user needs to acquire and use the user's personal information. Therefore, the user can choose whether to provide the personal information to software or hardware such as an electronic device, an application, a server, or a storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
As an optional but non-limiting implementation, in response to receiving an active request from a user, the prompt message is sent to the user, for example, in a pop-up window, and the prompt message may be presented in text in the pop-up window. In addition, the pop-up window may also carry a selection control for the user to select “agree” or “disagree” to provide personal information to the electronic device.
It may be understood that the above notification and user authorization process is only illustrative, and does not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.
It may be understood that the data involved in the technical solution of the present disclosure (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of corresponding laws, regulations and related regulations.
In the related art, data pushed by a data platform can be viewed in an application. However, when data interaction operations such as analyzing and processing data are required, it is necessary to enter the data platform to perform the data interaction operations, which is cumbersome, has a long data interaction link, and has low interaction efficiency.
In view of this, the present disclosure provides a data interaction method and apparatus, a readable medium, and an electronic device, to solve the above technical problems.
The following further explains the embodiments of the present disclosure with reference to the accompanying drawings.
In S101, target data pushed by a data platform is displayed through a first display panel on a display interface of a first application.
For example, the application may be an instant messaging (IM) application, or another application that can receive pushed data. This is not limited in the present disclosure. Referring to
It should be understood that the pushed data may be the pushed data actively pushed by the data platform, or may be the pushed data sent in response to a data request operation of the application, which is not limited in the present disclosure.
In S102, in response to a trigger operation on an interactive control in the first display panel, the first display panel is reduced for display, and a data interaction result based on the target data is displayed on the display interface of the first application through a second display panel, where the second display panel is displayed side by side with or in parallel to the first display panel.
For example, referring to
It should be noted that a display manner of the first display panel and the second display panel in the application may be designed according to different electronic devices or requirements, which is not limited in the present disclosure. For example, an interface of an application at a computer end may be the interface shown in
With the above method, target data pushed by a data platform is displayed through a first display panel on a display interface of a first application, and in response to a trigger operation on an interactive control in the first display panel, the first display panel is reduced for display, and a data interaction result based on the target data is displayed on the display interface of the first application through a second display panel. In this way, not only the pushed data can be viewed in the application, but also a data interaction operation can be performed on the pushed data in the application without entering the data platform, thereby simplifying the data interaction process, facilitating the operation, and improving the data interaction efficiency.
In a possible manner, the in response to a trigger operation on an interactive control in the first display panel, reducing the first display panel for display, and displaying, on the display interface of the first application, a data interaction result based on the target data through a second display panel may include: in response to a trigger operation on a first view control in the first display panel, displaying, on the display interface of the first application, data details corresponding to the target data through the second display panel, where the data details comprise data interpretation information of the target data and/or a data chart generated based on the target data; and/or in response to a trigger operation on a second view control in the first display panel, displaying, on the display interface of the first application, a structured query language (SQL) statement for querying the target data through the second display panel.
For example, referring to
Therefore, data details of the pushed data can be viewed in the application without entering the data platform, thereby simplifying the data viewing process, facilitating the operation, and improving the efficiency of viewing the data details.
For example, referring to
In a possible manner, the data interaction method further comprises: displaying a preset analysis instruction for the target data in the first display panel; and in response to a selection operation on a target analysis instruction in the preset analysis instruction, displaying, in the first display panel, a data analysis result obtained by analyzing the target data according to the target analysis instruction.
For example, referring to
For example, in addition to displaying the preset analysis instruction, an analysis instruction may also be entered through an input box, that is, the data analysis is performed on the target data in a chat manner. In addition, the prompt information such as data dimensions and data indicators may also be displayed, so that the analysis instruction can be entered based on the prompt information, and so on. This is not limited in the present disclosure.
In a possible manner, the data interaction method further comprises: displaying a switching control for switching a dataset to which displayed data belongs in the first display panel; in response to a trigger operation on the switching control, displaying selectable candidate datasets in the first display panel; and in response to a selection operation on a target dataset in the candidate datasets, displaying, in the first display panel, data in the target dataset.
For example, referring to
In a possible manner, the data interaction method further comprises: displaying a result feedback control for the data interaction result while the data interaction result is displayed, where the result feedback control comprises a first feedback control for representing positive feedback and/or a second feedback control for representing negative feedback; in response to a trigger operation on the first feedback control, using a positive feedback result corresponding to the first feedback control as a feedback result for the data interaction result, where the feedback result for the data interaction result is used by the data platform for function optimization; and in response to a trigger operation on the second feedback control, using a negative feedback result corresponding to the second feedback control as a feedback result for the data interaction result.
For example, a result feedback control for the data interaction result is displayed while the data interaction result is displayed, for example, at least one of “accurate” representing positive feedback and “inaccurate” representing negative feedback as shown in
In addition, the negative feedback control may be displayed but the positive feedback control may not be displayed. When the negative feedback control is not triggered, it is considered that the feedback result of the data interaction result is positive feedback, or the positive feedback control may be displayed but the negative feedback control may not be displayed, and so on. This is not limited in the present disclosure.
It should be understood that the feedback control may be displayed in the first display panel or the second display panel, and may be specifically set according to requirements, which is not limited in the present disclosure.
In a possible manner, the second display panel displays a sub-interactive control for performing an interactive function on the data interaction result, and the data interaction method further comprises: in response to a trigger operation on the sub-interactive control in the second display panel, jumping to the data platform, and displaying a function tab related to the interactive function corresponding to the sub-interactive control in the data platform; and/or in response to a trigger operation on the sub-interactive control in the second display panel, displaying a sub-interaction result in the second display panel, where the sub-interaction result is obtained by performing the interactive function corresponding to the sub-interactive control.
For example, an interactive operation may be performed on the data interaction result in the second display panel, for example, jumping to a function tab related to the interactive function corresponding to the sub-interactive control in the data platform, displaying a sub-interaction result in the second display panel, and so on. This is not limited in the present disclosure. Therefore, the data interaction operation may be continuously performed on the data interaction result in the application, which is easy to operate and improves the data interaction efficiency.
In a possible manner, the in response to a trigger operation on the sub-interactive control in the second display panel, jumping to the data platform, and displaying a function tab related to the interactive function corresponding to the sub-interactive control in the data platform may include: in response to a trigger operation on a first sub-interactive control in the second display panel, jumping to the data platform, and displaying a dataset tab in the data platform, where the first sub-interactive control is used to view a dataset associated with the data interaction result; and/or in response to a trigger operation on a second sub-interactive control in the second display panel, jumping to the data platform, and displaying an SQL tab in the data platform, where the second sub-interactive control is used to view an SQL statement for generating the data interaction result.
For example, referring to
It should be understood that, by triggering the “View SQL” control in the first display panel, the SQL tab of the data platform may also be jumped to, and the SQL statement for querying the target data is displayed. This may be specifically set according to requirements. This is not limited in the present disclosure.
In a possible manner, the data interaction result comprises a data chart generated based on the target data, and the in response to a trigger operation on the sub-interactive control in the second display panel, displaying a sub-interaction result in the second display panel may include: in response to a trigger operation on a target third sub-interactive control in the second display panel, switching, in the second display panel, a chart type of the data chart according to a chart type corresponding to the target third sub-interactive control, where the second display panel displays a plurality of third sub-interactive controls that are different, each of the plurality of third sub-interactive controls is used to indicate one data chart type, and the target third sub-interactive control is one of the plurality of third sub-interactive controls.
For example, referring to
It should be noted that when the target data in the first display panel is displayed in a data chart, a control for switching the data chart type may also be displayed to switch the chart type of the data chart in the first display panel. This is not limited in the present disclosure.
It should be understood that in the application interfaces shown in
Based on the same inventive concept, the present disclosure further provides a data interaction apparatus. Referring to
The first display module 11 is configured to display target data pushed by a data platform through a first display panel on a display interface of a first application.
The second display module 12 is configured to in response to a trigger operation on an interactive control in the first display panel, reduce the first display panel for display, and display a data interaction result based on the target data through a second display panel on the display interface of the first application, where the second display panel is displayed side by side with or in parallel to the first display panel.
With the above apparatus, not only the pushed data can be viewed in the application, but also a data interaction operation can be performed on the pushed data in the application without entering the data platform, thereby simplifying the data interaction process, facilitating the operation, and improving the data interaction efficiency.
Optionally, the second display module 12 is configured to:
Optionally, the data interaction apparatus 10 further comprises an analysis module, and the analysis module is configured to:
Optionally, the data interaction apparatus 10 further comprises a dataset switching module, and the dataset switching module is configured to:
Optionally, the data interaction apparatus 10 further comprises a feedback module, and the feedback module is configured to:
Optionally, the second display panel displays a sub-interactive control for performing an interactive function on the data interaction result, and the data interaction apparatus 10 further comprises: a first interaction module and a second interaction module.
The first interaction module is configured to in response to a trigger operation on the sub-interactive control in the second display panel, jump to the data platform, and display a function tab related to the interactive function corresponding to the sub-interactive control in the data platform; and/or
Optionally, the first interaction module is configured to:
Optionally, the second interaction module is configured to:
For the apparatus in the above embodiments, the specific manner in which each module performs an operation has been described in detail in the embodiments related to the method, and will not be described in detail herein.
Based on the same concept, an embodiment of the present disclosure further provides a computer-readable medium having a computer program stored thereon, when the program is executed by a processing apparatus, the steps of the above data interaction method are implemented.
Based on the same concept, an embodiment of the present disclosure further provides an electronic device, which includes a storage apparatus and a processing apparatus.
The storage apparatus has a computer program stored thereon.
The processing apparatus is configured to execute the computer program in the storage apparatus, to implement the steps of the above data interaction method.
Reference is made to
As shown in
Generally, the following apparatuses may be connected to the I/O interface 115: an input apparatus 116 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, and a gyroscope; an output apparatus 117 including, for example, a liquid crystal display (LCD), a speaker, and a vibrator; a storage apparatus 118 including, for example, a tape and a hard disk; and a communication apparatus 119. The communication apparatus 119 may allow the electronic device 110 to perform wireless or wired communication with other devices to exchange data. Although
In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowcharts may be implemented as a computer software program. For example, this embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, where the computer program includes program code for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded from a network through the communication apparatus 119 and installed, installed from the storage apparatus 118, or installed from the ROM 112. When the computer program is executed by the processing apparatus 111, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
It should be noted that the above computer-readable medium described in the present disclosure may be a computer-readable signal medium, a computer-readable storage medium, or any combination thereof. The computer-readable storage medium may be, for example but not limited to, electric, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. A more specific example of the computer-readable storage medium may include, but is not limited to: an electrical connection having one or more wires, a portable computer magnetic disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optic fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program which may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier, the data signal carrying computer-readable program code. The propagated data signal may be in various forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination thereof. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium. The computer-readable signal medium can send, propagate, or transmit a program used by or in combination with an instruction execution system, apparatus, or device. The program code contained in the computer-readable medium may be transmitted by any suitable medium, including but not limited to: electric wires, optical cables, radio frequency (RF), and the like, or any suitable combination thereof.
In some implementations, communication may be performed using any currently known or future-developed network protocol such as a HyperText Transfer Protocol (HTTP), and may be connected to digital data communication (for example, a communication network) in any form or medium. Examples of the communication network include a local area network (“LAN”), a wide area network (“WAN”), an internetwork (for example, the Internet), a peer-to-peer network (for example, an ad hoc peer-to-peer network), and any currently known or future-developed network.
The above computer-readable medium may be contained in the above electronic device. Alternatively, the computer-readable medium may exist independently, without being assembled into the electronic device.
The above computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: display target data pushed by a data platform through a first display panel on a display interface of a first application; and in response to a trigger operation on an interactive control in the first display panel, reduce the first display panel for display, and display a data interaction result based on the target data through a second display panel on the display interface of the first application, where the second display panel is displayed side by side with or in parallel to the first display panel.
Computer program code for performing the operations in the present disclosure may be written in one or more programming languages or a combination thereof, where the programming languages include but are not limited to an object-oriented programming language such as Java, Smalltalk, and C++, and further include conventional procedural programming languages such as “C” language or similar programming languages. The program code may be completely executed on a computer of a user, partially executed on a computer of a user, executed as an independent software package, partially executed on a computer of a user and partially executed on a remote computer, or completely executed on a remote computer or server. In the case involving a remote computer, the remote computer may be connected to a computer of a user over any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (for example, connected over the Internet using an Internet service provider).
The flowcharts and block diagrams in the accompanying drawings illustrate the possibly implemented architecture, functions, and operations of the system, method, and computer program product according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the blocks may also occur in an order different from that marked in the accompanying drawings. For example, two blocks shown in succession may actually be executed substantially in parallel, or they may sometimes be executed in a reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and/or the flowchart, and a combination of the blocks in the block diagram and/or the flowchart may be implemented by a dedicated hardware-based system that executes specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.
The modules involved in the embodiments described in the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of a module does not constitute a limitation on the module in some cases.
The functions described herein above may be performed at least partially by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC), an application-specific standard product (ASSP), a system-on-chip (SOC), a complex programmable logic device (CPLD), and the like.
In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program used by or in combination with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any suitable combination thereof. A more specific example of the machine-readable storage medium may include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optic fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
The above descriptions are merely preferred embodiments of the present disclosure and explanations of the applied technical principles. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by specific combinations of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, the above technical solutions formed by replacing the above features with technical features with similar functions disclosed in the present disclosure (but not limited thereto).
In addition, although various operations are depicted in a specific order, it should be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the foregoing discussions, these details should not be construed as limiting the scope of the present disclosure. Some features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. On the contrary, various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination.
Although the subject matter has been described in language specific to structural features and/or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely exemplary forms of implementing the claims. For the apparatus in the above embodiments, the specific manner in which each module performs an operation has been described in detail in the embodiments related to the method, and will not be described in detail herein.
| Number | Date | Country | Kind |
|---|---|---|---|
| 202311725200.9 | Dec 2023 | CN | national |