CN114676182A - Chart generation method and device, computer equipment and computer readable storage medium - Google Patents

Chart generation method and device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN114676182A
CN114676182A CN202210306542.6A CN202210306542A CN114676182A CN 114676182 A CN114676182 A CN 114676182A CN 202210306542 A CN202210306542 A CN 202210306542A CN 114676182 A CN114676182 A CN 114676182A
Authority
CN
China
Prior art keywords
chart
graph
data
user terminal
generation request
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.)
Pending
Application number
CN202210306542.6A
Other languages
Chinese (zh)
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.)
Shenzhen Ubtech Technology Co ltd
Original Assignee
Shenzhen Ubtech 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 Shenzhen Ubtech Technology Co ltd filed Critical Shenzhen Ubtech Technology Co ltd
Priority to CN202210306542.6A priority Critical patent/CN114676182A/en
Publication of CN114676182A publication Critical patent/CN114676182A/en
Pending legal-status Critical Current

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/24Querying
    • G06F16/248Presentation of query results
    • 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)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a chart generation method, a chart generation device, computer equipment and a computer readable storage medium, wherein the method comprises the following steps: after receiving a chart generation request sent by a user terminal, a server analyzes the chart generation request to acquire identification information; then, determining at least one target graph corresponding to the graph generation request according to the identification information; and finally, according to the data corresponding to the chart generation request and the display style information of the prestored charts, loading and rendering the data of each target chart so as to obtain all the charts corresponding to the chart generation request. Therefore, when the user terminal wants to analyze data through the graphs, the server generates corresponding graphs according to the display style information of each target graph, so that the user can check the graphs in different display modes, and different data analysis requirements of the user are met.

Description

Chart generation method and device, computer equipment and computer readable storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a method and an apparatus for generating a graph, a computer device, and a computer-readable storage medium.
Background
With the development and application of the internet of things technology, the data volume acquired by the equipment end is larger and larger, and the data analysis mode is more and more complex.
Therefore, enterprises providing intelligent devices and data analysis often need to generate various data charts according to data analysis requirements provided by various users, so that after the users use the intelligent devices, efficient and fine data analysis can be completed according to the data charts.
Therefore, developers need to develop corresponding charts according to the data analysis requirement, which prolongs the delivery process of the intelligent device.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for generating a graph, a computer device, and a computer readable storage medium, so as to improve the problem that a developer needs to develop a corresponding graph according to a data analysis requirement and a long delivery flow of an intelligent device.
In a first aspect, an embodiment of the present invention provides a chart generating method, which is applied to a server, where the server stores display style information of multiple charts, and the method includes:
acquiring a chart generation request sent by a user terminal, wherein the chart generation request comprises identification information of the user terminal;
determining at least one target graph corresponding to the graph generation request according to the identification information, wherein the identification information is associated with the target graph;
and generating all charts corresponding to the chart generation request according to the data corresponding to the chart generation request and the display style information of each target chart.
Optionally, in an implementation manner provided by the embodiment of the present invention, the server further stores a plurality of pieces of filter information, where the filter information indicates a filtering condition of data in the graph;
before the obtaining of the chart generation request sent by the user terminal, the method further includes:
responding to a chart definition request sent by the user terminal, and determining target filter information and a chart to be defined corresponding to the chart definition request, wherein the chart definition request comprises identification information of the user terminal;
combining the target filter information with the display style information of the chart to be defined to obtain a defined chart, wherein when the defined chart displays data, data screening is completed according to the target filter information;
associating the defined chart with the identification information.
Optionally, in an implementation manner provided by the embodiment of the present invention, the server is configured to store data according to a preset data structure, and the method further includes:
acquiring a structure configuration request, wherein the structure configuration request comprises a structure new addition item of the preset data structure;
and updating the preset data structure according to the structure newly added item, and storing the reported data according to the updated preset data structure when the data report is received.
Further, in an implementation manner provided by the embodiment of the present invention, the server includes a first database and a second database, where the first database is configured to store data based on the preset data structure, and the second database is configured to store the preset data structure;
the updating the preset data structure according to the newly added structure item and storing the reported data according to the updated preset data structure when the data report is received, includes:
updating the preset data structure by using the structure newly added item, and storing the updated preset data structure to the second database;
when a data report is received, reading the updated preset data structure from the second database;
and storing the reported data to the first database based on the updated preset data structure.
Further, in an implementation manner provided by the embodiment of the present invention, the first database includes a clickwouse database, and the second database includes a remote dictionary service database.
Optionally, in an implementation manner provided by the embodiment of the present invention, the graph generation request further includes a temporary token that is obtained by the user terminal from the server in advance;
after the chart generation request sent by the user terminal is obtained, and before at least one target chart corresponding to the chart generation request is determined according to the identification information, the method further comprises:
verifying whether the token is legitimate;
and if the graph generation request is legal, the step of determining at least one target graph corresponding to the graph generation request according to the identification information is executed.
In a second aspect, an embodiment of the present invention provides a chart generating apparatus applied to a server, where the server stores display style information of a plurality of charts, the apparatus including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a chart generation request sent by a user terminal, and the chart generation request comprises identification information of the user terminal;
the determining module is used for determining at least one target chart corresponding to the chart generating request according to the identification information, wherein the identification information is associated with the target chart;
and the generating module is used for generating all charts corresponding to the chart generating request according to the data corresponding to the chart generating request and the display style information of each target chart.
Optionally, in an implementation manner provided by the embodiment of the present invention, the server further stores a plurality of filter information, where the filter information represents a filtering condition of data in the graph;
the device further comprises:
a response module, configured to respond to a graph definition request sent by the user terminal, and determine target filter information and a to-be-defined graph corresponding to the graph definition request, where the graph definition request includes identification information of the user terminal;
the merging module is used for merging the target filter information and the chart information of the chart to be defined to obtain a defined chart, wherein the defined chart is used for finishing data screening according to the target filter information when data are displayed;
an association module for associating the defined chart with the identification information;
in a third aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory stores a computer program, and the computer program, when running on the processor, executes the graph generation method disclosed in any one of the first aspects.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when running on a processor, executes the graph generation method disclosed in any one of the first aspects.
In the chart generation method provided by the embodiment of the invention, after receiving a chart generation request sent by a user terminal, a server analyzes the chart generation request to acquire identification information; then, determining at least one target graph corresponding to the graph generation request according to the identification information; and finally, according to the data corresponding to the chart generation request and the display style information of the prestored charts, loading and rendering the data of each target chart so as to obtain all the charts corresponding to the chart generation request.
Based on this, the graph generation method provided by the embodiment of the invention enables the server to generate the corresponding graphs according to the display style information of each target graph when the user terminal wants to analyze data through the graphs, so that the user can view the graphs in different display modes, and further different data analysis requirements of the user are met; in addition, as the server generates a plurality of charts, the workload of a developer for making corresponding charts according to different data analysis requirements can be reduced, the development efficiency is improved, and the time required by the chart delivery process is reduced.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
FIG. 1 is a flow chart diagram illustrating a first chart generation method according to an embodiment of the present invention;
FIG. 2 is a flow chart diagram illustrating a second chart generation method provided by an embodiment of the invention;
FIG. 3 is a flow chart diagram illustrating a third chart generation method provided by the embodiment of the invention;
fig. 4 is a schematic structural diagram of a chart generation apparatus provided in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a first chart generation method according to an embodiment of the present invention, where the chart generation method is applied to a server, and the server stores display style information of a plurality of charts.
That is, the server in the embodiment of the present invention stores charts in multiple styles in advance, and the server may display the corresponding chart according to the user requirement.
It is understood that the display style information indicates what form the chart will particularly show the data, such as whether the chart is a two-dimensional table or a pie chart, whether the data in the chart is aggregated by a scalar or hash, and so on.
Optionally, in a possible implementation manner provided by the embodiment of the present invention, the server is provided with at least one billboard (board), each billboard is associated with at least one card (card), that is, the billboard is associated with the graph, each card is uniquely associated with one indicator (metrics), and the indicator represents an aggregation manner of the graph.
Furthermore, when the user sends a chart generation request to the server, the server determines the kanban according to the chart generation request, fills all the cards associated with the kanban with data, and displays all the charts associated with the kanban.
Based on this, the graph generating method provided by the embodiment of the invention includes:
s110, a chart generation request sent by a user terminal is obtained, wherein the chart generation request comprises identification information of the user terminal.
That is, when a user needs to check a chart on a terminal, the user terminal sends a chart generation request to the server, so that the server analyzes the chart generation request to obtain identification information, and then determines the user terminal according to the identification information.
It should be noted that the identification information in the embodiment of the present invention is used to enable the server to determine the user terminal. It is understood that different charts in the server are oriented to different users, and most charts are customized according to user requirements, so that the user can only view the chart belonging to the user and cannot view all charts in the server in the embodiment of the invention.
Optionally, in a possible manner, when the server is provided with the kanban and the card associated with the kanban, the server determines the corresponding kanban according to the identification information in the graph generation request, and the card associated with the kanban represents the graph belonging to the user, that is, the server determines the graph which can be provided to the user terminal through the kanban.
Optionally, in a feasible manner, to improve the efficiency of analyzing data by using the graph, the graph generation request further includes screening information, where the screening information includes contents such as an index, a time range, and a name of the target data.
Specifically, the indexes in the screening information indicate that the graphs provided by the server need to be aggregated in an aggregation mode corresponding to the indexes; the time range represents when the user terminal wants to analyze the reported data; the target data name represents a name of data to be analyzed by the user terminal. Therefore, the server determines the data to be analyzed and/or the chart to be adopted by the user terminal according to the screening information.
S120, determining at least one target chart corresponding to the chart generation request according to the identification information, wherein the identification information is associated with the target chart.
That is, after the server parses the chart generation request to obtain the identification information, the server determines the chart belonging to the user terminal in the server according to the identification information, that is, determines at least one target chart corresponding to the chart generation request.
It should be understood that, before the user views the graph through the user terminal by using the server, for example, when the user registers an account or logs in a page corresponding to the server, the server acquires the identification information of the user terminal, and associates a preset number of graphs with the identification information of the user terminal. Based on this, when the user needs to view the chart, the server determines the chart associated with the identification information according to the identification information, namely the target chart.
And S130, generating all charts corresponding to the chart generation request according to the data corresponding to the chart generation request and the display style information of each target chart.
That is, after the server determines the target charts belonging to the user terminal, all charts corresponding to the chart generation request are generated according to the data corresponding to the chart generation request, that is, the data to be analyzed by the chart by the user terminal and the display style information of each target chart, that is, the data display form of each chart, that is, the data are displayed by a plurality of target charts.
In a feasible manner, the server queries and/or screens data to be analyzed by the user terminal according to a Structured Query Language (SQL) corresponding to the target graph, and fills the queried and/or screened data into a corresponding graph interface.
Optionally, when the server is provided with the kanban and the cards associated with the kanban, after the server completes query and/or screening of data, data loading and rendering are performed on all the cards associated with the kanban, so that all the cards are displayed in the page corresponding to the kanban, and a user can view each chart in the page corresponding to the kanban.
In the chart generation method provided by the embodiment of the invention, after receiving a chart generation request sent by a user terminal, a server analyzes the chart generation request to acquire identification information; then, determining at least one target graph corresponding to the graph generation request according to the identification information; and finally, according to the data corresponding to the chart generation request and the display style information of the prestored charts, loading and rendering the data of each target chart so as to obtain all the charts corresponding to the chart generation request.
Based on this, the graph generation method provided by the embodiment of the invention enables the server to generate the corresponding graphs according to the display style information of each target graph when the user terminal wants to analyze data through the graphs, so that the user can look up the graphs in different display modes, different data analysis requirements of the user are further met, and the cost required by graph development is reduced; in addition, as the server generates a plurality of charts, the workload of a developer for making corresponding charts according to different data analysis requirements can be reduced, the development efficiency is improved, and the time required by the chart delivery process is reduced.
Optionally, in order to enable the graph in the server to meet the user-defined requirement of the user, in an implementation manner provided by the embodiment of the present invention, specifically refer to fig. 2, and fig. 2 shows a flowchart of a second graph generation method provided by the embodiment of the present invention, that is, in this implementation manner, the server further stores a plurality of filter information, where the filter information represents a filtering condition of data in the graph;
further, before S110, the method further includes:
s140, responding to a chart definition request sent by the user terminal, and determining target filter information and a chart to be defined corresponding to the chart definition request, wherein the chart definition request comprises identification information of the user terminal;
s150, merging the target filter information and the display style information of the chart to be defined to obtain a defined chart, wherein when the defined chart displays data, data screening is completed according to the target filter information;
s160, associating the defined chart with the identification information.
It should be noted that the filter can be understood as a filter item such as a drop-down list, a radio box, a check box, a text box, etc., and the filter information indicates the structured query language corresponding to the filter. And the server combines the target filter information and the display style information of the chart to be defined, namely, the user adds the screening items in the chart, and then after the chart is generated, the user can perform corresponding operation on the screening items in the user terminal to realize data screening.
Further, when the server merges the target filter information and the display style information of the chart to be defined, namely after the chart definition operation of the user terminal is completed, the server associates the defined chart, namely the defined chart, with the identification information of the user terminal, so that when a chart generation request sent by the user terminal is received, the chart defined by the user in advance can be determined according to the identification information, and the loading and the display of the custom chart are further realized.
Optionally, in order to further meet the requirement of user-defined charts, in a feasible manner, the server is further configured to perform the following steps:
and storing the index information and the filter information sent by the user terminal, namely receiving the structured query language corresponding to the user-defined clustering mode and the user-defined screening condition.
And then, according to a card configuration request triggered by the user terminal, combining the filter information and the index information corresponding to the card configuration request to generate a card corresponding to the card configuration request. That is, the corresponding graph is generated according to the filter and the index selected by the user.
And then, responding to a billboard creation request sent by the user terminal, generating a corresponding billboard, and associating the card selected by the user with the billboard according to the operation triggered by the user terminal. And after the association between the card and the billboard is completed, the server associates the billboard with the identification information of the user terminal.
Therefore, the embodiment of the invention realizes the self-definition of the filter and the index, and the server can generate the corresponding chart according to the filter and the index selected by the user terminal based on the operation of the user, so that enterprise developers can quickly complete chart development according to the requirements, and the chart generation efficiency is improved.
Optionally, to meet the requirement of the user on high-dimensional analysis of data, in an implementation manner provided in the embodiment of the present invention, specifically referring to fig. 3, fig. 3 shows a flowchart of a third chart generation method provided in the embodiment of the present invention, that is, in this implementation manner, the server is configured to store data according to a preset data structure, and the method further includes:
s170, obtaining a structure configuration request, wherein the structure configuration request comprises a structure newly added item of the preset data structure;
and S180, updating the preset data structure according to the structure newly added item, and storing the reported data according to the updated preset data structure when the data report is received.
It is understood that in order for the server to quickly perform data analysis to generate the graph, the server stores the data in a predetermined data structure when storing the data. In one possible approach, as provided by embodiments of the present invention, the server will store each data in the form of a one-dimensional array. In another possible manner, the preset data structure is a two-dimensional table, where the two-dimensional table includes an event name, an event description, and an event occurrence time, where an event may be understood as a behavior of a user/smart device, such as a user logging in a web page through a terminal, a smart device networking, and an error report of the smart device. Thus, a two-dimensional table may also be understood as an event table.
Further, when the server performs data analysis, the analysis is always performed according to data of at least one dimension of the event table, such as determining the event occurrence frequency through the event occurrence time dimension, and determining different occurrence frequencies of different events through two dimensions of the event name and the event occurrence time. However, when the user does not satisfy the data analysis in the current dimension, the enterprise developer needs to generate a new chart according to the requirement.
Based on this, the embodiment of the present invention enables the user terminal to configure the preset data structure so as to increase the dimensionality of the data stored by the server, that is, the user terminal sends a structure configuration request to the server, and the server analyzes the received structure configuration request to obtain a structure newly added item, that is, the data dimensionality to be added by the user is determined, and the original preset data structure is updated according to the structure newly added item.
Therefore, when the user terminal wants to perform data analysis according to other dimensions of the data, the server completes data analysis of high latitude based on the reported data received and stored through the updated preset data structure, and therefore the high-dimensional analysis requirement of the user on the data is met.
In addition, although the flowchart shown in fig. 3 shows S170-S180 after S130, in an actual environment, S170-S180 may be disposed before or after any step in S110-S130.
Further, in order to improve the storage efficiency of the reported data, the server includes a first database and a second database, the first database is used for storing data based on the preset data structure, and the second database is used for storing the preset data structure;
the updating the preset data structure according to the newly added structure item and storing the reported data according to the updated preset data structure when the data report is received, includes:
updating the preset data structure by using the structure newly added item, and storing the updated preset data structure to the second database;
when a data report is received, reading the updated preset data structure from the second database;
and storing the reported data to the first database based on the updated preset data structure.
That is, the server stores the updated preset data structure to the second database each time after the preset data structure is updated. Furthermore, when the server stores the reported data, the server reads the latest preset data structure from the second database, and completes the storage of the reported data based on the latest preset data structure, that is, stores the reported data to the first database based on the latest preset data structure.
Therefore, when the server stores data, the latest preset data structure in the second database is directly read for storage, the server is prevented from always determining the preset data structure through the first database, and the load of the first database is reduced.
Further, to improve data processing efficiency, the first database comprises a clickwouse database, and the second database comprises a remote dictionary service database.
It can be understood that the ClickHouse database has a much faster computation speed than the same kind of databases, such as Vertica database, Greenplus database, and MySQL database; the ClickHouse Database supports SQL grammar and is matched with JDBC (Java Database Connectivity) drive and other calling modes, so that the ClickHouse Database is very suitable for real-time data analysis. A Remote Dictionary service (Remote Dictionary Server) is a memory-based high-performance key-value database, supports rich data structures, and is therefore often used for caching hot data in business.
Optionally, in order to improve the security of the graph, in an implementation manner provided by the embodiment of the present invention, the graph generation request further includes a temporary token that is obtained by the user terminal from the server in advance;
further, after S110 and before S120, the method further includes:
verifying whether the token is legitimate;
and if the graph generation request is legal, the step of determining at least one target graph corresponding to the graph generation request according to the identification information is executed.
That is, before the user terminal wants to view the chart, the server sends a temporary token, i.e., token, to the user terminal, for example, when the user terminal logs in a corresponding web page. Further, when the user terminal generates the chart generation request, the temporary token is encapsulated in the chart generation request. Therefore, the server analyzes the chart generation request sent by the user terminal to obtain the temporary token, verifies whether the temporary token is legal or not, and executes the subsequent process if the temporary token is legal; and if not, the user terminal is an illegal user, and further, the chart and other data analysis services are refused to be provided for the user terminal.
Corresponding to the graph generating method provided by the embodiment of the present invention, an embodiment of the present invention further provides a graph generating apparatus, referring to fig. 4, and fig. 4 shows a schematic structural diagram of the graph generating apparatus provided by the embodiment of the present invention, the graph generating apparatus 200 provided by the embodiment of the present invention is applied to a server, the server stores display style information of a plurality of graphs, and the apparatus includes:
an obtaining module 210, configured to obtain a chart generation request sent by a user terminal, where the chart generation request includes identification information of the user terminal;
a determining module 220, configured to determine, according to the identification information, at least one target graph corresponding to the graph generation request, where the identification information is associated with the target graph;
the generating module 230 is configured to generate all charts corresponding to the chart generation request according to the data corresponding to the chart generation request and the display style information of each target chart.
Optionally, in an implementation manner provided by the embodiment of the present invention, the server further stores a plurality of filter information, where the filter information represents a filtering condition of data in the graph;
the device further comprises:
a response module, configured to respond to a graph definition request sent by the user terminal, and determine target filter information and a to-be-defined graph corresponding to the graph definition request, where the graph definition request includes identification information of the user terminal;
the merging module is used for merging the target filter information and the chart information of the chart to be defined to obtain a defined chart, wherein the defined chart is used for finishing data screening according to the target filter information when data are displayed;
an association module for associating the defined chart with the identification information.
Optionally, in an implementation manner provided by the embodiment of the present invention, the server is configured to store data according to a preset data structure, and the apparatus further includes:
a configuration request obtaining module, configured to obtain a structure configuration request, where the structure configuration request includes a structure new addition of the preset data structure;
and the storage module is used for updating the preset data structure according to the newly added structure item and storing the reported data according to the updated preset data structure when the data report is received.
Further, in an implementation manner provided by the embodiment of the present invention, the server includes a first database and a second database, where the first database is used to store data based on the preset data structure, and the second database is used to store the preset data structure;
the storing, comprising:
the updating submodule is used for updating the preset data structure by using the structure newly added item and storing the updated preset data structure to the second database;
the reading sub-module is used for reading the updated preset data structure from the second database when a data report is received;
and the storage submodule is used for storing the reported data to the first database based on the updated preset data structure.
Further, in an implementation manner provided by the embodiment of the present invention, the first database includes a clickwausse database, and the second database includes a remote dictionary service database.
Optionally, in an implementation manner provided by the embodiment of the present invention, the graph generation request further includes a temporary token that is obtained by the user terminal from the server in advance;
the device further comprises:
the verifying module is used for verifying whether the token is legal or not;
and if the graph generation request is legal, the determining module is further used for executing the step of determining at least one target graph corresponding to the graph generation request according to the identification information.
The chart generation device provided in the embodiment of the present application can implement each process of the chart generation method in the method embodiment disclosed in fig. 1, and can achieve the same technical effect, and is not described here again to avoid repetition.
An embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the computer program, when running on the processor, executes the graph generating method disclosed in the method embodiment corresponding to fig. 1.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program runs on a processor, the computer program executes the graph generation method disclosed in the method embodiment corresponding to fig. 1.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. 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 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.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A chart generating method applied to a server storing display style information of a plurality of charts, the method comprising:
acquiring a chart generation request sent by a user terminal, wherein the chart generation request comprises identification information of the user terminal;
determining at least one target graph corresponding to the graph generation request according to the identification information, wherein the identification information is associated with the target graph;
and generating all charts corresponding to the chart generation request according to the data corresponding to the chart generation request and the display style information of each target chart.
2. The chart generating method according to claim 1, wherein the server further stores a plurality of filter information indicating a filtering condition of data in the chart;
before the obtaining of the chart generation request sent by the user terminal, the method further includes:
responding to a chart definition request sent by the user terminal, and determining target filter information and a chart to be defined corresponding to the chart definition request, wherein the chart definition request comprises identification information of the user terminal;
merging the target filter information and the display style information of the chart to be defined to obtain a defined chart, wherein when the defined chart displays data, data screening is completed according to the target filter information;
associating the defined chart with the identification information.
3. A chart generation method according to claim 1, wherein said server is adapted to store data according to a preset data structure, said method further comprising:
acquiring a structure configuration request, wherein the structure configuration request comprises a structure new addition item of the preset data structure;
and updating the preset data structure according to the structure newly added item, and storing the reported data according to the updated preset data structure when the data report is received.
4. A chart generation method according to claim 3, wherein said server comprises a first database for storing data based on said preset data structure and a second database for storing said preset data structure;
the updating the preset data structure according to the structure newly added item and storing the reported data according to the updated preset data structure when the data report is received, includes:
updating the preset data structure by using the structure newly added item, and storing the updated preset data structure to the second database;
when a data report is received, reading the updated preset data structure from the second database;
and storing the reported data to the first database based on the updated preset data structure.
5. The chart generation method of claim 4, wherein the first database comprises a clickwouse database and the second database comprises a remote dictionary service database.
6. The chart generating method according to claim 1, wherein the chart generation request further includes a temporary token that the user terminal previously acquired from the server;
after the chart generation request sent by the user terminal is obtained, and before at least one target chart corresponding to the chart generation request is determined according to the identification information, the method further comprises:
verifying whether the token is legal;
and if the graph generation request is legal, determining at least one target graph corresponding to the graph generation request according to the identification information.
7. A chart generating apparatus applied to a server storing display style information of a plurality of charts, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a chart generation request sent by a user terminal, and the chart generation request comprises identification information of the user terminal;
the determining module is used for determining at least one target graph corresponding to the graph generating request according to the identification information, wherein the identification information is associated with the target graph;
and the generating module is used for generating all charts corresponding to the chart generation request according to the data corresponding to the chart generation request and the display style information of each target chart.
8. The chart generating apparatus according to claim 7, wherein the server further stores a plurality of filter information indicating filter conditions of data in the chart;
the device further comprises:
a response module, configured to respond to a graph definition request sent by the user terminal, and determine target filter information and a to-be-defined graph corresponding to the graph definition request, where the graph definition request includes identification information of the user terminal;
the merging module is used for merging the target filter information and the chart information of the chart to be defined to obtain a defined chart, wherein the defined chart is used for finishing data screening according to the target filter information when data are displayed;
an association module for associating the defined chart with the identification information.
9. A computer device, characterized by comprising a memory and a processor, the memory storing a computer program which, when run on the processor, performs the graph generation method according to any one of claims 1-6.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when run on a processor, performs the graph generation method according to any one of claims 1-6.
CN202210306542.6A 2022-03-25 2022-03-25 Chart generation method and device, computer equipment and computer readable storage medium Pending CN114676182A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210306542.6A CN114676182A (en) 2022-03-25 2022-03-25 Chart generation method and device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210306542.6A CN114676182A (en) 2022-03-25 2022-03-25 Chart generation method and device, computer equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114676182A true CN114676182A (en) 2022-06-28

Family

ID=82075389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210306542.6A Pending CN114676182A (en) 2022-03-25 2022-03-25 Chart generation method and device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114676182A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115544183A (en) * 2022-11-28 2022-12-30 深圳高灯计算机科技有限公司 Data visualization method and device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115544183A (en) * 2022-11-28 2022-12-30 深圳高灯计算机科技有限公司 Data visualization method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US10296563B2 (en) Automated testing of perceptible web page elements
US11409645B1 (en) Intermittent failure metrics in technological processes
CN107430611B (en) Filtering data lineage graph
US10693898B2 (en) Systems data validation
US8965914B2 (en) Grouping identity records to generate candidate lists to use in an entity and relationship resolution process
US8856157B2 (en) Automatic detection of columns to be obfuscated in database schemas
CN107229619B (en) Method and device for counting and displaying calling condition of internet service link
CN107251021B (en) Filtering data lineage graph
CN111046237B (en) User behavior data processing method and device, electronic equipment and readable medium
US20160246705A1 (en) Data fabrication based on test requirements
US20230244812A1 (en) Identifying Sensitive Data Risks in Cloud-Based Enterprise Deployments Based on Graph Analytics
US9706005B2 (en) Providing automatable units for infrastructure support
US20210311969A1 (en) Automatically generating user segments
US10824694B1 (en) Distributable feature analysis in model training system
WO2011090519A1 (en) Accessing large collection object tables in a database
CN114676182A (en) Chart generation method and device, computer equipment and computer readable storage medium
CN108234392B (en) Website monitoring method and device
CN110019077A (en) Log inquiring method, device, equipment and computer readable storage medium
CN113495978B (en) Data retrieval method and device
US20150178367A1 (en) System and method for implementing online analytical processing (olap) solution using mapreduce
CN111625528A (en) Configuration management database verification method and device and readable storage medium
US20130124484A1 (en) Persistent flow apparatus to transform metrics packages received from wireless devices into a data store suitable for mobile communication network analysis by visualization
US20150032749A1 (en) Method of creating classification pattern, apparatus, and recording medium
US11100077B2 (en) Event table management using type-dependent portions
Abdullah et al. Tracing significant association rules using critical least association rules model

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