CN110727692B - Method and device for setting linkage chart - Google Patents

Method and device for setting linkage chart Download PDF

Info

Publication number
CN110727692B
CN110727692B CN201911006519.XA CN201911006519A CN110727692B CN 110727692 B CN110727692 B CN 110727692B CN 201911006519 A CN201911006519 A CN 201911006519A CN 110727692 B CN110727692 B CN 110727692B
Authority
CN
China
Prior art keywords
content
chart
data
graph
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911006519.XA
Other languages
Chinese (zh)
Other versions
CN110727692A (en
Inventor
刘一鸣
张军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201911006519.XA priority Critical patent/CN110727692B/en
Publication of CN110727692A publication Critical patent/CN110727692A/en
Application granted granted Critical
Publication of CN110727692B publication Critical patent/CN110727692B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the disclosure discloses a method and a device for setting a linkage chart, and relates to the field of cloud computing. One embodiment of the method comprises: firstly, acquiring a triggered diagram and a diagram to be processed; then inquiring the data type corresponding to the graph to be processed, and searching the target second graph content which has a corresponding relation with the first graph content in the graph to be processed according to the data type; and finally, setting linkage links for the first chart content and the target second chart content which has a corresponding relation with the first chart content. The implementation mode realizes linkage between charts with different data types and improves linkage flexibility.

Description

Method and device for setting linkage chart
Technical Field
The embodiment of the disclosure relates to the technical field of data processing, in particular to a method and a device for setting a linkage chart.
Background
At present, various types of data are often analyzed through various charts in various intelligent systems. In order to reflect the correlation between data, linkage operation can be arranged between charts. The linkage operation means: a certain content of the graph is selected (for example, a mouse pointer points to the content area, the content is clicked or double-clicked by a mouse, and the like), and the content related to the content in other graphs is correspondingly displayed (for example, highlighted, and the like).
Disclosure of Invention
The embodiment of the disclosure provides a method and a device for setting a linkage chart.
In a first aspect, embodiments of the present disclosure provide a method for setting a linkage chart, the method including: acquiring a triggered diagram and a diagram to be processed, wherein at least one item of first diagram content of the triggered diagram has a corresponding relation with at least one item of second diagram content of the diagram to be processed; for first chart contents in at least one item of first chart contents contained in the triggered chart, inquiring a data type corresponding to the chart to be processed, and searching target second chart contents which have a corresponding relation with the first chart contents in the chart to be processed according to the data type; and in response to the target second chart content existing in the chart to be processed, setting a linkage link for the first chart content and the target second chart content, wherein the linkage link is used for synchronously displaying the target second chart content when the first chart content is selected.
In some embodiments, the searching for the target second chart content having a corresponding relationship with the first chart content in the chart to be processed according to the data type includes: inquiring a first data source corresponding to the triggered diagram and a second data source corresponding to the to-be-processed diagram, wherein the first data source is used for data retrieval of first diagram content of the triggered diagram, and the second data source is used for data retrieval of second diagram content of the to-be-processed diagram; and searching target second graph content according to target data corresponding to the first graph content in the second data source in response to the first data source and the second data source being the same data source.
In some embodiments, the searching for the target second chart content having a corresponding relationship with the first chart content in the chart to be processed according to the data type includes: and in response to that the first data source and the second data source are different data sources, searching target data corresponding to the first graph content in the second data source according to the data type of the second data source, and determining target second graph content corresponding to the target data.
In some embodiments, the searching, according to the data type of the second data source, for target data in the second data source corresponding to the first graph content and determining a target second graph content corresponding to the target data includes: querying a second data type of the second data source; in response to that the second data type is different from the data type of the first graph content, after the first graph content is converted into the second data type, searching target data corresponding to the first graph content of the second data type from the second data source; and marking the chart content corresponding to the target data in the chart to be processed as target second chart content.
In some embodiments, the searching, according to the data type of the second data source, for target data in the second data source corresponding to the first graph content and determining a target second graph content corresponding to the target data includes: and searching the target data corresponding to the first chart content from the second data source in response to the second data type being the same as the first data type of the first chart content.
In some embodiments, the chart to be processed includes a chart name, and the method further includes: and replacing the entry corresponding to the second chart content in the chart name by the first chart content in response to the first chart content being selected.
In a second aspect, embodiments of the present disclosure provide an apparatus for setting a linkage chart, the apparatus including: the chart acquisition unit is configured to acquire a triggered chart and a to-be-processed chart, wherein at least one item of first chart content of the triggered chart and at least one item of second chart content of the to-be-processed chart have a corresponding relation; the graph content searching unit is used for inquiring the data type corresponding to the graph to be processed for the first graph content in the at least one item of first graph content contained in the triggered graph, and searching a target second graph content which has a corresponding relation with the first graph content in the graph to be processed according to the data type; and an interlocking link setting unit, in response to the target second chart content existing in the chart to be processed, configured to set an interlocking link for synchronously displaying the target second chart content when the first chart content is selected for the first chart content and the target second chart content.
In some embodiments, the table content search unit includes: a data source query subunit configured to query a first data source corresponding to the triggered graph and a second data source corresponding to the graph to be processed, where the first data source is used for data retrieval of first graph content of the triggered graph, and the second data source is used for data retrieval of second graph content of the graph to be processed; and the first searching subunit, in response to that the first data source and the second data source are the same data source, is configured to search target second graph content according to target data in the second data source, which corresponds to the first graph content.
In some embodiments, the chart content search unit includes: and the second searching subunit, in response to that the first data source and the second data source are different data sources, is configured to search, according to the data type of the second data source, target data corresponding to the first graph content in the second data source, and determine target second graph content corresponding to the target data.
In some embodiments, the second lookup subunit includes: a data type searching module configured to query a second data type of the second data source; the first searching module is used for searching target data corresponding to the first chart content of the second data type from the second data source after converting the first chart content into the second data type in response to the fact that the second data type is different from the data type of the first chart content; and the second chart content marking module is configured to mark the chart content corresponding to the target data in the chart to be processed as target second chart content.
In some embodiments, the second lookup subunit includes: and the second searching module searches the target data corresponding to the first chart content from the second data source in response to the second data type being the same as the first data type of the first chart content.
In some embodiments, the chart to be processed includes a chart name, and the apparatus further includes: and an information replacing unit, in response to the first chart content being selected, configured to replace the entry corresponding to the second chart content in the chart name by the first chart content.
In a third aspect, an embodiment of the present disclosure provides an electronic device/terminal/server, including: one or more processors; a memory on which one or more programs are stored, the one or more programs, when executed by the one or more processors, causing the one or more processors to perform the method for setting a linkage chart of the first aspect.
In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method for setting a linkage chart of the first aspect described above.
According to the method and the device for setting the linkage chart, firstly, a triggered chart and a chart to be processed are obtained; then inquiring the data type corresponding to the graph to be processed, and searching target second graph content which has a corresponding relation with the first graph content in the graph to be processed according to the data type; and finally, setting linkage links for the first chart content and the target second chart content which has a corresponding relation with the first chart content. The linkage between charts of different data types can be realized, and the linkage flexibility is improved.
Drawings
Other features, objects and advantages of the present disclosure will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present disclosure may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for setting a linkage diagram according to the present disclosure;
FIG. 3 is a schematic diagram of one application scenario for a method for setting a linkage diagram according to the present disclosure;
FIG. 4 is a flow diagram of yet another embodiment of a method for setting a linkage diagram according to the present disclosure;
FIG. 5 is a schematic structural diagram of one embodiment of an apparatus for setting linkage diagrams in accordance with the present disclosure;
FIG. 6 is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 of a method for setting a linkage diagram or an apparatus for setting a linkage diagram to which embodiments of the present disclosure may be applied.
As shown in FIG. 1, system architecture 100 may include data storage devices 101, 102, a network 103, and a server 104. Network 103 is the medium used to provide communication links between data storage devices 101, 102 and server 104. Network 103 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
The data storage devices 101, 102 interact with a server 104 over a network 103 to receive or send messages or the like. The data storage devices 101, 102 may have installed thereon various data processing applications, such as data analysis applications, data statistics applications, graph building applications, data transfer applications, and the like.
The data storage devices 101, 102 may be hardware or software. When the data storage devices 101, 102 are hardware, they may be a variety of electronic devices having a display screen and supporting graphical displays, including but not limited to smart phones, tablets, laptop portable computers, desktop computers, and the like. When the data storage devices 101, 102 are software, they may be installed in the electronic devices listed above. It may be implemented as a plurality of software or software modules (for example, to provide distributed services), or as a single software or software module, and is not particularly limited herein.
The server 104 may be a server that provides various services, such as a server that sets linkages to triggered charts and pending charts on the data storage devices 101, 102. The server can analyze the data of the triggered diagram and the diagram to be processed so as to realize linkage operation between the triggered diagram and the diagram to be processed.
It should be noted that the method for setting the linkage chart provided by the embodiment of the present disclosure is generally executed by the server 104, and accordingly, the apparatus for setting the linkage chart is generally disposed in the server 104.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as a plurality of software or software modules (for example, to provide distributed services), or may be implemented as a single software or software module, and is not limited specifically herein.
It should be understood that the number of data storage devices, networks, and servers in FIG. 1 is illustrative only. There may be any number of data storage devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for setting a linkage diagram according to the present disclosure is shown. The method for setting the linkage chart comprises the following steps:
step 201, acquiring a triggered diagram and a diagram to be processed.
In this embodiment, an execution subject (for example, the server 104 shown in fig. 1) of the method for setting the linkage chart may acquire the triggered chart and the chart to be processed from the data storage devices 101 and 102 in a wired connection manner or a wireless connection manner. Wherein the triggered graph may be a previously triggered graph. The pending graphs may be graphs having data dependencies with the triggered graphs. Namely, after the triggered graph is triggered, the graph to be processed can synchronously display the corresponding data. It is noted that the wireless connection means may include, but is not limited to, a 3G/4G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a UWB (Ultra Wideband) connection, and other wireless connection means now known or developed in the future.
Currently, in order to implement a linkage operation, a plurality of existing charts correspond to the same data source. Therefore, the data of the linkage operation between the plurality of charts is almost the same, and the linkage operation between the charts corresponding to different data sources cannot be realized. Linkage operation between charts corresponding to a plurality of different data sources cannot be realized, and the flexibility of the linkage operation is not high. Wherein the data source may be a database containing various data. The image content in the chart can call the data in the data source by means of data link and the like.
In order to improve the flexibility of the linkage operation, the execution main body of the application firstly acquires a triggered diagram and a to-be-processed diagram. The at least one item of first chart content of the triggered chart and the at least one item of second chart content of the chart to be processed have a corresponding relationship (namely, the chart to be processed and the triggered chart have data correlation). The first diagram content and the second diagram content can be characters, graphs, curves and the like, and are determined according to actual needs. For example, the triggered graph may represent proportional information between multiple target data through a pie chart. The chart to be processed may represent a trend of each of the plurality of target data over time by a trend graph. The triggered graph and the pending graph may be from different data storage devices 101, 102 or may be from the same data storage device 101, 102.
Step 202, for a first chart content in at least one item of first chart content included in the triggered chart, querying a data type corresponding to the chart to be processed, and searching a target second chart content in the chart to be processed, which has a corresponding relationship with the first chart content, according to the data type.
In order to establish the linkage operation before the triggered diagram and the diagram to be processed, the executing body can analyze the content of each first diagram in the triggered diagram. The executing agent may first query the data type corresponding to the graph to be processed. The data type may be the data type of the second chart content included in the chart to be processed, or may be the data type of the chart to be processed. Then, the execution subject can search the target second chart content having a corresponding relation with the first chart content in the chart to be processed through the data type. The correspondence here may include various cases. In the first case: the first chart content and the second chart content are identical. In the second case: the first chart content and the second chart content correspond to the same data, but are represented in different forms (for example, the first chart content may be a pie chart, and the second chart content may be a trend chart, etc.). In a third case: the first chart content and the second chart content correspond to different data, but the first chart content and the second chart content can be derived from each other by data conversion or the like (for example, the second chart content can be obtained by statistically classifying the first chart content). According to the actual situation, the corresponding relationship may also be other types of relationships, and is not described in detail herein.
In some optional implementation manners of this embodiment, the searching for the target second chart content having a corresponding relationship with the first chart content in the to-be-processed chart according to the data type may include:
and firstly, inquiring a first data source corresponding to the triggered diagram and a second data source corresponding to the diagram to be processed.
In practice, besides the data correlation, the data sources corresponding to different charts may also have correlation. Here, the data sources may be various types of databases. For example, a plurality of data processes are performed on the basis of the first data source, and a second data source and a third data source are obtained respectively. And the second data source and the third data source may be different data types, and linkage between the graph corresponding to the second data source and the graph corresponding to the third data source cannot be directly established. For this purpose, the executing agent may query a first data source corresponding to the triggered graph and a second data source corresponding to the graph to be processed. The first data source is used for data retrieval of the first chart content of the triggered chart. The data retrieval mode can be realized by a data link between the first data source and the triggered chart and the like. The second data source is used for data retrieval of a second chart content of the chart to be processed.
And secondly, in response to the fact that the first data source and the second data source are the same data source, searching target second graph content according to target data corresponding to the first graph content in the second data source.
When the first data source and the second data source are the same, the data type of the first chart content of the triggered chart is the same as the data type of the second chart content of the chart to be processed. At this point, the executing entity may directly find the target data in the second data source that corresponds to the first chart content. And then searching target second diagram content in the diagram to be processed according to the data relation between the second data source and the diagram to be processed. That is, the target second chart content is a second chart content having a correspondence relationship with the first chart content among the at least one second chart content. The target data may be the same as the target second chart content or may be different from the target second chart content.
In some optional implementation manners of this embodiment, the searching for the target second graph content having a corresponding relationship with the first graph content in the graph to be processed according to the data type may further include: and in response to that the first data source and the second data source are different data sources, searching target data corresponding to the first graph content in the second data source according to the data type of the second data source, and determining target second graph content corresponding to the target data.
When the first data source and the second data source are different, the data type of the first data source and the data type of the second data source may also be different. When the data type of the first data source and the data type of the second data source are different, the execution subject may query the second data source for target data related to the first chart content according to the data type of the second data source. Then, the executing agent may search for a target second graph content corresponding to the target data in the graph to be processed according to the data relationship between the graph to be processed and the second data source.
In some optional implementation manners of this embodiment, the searching, according to the data type of the second data source, for target data in the second data source corresponding to the first graph content, and determining a target second graph content corresponding to the target data, may include the following steps:
and the first step, inquiring the second data type of the second data source.
The execution principal may first query the second data type of the second data source.
And secondly, in response to the fact that the second data type is different from the data type of the first graph content, after the first graph content is converted into the second data type, target data corresponding to the first graph content of the second data type is searched from the second data source.
When the second data type is different from the data type of the first chart content, the data type of the first data source and the second data type of the second data source may be considered to be different. At this time, the execution subject may convert the first chart content from the first data type to the second data type. Thereafter, the executing agent may look up target data in the second data source that corresponds to the first chart content of the second data type.
And thirdly, marking the graph content corresponding to the target data in the graph to be processed as target second graph content.
After determining the target data, the executing entity may mark a chart content corresponding to the target data in the to-be-processed chart as a target second chart content.
In some optional implementation manners of this embodiment, the searching, according to the data type of the second data source, for target data in the second data source, which corresponds to the first graph content, and determining target second graph content corresponding to the target data may include: and searching the target data corresponding to the first chart content from the second data source in response to the second data type being the same as the first data type of the first chart content.
Although the first data source and the second data source are different, the data types of the first data source and the second data source may be the same. When the data types of the first data source and the second data source are the same, the execution subject may directly search the second data source for the target data corresponding to the first chart content.
Step 203, in response to the target second chart content existing in the chart to be processed, setting a linkage link for the first chart content and the target second chart content.
When target second chart content having a corresponding relationship with the first chart content exists in the chart to be processed, the execution main body may set a linkage link for the first chart content and the target second chart content. Wherein the linkage link is configured to synchronously display the target second chart content when the first chart content is selected.
Therefore, linkage operation before the triggered diagram and the diagram to be processed corresponding to different data sources is realized. According to the method of the present application, the linkage between one triggered graph and a plurality of graphs to be processed, or the linkage between a plurality of graphs can be further derived, and details are not repeated here.
In some optional implementations of this embodiment, the method may further include: and setting a switch for the linkage link.
After the linkage link is set, the execution main body can also set a switch for the linkage link. The switch can be realized by a key of a chart display page or a radio frame and the like. When the chart is required to be displayed in a linkage manner, a user can select to turn on the switch; when the chart linkage display is not needed, the user can select to close the switch, and the flexibility of the chart linkage is improved.
With continued reference to fig. 3, fig. 3 is a schematic view of an application scenario of the method for setting a linkage diagram according to the present embodiment. In the application scenario of fig. 3, the server 104 obtains the triggered graph (graph 1) and the pending graph (graph 2) with the graph contents having a corresponding relationship from the data storage device 101 and the data storage device 102, respectively. Then, the server 104 may query the data type corresponding to the graph to be processed, and search for a second graph content having a corresponding relationship with the first graph content in the graph to be processed according to the data type. And finally, setting linkage links for the first chart content and the second chart content with corresponding relation with the first chart content.
The method provided by the embodiment of the disclosure firstly acquires a triggered diagram and a diagram to be processed; then inquiring the data type corresponding to the graph to be processed, and searching target second graph content which has a corresponding relation with the first graph content in the graph to be processed according to the data type; and finally, setting linkage links for the first chart content and the target second chart content which has a corresponding relation with the first chart content. The linkage between charts of different data types can be realized, and the linkage flexibility is improved.
With further reference to FIG. 4, a flow 400 of yet another embodiment of a method for setting a linkage diagram is illustrated. The process 400 of the method for setting a linkage diagram includes the following steps:
step 201, acquiring a triggered diagram and a diagram to be processed.
The content of step 401 is the same as that of step 201, and is not described in detail here.
Step 402, for a first chart content in at least one item of first chart content included in the triggered chart, querying a data type corresponding to the chart to be processed, and searching a target second chart content in the chart to be processed, which has a corresponding relationship with the first chart content, according to the data type.
The content of step 402 is the same as that of step 202, and is not described in detail here.
And 403, in response to the target second chart content existing in the chart to be processed, setting linkage links for the first chart content and the target second chart content.
The contents of step 403 and step 203 are the same, and are not described in detail here.
Step 404, in response to the selection of the first chart content, replacing the vocabulary entry corresponding to the second chart content in the chart name by the first chart content.
In general, the chart to be processed may include a chart name. When the first chart content in the triggered chart is selected, in addition to linkage display of the second chart content corresponding to the first chart content in the chart to be processed, the entry corresponding to the second chart content in the chart name can be displayed according to the first chart content. For example, the first chart content in the triggered chart is: "Xdi", the chart name of the chart to be processed is: "growth tendency map of each place". When the first chart content "X places" is selected, the executing body may replace "places" in the chart name "growth tendency charts for places" with "X places". So that the name of the graph after the replacement of the vocabulary entry is 'the growth trend graph of the place X'. The matching display of the chart name and the second chart content is realized, and the display effect of chart linkage is improved.
With further reference to fig. 5, as an implementation of the methods illustrated in the above figures, the present disclosure provides an embodiment of an apparatus for setting linkage diagrams, which corresponds to the method embodiment illustrated in fig. 2, and which may be applied in various electronic devices in particular.
As shown in fig. 5, the apparatus 500 for setting a linkage chart of the present embodiment may include: a chart acquisition unit 501, a chart content search unit 502, and a linkage link setting unit 503. The graph obtaining unit 501 is configured to obtain a triggered graph and a graph to be processed, where at least one item of first graph content of the triggered graph has a corresponding relationship with at least one item of second graph content of the graph to be processed; the graph content searching unit 502 is configured to query, for a first graph content in at least one item of first graph content included in the triggered graph, a data type corresponding to the graph to be processed, and search, according to the data type, a target second graph content in the graph to be processed, which has a corresponding relationship with the first graph content; the linkage link setting unit 503 is configured to set a linkage link for synchronously displaying the target second chart content when the first chart content is selected, for the first chart content and the target second chart content, in response to the target second chart content existing in the chart to be processed.
In some optional implementations of this embodiment, the chart content searching unit 502 may include: a data source query subunit (not shown) and a first lookup subunit (not shown). The data source query subunit is configured to query a first data source corresponding to the triggered graph and a second data source corresponding to the graph to be processed, wherein the first data source is used for data query of first graph content of the triggered graph, and the second data source is used for data query of second graph content of the graph to be processed; and the first searching subunit is used for responding to the condition that the first data source and the second data source are the same data source, and searching target second chart content according to target data corresponding to the first chart content in the second data source.
In some optional implementations of this embodiment, the chart content searching unit 502 may include: and a second searching subunit (not shown in the figure), in response to that the first data source and the second data source are different data sources, configured to search, according to a data type of the second data source, target data in the second data source, which corresponds to the first graph content, and determine target second graph content corresponding to the target data.
In some optional implementation manners of this embodiment, the second searching subunit may include: a data type lookup module (not shown), a first lookup module (not shown), and a second chart content marking module (not shown). Wherein the data type lookup module is configured to query a second data type of the second data source; the first searching module is used for searching target data corresponding to the first chart content of the second data type from the second data source after converting the first chart content into the second data type in response to the fact that the second data type is different from the data type of the first chart content; the second chart content marking module is configured to mark the chart content corresponding to the target data in the chart to be processed as target second chart content.
In some optional implementation manners of this embodiment, the second searching subunit may include: and a second searching module (not shown in the figure) for searching the target data corresponding to the first chart content from the second data source in response to the second data type being the same as the first data type of the first chart content.
In some optional implementations of the embodiment, the to-be-processed chart includes a chart name, and the apparatus 500 for setting a linkage chart may further include: an information replacing unit (not shown in the figure) is configured to replace the entry corresponding to the second chart content in the chart name by the first chart content in response to the first chart content being selected.
The present embodiment also provides an electronic device, including: one or more processors; a memory having one or more programs stored thereon, which when executed by the one or more processors, cause the one or more processors to perform the method for setting a linkage chart described above.
The present embodiment also provides a computer-readable medium on which a computer program is stored, which when executed by a processor implements the method for setting a linkage diagram described above.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use with an electronic device (e.g., server 104 of FIG. 1) to implement an embodiment of the present disclosure. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, or the like; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may be alternatively implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, the processes described above with reference to the flow diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium mentioned above in the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a triggered diagram and a to-be-processed diagram, wherein at least one item of first diagram content of the triggered diagram has a corresponding relation with at least one item of second diagram content of the to-be-processed diagram; for the first chart content in at least one item of first chart content contained in the triggered chart, inquiring the data type corresponding to the chart to be processed, and searching a target second chart content which has a corresponding relation with the first chart content in the chart to be processed according to the data type; and in response to the target second chart content existing in the chart to be processed, setting a linkage link for the first chart content and the target second chart content, wherein the linkage link is used for synchronously displaying the target second chart content when the first chart content is selected.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The described units may also be provided in a processor, which may be described as: a processor includes a chart acquisition unit, a chart content search unit, and a linkage link setting unit. Where the names of the cells do not in some cases constitute a limitation on the cells themselves, for example, the linkage link setting cell may also be described as "a cell for establishing a linkage link between charts".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the spirit of the invention. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (10)

1. A method for setting a linkage chart, comprising:
acquiring a triggered diagram and a diagram to be processed, wherein at least one item of first diagram content of the triggered diagram has a corresponding relation with at least one item of second diagram content of the diagram to be processed;
for a first chart content in at least one item of first chart content contained in the triggered chart, inquiring the data type of a second chart content contained in the chart to be processed, and searching a target second chart content which has a corresponding relation with the first chart content in the chart to be processed according to the data type, wherein the first chart content and the second chart content can be deduced mutually;
in response to the target second chart content existing in the chart to be processed, setting a linkage link for the first chart content and the target second chart content, wherein the linkage link is used for synchronously displaying the target second chart content when the first chart content is selected; wherein the content of the first and second substances,
the searching for the target second chart content having a corresponding relationship with the first chart content in the chart to be processed according to the data type includes:
inquiring a first data source corresponding to the triggered diagram and a second data source corresponding to the to-be-processed diagram, wherein the first data source is used for data retrieval of first diagram content of the triggered diagram, and the second data source is used for data retrieval of second diagram content of the to-be-processed diagram;
responding to the first data source and the second data source which are different data sources, and inquiring a second data type of the second data source;
in response to that the second data type is different from the data type of the first graph content, after the first graph content is converted from the first data type to the second data type, target data corresponding to the first graph content of the second data type is searched from the second data source;
and marking the chart content corresponding to the target data in the chart to be processed as target second chart content.
2. The method according to claim 1, wherein the searching for the target second chart content having a corresponding relationship with the first chart content in the chart to be processed according to the data type comprises:
and searching target second chart content according to target data corresponding to the first chart content in the second data source in response to the first data source and the second data source being the same data source.
3. The method of claim 1, further comprising:
in response to the second data type being the same as the first data type of the first graph content, target data corresponding to the first graph content is looked up from the second data source.
4. The method of any of claims 1 to 3, wherein the chart to be processed comprises a chart name, and
the method further comprises the following steps:
in response to a first chart content being selected, replacing terms in the chart name corresponding to the second chart content with the first chart content.
5. An apparatus for setting a linkage chart, comprising:
the graph obtaining unit is configured to obtain a triggered graph and a graph to be processed, wherein at least one first graph content of the triggered graph and at least one second graph content of the graph to be processed have a corresponding relation;
the graph content searching unit is used for inquiring the data type corresponding to the graph to be processed for the first graph content in at least one item of first graph content contained in the triggered graph, and searching a target second graph content which has a corresponding relation with the first graph content in the graph to be processed according to the data type, wherein the first graph content and the second graph content can be deduced mutually;
the linkage link setting unit is used for responding to the existence of target second chart content in the chart to be processed and setting linkage links for the first chart content and the target second chart content, and the linkage links are used for synchronously displaying the target second chart content when the first chart content is selected; wherein the content of the first and second substances,
the chart content search unit includes:
a data source query subunit configured to query a first data source corresponding to the triggered graph and a second data source corresponding to the graph to be processed, where the first data source is used for data retrieval of first graph content of the triggered graph, and the second data source is used for data retrieval of second graph content of the graph to be processed;
the second searching subunit, in response to the first data source and the second data source being different data sources, is configured to search, according to a data type of the second data source, target data corresponding to the first graph content in the second data source, and determine target second graph content corresponding to the target data; wherein the second lookup subunit includes:
a data type lookup module configured to query a second data type of the second data source;
the first searching module is used for searching target data corresponding to the first chart content of the second data type from the second data source after converting the first chart content into the second data type in response to the second data type being different from the data type of the first chart content;
and the second chart content marking module is configured to mark the chart content corresponding to the target data in the chart to be processed as target second chart content.
6. The apparatus of claim 5, wherein the chart content lookup unit further comprises:
and the first searching subunit is used for responding to the condition that the first data source and the second data source are the same data source, and searching target second chart content according to target data corresponding to the first chart content in the second data source.
7. The apparatus of claim 5, wherein the second lookup subunit further comprises:
and the second searching module searches the target data corresponding to the first chart content from the second data source in response to the second data type being the same as the first data type of the first chart content.
8. The apparatus of any of claims 5 to 7, wherein the chart to be processed comprises a chart name, and
the device further comprises:
an information replacing unit configured to replace a term corresponding to the second chart content in the chart name by the first chart content in response to the first chart content being selected.
9. An electronic device, comprising:
one or more processors;
a memory having one or more programs stored thereon,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-4.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 4.
CN201911006519.XA 2019-10-22 2019-10-22 Method and device for setting linkage chart Active CN110727692B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911006519.XA CN110727692B (en) 2019-10-22 2019-10-22 Method and device for setting linkage chart

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911006519.XA CN110727692B (en) 2019-10-22 2019-10-22 Method and device for setting linkage chart

Publications (2)

Publication Number Publication Date
CN110727692A CN110727692A (en) 2020-01-24
CN110727692B true CN110727692B (en) 2022-12-23

Family

ID=69222718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911006519.XA Active CN110727692B (en) 2019-10-22 2019-10-22 Method and device for setting linkage chart

Country Status (1)

Country Link
CN (1) CN110727692B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112596650B (en) * 2020-12-25 2022-12-20 维沃移动通信有限公司 Chart processing method and device and electronic equipment
CN114036913A (en) * 2021-10-20 2022-02-11 北京达佳互联信息技术有限公司 Chart configuration and display method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503202A (en) * 2016-10-26 2017-03-15 广州市勤思网络科技有限公司 The Dynamic Configuration that a kind of data drawing list linkage shows
CN106649351A (en) * 2015-10-30 2017-05-10 北京国双科技有限公司 Chart display method and apparatus
WO2018192487A1 (en) * 2017-04-21 2018-10-25 北京京东尚科信息技术有限公司 Method and apparatus for controlling smart device linkage
CN110007989A (en) * 2018-12-13 2019-07-12 国网信通亿力科技有限责任公司 Data visualization platform system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942299B (en) * 2014-04-15 2017-08-29 湖南中烟工业有限责任公司 A kind of data linkage exhibiting device and methods of exhibiting
US10025980B2 (en) * 2015-12-29 2018-07-17 International Business Machines Corporation Assisting people with understanding charts
CN107958029A (en) * 2017-11-17 2018-04-24 网易乐得科技有限公司 Link methods of exhibiting, medium, device and computing device
CN108153885B (en) * 2017-12-27 2020-09-04 东软集团股份有限公司 Chart linkage method and device, storage medium and electronic equipment
CN109977380A (en) * 2019-01-08 2019-07-05 平安科技(深圳)有限公司 Chart generation method, device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649351A (en) * 2015-10-30 2017-05-10 北京国双科技有限公司 Chart display method and apparatus
CN106503202A (en) * 2016-10-26 2017-03-15 广州市勤思网络科技有限公司 The Dynamic Configuration that a kind of data drawing list linkage shows
WO2018192487A1 (en) * 2017-04-21 2018-10-25 北京京东尚科信息技术有限公司 Method and apparatus for controlling smart device linkage
CN110007989A (en) * 2018-12-13 2019-07-12 国网信通亿力科技有限责任公司 Data visualization platform system

Also Published As

Publication number Publication date
CN110727692A (en) 2020-01-24

Similar Documents

Publication Publication Date Title
CN111443909B (en) Method and device for generating page
CN112765152B (en) Method and apparatus for merging data tables
CN109766127B (en) Method for updating application version information
CN115757400B (en) Data table processing method, device, electronic equipment and computer readable medium
CN111950857A (en) Index system management method and device based on service indexes and electronic equipment
CN110727692B (en) Method and device for setting linkage chart
CN111694629A (en) Information display method and device and electronic equipment
CN111241137A (en) Data processing method and device, electronic equipment and storage medium
KR102545045B1 (en) Method and apparatus for generating information
US20210279109A1 (en) Method and apparatus for acquiring information
CN111488386B (en) Data query method and device
CN109144864B (en) Method and device for testing window
CN112507676B (en) Method and device for generating energy report, electronic equipment and computer readable medium
US11315161B2 (en) Method, medium, and system for generating information
CN111338621B (en) Method, apparatus, electronic device and computer readable medium for displaying data
CN112685075A (en) Gray scale distribution method and device, electronic equipment and computer readable medium
CN111835917A (en) Method, device and equipment for showing activity range and computer readable medium
CN111581246A (en) Method, device, electronic equipment and computer readable medium for generating data
CN112464039B (en) Tree-structured data display method and device, electronic equipment and medium
CN111625692B (en) Feature extraction method, device, electronic equipment and computer readable medium
CN112883410B (en) Method and device for displaying information
CN114040014B (en) Content pushing method, device, electronic equipment and computer readable storage medium
CN113656506B (en) Electronic specification acquisition method and device and readable medium
CN114513548B (en) Directional call information processing method and device
CN114647685B (en) Data processing method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant