A method, device, equipment and storage medium for processing graphs
By generating and sending chart snapshots on the client, the problem of electronic chart updates occupying server resources is solved, and more efficient resource utilization and performance improvement is achieved.
Patent Information
- Application Number
- CN202210411743.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-19
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2042-04-19
AI Technical Summary
When updating the configuration information of electronic charts, it will occupy more resources on the server, resulting in performance bottlenecks and waste of resources.
Get chart information through the client, generate a chart snapshot, and send the snapshot to the server, so that the server can generate the updated chart version based on the snapshot.
It reduces the resource usage of the server when updating electronic charts, avoids performance bottlenecks and resource waste, and improves the efficiency and scalability of the system.
Smart Images

Figure CN114757158B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a chart processing method, device and storage medium. Background Art
[0002] Users can generate charts using the electronic chart function provided by an application (APP) or a web page. The electronic chart function provided by the APP or web page may be updated. After the electronic chart function is updated, for an electronic chart created using the old version of the electronic chart function, it is necessary to update the information (such as configuration information) of the electronic chart so that the information of the updated electronic chart matches the new version of the electronic chart function, so that users can continue to use the corresponding functions of the electronic chart normally.
[0003] Currently, updating the configuration information of electronic charts will occupy more resources on the server side. Therefore, there is an urgent need for a solution that can solve the above problem. Summary of the invention
[0004] The technical problem to be solved by the present application is that updating the configuration information of an electronic chart will occupy more resources on the server side, and a chart processing method, device, equipment and storage medium are provided.
[0005] In a first aspect, an embodiment of the present application provides a chart processing method, which is applied to a client, and the method includes:
[0006] Acquire chart information of a first chart, the chart information including first configuration information and first data information of the first chart, the version of the first chart being a first version before updating;
[0007] Based on the chart information and the updated second version of the chart configuration item, obtaining second configuration information;
[0008] Generate a chart snapshot based on the first data information and the second configuration information;
[0009] The chart snapshot is sent to a server, so that the server generates a second chart of the second version based on the chart snapshot.
[0010] Optionally, the first data information indicates that the first chart includes data of M categories in N aspects, and generating a chart snapshot based on the first data information and the second configuration information includes:
[0011] Based on the first data information, obtain data references corresponding to each category and each aspect in the first chart;
[0012] generating second data information based on the data reference;
[0013] The chart snapshot is generated based on the second data information and the second configuration information.
[0014] Optionally, the method further includes:
[0015] The data of the M categories in N aspects included in the first chart are sent to the server, so that the server establishes a data reference of the data of the M categories in N aspects.
[0016] Optionally, the first configuration information includes configuration information of each data in the first chart, and the obtaining of the second configuration information based on the chart information of the first chart and the updated chart configuration item of the second version includes:
[0017] Determine at least one second configuration item in the chart configuration items of the second version that matches the configuration information of each data;
[0018] The second configuration information is obtained based on the configuration information of each data and at least one second configuration item respectively corresponding to each data.
[0019] Optionally, the method further includes:
[0020] An identifier of the second chart sent by the server is received, where the identifier of the second chart is used by the client to access the second chart stored in the server.
[0021] Optionally, obtaining chart information of the first chart includes:
[0022] In response to a user opening a page including the first chart, the chart information is acquired.
[0023] Optionally, obtaining chart information of the first chart includes:
[0024] In response to an editing operation triggered by a user on the first chart, the chart information is acquired.
[0025] Optionally, the method further includes:
[0026] receiving the second chart sent by the server;
[0027] The second graph is displayed.
[0028] In a second aspect, an embodiment of the present application provides a chart processing device, which is applied to a client, and the device includes:
[0029] A first acquiring unit, configured to acquire chart information of a first chart, wherein the chart information includes first configuration information and first data information of the first chart, and the version of the first chart is a first version before updating;
[0030] A second acquisition unit, configured to acquire second configuration information based on the chart information and the updated second version of the chart configuration item;
[0031] A generating unit, configured to generate a chart snapshot based on the first data information and the second configuration information;
[0032] The first sending unit is configured to send the chart snapshot to a server, so that the server generates a second chart of the second version based on the chart snapshot.
[0033] Optionally, the first data information indicates that the first chart includes data of M categories in N aspects, and the generating unit is used to:
[0034] Based on the first data information, obtain data references corresponding to each category and each aspect in the first chart;
[0035] generating second data information based on the data reference;
[0036] The chart snapshot is generated based on the second data information and the second configuration information.
[0037] Optionally, the device further comprises:
[0038] The second sending unit is used to send the data of the M categories in N aspects included in the first chart to the server, so that the server establishes a data reference of the data of the M categories in N aspects.
[0039] Optionally, the first configuration information includes configuration information of each data in the first chart, and the second obtaining unit is used to:
[0040] Determine at least one second configuration item in the chart configuration items of the second version that matches the configuration information of each data;
[0041] The second configuration information is obtained based on the configuration information of each data and at least one second configuration item respectively corresponding to each data.
[0042] Optionally, the device further comprises:
[0043] The first receiving unit is used to receive the identifier of the second chart sent by the server, and the identifier of the second chart is used by the client to access the second chart stored in the server.
[0044] Optionally, the first acquiring unit is used to:
[0045] In response to a user opening a page including the first chart, the chart information is acquired.
[0046] Optionally, the first acquiring unit is used to:
[0047] In response to an editing operation triggered by a user on the first chart, the chart information is acquired.
[0048] Optionally, the device further comprises:
[0049] A second receiving unit, configured to receive the second chart sent by the server;
[0050] A display unit is used to display the second chart.
[0051] In a third aspect, an embodiment of the present application provides a device, the device comprising a processor and a memory;
[0052] The processor is configured to execute instructions stored in the memory, so that the device performs the method as described in any one of the first aspects above.
[0053] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, wherein the instructions instruct a device to execute a method as described in any one of the above first aspects.
[0054] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute any of the methods described in the first aspect above.
[0055] Compared with the prior art, the embodiments of the present application have the following advantages:
[0056] The embodiment of the present application provides a chart processing method, which can be executed by a client, and the client can obtain chart information of a first chart, the version of the first chart is the first version before the update, and the chart information includes first configuration information and first data information of the first chart. Then, based on the chart information and the updated second version of the chart configuration items, the second configuration information is obtained; and based on the first data information and the second configuration information, a chart snapshot is generated. After the chart snapshot is generated, the chart snapshot can be sent to the server, so that the server generates a second chart of the second version based on the chart snapshot. Since the second chart is generated based on the chart snapshot, there is no need to perceive and process the internal data structure of the first chart. It can be seen that, using this solution, the server generates the second chart based on the chart snapshot, and there is no need for the server to perceive and process the internal data structure of the first chart, thereby not occupying more resources of the server. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0058] Figure 1 A flowchart of a diagram processing method provided in an embodiment of the present application;
[0059] Figure 2 A schematic diagram of a chart provided for an embodiment of the present application;
[0060] Figure 3 A flowchart of a method for obtaining second configuration information provided in an embodiment of the present application;
[0061] Figure 4 A schematic diagram of the structure of a chart processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0063] The inventor of the present application has found through research that, currently, when updating the information of an electronic chart, a developer can write a script for updating the information of the electronic chart and deploy the script to a server, wherein the script contains code logic for mapping the old version of the chart data (e.g., chart configuration) to the new version of the chart data. The server runs the script to update the information of the electronic chart.
[0064] However, using this method, the server needs to perceive and process the internal data structure of the old version of the chart, which occupies more resources on the server.
[0065] In addition, currently, when updating the information of electronic charts, the server usually adopts a full update method, that is, the information of all users' electronic charts is updated, which results in a huge amount of chart information data to be updated, thus requiring a large amount of server resources. It is precisely because of the huge amount of chart information data to be updated that the time spent on updating the chart information is usually relatively long (in months), which is not conducive to the rapid iteration of products that provide electronic chart functions.
[0066] Moreover, by adopting the full update method, updating the electronic chart information of users who do not frequently use or continue to use the aforementioned products will cause a waste of server resources. In order to solve the above problems, the embodiments of the present application provide a chart processing method, device, equipment and storage medium.
[0067] Various non-limiting implementations of the present application are described in detail below in conjunction with the accompanying drawings.
[0068] Exemplary Methods
[0069] See also Figure 1 , which is a flowchart of a chart processing method provided in an embodiment of the present application. In this embodiment, the method may be executed by a client, and the method may include the following steps: S101-S104.
[0070] S101: Obtaining chart information of a first chart, the chart information including first configuration information and first data information of the first chart, the version of the first chart being a first version before updating.
[0071] In an embodiment of the present application, the first chart may be created by a user using a web page or an APP. As an example, the first chart may be created by a user using an APP or a web page that provides a spreadsheet function and an electronic chart function. In this case, the user may trigger an electronic chart generation operation based on part or all of the data in the spreadsheet, thereby generating the first chart.
[0072] The chart information includes first configuration information and first data information of the first chart.
[0073] The first configuration information is used to indicate various configurations of the first chart, for example, the type of the first chart (e.g., a bar chart, a line chart, or a pie chart), the display color of each data in the first chart, and the title of the first chart. In one example, the first configuration information includes configuration information of each data in the first chart. For the first data among the various data, the configuration information of the first data includes a configuration item of the first data and a configuration value corresponding to the configuration item. For example, the configuration item may be "display color" and the configuration value may be "red".
[0074] The first data information is used to indicate source data of the first chart. For example, when the first chart is generated based on data in a spreadsheet, the first data information may be used to indicate the data in the spreadsheet.
[0075] In one example, the first data information may be used to indicate that the first chart includes data of M categories in N aspects. Wherein, when the first chart displays the data of the M categories in N aspects, the data corresponding to the M categories in each aspect are displayed separately. For example, for a bar chart, the data corresponding to the M categories in each aspect occupy a display range on the horizontal axis. For the display range corresponding to the first aspect, it is used to display the data of the M categories corresponding to the first aspect, and does not display data of other aspects. For example, for the data shown in Table 1 below, its corresponding chart can be as follows: Figure 2 shown. Figure 2 A schematic diagram of a chart provided in an embodiment of the present application. It is not difficult to understand that for Figure 1 In the corresponding chart, the M categories correspond to Chinese, mathematics and English, and the N aspects correspond to the first grade, the second grade and the third grade.
[0076] In some scenarios, the “categories” in the aforementioned M categories may also be referred to as “series”, and the “aspects” in the aforementioned N aspects may also be referred to as “axes”.
[0077] Table 1
[0078] Language math English First Grade 80 90 85 Second Grade 75 80 85 Grade 3 90 80 85
[0079] S102: Obtain second configuration information based on the chart information and the updated chart configuration items of the second version.
[0080] In the embodiment of the present application, after the chart function is updated, the configuration of the chart function will change. For example, the second version supports a smaller chart configuration granularity. For example, in the first version, for a series, the settings for the series are globally effective, so Figure 2For example, the color setting of a column chart of a series is globally effective. However, in the second version, for a series, the color of the column chart corresponding to each aspect of the series can be set separately. For example, Figure 2 In the illustrated scenario, for the series “Chinese”, the color of the bar chart of “First Grade Chinese”, the color of the bar chart of “Second Grade Chinese”, and the color of the bar chart of “Third Grade Chinese” can be set separately.
[0081] Therefore, the second configuration information can be obtained based on the chart information and the updated chart configuration items of the second version. The second configuration information refers to the configuration information that matches the chart configuration items corresponding to the second version. There are multiple implementation methods for S102.
[0082] In one example, S102 may Figure 3 The steps S301-S302 shown are implemented. Figure 3 A flowchart of a method for obtaining second configuration information provided in an embodiment of the present application.
[0083] S301: Determine at least one second configuration item in the chart configuration items of the second version that matches the configuration information of each data.
[0084] S302: Obtain the second configuration information based on the configuration information of each data and at least one second configuration item corresponding to each data.
[0085] As described above, after the chart function is updated, the configuration of the chart function will change. In one example, the second version supports a smaller chart configuration granularity. Therefore, for the configuration information of each data described in the first version, it can correspond to at least one configuration item of the second version. For example, for a certain "series" in the first version, it can correspond to N configuration items in the second version, where one aspect corresponds to one configuration item.
[0086] by Figure 2 The following diagram is used as an example:
[0087] For the series "Chinese", the configuration information corresponding to the series "Chinese" can correspond to three configuration items in the second version, namely the configuration items corresponding to "first grade Chinese", the configuration items corresponding to "second grade Chinese", and the configuration items corresponding to "third grade Chinese".
[0088] Therefore, at least one second configuration item matching the configuration information of each data can be determined from the second version of the chart configuration items. Then, the second configuration information is obtained based on the configuration information of each data and the at least one second configuration item corresponding to each data.
[0089] In an embodiment of the present application, the second configuration information includes a second configuration item and a configuration value corresponding to the second configuration item. As mentioned above, in one example, for the first version, the configuration information of a certain data may indicate the configuration value of a certain configuration item of the first version. Therefore, as an example, "based on the configuration information of each data and at least one second configuration item corresponding to each data, obtaining the second configuration information" can be specifically implemented by determining the configuration value of a certain configuration item of the first version as the configuration value of at least one second configuration item corresponding to it, thereby obtaining the second configuration information.
[0090] For example:
[0091] The first configuration information indicates that the color of the column chart of the series "Chinese" is "gray", and the configuration information corresponding to the series "Chinese" can correspond to three configuration items in the second version, namely, the configuration item corresponding to "first grade Chinese", the configuration item corresponding to "second grade Chinese", and the configuration item corresponding to "third grade Chinese". Therefore, it can be determined that the color of the column chart of "first grade Chinese" is "gray", the color of the column chart of "second grade Chinese" is "gray", and the color of the column chart of "third grade Chinese" is "gray". That is, the second configuration information includes the second configuration items and the configuration values corresponding to the second configuration items shown in Table 2 below.
[0092] Table 2
[0093] Second configuration item Configuration Values First Grade Chinese grey Second Grade Chinese grey Grade 3 Chinese grey
[0094] In yet another example, when S102 is specifically implemented, the first configuration information may be reversely searched based on the second version of the chart configuration item, so as to find the first configuration information matching the second version of the chart configuration item, thereby obtaining the second configuration information.
[0095] For example:
[0096] For the configuration item of the bar chart color corresponding to "First Grade Chinese", the first configuration information is searched in reverse order, and it is found that the bar chart color of the series "Chinese" is "gray". Therefore, it can be obtained that the bar chart color corresponding to "First Grade Chinese" is "gray".
[0097] S103: Generate a chart snapshot based on the first data information and the second configuration information.
[0098] In one example, when S103 is implemented, the chart snapshot may be generated based on the source data indicated by the first data information and the second configuration information. In this case, the chart snapshot may reflect the source data itself.
[0099] In yet another example, when S103 is implemented, the chart snapshot may also be generated based on the data reference of the source data and the second configuration information.
[0100] The client may first obtain data references of data corresponding to each category and each aspect in the first chart based on the first data information, then generate second data information based on the data references, and finally generate the chart snapshot based on the second data information and the second configuration information.
[0101] For example, the first chart is generated based on a spreadsheet, and the data reference corresponding to "first grade Chinese" indicates that the data corresponding to "first grade Chinese" is in the ath row and bth column of the spreadsheet.
[0102] When generating the second data information based on the data reference, in a specific implementation, a corresponding relationship between the data reference and the category to which the corresponding data belongs, and a corresponding relationship between the data reference and the aspect to which the corresponding data belongs can be established. For example, a corresponding relationship between "row a, column b" and "first grade" is established, and a corresponding relationship between "row a, column b" and "Chinese" is established.
[0103] After obtaining the second data information, a chart snapshot may be generated based on the second data information and the second configuration information. The chart snapshot is used to indicate data references of data included in the chart and configuration information corresponding to each data.
[0104] S104: Sending the chart snapshot to a server, so that the server generates a second chart of the second version based on the chart snapshot.
[0105] After the client generates the chart snapshot, the client may send the chart snapshot to the server, so that the server generates the second chart of the second version based on the chart snapshot.
[0106] As mentioned above, there are two ways for the client to generate chart snapshots.
[0107] The first method is to generate the chart snapshot based on the source data indicated by the first data information and the second configuration information.
[0108] In this case, since the chart snapshot can reflect the source data itself, the server can directly generate the second chart based on the chart snapshot.
[0109] The second method is to generate the chart snapshot based on the data reference of the source data and the second configuration information.
[0110] In this case, the chart snapshot can reflect the data reference of the source data, so the server needs to generate the second chart based on the chart snapshot and the source data. In this case, the client can also send the data of the M categories in N aspects (i.e., source data) included in the first chart to the server, so that the server can establish the data reference of the data of the M categories in N aspects. In this way, after receiving the chart snapshot, the server can search for the source data based on the data reference in the chart snapshot, so as to generate the second chart.
[0111] After the server generates the second chart, the second chart can be saved. The server can also send an identifier of the second chart to the client, so that the client accesses the second chart stored on the server based on the identifier. For example, when a user triggers a viewing operation for a chart, the client sends the identifier to the server, and the server obtains the second chart based on the identifier and sends the second chart to the client. In one example, after the server sends the second chart to the client, the client can display the second chart.
[0112] It can be seen from the above description that, using this solution, the server generates the second chart based on the chart snapshot, without the need for the server to perceive and process the internal data structure of the first chart, thereby not occupying more resources of the server.
[0113] As mentioned above, if the electronic chart information of users who do not frequently use or continue to use the aforementioned products is updated, it will cause a waste of server resources. In view of this, in one example, in an embodiment of the present application, the chart information of users who are likely to use the new electronic chart function can be updated instead of using a full update method, thereby saving server resources.
[0114] As an example, if the user opens a page including the first chart, it means that the user has the possibility of using the new electronic chart function. Therefore, the above S101-S104 can be executed when the user opens the page including the first chart. In other words, in one example, the premise for the client to execute S101 is that the user opens the page including the first chart. Therefore, as an example, when the "obtaining the chart information of the first chart" in S101 is specifically implemented, the chart information of the first chart can be obtained in response to the user opening the page including the first chart.
[0115] As another example, if the user triggers an edit operation on the first chart, it means that the user has the possibility of using the new electronic chart function. Therefore, the above S101-S104 can be executed when the user triggers an edit operation on the first chart. In other words, in one example, the premise for the client to execute S101 is that the user triggers an edit operation on the first chart. Therefore, as an example, when the "obtaining the chart information of the first chart" in S101 is specifically implemented, the chart information of the first chart can be obtained in response to the edit operation triggered by the user on the first chart.
[0116] In one example, considering that the user may not be able to edit the first chart during the execution of S101-S104 above, in order to avoid the problem that the user triggers the editing operation but the client does not respond, the client can output a prompt message, which is used to prompt that the chart information is being updated. The embodiment of the present application does not specifically limit the prompt message, and the prompt message may include text and / or images, for example.
[0117] In addition, before executing the above S101-S104, the client first needs to determine whether the information of the chart corresponding to the current client has been updated. If it has been updated, there is no need to execute S101-S104. If it has not been updated, execute the above S101-S104.
[0118] Exemplary Devices
[0119] Based on the method provided in the above embodiment, the embodiment of the present application further provides a device, which is described below in conjunction with the accompanying drawings.
[0120] See also Figure 4 , which is a schematic diagram of the structure of a chart processing device provided by an embodiment of the present application. The device 400 may specifically include: a first acquisition unit 401, a second acquisition unit 402, a generation unit 403 and a first sending unit 404.
[0121] A first acquiring unit 401 is used to acquire chart information of a first chart, wherein the chart information includes first configuration information and first data information of the first chart, and the version of the first chart is a first version before updating;
[0122] A second obtaining unit 402 is used to obtain second configuration information based on the chart information and the updated second version of the chart configuration item;
[0123] A generating unit 403, configured to generate a chart snapshot based on the first data information and the second configuration information;
[0124] The first sending unit 404 is configured to send the chart snapshot to a server, so that the server generates a second chart of the second version based on the chart snapshot.
[0125] Optionally, the first data information indicates that the first chart includes data of M categories in N aspects, and the generating unit 403 is used to:
[0126] Based on the first data information, obtain data references corresponding to each category and each aspect in the first chart;
[0127] generating second data information based on the data reference;
[0128] The chart snapshot is generated based on the second data information and the second configuration information.
[0129] Optionally, the device further comprises:
[0130] The second sending unit is used to send the data of the M categories in N aspects included in the first chart to the server, so that the server establishes a data reference of the data of the M categories in N aspects.
[0131] Optionally, the first configuration information includes configuration information of each data in the first chart, and the second obtaining unit 402 is used to:
[0132] Determine at least one second configuration item in the chart configuration items of the second version that matches the configuration information of each data;
[0133] The second configuration information is obtained based on the configuration information of each data and at least one second configuration item respectively corresponding to each data.
[0134] Optionally, the device further comprises:
[0135] The first receiving unit is used to receive the identifier of the second chart sent by the server, and the identifier of the second chart is used by the client to access the second chart stored in the server.
[0136] Optionally, the first acquiring unit 401 is configured to:
[0137] In response to a user opening a page including the first chart, the chart information is acquired.
[0138] Optionally, the first acquiring unit 401 is configured to:
[0139] In response to an editing operation triggered by a user on the first chart, the chart information is acquired.
[0140] Optionally, the device further comprises:
[0141] A second receiving unit, configured to receive the second chart sent by the server;
[0142] A display unit is used to display the second chart.
[0143] Since the device 400 is a device corresponding to the method provided in the above method embodiment, the specific implementation of each unit of the device 400 is based on the same concept as the above method embodiment. Therefore, for the specific implementation of each unit of the device 400, please refer to the relevant description part of the above method embodiment, which will not be repeated here.
[0144] The embodiment of the present application also provides a device, the device comprising a processor and a memory;
[0145] The processor is used to execute the instructions stored in the memory, so that the device executes the method provided by the above method embodiment.
[0146] An embodiment of the present application provides a computer-readable storage medium, including instructions, wherein the instructions instruct a device to execute the method provided in the above method embodiment.
[0147] An embodiment of the present application provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the method described in the above method embodiment.
[0148] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0149] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
[0150] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A chart processing method, characterized in that: Applied to a client, the method comprises: Acquire chart information of a first chart, the chart information including first configuration information and first data information of the first chart, the version of the first chart being a first version before updating; Based on the chart information and the updated second version of the chart configuration item, obtaining second configuration information; Generate a chart snapshot based on the first data information and the second configuration information; Sending the chart snapshot to a server, so that the server generates a second chart of the second version based on the chart snapshot; The first data information indicates that the first chart includes data of M categories in N aspects, and generating a chart snapshot based on the first data information and the second configuration information includes: Based on the first data information, obtain data references corresponding to each category and each aspect in the first chart; generating second data information based on the data reference; The chart snapshot is generated based on the second data information and the second configuration information.
2. The method according to claim 1, characterized in that The method further comprises: The data of the M categories in N aspects included in the first chart are sent to the server, so that the server establishes a data reference of the data of the M categories in N aspects.
3. The method according to claim 1, characterized in that The first configuration information includes configuration information of each data in the first chart, and the obtaining of the second configuration information based on the chart information of the first chart and the updated chart configuration item of the second version includes: Determine at least one second configuration item in the chart configuration items of the second version that matches the configuration information of each data; The second configuration information is obtained based on the configuration information of each data and at least one second configuration item respectively corresponding to each data.
4. The method according to claim 1, characterized in that: The method further comprises: An identifier of the second chart sent by the server is received, where the identifier of the second chart is used by the client to access the second chart stored in the server.
5. The method according to claim 1, characterized in that The step of obtaining the chart information of the first chart includes: In response to a user opening a page including the first chart, the chart information is acquired.
6. The method according to claim 1, characterized in that The step of obtaining the chart information of the first chart includes: In response to an editing operation triggered by a user on the first chart, the chart information is acquired.
7. The method according to claim 1, characterized in that The method further comprises: receiving the second chart sent by the server; The second graph is displayed.
8. A chart processing device, characterized in that: Applied to a client, the device comprises: A first acquiring unit, configured to acquire chart information of a first chart, wherein the chart information includes first configuration information and first data information of the first chart, and the version of the first chart is a first version before updating; A second acquisition unit, configured to acquire second configuration information based on the chart information and the updated second version of the chart configuration item; A generating unit, configured to generate a chart snapshot based on the first data information and the second configuration information; A first sending unit, configured to send the chart snapshot to a server, so that the server generates a second chart of the second version based on the chart snapshot; The first data information indicates that the first chart includes data of M categories in N aspects, and the generating unit is specifically configured to: Based on the first data information, obtain data references corresponding to each category and each aspect in the first chart; generating second data information based on the data reference; The chart snapshot is generated based on the second data information and the second configuration information.
9. A device, characterized in that: The device comprises a processor and a memory; The processor is configured to execute instructions stored in the memory, so that the device performs the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The method comprises instructions for instructing a device to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Index maintenance based on a comparison of rebuild vs. update
CN104750773A
Web-based data visualization chart rendering optimization method and system
CN112069432A