Document processing method and apparatus, electronic device, storage medium, and program product

By introducing tables that support collaborative editing into online documents, generating and displaying charts, the problem of inconsistent data display and visualization in online documents is solved, and real-time synchronization and efficient display of charts are achieved, improving the efficiency and accuracy of data display in multi-person collaboration.

CN122197828APending Publication Date: 2026-06-12BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING ZITIAO NETWORK TECH CO LTD
Filing Date
2026-03-04
Publication Date
2026-06-12

AI Technical Summary

Technical Problem

Online documents fail to intuitively demonstrate the relationships and trends between data when displaying data, making it difficult to achieve efficient data visualization and lacking real-time synchronization capabilities for collaborative editing by multiple users.

Method used

By introducing tables that support collaborative editing among multiple users into online documents, charts can be generated and displayed. The charts are linked to the table data in real time, allowing charts to be reused and updated directly within the document, avoiding duplicate creation.

🎯Benefits of technology

It enables real-time synchronization and consistent display of chart data in online documents, simplifies the data visualization process, and improves the efficiency and accuracy of data display in multi-person collaborative scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122197828A_ABST
    Figure CN122197828A_ABST
Patent Text Reader

Abstract

A document processing method and device, electronic equipment, storage medium and program product are provided. The method comprises: in response to receiving a first editing operation on a first document or a first table, displaying first information, the first information comprising at least one first chart, the first chart being generated based on table data associated with the first table, the first document and the first table both being associated with the first chart, the first table being an online table supporting collaborative editing of at least two users, and the first document being an online document supporting collaborative editing of at least two users; and in response to receiving a second editing operation, displaying a second chart in the first document, the second chart being a chart in the at least one first chart. The scheme solves the problems that the association and change trend between data cannot be intuitively reflected when data is displayed in an online document, and efficient data visualization cannot be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This article relates to the field of computer processing technology, and in particular to a document processing method, apparatus, electronic device, storage medium, and program product. Background Technology

[0002] With the development of cloud computing technology, online documents, with their advantages of collaborative editing and cloud storage, have been widely used in enterprise office and data reporting scenarios. However, online documents primarily focus on text editing and content formatting, emphasizing the integration of text and basic data, and lack complex data storage and computing capabilities. When using online documents for data presentation, they merely list data, failing to intuitively demonstrate the relationships and trends between data, making it difficult to achieve efficient data visualization, and thus unable to meet the needs for in-depth data analysis, intuitive display, and efficient reporting. Summary of the Invention

[0003] This paper provides a document processing method, device, electronic device, storage medium, and program product to solve the problems of online document data display failing to intuitively reflect the relationships and trends of data changes, and the difficulty in achieving efficient data visualization.

[0004] In one scenario, this document provides a document processing method, the method comprising: In response to receiving a first editing operation in a first document or a first table, first information is displayed, the first information including at least one first chart, the first chart being generated based on table data associated with the first table, both the first document and the first table being associated with the first chart, the first table being an online table that supports collaborative editing by at least two users, and the first document being an online document that supports collaborative editing by at least two users; In response to receiving a second editing operation, a second chart is displayed in the first document, the second chart being one of the at least one first chart.

[0005] In one instance, this document also provides a document processing apparatus, the apparatus comprising: The first display module is configured to display first information in response to receiving a first editing operation in a first document or a first table. The first information includes at least one first chart, which is generated based on table data associated with the first table. Both the first document and the first table are associated with the first chart. The first table is an online table that supports collaborative editing by at least two users, and the first document is an online document that supports collaborative editing by at least two users. The second display module is configured to display a second chart in the first document in response to receiving a second editing operation, wherein the second chart is one of the at least one first chart.

[0006] In one instance, this document also provides an electronic device comprising: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the document processing methods as described herein.

[0007] In one instance, this document also provides a storage medium containing computer-executable instructions that, when executed by a computer processor, are used to perform document processing methods as described herein.

[0008] In another scenario, this document also provides a computer program product, including a computer program that, when executed by a processor, implements a document processing method as described herein.

[0009] In the above method, in response to receiving a first editing operation in the first document or the first table, first information containing at least one first chart is displayed. This provides the first document with directly usable visual chart resources from the first table, allowing the first document to reuse charts from the first table without recreating them during content editing and data display. This simplifies the data visualization process of online documents and improves data display efficiency. Furthermore, both the first table and the first document are online carriers that support multi-user collaborative editing, enabling real-time synchronization of chart data during multi-user collaboration. This improves the consistency and timeliness of data display in multi-user online collaboration scenarios and solves the problems of asynchronous chart data and unclear relationships in online documents. In response to performing a second editing operation on the selected second chart, the second chart can be displayed in the first document without recreating and configuring the chart within the first document. This allows the first document to directly use existing charts from the first table to complete content construction, enabling rapid reuse and display of charts from the first table within the first document. This effectively solves the problem of online documents struggling to efficiently achieve data visualization. Attached Figure Description

[0010] The above and other features, advantages, and aspects of the embodiments described herein will become more apparent when taken in conjunction with the accompanying drawings and the following detailed description. 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 the originals and elements are not necessarily drawn to scale.

[0011] Figure 1 This is a schematic diagram of the structure of a document processing system under one scenario. Figure 2This is a flowchart illustrating a document processing method under one specific scenario. Figure 3 This is a schematic diagram illustrating the configuration for displaying charts in an online document under one specific scenario. Figure 4 This is a schematic diagram illustrating the configuration for displaying charts in an online document in another scenario; Figure 5 This is a diagram illustrating the update time of a chart in an online document under one specific scenario. Figure 6 This is a schematic diagram of a document processing device in one scenario. Figure 7 This is a schematic diagram of the structure of an electronic device that implements a document processing method in one scenario. Detailed Implementation

[0012] The embodiments will now be described in more detail with reference to the accompanying drawings. While some embodiments are shown in the drawings, it should be understood that the technical solution can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present technical solution. It should be understood that the illustrated drawings and embodiments are for illustrative purposes only and are not intended to limit the scope of protection of the technical solution.

[0013] It should be understood that the steps described in the method implementation may be performed in different orders and / or in parallel. Furthermore, the method implementation may include additional steps and / or omit the steps shown. The scope of this document is not limited in this respect.

[0014] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one situation" means "at least one situation"; the term "another situation" means "at least one additional situation"; the term "some situations" means "at least some situations". Definitions of other terms will be given in the following description.

[0015] It should be noted that the concepts of "first" and "second" mentioned in this article are only used to distinguish different devices, modules or units, and are not used to limit the order of the functions performed by these devices, modules or units or their interdependencies.

[0016] It should be noted that the terms "one" and "more" used in this document are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0017] The names of messages or information exchanged between multiple devices in this document are for illustrative purposes only and are not intended to limit the scope of these messages or information.

[0018] It is understood that before using the technical solutions disclosed in the various embodiments of this document, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this document in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0019] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as electronic devices, applications, servers, or storage media, that perform the operations described herein, based on the prompt message.

[0020] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0021] It is understood that the above notification and user authorization process is merely illustrative and does not limit the implementation method described in this article. Other methods that comply with relevant laws and regulations may also be applied to the implementation method described in this article.

[0022] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0023] The technical solution in this article can be applied to... Figure 1 The document processing system shown is illustrated. In practical applications, this document processing system may include a client 101 and a server 102. The client 101 may include, but is not limited to, browsers, applications (Apps), Hyper Text Markup Language (HTML) applications, lightweight applications (also known as mini-programs), or cloud applications. The client 101 may be deployed on an electronic device, relying on the operation of that device or certain applications within the device to implement its functions. The electronic device may be, for example, a device with a display screen that supports information browsing, such as a smartphone, tablet, personal computer, or other client terminal. For ease of understanding, Figure 1The client is primarily represented by a device. Other applications, such as document processing applications, can also be configured on the electronic device. Server 102 can be one or more servers providing various services. That is, it can be implemented as a distributed server cluster composed of multiple servers, or as a single server; furthermore, it can be a server for a distributed system, a server integrating blockchain technology, a cloud server, or an intelligent cloud computing server or intelligent cloud host deployed with machine learning models, etc.

[0024] It should be noted that in this technical solution, the document processing method can be executed by client 101, or by client 101 and server 102, with different functional parts of the corresponding document processing device deployed on client 101 and server 102 respectively; wherein, the first processing module, second processing module, and third processing module of the device are deployed on client 101. It should be understood that... Figure 1 The number of clients and servers shown is for illustrative purposes only. Any number of clients and servers can be configured to meet specific implementation requirements.

[0025] Figure 2 A flowchart illustrating a document processing method is provided. This method is applicable to scenarios requiring efficient data visualization chart editing and display within online documents. The method can be executed by a document processing device, which can be implemented in software and / or hardware, optionally through an electronic device such as a mobile terminal, PC, or server. Figure 2 As shown, the document processing methods in this paper may specifically include the following processes: S210. In response to receiving a first editing operation in a first document or a first table, display first information, the first information including at least one first chart, the first chart being generated based on table data associated with the first table, both the first document and the first table being associated with the first chart, the first table being an online table that supports collaborative editing by at least two users, and the first document being an online document that supports collaborative editing by at least two users.

[0026] With the widespread use of online documents in enterprise collaborative work, data aggregation, and work reporting scenarios, higher demands are being placed on the data visualization capabilities of online documents. To enhance the intuitiveness and analytical efficiency of data visualization in online documents, and to meet the needs of in-depth data analysis, intuitive presentation, and efficient reporting in actual office work, online spreadsheets with structured data processing capabilities can be used to assist in the insertion and display of charts in online documents.

[0027] The first table supports collaborative editing by at least one user, and can also support online collaborative editing by multiple users. During or after the creation of the first table, user information and access permissions can be configured. For example, users with a specific permission level can be granted access and editing permissions to the table, and users meeting that permission level can act as collaborators. The first document can refer to an online document that supports collaborative editing by at least two users, and can be used for content editing, data display, and chart embedding, supporting real-time collaborative editing by multiple users.

[0028] FirstTable is an online table that supports real-time collaborative editing by multiple users. During or after the creation of FirstTable, the scope of users can be configured. For example, users with appropriate permissions can be specified, or specific user information can be selected as collaborating users to collaboratively edit the table. Selected collaborating users can perform various interactive operations on FirstTable using their own terminal devices. Each cell within FirstTable allows for the input of table data, connection to a corresponding database, or access to data and content from other tables.

[0029] The interactive operations in the first table include: inserting cells, inserting row data, inserting column data, deleting data, modifying cell data, adding filter conditions, and deleting filter conditions. Among these, the operations of inserting cells, inserting row data, inserting column data, deleting data, and modifying cell data can be used to adjust the data content in the first table; adding and deleting filter conditions can be used to adjust the view state of the first table.

[0030] The first table supports collaborative editing by one or more users. On different users' terminals, the first table can be displayed in two states: displayed and not displayed. If other users' clients have not yet displayed the first table, data synchronization to those terminals will not be temporarily suspended when the current user performs an update operation on it. When a user who previously did not display the first table triggers its display again, their interface will directly load and display the updated table content. For terminals that have successfully displayed the first table, the updated data corresponding to the first editing operation will be synchronized to other corresponding terminals.

[0031] The first chart can be a visualization created based on the tabular data associated with the first table. The content displayed in the first chart can be driven by the tabular data in the first table. The tabular data associated with the first table can be either the structured data stored in the first table itself, or other tabular data that has a data relationship, data reference, or data linkage with the first table. The first chart establishes a relationship with both the first document and the first table, enabling the first chart to be updated and displayed synchronously with the real-time changes in the tabular data in the first table, thereby ensuring the consistency, timeliness, and accuracy between the chart's displayed content and the source data in the table.

[0032] The first editing operation can refer to an editing operation performed in the first document or first table that triggers the display or update of a chart, including but not limited to: insert operations, add operations, data referencing operations, menu click operations, option selection operations, and interactive operations that can trigger the display of a chart in data modification operations. The first information may include at least one first chart displayed in the interface in response to the first editing operation, which visually presents the first chart generated based on the table data corresponding to the first table in a data visualization form.

[0033] In the above solution, after editing in the first table or first document, a chart is automatically triggered, enabling updates and visualization of charts immediately upon editing. This improves data presentation efficiency. Furthermore, the first chart is generated directly from the data in the associated tables within the first table, eliminating the need for manual chart creation, reducing repetitive operations, and ensuring data consistency and accuracy. The first document, first table, and first chart are interconnected; data modifications at any stage are reflected in the associated charts, forming an integrated online collaborative editing system. Moreover, the solution provides the first document with directly usable visualization chart resources from the first table. This allows the first document to reuse charts from the first table during content editing and data display, simplifying the online document data visualization process and improving data display efficiency.

[0034] S220. In response to receiving a second editing operation, a second chart is displayed in the first document, the second chart being a chart from at least one of the first charts.

[0035] See Figure 3 and Figure 4The second chart can be a chart selected from at least one first chart using a click or selection operation. The second chart belongs to at least one first chart and is generated driven by the tabular data of the first table. The second editing operation includes the operation of inserting the chart from the online table into the online document. The second editing operation can be an editing operation performed on the second chart to confirm its insertion into the first document. The second editing operation is used to trigger the insertion of the selected second chart into the first document as a reference chart, so that the first document can display the second chart inserted into the first document by referencing the chart based on the second editing operation.

[0036] See Figure 3 and Figure 4 The second chart is a chart inserted into the first document via a reference, serving as a display instance within the first document and maintaining a connection with the data source of the first table to which the second chart belongs. During the insertion of the second chart into the first document using the reference chart method, the first document does not copy or migrate the original table data of the first table to which the second chart belongs. Instead, it inserts and displays the second chart within the first document by establishing a reference relationship, setting association identifiers, and determining data pointers.

[0037] In the above solution, the second chart is inserted and displayed in the first document by referencing the original chart. This eliminates the need to recreate and configure the chart within the first document, allowing the first document to directly use existing charts from the first table to build its content. This enables rapid reuse and display of charts from the first table within the first document, effectively solving the problem of inefficient data visualization in online documents. Furthermore, the second chart, generated through referencing, maintains real-time data and style synchronization with the first table to which it belongs. When the data in the original first table changes, the referenced chart in the first document is updated synchronously, allowing the online document to dynamically and intuitively reflect data trends without requiring manual chart maintenance and updates. Using referencing instead of copying avoids generating redundant data and chart instances, reduces storage and transmission costs, and enhances the chart reuse capabilities between online documents and online tables, improving the overall integrity and usability of the collaborative office system.

[0038] In some cases, the first editing operation may be combined with one or more of the above-mentioned alternatives. The first editing operation includes a triggering operation on a first control in a first document. The first control includes an interactive control in the first document for manipulating a first table. The first control is associated with a first chart that has been created in the first table. Alternatively, the first editing operation includes a triggering operation on a second control in a first table. The second control includes an interactive control in the first table for manipulating the first table. The second control is associated with a first chart that has been created in the first table.

[0039] See Figure 3 The first editing operation can be a trigger operation on the first control 310 in the first document 31. The first control 310 can be an interactive control deployed within the first document 31 for performing related operations on the first table. The first control 310 is pre-associated with the first chart generated based on the first table. Triggering the first control 310 in the first document 31 constitutes the first editing operation, thereby triggering the visualization of at least one first chart. The first control 310 can be an interactive control located under the chart menu in the first document 31. Specifically, the first control 310 can be used to trigger the display of a visual chart in the first table, for example... Figure 3 The interactive control for "Select an existing chart" in the middle.

[0040] See Figure 4 The first editing operation can be a trigger operation on a second control in the first table 41. The second control can be an interactive control deployed within the interface of the first table itself to perform related operations on the first table 41. For example, the second control can be an interactive control under the dashboard menu of the first table used to trigger the dashboard. The second control establishes a relationship with the first chart that has been created based on the first table 41. When the second control is triggered in the first table 41, the operation of triggering the second control forms the first editing operation, which can realize the visual display of at least one first chart.

[0041] In some cases, it may be combined with one or more of the alternative options described above to display first information in response to receiving a first editing operation in a first document or first form, including the following steps: In response to a trigger operation on a first control in a first document, first information is displayed in a first display area of ​​the first document. The first control includes an interactive control in the first document for manipulating a first table, and the first control is associated with a first chart already created in the first table. Alternatively, in response to a trigger operation on a second control in the first table, first information is displayed in a second display area of ​​the first table. The second control includes an interactive control in the first table for manipulating the first table, and the second control is associated with a first chart already created in the first table.

[0042] See Figure 3 The first document 31 displays a first display area 320, which presents at least one selectable first chart. The first document 31 has read permissions for the first charts, and the first document 31 supports copying the first charts. See also Figure 4 The first table 41 displays a second display area 410, which presents at least one selectable first chart. The first table 41 has readability permissions for the first chart and supports copying of the first chart.

[0043] See Figure 3 The first display area 320 refers to the display area shown when the first document 31 calls the first table, used to present the first chart available in the first table, and belongs to the visualization display area of ​​the first document. The first document 31 has read permissions for the first chart in the called first table, which may include viewing, reading, and displaying access permissions for the first chart. The first document 31 supports copying the first chart displayed in the first display area 320 for quick reuse of the first chart in the first document. The first display area 320 is displayed in the first document 31 as an interactive page associated with the first control 310. The first display area 320 includes at least one data visualization unit, which is a visualization container used to hold the first chart created by the first table.

[0044] See Figure 3 The first display area 320 can be an interactive page associated with the first control 310 and displayed floatingly or embedded within the first document 31, which can be used to select and preview at least one first chart. The first display area 320 can be displayed on the first document 31 as a pop-up interface control or a floating interactive control. For example, the interactive page associated with the first control 310 can be at least one of the following forms: pop-up window, dialog box, overlay, drop-down menu, and prompt box. The data visualization unit 330 can be a unit within the first display area 320 that visualizes the charts, used to load, render, and display the first charts. For example, the data visualization unit 330 can be the various dashboards shown in the first display area 320. The chart types displayed under the data visualization unit can be at least one of the following: bar chart, pie chart, line chart, bar graph, scatter plot, combination, funnel, word cloud, indicator card, pivot table, leaderboard, progress chart, and countdown.

[0045] See Figure 4 The second display area 410 can refer to the display area in the first table used to present the selectable first chart in the first table. It belongs to the visualization display area of ​​the first table 41. The first table 41 has read permissions for the first chart in the first table that is called. The first table 41 supports copying the first chart displayed in the second display area 410 so that the first chart in the first table can be directly reused and inserted into the first document by referencing the chart. The read permissions for the first chart can refer to the first document or the first table having only viewing and display permissions for the first chart and the corresponding table data of the first table to which the first chart belongs.

[0046] See Figure 4The second display area is an interactive page associated with the second control displayed in the first table, and the second display area presents the first chart created by the first table. The second display area 410 can be an interactive area associated with the second control and displayed within the first table 41, used to provide selection and preview of at least one first chart. The second display area 410 can be displayed in the form of a pop-up interface control or a floating interactive control. For example, the interactive page associated with the second control can be presented in at least one form such as a pop-up window, dialog box, overlay, drop-down menu, and prompt box. The second control is associated with a data visualization unit, which can be a unit in the second display area that visualizes the chart, used to load, render, and display the first chart. In response to the trigger operation of the second control, at least one first chart carried under the data visualization unit associated with the second control will be displayed. The data visualization unit associated with the second control can be a dashboard shown in the second display area 410. The chart type displayed under the data visualization unit can be at least one of the following: bar chart, pie chart, line chart, bar graph, scatter plot, combination, funnel, word cloud, indicator card, pivot table, leaderboard, progress chart, and countdown.

[0047] In some cases, the second editing operation may be combined with the various alternatives in one or more of the above cases. When the first information is displayed in the first display area of ​​the first document, the second editing operation includes performing an operation to confirm the insertion of the second chart into the first document for a second chart selected from at least one first chart displayed in the first document.

[0048] In some cases, combinations of the various alternatives in one or more of the above situations may be used. When first information is displayed in the first display area of ​​the first document, displaying a second chart in the first document in response to receiving a second editing operation may include the following steps: In response to a selection operation on at least one first chart in the first information, a second chart among at least one first chart is selected; in response to a first trigger operation on the second chart, the second chart is displayed in the first document, the first trigger operation being used to confirm the insertion of the second chart into the first document.

[0049] See Figure 3The first display area 320 can display at least one selectable first chart from the first table presented when the first document calls the first table, and can trigger a selection operation on at least one first chart in the first information to select a second chart from at least one first chart. The first trigger operation on the second chart may also include a confirmation control in the first display area 320 for confirming the insertion of the second chart into the first document. The first trigger operation includes triggering the confirmation control presented in the first display area 320 in the first document, and the confirmation control presented in the first display area 320 is used to trigger the insertion and display of the second chart into the first document.

[0050] In some cases, the second editing operation may be combined with the various alternatives in one or more of the above situations. When the first information is displayed in the second display area of ​​the first table, the second editing operation includes copying and pasting the second chart selected from at least one first chart displayed in the first table into the first document.

[0051] In some cases, this can be combined with one or more of the alternative options described above. When the first information is displayed in the second display area of ​​the first table, displaying the second chart in the first document in response to receiving a second editing operation may include the following steps: In response to a second triggering operation on the second chart, the chart link of the second chart is obtained, and the second triggering operation is used to copy the second chart; in response to a third triggering operation on the chart link of the second chart, the second chart is displayed in the first document, and the third triggering operation is used to insert the copied second chart into the first document.

[0052] See Figure 4 The second chart can be selected from at least one of the first charts displayed in the first table. It can be generated driven by the table data in the first table and can be displayed and interacted with within the first table. When the second chart is displayed in the first table, a second trigger operation can be performed to copy the chart link of the second chart in the first table. A third trigger operation on the chart link of the second chart in the first document can paste the second chart into the first document for display, thereby realizing the quick migration and display of the second chart from the first table to the first document. See also Figure 4 The fourth control includes an interactive control associated with the second chart displayed in the first table, used to copy the second chart and add it to the first document.

[0053] See Figure 4The fourth control, as an interactive control associated with the second chart, provides copy and add functions. It is used to put the second chart into a paste-ready state for insertion into the first document. In response to a trigger operation on the second chart displayed in the first table, a menu associated with the second chart is presented. This menu may contain the fourth control. In response to a second trigger operation on the fourth control associated with the second chart, the chart link of the second chart is retrieved, thereby triggering the copying of the selected second chart. For example, the fourth control could be... Figure 4 The interactive control corresponding to "Add to Document" is shown in the image. Simultaneously, after obtaining the chart link of the second chart, a message appears indicating that the chart link of the second chart has been copied, allowing the second chart to be copied to the first document. The menu associated with the second chart displays a new label associated with the fourth control, indicating that adding the chart to the online document is supported.

[0054] In the above scenario, the first table provides copy and paste controls and step-by-step operations associated with the second chart. By triggering the operation through the above two steps, the complete process of copying and pasting the second chart from the first table to the first document can be completed. Charts can be quickly added to the document directly from the table side. The operation path is intuitive and the process is clear, which further improves the efficiency of cross-component reuse of charts in online collaboration scenarios.

[0055] In some cases, the second diagram can be displayed in the first document in combination with one or more of the alternative options described above, including but not limited to the following steps: Multiple second charts selected from the first chart are added sequentially in the first document in a first order, and the multiple second charts selected from the first chart are displayed sequentially in the first document in a first order, the first order being determined based on the order in which multiple second charts are selected from at least one first chart.

[0056] See Figure 3 and Figure 4 The second editing operation can be a confirmation insertion operation on multiple second charts, used to trigger the insertion of the selected multiple second charts into the first document as reference charts. The multiple second charts can be multiple charts selected from at least one first chart to be inserted into the first document, each second chart being generated driven by tabular data from the first table. The first order can be the selection order formed when selecting multiple second charts from at least one first chart, providing a basis for the order in which the charts are inserted into the first document.

[0057] See Figure 3 and Figure 4Multiple second charts are inserted into the first document one by one in a first order to establish the reference relationship. The second charts are then rendered and displayed sequentially in the first document according to the first order. The second chart can be a chart inserted into the first document by referencing other charts. It serves as a display instance of the second chart in the first document, maintaining a connection with the data source of the first table to which the second chart belongs. The original data is not copied or migrated; the display is achieved solely through the reference relationship.

[0058] In the above scenario, users can select and insert multiple charts at once, significantly simplifying repetitive operations and improving document editing efficiency. Furthermore, the charts are automatically sorted and inserted into the document according to the order of selection, eliminating the need for manual reordering and ensuring a neat and orderly arrangement of charts within the document. Simultaneously, multiple secondary charts are generated through references, maintaining a connection with the source table data. Updates to the source data ensure synchronized updates to the charts within the document, guaranteeing information accuracy and enabling the batch, orderly insertion of charts in collaborative online documents.

[0059] In some cases, the second chart can be displayed in the first document in combination with one or more of the above-mentioned alternatives. This may include the following steps: displaying a chart placeholder in the first document; after the chart resource corresponding to the second chart replaces the chart placeholder and displays the second chart, selecting the second chart displayed in the first document.

[0060] The chart placeholders displayed in the first document are temporary interface elements used to identify the insertion position and display area of ​​the second chart before the first chart is fully loaded, improving rendering smoothness. The chart resources corresponding to the second chart can refer to its rendering data, style configuration, and data source association information. After the second trigger operation is initiated, the chart placeholder is displayed at the chart insertion position in the first document to identify the display area in the first document used for rendering the second chart. After the chart resources corresponding to the second chart are fully loaded and replace the chart placeholders in the first document, the second chart displayed in the first document is automatically selected to allow for subsequent editing or adjustment operations on the inserted second chart.

[0061] Optionally, after displaying the second chart in the first document, the following steps are also included: displaying a third display area, which is used to indicate that the second chart has been successfully associated with the first document and / or that the first document has read permissions for the second chart. The third display area may be displayed as a pop-up window.

[0062] The third display area is also used to trigger permission-related adjustment operations on the second chart. The third display area presents a third control used to trigger permission-related adjustment operations on the second chart. This third control indicates the trigger for permission adjustment of the second chart and serves as the entry point for permission configuration. Users can access the permission settings process by interacting with the third control in the third display area. The third triggering operation can be at least one interactive operation performed on the third control, such as clicking or long-pressing, to trigger the display of the fourth display area.

[0063] In some cases, the alternatives in one or more of the above cases can be combined, and after the second chart is displayed in the first document, the following steps are also included: in response to a fourth trigger operation received in a third display area, a fourth display area is displayed, the third control is used to indicate the trigger to adjust the permissions of the second chart, and the fourth display area is used to configure the permissions of the second chart in the first document.

[0064] The fourth display area can be displayed in the form of a form, panel, or pop-up. This fourth display area is typically displayed in response to a third triggered operation, and it is usually a permission configuration panel, permission setting pop-up, or permission configuration interface. It provides permission configuration options for setting and modifying permissions for the second chart in the first document. The permissions for the second chart refer to the control and setting of permissions for accessing, displaying, editing, modifying, and updating the second chart in the first document within the fourth display area. For example, setting read permissions, edit permissions, sharing permissions, and data synchronization permissions allows for fine-grained permission management of the second chart.

[0065] The above method enables rapid configuration of chart permissions by providing an access point for adjusting permissions in the area where the second chart is located, meeting the needs of fine-grained permission management in multi-person collaborative editing scenarios and improving data security and collaborative controllability.

[0066] In some cases, it can be combined with one or more of the alternative options described above to display a second chart in the first document in response to receiving a second editing operation, including the following steps: Grant the first document permission to access the second chart; and / or add the first document as a collaborator to the collaborator list of the first chart.

[0067] Optionally, granting the first document permission to access the second chart includes granting collaborators of the first document permission to access the second chart within the first document. Alternatively, granting the first document permission to access the second chart includes granting the first document at least one of the following permissions: reading permission, editing permission, or management permission.

[0068] In some cases, the document processing method described herein can be combined with one or more of the alternative solutions mentioned above, and also includes the following steps: In response to a viewing operation of the second chart displayed in the first document, determine whether the current visitor has first and / or second permissions. The first permission controls whether the visitor can access one or more sub-tables in the first table, and the second permission controls whether the visitor can access the data records in the first table. The sub-tables correspond to the viewed second chart, and the data records correspond to the viewed second chart. In response to determining whether the current visitor has first and / or second permissions, display the data details of the first table.

[0069] Optionally, in response to determining whether the current visitor has first permission and / or second permission, the data details of the first table are displayed, including: in response to determining that the current visitor has first permission, displaying one or more sub-tables in the first table for the current visitor to view; in response to determining that the current visitor has both first permission and second permission, displaying one or more sub-tables in the first table and displaying the data records in the first table.

[0070] By adopting the above method, the system performs dual judgment on the access permissions of sub-tables and data records for visitors in response to the viewing operation of the chart, and displays the data details of the corresponding table based on the judgment result. This achieves fine-grained, dynamic and precise data permission control, which improves data security while optimizing the access and display efficiency of visualized data.

[0071] In some cases, the document processing methods described herein can be combined with one or more of the alternatives mentioned above, and also include at least one of the following: In response to the current visitor being a collaborator of the first table, a second chart is displayed in the first document for the visitor. In response to the current visitor being a collaborator of the first table and having access permissions to the first chart, the second chart is displayed in the first document for the visitor. In response to the first table granting the first document access permissions to the first table, the second chart is displayed in the first document for the visitor. In response to the first table being configured for sharing and the visitor belonging to the set of shared objects, the second chart is displayed in the first document for the visitor. The access permissions to the first chart include at least one of the following: read permissions, edit permissions, and management permissions. The first document's access permissions to the first table include at least one of the following: read permissions, edit permissions, and management permissions.

[0072] Optionally, the chart data, chart style, and / or chart title of the second chart displayed in the first document are the same as the chart data, chart style, and / or chart title of the first chart in the first table; the chart data, chart style, and / or chart title of the second chart displayed in the first document are updated synchronously with the chart data, chart style, and / or chart title of the first chart in the first table.

[0073] In some cases, the document processing method described herein may be combined with the alternatives in one or more of the above cases. The document processing method may also include the following steps: in response to a viewing operation of at least a portion of the chart area displayed in the first document, displaying data records in the first table, wherein at least a portion of the chart area is located in the second chart, and the data records correspond to the at least a portion of the chart area.

[0074] In some cases, the document processing method described herein may be combined with the various alternatives in one or more of the above cases. The document processing method may also include the following steps: in response to a fifth trigger operation on the fourth information, displaying the fifth information of the second chart. The fifth information includes tabular data on the second chart related to the fourth information. When the second chart is not a pivot table, the fourth information includes the selected data area or data points on the second chart. When the second chart is a pivot table, the fourth information includes the selected row dimension field or column dimension field on the second chart.

[0075] In some cases, the document processing method described herein further includes the following steps: in response to a third editing operation on at least one legend control associated with the second chart, displaying or hiding the chart data of the second chart associated with the legend control edited by the third editing operation; wherein the third editing operation is a trigger operation performed on at least one legend control associated with the second chart, including clicking, toggling, and selecting, to control the display or hiding state of the chart data. The chart data of the second chart refers to the visual display content corresponding to the data series, data curves, and data bars associated with the legend control of the second chart.

[0076] In some cases, the document processing method described herein further includes the following steps: in response to receiving a data drill-down operation in the second chart, detecting whether the second chart has a third permission enabled. The third permission is used to control access permissions to the table data of the first table to which the second chart belongs, as displayed in the first document. The data drill-down operation can be an interactive operation performed on the second chart, such as drilling down, viewing details, or viewing source data, to access more fundamental table data.

[0077] In some cases, the document processing method described herein further includes the following steps: in response to a chart deletion operation being received in a second chart in a first table, a first pocket chart is displayed in a first document to indicate that the second chart in the first table has been deleted; in response to a data modification operation being received in the table data of the first table, a second pocket chart is displayed in the first document to indicate that the chart data of the second chart displayed in the first document is invalid.

[0078] After a chart deletion operation is received in the second chart of the first table, a first catch-all chart can be simultaneously displayed in the first document. This catch-all chart clearly informs the user that a deletion change has occurred in the second chart of the first table, immediately reporting an anomaly to the first document. This prevents chart display errors due to the non-existence of the second chart, ensuring a clear understanding of chart relationships and improving the reliability and interpretability of cross-document and cross-table data display. Similarly, after a data modification operation is received in the first table, a second catch-all chart can be simultaneously displayed in the first document. This catch-all chart clearly informs the user that the source data upon which the second chart displayed in the first document depends has changed, and the corresponding chart data is invalid. This timely alerts the user when the data source for the second chart changes, indicating that the currently displayed chart is unreliable and unusable, preventing judgments and operations based on incorrect, invalid, or outdated chart data.

[0079] In the above method, when the second chart is deleted or its data is modified, the corresponding first and second catch-all charts are displayed in the first document, respectively. This achieves real-time linkage and anomaly alerts between the chart status of the first table and the first document, enabling the second chart in the first document to perceive and respond to changes in the source chart and source data, thus avoiding situations where charts are displayed abnormally or data is invalid without being noticed.

[0080] In some cases, the options in one or more of the above situations can be combined to disable the following functions on the second chart when the second chart has been deleted from the first table or the chart data of the second chart displayed in the first document is invalid: aligning the second chart, updating the second chart, opening the first table to which the second chart belongs and locating the second chart in the first table, and downloading the second chart.

[0081] In some cases, it can be combined with the various options in one or more of the above situations. The second chart displays a chart operation area, which is used to configure triggering at least one of the following operation functions: aligning the second chart, updating the second chart, opening the first table to which the second chart belongs and locating the second chart in the first table, downloading the second chart, copying the document link of the first document, sharing the first document and commenting on the first document.

[0082] In some cases, the document processing method described herein can be combined with one or more of the alternative solutions mentioned above, and also includes the following steps: In response to the second icon in the first table having readability permissions for the operations supported by the fifth control, the fifth control is displayed on the second chart. The fifth control is used to trigger at least one of the following operations: aligning the second chart, updating the second chart, opening the first table to which the second chart belongs and locating the second chart in the first table, downloading the second chart, copying the document link of the first document, sharing the first document, and commenting on the first document; in response to the second icon in the first table not having readability permissions for the operations supported by the fifth control, the fifth control is hidden on the second chart.

[0083] In some cases, it can be combined with the various alternatives in one or more of the above cases, see [reference]. Figure 5 The document processing method described in this article also includes the following steps: The first document displays the latest modification time of the second chart, which is the time when the second chart was last modified in the first table and the time when the data changed; in response to receiving an update operation in the second chart, the second chart is updated with the table data that has been updated for the second chart.

[0084] In the above method, in response to receiving a first editing operation in the first document or the first table, first information containing at least one first chart is displayed. This provides the first document with directly usable visual chart resources from the first table, allowing the first document to reuse charts from the first table without recreating them during content editing and data display. This simplifies the data visualization process of online documents and improves data display efficiency. Furthermore, both the first table and the first document are online carriers that support multi-user collaborative editing, enabling real-time synchronization of chart data during multi-user collaboration. This improves the consistency and timeliness of data display in multi-user online collaboration scenarios and solves the problems of asynchronous chart data and unclear relationships in online documents. In response to performing a second editing operation on the selected second chart, the second chart can be displayed in the first document without recreating and configuring the chart within the first document. This allows the first document to directly use existing charts from the first table to complete content construction, enabling rapid reuse and display of charts from the first table within the first document. This effectively solves the problem of online documents struggling to efficiently achieve data visualization. Furthermore, the second chart is generated by referencing the first chart, maintaining real-time linkage in data and style. When the data in the source first table changes, the chart referenced in the first document can be updated synchronously, enabling the online document to dynamically and intuitively reflect data change trends without the need for manual maintenance and updating of the charts.

[0085] Figure 6 A schematic diagram of a document processing device is provided, applicable to scenarios involving efficient data visualization chart editing and display within online documents. This device can be implemented through software and / or hardware, optionally via electronic devices such as mobile terminals, PCs, or servers. Figure 6 As shown, the document processing apparatus in this document may specifically include the following: The first display module 610 is configured to display first information in response to receiving a first editing operation in a first document or a first table. The first information includes at least one first chart, which is generated based on table data associated with the first table. Both the first document and the first table are associated with the first chart. The first table is an online table that supports collaborative editing by at least two users, and the first document is an online document that supports collaborative editing by at least two users. The second display module 620 is configured to display a second chart in the first document in response to receiving a second editing operation, wherein the second chart is one of the at least one first chart; In one scenario, it can be combined with one or more of the alternatives described above to display first information in response to receiving a first editing operation in a first document or first table, including: In response to a trigger operation on a first control in the first document, first information is displayed in a first display area of ​​the first document. The first control includes an interactive control in the first document for manipulating the first table, and the first control is associated with a first chart that has been created for the first table. Alternatively, in response to a triggering operation on a second control in the first table, first information is displayed in a second display area of ​​the first table, the second control including interactive controls in the first table for operating the first table, and the second control being associated with a first chart that has been created in the first table.

[0086] In one scenario, in combination with one or more of the above-mentioned alternatives, when displaying first information in the first display area of ​​the first document, in response to receiving a second editing operation, displaying a second chart in the first document, including: In response to a selection operation on at least one first chart in the first information, a second chart among the at least one first chart is selected; In response to a first triggering operation on the second chart, the second chart is displayed in the first document, the first triggering operation being used to confirm the insertion of the second chart into the first document.

[0087] In one scenario, in combination with one or more of the above-mentioned alternatives, when displaying the first information in the second display area of ​​the first table, in response to receiving a second editing operation, displaying a second chart in the first document, including: In response to a second triggering operation on the second chart, the chart link of the second chart is obtained, the second triggering operation being used to copy the second chart; In response to a third triggering action on a chart link to the second chart, the second chart is displayed in the first document, the third triggering action being used to insert a copied second chart into the first document.

[0088] In one scenario, combining with one or more of the alternatives described above, the step of displaying a second chart in the first document in response to receiving a second editing operation includes: Grant the first document permission to access the second chart; and / or, Add the first document as a collaborator to the collaborator list of the first table.

[0089] In one scenario, the device may be combined with one or more of the alternative solutions described above, and further includes: In response to receiving a fourth trigger operation in a third control within a third display area, a fourth display area is displayed. The third control is used to indicate a trigger to adjust the permissions of the second chart. The fourth display area is used to configure the permissions of the second chart in the first document.

[0090] In one scenario, the device may be combined with one or more of the alternative solutions described above, and further includes: In response to a viewing operation of at least a portion of the chart area displayed in the first document, data records in the first table are displayed, the at least a portion of the chart area being located in the second chart, and the data records corresponding to the at least a portion of the chart area.

[0091] In one scenario, the device may be combined with one or more of the alternative solutions described above, and further includes: In response to a fifth trigger operation on the fourth information, the fifth information of the second chart is displayed; the fifth information includes tabular data on the second chart related to the fourth information; when the second chart is not a pivot table, the fourth information includes the selected data area or data points on the second chart; when the second chart is a pivot table, the fourth information includes the selected row dimension field or column dimension field on the second chart.

[0092] In one scenario, the device may be combined with one or more of the alternative solutions described above, and further includes: In response to a viewing operation of the second chart displayed in the first document, it is determined whether the current visitor has a first permission and / or a second permission. The first permission is used to control whether the visitor can access one or more sub-tables in the first table, and the second permission is used to control whether the visitor can access the data records in the first table. The sub-tables correspond to the viewed second chart, and the data records correspond to the viewed second chart. In response to determining whether the current visitor has first and / or second permissions, the data details of the first table are displayed.

[0093] In one scenario, in combination with one or more of the above-mentioned alternatives, when a request to view the second chart is received from a visitor of the first document, the device further includes at least one of the following: In response to the current visitor being a collaborator of the first table, the second chart is displayed in the first document for the visitor; In response to the current visitor being a collaborator of the first table and the current visitor having access to the first chart, the second chart is displayed for the visitor in the first document; In response to the first table granting the first document permission to access the first table, the second chart is displayed in the first document for the visitor; In response to the first table being configured to be shared and the visitor belonging to the set of shared objects, the second chart is displayed for the visitor in the first document.

[0094] In the above method, in response to receiving a first editing operation in the first document or the first table, first information containing at least one first chart is displayed. This provides the first document with directly usable visual chart resources from the first table, allowing the first document to reuse charts from the first table without recreating them during content editing and data display. This simplifies the data visualization process of online documents and improves data display efficiency. Furthermore, both the first table and the first document are online platforms that support multi-user collaborative editing, enabling real-time synchronization of chart data during multi-user collaboration. This improves the consistency and timeliness of data display in multi-user online collaboration scenarios and solves the problems of asynchronous chart data and inconsistent relationships in online documents. The solution addresses a clear problem: responding to a second editing operation on the selected second chart, the second chart is inserted and displayed in the first document as a reference, eliminating the need to recreate and configure charts within the first document. This allows the first document to directly use existing charts from the first table to complete its content construction, enabling rapid reuse and display of charts from the first table within the first document. This effectively solves the problem of online documents struggling to efficiently visualize data. Furthermore, the second chart is generated through a reference method, maintaining real-time data and style linkage with the first chart. When the data in the source first table changes, the referenced chart in the first document can be updated synchronously, allowing the online document to dynamically and intuitively reflect data trends without the need for manual chart maintenance and updates.

[0095] The document processing apparatus described above can execute the document processing method provided in any of the embodiments described herein, and has the corresponding functional modules and beneficial effects for executing the document processing method.

[0096] It is worth noting that the various units and modules included in the above-mentioned interactive device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments in this article.

[0097] The following is for reference. Figure 7 The diagram illustrates a structural schematic of an electronic device (e.g., a terminal device or server) 700 suitable for implementing the aforementioned document processing method. The terminal device referred to herein may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments described herein.

[0098] like Figure 7As shown, the electronic device 700 may include a processing unit (e.g., a central processing unit, a graphics processor, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. The RAM 703 also stores various programs and data required for the operation of the electronic device 700. The processing unit 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0099] Typically, the following devices can be connected to I / O interface 705: input devices 706 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 707 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 708 including, for example, magnetic tapes, hard disks, etc.; and communication devices 709. Communication device 709 allows electronic device 700 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 7 An electronic device 700 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0100] In particular, according to embodiments of this document, the processes described in the above-referenced flowcharts can be implemented as computer software programs. For example, the technical solutions of this document include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the document processing method shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device 709, or installed from a storage device 708, or installed from a ROM 702. When the computer program is executed by the processing device 701, it performs the functions defined in the document processing method of the embodiments of this document.

[0101] The names of messages or information exchanged between multiple devices in this document are for illustrative purposes only and are not intended to limit the scope of these messages or information.

[0102] The electronic device provided in this embodiment and the document processing method provided in the above technical solutions belong to the same inventive concept. Technical details not described in detail in this document can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0103] This document provides a computer storage medium on which a computer program is stored, which, when executed by a processor, implements the document processing method provided in the above embodiments.

[0104] It should be noted that the computer-readable medium described above can be a computer-readable signal medium, a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this document, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0105] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0106] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0107] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: display first information in response to receiving a first editing operation in a first document or a first table, the first information including at least one first chart, the first chart being generated based on table data associated with the first table, the first document and the first table being associated with the first chart, the first table being an online table supporting collaborative editing by at least two users, and the first document being an online document supporting collaborative editing by at least two users; and display a second chart in the first document in response to receiving a second editing operation, the second chart being a chart among the at least one first chart.

[0108] Computer program code for performing the operations described herein may be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0109] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this document. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0110] The modules or units described herein can be implemented in software or hardware. The names of modules or units do not necessarily constitute a limitation on the module or unit itself.

[0111] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.

[0112] In the context of this document, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0113] The above description is merely a preferred embodiment and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure herein is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed herein that have similar functions.

[0114] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of this document. Certain features described in the context of individual implementations may also be implemented in combination in a single implementation. Conversely, various features described in the context of a single implementation may also be implemented individually or in any suitable sub-combination in multiple implementations.

[0115] Although the subject matter has been described using language specific to structural features and / or methodological logic, 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. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A document processing method, the method comprising: In response to receiving a first editing operation in a first document or a first table, first information is displayed, the first information including at least one first chart, the first chart being generated based on table data associated with the first table, both the first document and the first table being associated with the first chart, the first table being an online table that supports collaborative editing by at least two users, and the first document being an online document that supports collaborative editing by at least two users; In response to receiving a second editing operation, a second chart is displayed in the first document, the second chart being one of the at least one first chart.

2. The method according to claim 1, in response to receiving a first editing operation in a first document or a first table, displaying first information, including: In response to a trigger operation on a first control in the first document, first information is displayed in a first display area of ​​the first document. The first control includes an interactive control in the first document for manipulating the first table, and the first control is associated with a first chart that has been created for the first table. Alternatively, in response to a triggering operation on a second control in the first table, first information is displayed in a second display area of ​​the first table, the second control including interactive controls in the first table for operating the first table, and the second control being associated with a first chart that has been created in the first table.

3. The method according to claim 2, wherein when first information is displayed in the first display area of ​​the first document, in response to receiving a second editing operation, a second chart is displayed in the first document, comprising: In response to a selection operation on at least one first chart in the first information, a second chart among the at least one first chart is selected; In response to a first triggering operation on the second chart, the second chart is displayed in the first document, the first triggering operation being used to confirm the insertion of the second chart into the first document.

4. The method according to claim 2, wherein when the first information is displayed in the second display area of ​​the first table, in response to receiving a second editing operation, a second chart is displayed in the first document, comprising: In response to a second triggering operation on the second chart, the chart link of the second chart is obtained, the second triggering operation being used to copy the second chart; In response to a third triggering action on a chart link to the second chart, the second chart is displayed in the first document, the third triggering action being used to insert a copied second chart into the first document.

5. The method according to claim 1, wherein displaying a second chart in the first document in response to receiving a second editing operation comprises: Grant the first document permission to access the second chart; And / or, Add the first document as a collaborator to the collaborator list of the first table.

6. The method according to claim 1, further comprising: In response to receiving a fourth trigger operation in a third control within a third display area, a fourth display area is displayed. The third control is used to indicate a trigger to adjust the permissions of the second chart. The fourth display area is used to configure the permissions of the second chart in the first document.

7. The method according to any one of claims 1-4, further comprising: In response to a viewing operation of at least a portion of the chart area displayed in the first document, data records in the first table are displayed, the at least a portion of the chart area being located in the second chart, and the data records corresponding to the at least a portion of the chart area.

8. The method according to any one of claims 1-4, further comprising: In response to a fifth trigger operation on the fourth information, the fifth information of the second chart is displayed; The fifth piece of information includes the tabular data related to the fourth piece of information on the second chart; When the second chart is not a pivot table, the fourth information includes the selected data area or data points on the second chart; when the second chart is a pivot table, the fourth information includes the selected row dimension field or column dimension field on the second chart.

9. The method according to any one of claims 1-4, further comprising: In response to a viewing operation of the second chart displayed in the first document, it is determined whether the current visitor has a first permission and / or a second permission. The first permission is used to control whether the visitor can access one or more sub-tables in the first table, and the second permission is used to control whether the visitor can access the data records in the first table. The sub-tables correspond to the viewed second chart, and the data records correspond to the viewed second chart. In response to determining whether the current visitor has first and / or second permissions, the data details of the first table are displayed.

10. The method according to any one of claims 1-4, wherein when a request to view the second chart is received from a visitor of the first document, the method further comprises at least one of the following: In response to the current visitor being a collaborator of the first table, the second chart is displayed in the first document for the visitor; In response to the current visitor being a collaborator of the first table and the current visitor having access to the first chart, the second chart is displayed for the visitor in the first document; In response to the first table granting the first document permission to access the first table, the second chart is displayed in the first document for the visitor; In response to the first table being configured to be shared and the visitor belonging to the set of shared objects, the second chart is displayed for the visitor in the first document.

11. A document processing apparatus, the apparatus comprising: The first display module is configured to display first information in response to receiving a first editing operation in a first document or a first table. The first information includes at least one first chart, which is generated based on table data associated with the first table. Both the first document and the first table are associated with the first chart. The first table is an online table that supports collaborative editing by at least two users, and the first document is an online document that supports collaborative editing by at least two users. The second display module is configured to display a second chart in the first document in response to receiving a second editing operation, wherein the second chart is one of the at least one first chart.

12. An electronic device, the electronic device comprising: At least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1-10.

13. A computer-readable storage medium storing computer instructions that, when executed by a processor, implement the method of any one of claims 1-10.

14. A computer program product comprising a computer program that, when executed by a processor, implements the method as described in any one of claims 1-10.