CN108804403B - Method and device for realizing service chart - Google Patents

Method and device for realizing service chart Download PDF

Info

Publication number
CN108804403B
CN108804403B CN201710297158.3A CN201710297158A CN108804403B CN 108804403 B CN108804403 B CN 108804403B CN 201710297158 A CN201710297158 A CN 201710297158A CN 108804403 B CN108804403 B CN 108804403B
Authority
CN
China
Prior art keywords
service
data
configuration data
chart
identifier
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
CN201710297158.3A
Other languages
Chinese (zh)
Other versions
CN108804403A (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.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Advanced New Technologies 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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201710297158.3A priority Critical patent/CN108804403B/en
Publication of CN108804403A publication Critical patent/CN108804403A/en
Application granted granted Critical
Publication of CN108804403B publication Critical patent/CN108804403B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides a method for realizing a service chart, which is applied to a client and comprises the following steps: sending an identifier of a service chart to be displayed to a server; receiving service data information and configuration data identification from a server, wherein the service data information and the configuration data identification are determined by the server according to the identification of the service chart; and acquiring configuration data according to the configuration data identifier, and displaying the service chart based on the configuration data and the service data information. According to the technical scheme, the service data source information or the configuration data identification corresponding to the identification of the service chart is changed at the server side, so that the display mode of the service chart or the displayed data can be changed without upgrading the client side, the chart display can be quickly matched with the change of the service, and the stability of the client side cannot be influenced due to frequent upgrading of the modified chart display.

Description

Method and device for realizing service chart
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a method and an apparatus for implementing a service graph.
Background
With the development of network technology and the improvement of the performance of user terminals, more and more data are displayed in a form of charts in client interfaces on the terminals, such as a line graph, a bar graph, a stacking graph, a pie graph, a radar chart and the like. A request response mode is generally used to display a graph between a client of a certain network service provider installed in a terminal and the client of the network service provider.
In the prior art, after receiving a request from a client, a server issues data of a service variable to be displayed to the client, and the client displays the issued data to a user according to preset display parameters (such as style, scale, and the like) for displaying the service variable. In this implementation, how a certain service variable is displayed is fixed on the client, and if the display parameter of the service variable is to be modified or it is desired to display a new service variable using the existing display parameter, the code of the client needs to be modified to upgrade the client. Therefore, the updating speed of the service parameter display is limited by the development and debugging speed of the client, the requirement of service change is not met timely, and the running stability of the client is possibly influenced by frequent upgrading.
Disclosure of Invention
In view of this, the present application provides a method for implementing a service graph, which is applied to a client, and includes:
sending an identifier of a service chart to be displayed to a server;
receiving service data information and configuration data identification from a server, wherein the service data information and the configuration data identification are determined by the server according to the identification of the service chart;
and acquiring configuration data according to the configuration data identifier, and displaying the service chart based on the configuration data and the service data information.
The application provides a method for implementing a service diagram, which is applied to a server, wherein the server maintains a corresponding relationship between an identifier of the service diagram and service data source information and a configuration data identifier of the service diagram, and the method comprises the following steps:
receiving an identifier of a service chart to be displayed, which is sent by a client;
determining service data information according to the service data source information corresponding to the service chart identifier;
and returning service data information and a configuration data identifier corresponding to the service chart identifier to the client, so that the client can display the service chart based on the service data information and the configuration data information.
The application also provides a device for implementing the service chart, which is applied to the client and comprises:
the service chart identifier sending unit is used for sending the identifier of the service chart to be displayed to the server;
the chart data information receiving unit is used for receiving service data information and configuration data identification from the server, and the service data information and the configuration data identification are determined by the server according to the identification of the service chart;
and the service chart display unit is used for acquiring configuration data according to the configuration data identifier and displaying the service chart based on the configuration data and the service data information.
The application provides a device for realizing a service diagram, which is applied to a server, wherein the server maintains a corresponding relation between an identifier of the service diagram and service data source information and a configuration data identifier of the service diagram, and the device comprises:
the service chart identification receiving unit is used for receiving an identification of a service chart to be displayed, which is sent by the client;
a service data information determining unit, configured to determine service data information according to the service data source information corresponding to the service graph identifier;
and the chart data information sending unit is used for returning the service data information and the configuration data identifier corresponding to the service chart identifier to the client, so that the client can display the service chart based on the service data information and the configuration data information.
According to the technical scheme, in the embodiment of the application, the corresponding relation between the identification of the business diagram and the business data source information and the configuration data identification is maintained at the server, the client uploads the identification of the business diagram to be displayed to the server, the configuration data identification and the business data information corresponding to the business diagram identification are obtained from the server, and the business diagram is displayed according to the configuration data identification and the business data identification, so that the business data source information or the configuration data identification corresponding to the identification of the business diagram is changed at the server, the display mode of the business diagram or the displayed data can be changed without upgrading the client, the diagram can be displayed to quickly match the change of the business, and the stability of the client cannot be influenced by frequent upgrading of the diagram display.
Drawings
Fig. 1 is a flowchart of an implementation method of a service graph applied to a client in an embodiment of the present application;
fig. 2 is a flowchart of an implementation method of a service graph applied to a server in an embodiment of the present application;
FIG. 3 is a schematic diagram of a software structure of a client and a server in an application example of the present application;
FIG. 4 is a hardware block diagram of a device in which a client or a server is located according to the present application;
FIG. 5 is a logic structure diagram of an implementation apparatus for a service graph applied to a client in an embodiment of the present application;
fig. 6 is a logic structure diagram of an implementation apparatus for a service graph applied to a client in an embodiment of the present application.
Detailed Description
The embodiment of the application provides a new method for realizing a business diagram, all data required by a client for displaying the business diagram are divided into business data and configuration data, and the corresponding relation between a business diagram identifier and business data source information and a configuration data identifier is maintained at a server; the server side returns corresponding configuration data identification and service data information to the client side according to the service chart identification to be displayed uploaded by the client side, and the client side obtains configuration data and service data according to the configuration data identification and the service data information to display the service chart; therefore, the service parameter displayed in the service chart and/or the mode of displaying the service parameter can be modified by modifying the service data source information and/or the configuration data identifier corresponding to the service chart identifier at the server side, so that the updating of the display is decoupled from the realization of the client side, and the problems in the prior art are solved.
In the embodiment of the application, the client and the server form a chart service system. The client runs on equipment on the user side, such as mobile phones, tablet computers, PCs (Personal computers), notebooks and other equipment; the server runs on a device on the network side, which may be a PC, a server, or the like, or two or more devices sharing different responsibilities cooperate with each other to implement each function of the server in the embodiment of the present application.
In the embodiment of the application, for all data required by displaying the service graph on the client, which part of the data is used as configuration data can be determined according to the specific implementation of the actual application scene, and the rest part of the data is used as service data. Data which can be reused for displaying a plurality of service charts in an actual application scene can be used as configuration data, and partial data which may be different due to the service charts can be used as service data. The business data generally includes values of business variables to be displayed in a business graph, and portions of displayed explanatory texts that vary depending on the business variables; configuration data typically includes data related to how business variables are displayed, such as the type of chart (line chart, bar chart, pile chart, pie chart, radar chart, etc.), style data for that type, the portion of the displayed caption that is common to multiple business variables, and so forth. It should be noted that the service data may also include data related to how to display the service variable, for example, when some display parameters may be different due to different displayed service variables, the part of the display parameters may be used as the service data.
In a graph service system formed by a client and a server, each business graph displayed by the client by adopting the method of the embodiment of the application has a unique identifier, and each configuration data also has a unique identifier. The service diagram identifier may be any information that can represent the service diagram and distinguish the service diagram from other service diagrams in the diagram service system, and the embodiment of the present application is not limited; the same is true of the configuration data identification.
In the embodiment of the application, the server maintains the corresponding relation between the identifier of the service chart and the service data source information of the service chart, and the configuration data identifier. The service data source information may be a call interface provided by the service server, a predetermined network location for storing the service data, and the like, and is not limited as long as the service end or the client can obtain the service data to be displayed from the designated service data source after obtaining the service data source information.
In the embodiment of the present application, a flow of the service graph application method applied to the client is shown in fig. 1, and a flow of the service graph application method applied to the server is shown in fig. 2.
At the client, step 110, an identifier of the service graph to be displayed is sent to the server.
At the server, step 210, an identifier of the service graph to be displayed sent by the client is received.
When the client needs to display the service chart in the operation process, a chart data request is sent to the server, and the chart data request carries the identifier of the service chart to be displayed.
At the server, step 220, the service data information is determined according to the service data source information corresponding to the service graph identifier.
After receiving the chart data request, the server side extracts the service chart identifier therein, searches the corresponding relationship maintained by the server side, and obtains the service data source information and the configuration data identifier corresponding to the service chart identifier.
In one implementation, the service end may obtain the service data from the service data source specified by the service data source information, and return the obtained service data to the client as the service data information.
In another implementation manner, the service end may return the service data source information to the client as the service data information, and the client acquires the service data from the service data source specified by the service data source information.
At the server, step 230, the service data information and the configuration data identifier corresponding to the service diagram identifier are returned to the client, so that the client can display the service diagram based on the service data information and the configuration data information.
At the client, step 120, service data information and configuration data identification are received from the server, and the service data information and configuration data identification are determined by the server according to the identification of the service chart.
And the server encapsulates the service data information and the configuration data identifier corresponding to the service chart identifier in the chart data response, and returns the chart data response to the client.
At the client, step 130, the configuration data is obtained according to the configuration data identifier, and the service graph is displayed based on the configuration data and the service data information.
In one implementation, all available configuration data may be saved at the client. After extracting the configuration data identifier from the chart data response, the client searches the configuration data with the identifier from the stored plurality of configuration data. In this implementation, if new configuration data is to be added or existing configuration data is to be changed, the client needs to be upgraded.
In another implementation, the client holds several pieces of configuration data locally. After receiving the chart data response, searching in the configuration data stored locally according to the configuration data identifier, and reading the configuration data if the configuration data with the identifier exists. If the configuration data with the identification does not exist, sending a configuration data request to the server, wherein the configuration data request carries the identification of the configuration data; the server side returns the configuration data with the identification to the client side; and after receiving the configuration data, the client stores the received configuration data and the corresponding configuration data identifier locally. In the implementation mode, the client can pre-store some configuration data during installation, when new configuration data needs to be added or existing configuration data needs to be changed, the server can give a new identifier to the new configuration data or the modified configuration data, and the client can automatically download the corresponding configuration data from the server, so that the automatic update of the configuration data can be realized without upgrading the client. In addition, a life cycle can be set for the stored configuration data at the client, and when the time from the last use of certain configuration data exceeds the life cycle, the configuration data is deleted, so that the old configuration data is cleared in time.
In the implementation mode of using the service data source information as the service data information, after receiving the chart data response, the client acquires the service data of the service chart from the service data source specified by the service data source information. In the implementation mode using the service data as the service data information, the client directly extracts the service data from the chart data response.
And after the service data and the configuration data are obtained, the client displays a service chart by adopting the service data and the configuration data. Specifically, the client combines the service data and the configuration data to obtain all data of the service chart, and displays the service chart according to the combined data. The specific manner of combining the service data and the configuration data and the specific manner of displaying the service diagram may be determined according to the dividing manner of the service data and the configuration data in the actual application scenario, the software and hardware platform operated by the client, the programming implementation of diagram display, and the like, and the embodiment of the present application is not limited. In one example, the client may generate a graph object using the service data and the configuration data, and display the service graph according to the generated graph object; generating the chart object and displaying the service chart according to the chart object can be realized by referring to the prior art, and are not described again.
In some application scenarios, some service charts need to be displayed with different configuration data under different situations. For example, different color displays may be used for different time periods, different styles may be used for different groups of users, etc. In these application scenarios, the situations using different configuration data may be described by using predetermined applicable conditions, so that each configuration data that may be used by the service graph has its own predetermined applicable condition, and the predetermined applicable conditions of the different configuration data are mutually exclusive (i.e. any determined situation can only satisfy the predetermined applicable condition of one configuration data). In the corresponding relation between the service chart identifier and the service data source information and the configuration data identifier maintained by the server, each configuration data identifier which is possibly used and corresponds to the service chart identifier and the preset applicable condition of each configuration data identifier are saved. After the server receives the chart data request of the client, if the service chart identifier in the chart data request in the maintained corresponding relation corresponds to two or more configuration data identifiers, the current situation meets the preset applicable condition of which configuration data identifier, and the server returns which configuration data identifier to the client.
In some services, a service graph may be used to display both one service variable and two or more service variables simultaneously. At this time, the service end can enable the service data obtained by the client end to include one to a plurality of values of the service variable through the service data information, and the client end adopts the configuration data of the service chart to respectively display the service variable on the service chart according to the value of each service variable. Therefore, one to a plurality of business variables can be displayed on the same business chart according to the business data information returned by the server. The realization can increase and delete the business variable displayed in the business chart at any time by modifying the business data source information in the corresponding relation of the service end when the business scene changes.
Therefore, in the embodiment of the application, the configuration data can be reused for displaying a plurality of service data by separating the service data from the configuration data, so that the development workload is reduced; the service data information and the configuration data identification of the service chart are issued by the server, so that the service data to be displayed and/or the configuration data to be adopted of the service chart can be changed at any time by modifying the corresponding relation of the service chart identification at the server without changing the implementation of the client, and the client is prevented from being upgraded; therefore, the chart display can be timely and quickly matched with the service change, and the stability of the client cannot be influenced by frequent upgrading of the modified chart display.
In an application example of the application, a network service provider runs a server terminal ChartKitServer of a graph service system on a server thereof, and service terminals of a plurality of business systems; a user installs an App (application program) of the network service provider on a terminal of the user, wherein the App comprises a client terminal ChartKit of a graph service system; the displaying of the business chart in the App is completed by the cooperation of ChartKit and ChartKitServer.
The structures of ChartKit and ChartKitServer are shown in FIG. 3. The ChartKit includes two sub-modules, ChartEngine and DataEngine, wherein: the ChartEngine submodule is responsible for drawing a service chart, and comprises generation of information such as legends, explanatory documents and the like; the DataEngine sub-module is responsible for acquiring business data, acquiring and maintaining configuration data and synthesizing the business data and the configuration data.
The ChartKitServer comprises an operation support submodule, a data release submodule and a configuration management submodule, wherein: the operation support submodule is responsible for maintaining a corresponding relation table of a service chart identifier and a service system interface (service data source information) and a configuration data identifier; the data publishing sub-module is responsible for acquiring the service data and sending the service data and the configuration data identifier to the client for displaying the service chart; the configuration management submodule is responsible for creating, publishing and maintaining configuration data of the business chart.
When a developer needs to display a service graph by using new configuration data in the App, the developer needs to register the new configuration data to the ChartKitServer. Specifically, new configuration data is added in a configuration management submodule, and a developer designates or the configuration management submodule generates a unique identifier of the new configuration data; and then, adding a new row record using the new configuration data identifier in a corresponding relation table maintained by the operation support submodule, or changing the configuration data identifier in the existing row record into the identifier of the new configuration data. The developer may also modify the display of the business graph by modifying existing configuration data (the configuration data identity is unchanged) in the configuration management submodule. That is, new configuration data may be added or existing configuration data may be changed without upgrading the App. The developer can also change the service parameters to be displayed and/or the configuration data to be adopted in a certain service diagram by modifying the corresponding relation table in the operation support submodule without upgrading the App.
When a certain service chart is to be displayed in App, the identifier of the service chart (assuming that the identifier of the service chart is ChartID-a) is transmitted into ChartKit. The DataEngine submodule of the ChartKit sends a chart data request to the data issuing submodule of the ChartKitServer, and the chart data request carries ChartID-A.
And the data issuing submodule of the ChartKitServer extracts ChartID-A from the chart data request, and initiates query to the operation support submodule by using the ChartID-A. And the operation support submodule searches a service system interface (set as an interface t of a service system m) corresponding to the ChartID-A and a configuration data identifier (set as Config-1) in the maintained corresponding relation table, and transmits the configuration data identifier to the data release submodule.
And the data issuing submodule calls an interface t of the service system m to obtain service data to be displayed in the ChartID-A. The data publishing sub-module encapsulates the service data (a kind of service data information) and the configuration data identifier Config-1 in the chart data response, and sends the chart data response to the DataEngine sub-module of the ChartKit.
The DataEngine sub-module of ChartKit extracts service data and a configuration data identifier Config-1 from the chart data response, searches whether the configuration data identified as Config-1 exists in the locally stored configuration data, and reads the configuration data identified as Config-1 if the configuration data exists. If the local configuration data identified as Config-1 does not exist, the DataEngine submodule generates a configuration data request carrying the Config-1 and sends the configuration data request to the configuration management submodule of the ChartKitServer. Since registration is already completed in the configuration management submodule before each configuration data identifier is applied to the correspondence table, all usable configuration data is saved in the configuration management submodule. The configuration management sub-module finds out the configuration data marked as Config-1, encapsulates the configuration data in a configuration data response and returns the configuration data to the DataEngine sub-module. And after receiving the configuration data response, the DataEngine sub-module obtains the configuration data marked as Config-1 and stores the configuration data in the local.
After the service data and the configuration data are obtained, the DataEngine submodule combines the service data and the configuration data to generate a general chart model (a chart object), and transmits the general chart model to the ChartEngine submodule.
And the ChartEngine submodule generates a service chart according to the general chart model and displays the service chart in the App.
Corresponding to the implementation of the above flow, the embodiment of the present application further provides an implementation device for a service graph applied to a client, and an implementation device for a service graph applied to a server. Both of these means can be implemented by software, or by hardware, or by a combination of hardware and software. Taking a software implementation as an example, the logical device is formed by reading a corresponding computer program instruction into a memory for running through a Central Processing Unit (CPU) of the device. In terms of hardware, the device in which the service graph implementation apparatus is located generally includes other hardware such as a chip for transmitting and receiving wireless signals and/or other hardware such as a board for implementing a network communication function, in addition to the CPU, the memory, and the nonvolatile memory shown in fig. 4.
Fig. 5 is a diagram illustrating an implementation apparatus of a service graph, which is applied to a client and includes a service graph identifier sending unit, a graph data information receiving unit, and a service graph display unit, where: the service chart identifier sending unit is used for sending the identifier of the service chart to be displayed to the server; the chart data information receiving unit is used for receiving service data information and configuration data identification from the server, and the service data information and the configuration data identification are determined by the server according to the identification of the service chart; and the service chart display unit is used for acquiring configuration data according to the configuration data identifier and displaying the service chart based on the configuration data and the service data information.
Optionally, the obtaining, by the service graph display unit, the configuration data according to the configuration data identifier includes: when the configuration data with the configuration data identification is locally stored, reading the stored configuration data; otherwise, the configuration data identifier is adopted to obtain the configuration data from the server side, and the configuration data and the corresponding configuration data identifier are stored locally.
Optionally, the service data information includes: and (4) service data.
Optionally, the service data information includes: source information of the service data; the service chart display unit displays the service chart based on configuration data and service data information, and comprises: and acquiring the service data from the service data source specified by the source information of the service data, and displaying the service chart by adopting the service data and the configuration data.
Optionally, the service graph displaying unit displays the service graph based on the configuration data and the service data information, including: and generating a chart object by adopting the service data and the configuration data, and displaying the service chart according to the chart object.
Optionally, the service data includes: a value of one to a plurality of business variables; the service chart display unit displays the service chart based on configuration data and service data information, and comprises: and respectively displaying each business variable on the business chart according to the value of each business variable by adopting configuration data.
Fig. 6 shows an implementation apparatus for a service graph, which is applied to a server, where the server maintains a correspondence between an identifier of the service graph and service data source information and a configuration data identifier of the service graph, and the apparatus includes a service graph identifier receiving unit, a service data information determining unit, and a graph data information sending unit, where: the service chart identification receiving unit is used for receiving an identification of a service chart to be displayed, which is sent by the client; the service data information determining unit is used for determining service data information according to the service data source information corresponding to the service chart identifier; the chart data information sending unit is used for returning service data information and a configuration data identifier corresponding to the service chart identifier to the client, so that the client can display the service chart based on the service data information and the configuration data information.
Optionally, the apparatus further comprises: and the configuration data issuing unit is used for returning the configuration data with the configuration data identifier to the client after receiving the configuration data request with the configuration data identifier of the client.
Optionally, the identifier of the service graph corresponds to two or more configuration data identifiers, and different configuration data identifiers have mutually exclusive predetermined applicable conditions; the chart data information sending unit is specifically configured to: and returning service data information to the client, and the configuration data identifier meeting the preset applicable condition in the configuration data identifier corresponding to the service chart identifier.
Optionally, the service data information includes: service data; the service data information determining unit is specifically configured to: and acquiring the service data from the service data source specified by the service data source information, and taking the acquired service data as the service data information.
Optionally, the service data information includes: service data source information; the service data information determining unit is specifically configured to: and taking the service data source information corresponding to the service chart identification as service data information.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (22)

1. A method for realizing a service chart is applied to a client, and is characterized by comprising the following steps:
sending an identifier of a service chart to be displayed to a server; the identification of the business chart is used for uniquely representing one business chart;
receiving service data information and configuration data identification from a server, wherein the service data information and the configuration data identification are determined according to the identification of a service chart by the corresponding relation between the identification of the service chart maintained by the server and service data source information and the configuration data identification; the identification of the configuration data is used for uniquely representing one configuration data;
and acquiring configuration data according to the configuration data identifier, and displaying the service chart based on the configuration data and the service data information.
2. The method of claim 1, wherein obtaining configuration data according to the configuration data identifier comprises: when the configuration data with the configuration data identification is locally stored, reading the stored configuration data; otherwise, the configuration data identifier is adopted to obtain the configuration data from the server side, and the configuration data and the corresponding configuration data identifier are stored locally.
3. The method of claim 1, wherein the service data information comprises: and (4) service data.
4. The method of claim 1, wherein the service data information comprises: source information of the service data;
the displaying the service graph based on the configuration data and the service data information includes: and acquiring the service data from the service data source specified by the source information of the service data, and displaying the service chart by adopting the service data and the configuration data.
5. The method of claim 3 or 4, wherein displaying the service graph based on the configuration data and the service data information comprises: and generating a chart object by adopting the service data and the configuration data, and displaying the service chart according to the chart object.
6. The method according to claim 3 or 4, wherein the traffic data comprises: a value of one to a plurality of business variables;
the displaying the service graph based on the configuration data and the service data information includes: and respectively displaying each business variable on the business chart according to the value of each business variable by adopting configuration data.
7. A method for realizing a service chart is applied to a server side, and is characterized in that the server side maintains a corresponding relation between an identifier of the service chart and service data source information and a configuration data identifier of the service chart, wherein the identifier of the service chart is used for uniquely representing one service chart; the identification of the configuration data is used for uniquely representing one configuration data; the method comprises the following steps:
receiving an identifier of a service chart to be displayed, which is sent by a client;
determining service data information according to the service data source information corresponding to the service chart identifier;
and returning service data information and a configuration data identifier corresponding to the service chart identifier to the client, so that the client can display the service chart based on the service data information and the configuration data information.
8. The method of claim 7, further comprising: after receiving a configuration data request with a configuration data identifier at a client, returning the configuration data with the configuration data identifier to the client.
9. The method of claim 7, wherein the service graph identifiers correspond to two or more configuration data identifiers, different configuration data identifiers having mutually exclusive predetermined applicable conditions;
the returning of the service data information and the configuration data identifier corresponding to the service chart identifier to the client comprises: and returning service data information to the client, and the configuration data identifier meeting the preset applicable condition in the configuration data identifier corresponding to the service chart identifier.
10. The method of claim 7, wherein the service data information comprises: service data;
the determining the service data information according to the service data source information corresponding to the service chart identifier includes: and acquiring the service data from the service data source specified by the service data source information, and taking the acquired service data as the service data information.
11. The method of claim 7, wherein the service data information comprises: service data source information;
the determining the service data information according to the service data source information corresponding to the service chart identifier includes: and taking the service data source information corresponding to the service chart identification as service data information.
12. An apparatus for implementing a service graph, applied to a client, includes:
the service chart identifier sending unit is used for sending the identifier of the service chart to be displayed to the server; the identification of the business chart is used for uniquely representing one business chart;
the system comprises a chart data information receiving unit, a service end and a configuration data identification, wherein the chart data information receiving unit is used for receiving service data information and configuration data identification from the service end, and the service data information and configuration data identification are determined according to the identification of the service chart by the corresponding relation between the identification of the service chart maintained by the service end and service data source information and configuration data identification; the identification of the configuration data is used for uniquely representing one configuration data;
and the service chart display unit is used for acquiring configuration data according to the configuration data identifier and displaying the service chart based on the configuration data and the service data information.
13. The apparatus of claim 12, wherein the service graph display unit obtains the configuration data according to the configuration data identifier, and comprises: when the configuration data with the configuration data identification is locally stored, reading the stored configuration data; otherwise, the configuration data identifier is adopted to obtain the configuration data from the server side, and the configuration data and the corresponding configuration data identifier are stored locally.
14. The apparatus of claim 12, wherein the service data information comprises: and (4) service data.
15. The apparatus of claim 12, wherein the service data information comprises: source information of the service data;
the service chart display unit displays the service chart based on configuration data and service data information, and comprises: and acquiring the service data from the service data source specified by the source information of the service data, and displaying the service chart by adopting the service data and the configuration data.
16. The apparatus of claim 14 or 15, wherein the service graph display unit displays the service graph based on the configuration data and the service data information, comprising: and generating a chart object by adopting the service data and the configuration data, and displaying the service chart according to the chart object.
17. The apparatus according to claim 14 or 15, wherein the traffic data comprises: a value of one to a plurality of business variables;
the service chart display unit displays the service chart based on configuration data and service data information, and comprises: and respectively displaying each business variable on the business chart according to the value of each business variable by adopting configuration data.
18. A realization device of a service chart is applied to a server side, and is characterized in that the server side maintains a corresponding relation between an identifier of the service chart and service data source information and a configuration data identifier of the service chart, wherein the identifier of the service chart is used for uniquely representing one service chart; the identification of the configuration data is used for uniquely representing one configuration data; the device comprises:
the service chart identification receiving unit is used for receiving an identification of a service chart to be displayed, which is sent by the client;
a service data information determining unit, configured to determine service data information according to the service data source information corresponding to the service graph identifier;
and the chart data information sending unit is used for returning the service data information and the configuration data identifier corresponding to the service chart identifier to the client, so that the client can display the service chart based on the service data information and the configuration data information.
19. The apparatus of claim 18, further comprising: and the configuration data issuing unit is used for returning the configuration data with the configuration data identifier to the client after receiving the configuration data request with the configuration data identifier of the client.
20. The apparatus of claim 18, wherein the service graph identifiers correspond to two or more configuration data identifiers, different configuration data identifiers having mutually exclusive predetermined applicable conditions;
the chart data information sending unit is specifically configured to: and returning service data information to the client, and the configuration data identifier meeting the preset applicable condition in the configuration data identifier corresponding to the service chart identifier.
21. The apparatus of claim 18, wherein the service data information comprises: service data;
the service data information determining unit is specifically configured to: and acquiring the service data from the service data source specified by the service data source information, and taking the acquired service data as the service data information.
22. The apparatus of claim 18, wherein the service data information comprises: service data source information;
the service data information determining unit is specifically configured to: and taking the service data source information corresponding to the service chart identification as service data information.
CN201710297158.3A 2017-04-28 2017-04-28 Method and device for realizing service chart Active CN108804403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710297158.3A CN108804403B (en) 2017-04-28 2017-04-28 Method and device for realizing service chart

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710297158.3A CN108804403B (en) 2017-04-28 2017-04-28 Method and device for realizing service chart

Publications (2)

Publication Number Publication Date
CN108804403A CN108804403A (en) 2018-11-13
CN108804403B true CN108804403B (en) 2021-07-23

Family

ID=64053285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710297158.3A Active CN108804403B (en) 2017-04-28 2017-04-28 Method and device for realizing service chart

Country Status (1)

Country Link
CN (1) CN108804403B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111506340B (en) * 2019-01-31 2023-07-04 阿里巴巴集团控股有限公司 Business rule information processing method, device and system
CN111666277B (en) * 2019-02-21 2023-05-26 阿里巴巴集团控股有限公司 Data chart, data source file updating method, device, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638573A (en) * 2012-03-19 2012-08-15 中国联合网络通信集团有限公司 Service information sending method, service information customizing platform device and service information customizing system
CN105450705A (en) * 2014-08-29 2016-03-30 阿里巴巴集团控股有限公司 Service data processing method and apparatus
CN106230616A (en) * 2016-07-18 2016-12-14 杭州华三通信技术有限公司 A kind of service configuration information processing method and system
CN106572173A (en) * 2016-11-07 2017-04-19 网易无尾熊(杭州)科技有限公司 Method, apparatus and system for updating configuration information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9582475B2 (en) * 2012-12-17 2017-02-28 Business Objects Software Ltd. Packaging business intelligence documents with embedded data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638573A (en) * 2012-03-19 2012-08-15 中国联合网络通信集团有限公司 Service information sending method, service information customizing platform device and service information customizing system
CN105450705A (en) * 2014-08-29 2016-03-30 阿里巴巴集团控股有限公司 Service data processing method and apparatus
CN106230616A (en) * 2016-07-18 2016-12-14 杭州华三通信技术有限公司 A kind of service configuration information processing method and system
CN106572173A (en) * 2016-11-07 2017-04-19 网易无尾熊(杭州)科技有限公司 Method, apparatus and system for updating configuration information

Also Published As

Publication number Publication date
CN108804403A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN106878368B (en) Method and device for realizing information push
CN110868763B (en) Method, device and system for establishing Bluetooth connection
CN110717536A (en) Method and device for generating training sample
EP3244320A1 (en) File path storing and local file accessing method and device
US10078532B2 (en) Resource management method and device for terminal system among multiple operating systems
CN108804403B (en) Method and device for realizing service chart
CN110837391A (en) Application program hot updating method and device, storage medium and electronic equipment
CN103354927A (en) Method and apparatus for managing content in a processing device
CN112579877B (en) Control method, device, storage medium and equipment of information source system
CN110968333A (en) Configuration information replacement method and device, machine-readable storage medium and processor
CN111858018B (en) Cgroup configuration method and device, computer equipment and storage medium
CN111736895A (en) Method, equipment and storage medium for merging and upgrading version numbers of software products
CN112114804A (en) Application program generation method, device and system
CN114281461B (en) Management method, equipment and medium for configurable data source attribute
CN110677443A (en) Data transmitting and receiving method, transmitting end, receiving end, system and storage medium
CN115269050A (en) Multi-map calling method and device, storage medium and computer equipment
CN114090083B (en) Visual component configuration method, device, equipment and storage medium
CN114490644A (en) Data storage method, device and storage medium
CN110968888B (en) Data processing method and device
CN108228145A (en) Data processing method, system and the mobile equipment of mixed type application program
CN114281463A (en) Form interface format configuration and interface display method, equipment and medium
CN113949637A (en) Intelligent distribution and deployment method and device for switch resources
CN113436699A (en) Method, system, electronic device and storage medium for generating new corona nucleic acid detection report
CN111786827A (en) Fault association positioning alarm method and device for distributed cloud computing environment
CN106991336B (en) File management method and device

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200925

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200925

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220406

Address after: 310000 801-11 section B, 8th floor, 556 Xixi Road, Xihu District, Hangzhou City, Zhejiang Province

Patentee after: Alipay (Hangzhou) Information Technology Co.,Ltd.

Address before: Ky1-9008 Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands, ky1-9008

Patentee before: Innovative advanced technology Co.,Ltd.