WO2019056494A1 - 图表生成方法、装置、计算机设备和存储介质 - Google Patents

图表生成方法、装置、计算机设备和存储介质 Download PDF

Info

Publication number
WO2019056494A1
WO2019056494A1 PCT/CN2017/108454 CN2017108454W WO2019056494A1 WO 2019056494 A1 WO2019056494 A1 WO 2019056494A1 CN 2017108454 W CN2017108454 W CN 2017108454W WO 2019056494 A1 WO2019056494 A1 WO 2019056494A1
Authority
WO
WIPO (PCT)
Prior art keywords
chart
data
synchronization
data table
source
Prior art date
Application number
PCT/CN2017/108454
Other languages
English (en)
French (fr)
Inventor
牟宥霖
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019056494A1 publication Critical patent/WO2019056494A1/zh

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

Definitions

  • the present application relates to the field of computer technology, and in particular, to a chart generation method, apparatus, computer device, and storage medium.
  • a chart generation method, apparatus, computer device, and storage medium are provided.
  • a chart generation method including:
  • the address includes the pre-sync address and the post-synchronization address
  • a chart generating device comprising:
  • a data capture module configured to receive a chart generation instruction, and obtain an address of the chart to be generated according to the chart generation instruction; the address includes a pre-synchronization address and a post-synchronization address; and the source data is captured in the source database according to the pre-synchronization address a table, according to the synchronized address, the target data table is captured in the target database;
  • a data comparison module configured to acquire chart configuration information, according to the field name to be compared in the source data table recorded in the chart configuration information and the field name to be compared in the target data table, the chart data in the source data table Compare with the chart data in the target data table;
  • a chart generating module configured to generate a corresponding chart according to the chart data in the target data table when the chart data in the source data table is consistent with the chart data in the target data table.
  • a computer device comprising a memory and a processor, the memory storing computer readable instructions, the computer readable instructions being executed by the processor such that the processor performs the following steps:
  • the address includes a pre-synchronization address and a post-synchronization address
  • One or more computer readable non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the steps of:
  • the address includes a pre-synchronization address and a post-synchronization address
  • FIG. 1 is an application environment diagram of a chart generation method in an embodiment
  • FIG. 2 is a flow chart of a method for generating a chart in an embodiment
  • FIG. 3 is a schematic structural diagram of a chart generating apparatus in an embodiment
  • FIG. 4 is a schematic structural diagram of a computer device in an embodiment.
  • first may be referred to as a second client
  • second client may be referred to as a first client, without departing from the scope of the present application.
  • Both the first client and the second client are clients, but they are not the same client.
  • the chart generation method provided in the embodiment of the present invention can be applied to the application environment as shown in FIG. 1.
  • the terminal 102 is connected to the service server 104 through a network.
  • the terminal 102 may be at least one of a smartphone, a tablet, and a desktop computer, but is not limited thereto.
  • a data synchronization tool such as Hadoop, DBSync, etc. is run on the terminal 102.
  • Chart development tools such as FusionCharts, Highcharts, Echarts, etc. are also run on the terminal 102. Understandably, data synchronization tools and chart development tools can also run on different terminals.
  • the terminal 102 synchronizes the chart data from the business server 104 by using the data synchronization tool, dequantizes the synchronized chart data, and transmits it to the chart development tool.
  • the chart development tool compares the acquired chart data with the original chart data in the business server 104 before generating the chart using the acquired chart data. When the comparison result is consistent, the chart data is generated using the acquired chart data.
  • FIG. 2 is a schematic flow chart of a method according to an embodiment of the present application. It should be understood that although the various steps in the flowchart of FIG. 2 are sequentially displayed as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Except as explicitly stated herein, the execution of these steps is not strictly limited, and may be performed in other sequences. Moreover, at least some of the steps in FIG. 2 may include a plurality of sub-steps or stages, which are not necessarily performed at the same time, but may be executed at different times, and the order of execution thereof is not necessarily In turn, but at least with substeps or stages of other steps or other steps Some are executed alternately or alternately.
  • a method for generating a graph is provided.
  • the method is applied to the terminal as an example for description, and specifically includes the following steps:
  • Step 202 Receive a chart generation instruction, and obtain an address of the chart to be generated according to the chart generation instruction; the address includes a pre-synchronization address and a post-synchronization address.
  • a data synchronization tool running on the terminal can synchronize chart data from the source database deployed by the business server to the target database.
  • the source database includes one or more source data tables; the target database includes one or more target data tables.
  • the source and target databases can be deployed on separate servers. Both the source database and the target database may be relational databases, such as a Sql Server database, an Oracle database, or a MySql database; or a non-relational database, such as a key-value database (Key-Value).
  • Chart configuration information is stored in the chart development tool running on the terminal. Chart configuration information can be added to the chart development tool when the user needs to create a chart.
  • the chart development tool can compare the chart data in the source database and the target database according to the chart configuration information, and generate the chart according to the comparison result.
  • Step 204 Grab the source data table in the source database according to the pre-synchronization address, and fetch the target data table in the target database according to the synchronized address.
  • Step 206 Obtain chart configuration information, and according to the field name to be compared in the source data table recorded in the chart configuration information and the field name to be compared in the target data table, the chart data in the source data table and the chart in the target data table The data is compared.
  • the terminal uses the chart development tool to receive the user's chart generation instruction.
  • the chart development tool acquires preset chart configuration information according to the chart generation instruction.
  • the chart configuration information includes the address of the chart to be generated, which may be a connection string of the database, and the like. This address includes the pre-sync address and the post-synchronization address.
  • the chart configuration information also includes basic information of the data table to be compared, such as the name of the data table to be compared, the name of the field to be compared, and the like.
  • the chart development tool calls the corresponding database connection object to connect to the source database according to the connection string of the source database, and fetches the corresponding source data table in the source database according to the table name of the source data table to be compared.
  • Chart development tool According to the connection string of the target database, the corresponding database connection object is called to connect to the target database, and the corresponding target data table is captured in the target database according to the table name of the target data table to be compared.
  • the chart development tool reads the chart data of the source data table and the chart data of the target data table respectively, according to the field name to be compared and the target data in the source data table in the chart configuration information.
  • the field name to be compared in the table compares the chart data of the source data table with the chart data of the target data table.
  • the chart configuration information includes all field names of the source data table and the target data table.
  • the chart development tool compares all the chart data in the source data table and the target data table one by one. For example, the first field in the source data table is compared with the first field in the target data table from the first row, and the second field in the source data table and the second field in the target data table are from the first row. Compare line by line, and so on, until all fields are compared. It can be understood that, in order to improve data comparison efficiency, the chart configuration information may also include only partial field names of the source data table and the target data table.
  • Step 208 When the chart data in the source data table is consistent with the chart data in the target data table, generate a corresponding chart according to the chart data in the target data table.
  • the chart development tool If the comparison result is that the chart data of the source data table is consistent with the chart data of the target data table, the chart development tool generates a corresponding chart based on the chart data in the target data table.
  • the method further includes: when the chart data in the source data table is inconsistent with the chart data in the target data table, intercepting the screenshot table generation instruction; generating a data inconsistency prompt, the data inconsistency prompt includes one or more fields Name; receiving a correction request for the field data corresponding to the field name, obtaining the corrected chart data, generating a corresponding chart according to the chart data in the target data table and the corrected chart data; or receiving a ignore request for the data inconsistency prompt, according to The chart data in the target data table generates a corresponding chart.
  • the chart development tool If the comparison result is that the chart data of the source data table and the chart data of the target data table are inconsistent, the chart development tool generates a data inconsistency prompt, and displays the data inconsistency prompt to prompt the user that the target data table has missing or incorrect chart data relative to the source data table.
  • Data inconsistencies can include all chart data, or only inconsistent chart data.
  • the data inconsistency prompt can only display the target data table relative to the source data table is missing or error The field name corresponding to the chart data.
  • the user can supplement the chart data of the missing field name within a preset time, or replace the error chart data.
  • the chart development tool receives the user's correction request, and the correction request carries the corrected chart data.
  • the chart development tool generates a corresponding chart using the chart data in the target data table and the corrected chart data.
  • the chart development tool receives the user's ignore request within the preset time, and still generates a corresponding chart according to the chart data in the target data table.
  • the comparison finds that there is any inconsistency between the source data table and the chart data in the target data table, the user is promptly prompted to freely select whether the inconsistent chart data needs to be corrected, so that the chart development tool can create the chart in time and reduce the data inconsistency. Delays in chart generation, which in turn increases chart generation efficiency.
  • the source data table and the target data table can be directly captured from the unused database by using the pre-synchronization address and the post-synchronization address of the graph to be generated, and the source data table and the target data table can be graphed according to the chart configuration information.
  • the data is effectively compared and the subsequent chart generation process is performed based on the comparison results. Since the accuracy of the chart data used to generate the chart is verified before the chart is created, the accuracy of the chart content can be improved, thereby facilitating accurate data analysis based on the chart.
  • the method before the step of receiving the chart generation instruction and acquiring the address of the chart to be generated according to the chart generation instruction, the method further includes: receiving the chart configuration request, displaying the first configuration page according to the chart configuration request; acquiring the user at the first Configure chart configuration information for page entry; record chart configuration information.
  • the chart development tool receives the user's chart configuration request, displays the first configuration page according to the chart configuration request, and acquires and records the chart configuration information entered by the user on the first configuration page.
  • the chart configuration information can be changed.
  • the chart development tool receives the configuration change request of the user, and displays the second configuration page according to the configuration change request.
  • Configuration change request to carry The chart configuration identifier that needs to be changed, the chart development tool configures the chart configuration information corresponding to the query according to the chart configuration, displays the queryed chart configuration information on the second configuration page, and obtains the user's modification operation on the chart configuration information, and records the modified information. Chart configuration information.
  • the page configuration information is added or changed in a page configuration manner, so that the user does not need to rewrite the code, and only needs to add, delete or modify the easy-to-read chart configuration information to implement chart development, which lowers the threshold of chart development.
  • the user When it is necessary to generate a chart for another chart data, the user only needs to add the chart configuration information corresponding to the chart data to improve the chart generation efficiency.
  • the method before the step of fetching the target data table in the target database according to the post-synchronization address, the method further includes: invoking a data synchronization script, where the data synchronization script includes a first synchronization script, where the first synchronization script includes multiple tags; Obtain synchronization configuration information, the synchronization configuration information records the table name of the source data table; replaces the label in the first synchronization script with the table name of the source data table to update the data synchronization script; and performs the updated data synchronization by performing the update A script that synchronizes chart data from the source database to the target database.
  • the user needs to write different data synchronization scripts for different business servers in advance.
  • the data synchronization scripts corresponding to different service servers are similar. If there are many service servers that need to synchronize data, the user needs to perform a large number of repeated actions, waste manpower, and reduce data synchronization efficiency.
  • the program uses a chart development tool to pre-write a set of common data synchronization scripts.
  • the data synchronization script includes a first synchronization script and a second synchronization script.
  • the first synchronization script includes at least one label of a preset format.
  • the preset format means that a preset identifier is provided on at least one of the two sides of the label.
  • the preset identifier may be "#", “@", “*”, etc., so that the label of the preset format may be "#ABC#", "@DEF” or "GHI*” or the like.
  • the chart configuration information can be added to the data synchronization tool by the above page configuration.
  • the chart configuration information includes table names of a plurality of tags and their corresponding source data tables.
  • the data synchronization tool calls the data synchronization script to identify the label in the first synchronization script according to the preset identifier, and query the table name of the source data table corresponding to each label according to the chart configuration information, and use the table name of the source data table that is queried to correspond The label is replaced to update the first synchronization script.
  • the second synchronization script includes a build script and a synchronization script.
  • the chart configuration information also includes the connection string of the source database, the verification identifier, and the like.
  • the verification ID can be a username, a password, and the like.
  • the data synchronization tool establishes a connection with the source database according to the connection string and the verification identifier of the source database, and reads the field information of each source data table in the source database.
  • the field information is different, and the corresponding build script and synchronization script are different.
  • the data synchronization tool generates a corresponding table creation statement and a synchronization statement according to the field information of each source data table, and writes the generated plurality of table creation statements into the corresponding table creation script, and writes the generated multiple synchronization statements into corresponding ones. Synchronize the script to update the second synchronization script.
  • the data synchronization tool synchronizes the chart data from the source database to the target database by executing the updated data synchronization script.
  • a common data synchronization script is pre-written by using a chart development tool, and corresponding synchronization configuration information is added for different service servers that need to perform data synchronization.
  • the general data synchronization script needs to be updated according to the corresponding synchronization configuration information, and the chart data can be synchronized from the source database to the target database by executing the updated data synchronization script. It can reduce user operations and improve data synchronization efficiency.
  • the data synchronization script further includes a second synchronization script
  • the synchronization configuration information also records the connection string of the source database; and synchronizes the chart data in the source database to the target database by executing the updated data synchronization script.
  • the step includes: reading the field information in the source data table in the source database according to the connection string of the source database, generating a second synchronization script according to the field information; and executing the updated data synchronization script to the chart in the source database
  • the data is subjected to deduplication processing, and the deduplicated chart data is synchronized to the target database.
  • the chart configuration information also includes the synchronization method corresponding to each source data table. Synchronization methods include full-scale synchronization, incremental de-synchronization, and incremental de-re-synchronization.
  • the data synchronization tool acquires the synchronization mode corresponding to each source data table. If the synchronization mode is incremental deduplication, the corresponding deduplication statement is generated according to the field information of the source data table.
  • the data synchronization tool calls a general data synchronization script, adds a deduplication script to the second synchronization script, and writes the generated deduplication statement to the deduplication script to update the second synchronization script.
  • the data synchronization tool performs deduplication processing on the chart data in the source database by executing the updated data synchronization script, and synchronizes the deduplicated chart data to the target database.
  • the data synchronization tool has de-duplicated the chart data synchronized to the target database, so that the chart development tool can directly use the chart data in the target database to generate the chart without further processing, thereby improving the chart. Generate efficiency.
  • the step of generating a corresponding chart according to the chart data in the target data table comprises: obtaining a table name and a field name of the target data table, and generating recommendation information of one or more legends according to the table name and the field name;
  • the recommendation information is used to obtain the confirmation result of the recommendation information within the preset time; if the confirmation result is the consent, the corresponding legend is obtained in the legend library according to the recommendation information; otherwise, the selected information of one or more legends is obtained, according to the selection
  • the information is obtained in the legend library, and the corresponding chart is generated by using the obtained legend and the chart data in the target data table.
  • the chart development tool acquires one or more legends in the legend library, and generates a corresponding chart according to the obtained legend and the chart data in the target data table.
  • the obtained legend can be automatically recommended by the chart development tool, or it can be specified by the user.
  • the chart development tool obtains the table name and the field name of the target data table, and generates recommendation information of the corresponding legend for the table name and the field name according to the preset rule.
  • the recommendation information of the histogram or the pie chart is generated; if the field name includes keywords such as “time” or “date”, Then generate the recommended information for the line chart.
  • the graphical generation instructions sent by the user using the chart development tool carry the user identification.
  • the chart development tool queries the user's corresponding historical legend selection information according to the user identifier, such as the selected ratio of a certain legend reaches a threshold.
  • the chart development tool can also generate recommendation information for one or more legends based on the legend selection information.
  • the chart development tool displays recommended information, and the user can confirm the recommended information within a preset time. If the confirmation result is the consent, or the user does not receive the confirmation result of the recommendation information within the preset time, the chart development tool obtains the corresponding legend in the legend library according to the recommendation information. If the user disagrees with the recommendation information, one or more of the legends can be reselected. The chart development tool obtains the corresponding legend in the legend library based on the selected information.
  • one or more legends are recommended to the user according to the chart data used to generate the chart, so that the generated chart can better reflect the trend or proportional distribution of the data. Users can also Freely choose the legend according to your own preferences, and it is practical.
  • the chart configuration information further records attribute information corresponding to the chart to be generated, and generates a corresponding chart according to the chart data in the target data table, including: generating corresponding corresponding according to the attribute information corresponding to the chart to be generated Data transfer object; create a canvas, render the data transfer object in the canvas, generate a temporary chart; filter the length of the character in the chart data to obtain the chart data with the longest character length; the pixel point corresponding to the chart data with the longest character length At the start and end position on the canvas, calculate the character width of the chart data; adjust the margin of the temporary chart according to the character width to generate a corresponding chart.
  • the margin of the axis of the chart is usually set to a default fixed value, such as 50 pixels, but the width of the actual chart data occupied in the canvas cannot be known in advance, when the chart data length When it is too long, it is easy to exceed the display range of the coordinate axis, which causes some of the chart data to be truncated and incomplete.
  • the chart configuration information also includes attribute information of the chart to be generated.
  • the attribute information includes a chart identifier, a chart title, a plurality of chart display order, a layer setting, or coordinate information.
  • the coordinate information includes the chart number, the legend name, the axis type, the maximum value of the coordinate axis, the minimum value of the coordinate axis, and the data display mode.
  • the axis type includes categoryAxis (class axis) and valueAxis (value axis).
  • the data display methods include integer type, percentage type and decimal type.
  • the chart development tool generates a corresponding data transfer object (hereinafter referred to as a dto object) according to the attribute information of the chart to be generated.
  • the dto object can be in the form of a key-value pair, such as optionDTO(title, xAxis, yAxis, series).
  • the chart development tool converts the dto object into a Json format.
  • the chart development tool creates a canvas such as a canvas and sends a JSON-formatted dto object to the JSP page (Java server page) so that the JSP page renders the JSON-formatted dto object on the canvas to get a temporary chart.
  • the chart development tool filters the character length of the chart data in the target data table to obtain the chart data with the longest character length, and calculates the character width of the chart data according to the starting and ending position of the pixel corresponding to the chart data with the longest character length on the canvas. .
  • the chart development tool compares whether the character width exceeds a default fixed value. When the chart data in the source data table does not match the chart data in the target data table, the margin of the temporary chart is adjusted according to the character width to generate a final chart; otherwise, No The generated temporary chart needs to be adjusted so that the resulting temporary chart is the final chart.
  • the margin of the canvas is adjusted in time according to the chart data with the longest character length, so that the finally generated chart can completely display each chart data.
  • the method further includes: detecting whether the chart update period is reached; returning the step of acquiring the address of the chart to be generated, Compare whether the chart data in the source data table and the target data table are consistent; if they are inconsistent, update the chart data in the target data table according to the chart data in the source data table, and generate a corresponding chart according to the updated chart data.
  • the chart development tool re-compares the chart data in the source data table and the target data table based on the chart configuration information to detect whether the chart data used to generate the chart has changed.
  • the data synchronization tool updates the chart data in the target data table according to the chart data in the source data table, and the chart development tool utilizes the updated chart data. Generate the corresponding chart.
  • automatically detecting whether the chart data used to generate the chart changes, and periodically updating the chart according to the detection result can improve the accuracy of the chart content, and further facilitate the user to perform accurate data analysis according to the chart.
  • a chart generating apparatus including: a data capture module 302, a data comparison module 304, and a chart generation module 306, wherein:
  • the data capture module 302 is configured to receive a chart generation instruction, and obtain an address of the chart to be generated according to the chart generation instruction; the address includes a pre-synchronization address and a post-synchronization address; and the source data table is captured in the source database according to the pre-synchronization address, according to After the synchronization, the address fetches the target data table in the target database.
  • the data comparison module 304 is configured to acquire chart configuration information, and according to the field name to be compared in the source data table recorded in the chart configuration information and the field name to be compared in the target data table, the chart data and the target data in the source data table are used. The chart data in the table is compared.
  • the graph generation module 306 is configured to generate a corresponding graph according to the graph data in the target data table when the graph data in the source data table matches the graph data in the target data table.
  • the apparatus further includes a data synchronization module 308, configured to invoke a data synchronization script, the data synchronization script includes a first synchronization script, the first synchronization script includes a plurality of tags, acquires synchronization configuration information, and synchronizes configuration information records.
  • the table name of the source data table; the label in the first synchronization script is replaced with the table name of the source data table to update the data synchronization script; and the chart data in the source database is synchronized by executing the updated data synchronization script Go to the target database.
  • the data synchronization script further includes a second synchronization script
  • the synchronization configuration information also records a connection string of the source database
  • the synchronization module 308 is further configured to read the source in the source database according to the connection string of the source database.
  • the field information in the data table generates a second synchronization script according to the field information; performs deduplication processing on the chart data in the source database by executing the updated data synchronization script, and synchronizes the deduplicated chart data to the target database.
  • the chart configuration information also records attribute information corresponding to the chart to be generated; the chart generation module 306 is further configured to generate a corresponding data transmission object according to the attribute information corresponding to the chart to be generated; creating a canvas in the canvas Render the data transfer object, generate a temporary chart; filter the length of the characters in the chart data to obtain the chart data with the longest character length; calculate the chart data according to the starting and ending position of the pixel corresponding to the chart data with the longest character length on the canvas The character width; and adjust the margin of the temporary chart according to the character width to generate the corresponding chart.
  • the device further includes a data correction module 310, configured to: when the chart data in the source data table is inconsistent with the chart data in the target data table, block the screenshot table generation instruction; generate data inconsistency prompt, data inconsistency prompt Include one or more field names; receive a correction request for the field data corresponding to the field name, obtain the corrected chart data, generate a corresponding chart according to the chart data in the target data table and the corrected chart data; and when receiving the pair When the data inconsistency prompt ignores the request, a corresponding chart is generated based on the chart data in the target data table.
  • a data correction module 310 configured to: when the chart data in the source data table is inconsistent with the chart data in the target data table, block the screenshot table generation instruction; generate data inconsistency prompt, data inconsistency prompt Include one or more field names; receive a correction request for the field data corresponding to the field name, obtain the corrected chart data, generate a corresponding chart according to the chart data in the target data table and the corrected chart data; and when receiving the
  • the chart generation device described above can be implemented in the form of a computer readable instruction that can be executed on a computer device as shown in FIG.
  • a computer device including a processor connected by a system bus, a non-volatile storage medium, an internal memory, a network interface, Display and input device.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium, an internal memory.
  • the non-volatile storage medium of the computer device stores an operating system and computer readable instructions, the internal memory of the computer device providing an environment for operating the operating system and computer readable instructions in the non-volatile storage medium.
  • the computer readable instructions are executed by a processor to implement a chart generation method.
  • the network interface of the terminal is used to communicate with an external network interface.
  • the display screen of the terminal may be a touch screen or the like
  • the input device may be a touch layer covered on the display screen, or may be a button, a trackball, a touchpad, an external keyboard, a touchpad or a mouse provided on the terminal casing.
  • the computer device can be a computer, a mobile phone, a tablet, or the like.
  • the processor may execute the following steps: receiving a chart generation instruction, acquiring an address of the chart to be generated according to the chart generation instruction; the address includes a pre-synchronization address and a post-synchronization address; and fetching in the source database according to the pre-synchronization address
  • the source data table captures the target data table in the target database according to the synchronized address; obtains the chart configuration information, according to the field name to be compared in the source data table recorded in the chart configuration information and the field name to be compared in the target data table, Comparing the chart data in the source data table with the chart data in the target data table; and when the chart data in the source data table is consistent with the chart data in the target data table, generating corresponding data according to the chart data in the target data table chart.
  • the processor when executing the computer readable instructions, further performs the steps of: invoking a data synchronization script comprising a first synchronization script, the first synchronization script comprising a plurality of tags; acquiring synchronization configuration information, synchronizing configuration information Recording the table name of the source data table; and replacing the label in the first synchronization script with the table name of the source data table to update the data synchronization script; by executing the updated data synchronization script, the source database is The chart data is synchronized to the target database.
  • the data synchronization script further includes a second synchronization script
  • the synchronization configuration information also records a connection string of the source database
  • the processor performs the following steps when executing the computer readable instructions Step: reading the field information in the source data table in the source database according to the connection string of the source database, generating a second synchronization script according to the field information; and executing the updated data synchronization script to the chart data in the source database Perform deduplication processing to synchronize the deduplicated chart data to the target database.
  • the chart configuration information further records the attribute information corresponding to the chart to be generated
  • the processor further executes the following steps: generating a corresponding data transmission object according to the attribute information corresponding to the chart to be generated; Create a canvas, render the data transfer object in the canvas, generate a temporary chart; filter the length of the characters in the chart data to obtain the chart data with the longest character length; the pixel corresponding to the chart data with the longest character length is on the canvas The start and end position, calculate the character width of the chart data; and adjust the margin of the temporary chart according to the character width to generate a corresponding chart.
  • the processor executes the computer readable instructions, the following steps are further performed: when the chart data in the source data table is inconsistent with the chart data in the target data table, the screenshot table generation instruction is blocked; the data inconsistency prompt is generated, and the data is generated.
  • the inconsistency prompt includes one or more field names; receiving a correction request for the field data corresponding to the field name, obtaining the corrected chart data, generating a corresponding chart according to the chart data in the target data table and the corrected chart data; and receiving When the request for ignoring the inconsistency of the data is reached, the corresponding chart is generated based on the chart data in the target data table.
  • one or more computer readable non-volatile storage media having computer readable instructions, when executed by one or more processors, causing one or more processors
  • the following steps are performed: receiving a chart generation instruction, obtaining an address of the chart to be generated according to the chart generation instruction; the address includes a pre-synchronization address and a post-synchronization address; and fetching the source data table in the source database according to the pre-synchronization address, according to the synchronized address
  • the target data table is captured in the target database; the chart configuration information is obtained, and the chart data in the source data table is compared with the field name to be compared in the source data table recorded in the chart configuration information and the field name to be compared in the target data table.
  • the chart data in the target data table is compared; and when the chart data in the source data table is consistent with the chart data in the target data table, a corresponding chart is generated according to the chart data in the target data table.
  • the computer readable instructions when executed by the processor, also perform the following steps: Using the data synchronization script, the data synchronization script includes a first synchronization script, the first synchronization script includes a plurality of tags; the synchronization configuration information is acquired, the synchronization configuration information records the table name of the source data table; and the table name of the source data table is used to The tags in the synchronization script are replaced to update the data synchronization script; and the chart data in the source database is synchronized to the target database by executing the updated data synchronization script.
  • the data synchronization script further includes a second synchronization script
  • the synchronization configuration information also records a connection string of the source database
  • the computer readable instructions are executed by the processor to perform the following steps: according to the connection character of the source database String, reading the field information in the source data table in the source database, generating a second synchronization script according to the field information; and performing deduplication processing on the chart data in the source database by executing the updated data synchronization script,
  • the post chart data is synchronized to the target database.
  • the chart configuration information further records attribute information corresponding to the chart to be generated.
  • the following steps are further performed: generating corresponding data transmission objects according to the attribute information corresponding to the chart to be generated. Create a canvas, render the data transfer object in the canvas, generate a temporary chart; filter the length of the characters in the chart data to get the chart data with the longest character length; the pixel corresponding to the chart data with the longest character length is on the canvas The start and end position, calculate the character width of the chart data; and adjust the margin of the temporary chart according to the character width to generate a corresponding chart.
  • the following steps are further performed: when the chart data in the source data table is inconsistent with the chart data in the target data table, the screenshot table generation instruction is generated; and the data inconsistency prompt is generated.
  • the data inconsistency prompt includes one or more field names; receiving a correction request for the field name corresponding to the chart data, obtaining the corrected chart data, generating a corresponding chart according to the chart data in the target data table and the corrected chart data; When an ignore request for the data inconsistency prompt is received, a corresponding chart is generated based on the chart data in the target data table.
  • the storage medium when the computer readable instructions are executed, The flow of an embodiment of the methods as described above may be included.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ReCd-Only Memory, ROM), or the like.

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

一种图表生成方法,包括:接收图表生成指令,根据图表生成指令获取待生成的图表的地址;地址包括同步前地址和同步后地址;根据同步前地址在源数据库中抓取源数据表,根据同步后地址在目标数据库中抓取目标数据表;获取图表配置信息,根据图表配置信息中记录的源数据表中待对比的字段名以及目标数据表中待对比的字段名,将源数据表中的图表数据与目标数据表中的图表数据进行对比;当源数据表中的图表数据与目标数据表中的图表数据一致时,根据目标数据表中的图表数据生成对应的图表。

Description

图表生成方法、装置、计算机设备和存储介质
本申请要求于2017年9月25日提交中国专利局,申请号为201710874046X,申请名称为“图表生成方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,特别是涉及图表生成方法、装置、计算机设备和存储介质。
背景技术
在当今大数据时代,企业需要对业务数据进行统计分析,以了解客户需求。例如,保险公司在保险业务处理过程中,每月需要从不同的业务系统同步大量的保单进行结算和统计,以了解客户的投保趋势。图表凭借可视化和直观性等优势,越来越多的用于数据统计分析。由此,图表的开发工具也越来越多,如FusionCharts、Highcharts和Echarts(一种图表开发工具)等。但如果在数据同步过程发生数据丢失或者出错等情况,则使得图表开发工具实际用于生成图表的数据可能与实际的业务数据并不相同,可能使最终生成的图表不能真实的反映数据的变化趋势或者比例分布等,从而对用户进行数据分析产生误导。
发明内容
根据本申请公开的各种实施例,提供一种图表生成方法、装置、计算机设备和存储介质。
一种图表生成方法,包括:
接收图表生成指令,根据图表生成指令获取待生成的图表的地址;所述 地址包括同步前地址和同步后地址;
根据所述同步前地址在源数据库中抓取源数据表,根据所述同步后地址在目标数据库中抓取目标数据表;
获取图表配置信息,根据所述图表配置信息中记录的源数据表中待对比的字段名以及目标数据表中待对比的字段名,将所述源数据表中的图表数据与目标数据表中的图表数据进行对比;及
当源数据表中的图表数据与目标数据表中的图表数据一致时,根据所述目标数据表中的图表数据生成对应的图表。
一种图表生成装置,包括:
数据抓取模块,用于接收图表生成指令,根据图表生成指令获取待生成的图表的地址;所述地址包括同步前地址和同步后地址;根据所述同步前地址在源数据库中抓取源数据表,根据所述同步后地址在目标数据库中抓取目标数据表;
数据对比模块,用于获取图表配置信息,根据所述图表配置信息中记录的源数据表中待对比的字段名以及目标数据表中待对比的字段名,将所述源数据表中的图表数据与目标数据表中的图表数据进行对比;及
图表生成模块,用于当源数据表中的图表数据与目标数据表中的图表数据一致时,根据所述目标数据表中的图表数据生成对应的图表。
一种计算机设备,包括存储器和处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行以下步骤:
接收图表生成指令,根据图表生成指令获取待生成的图表的地址;所述地址包括同步前地址和同步后地址;
根据所述同步前地址在源数据库中抓取源数据表,根据所述同步后地址在目标数据库中抓取目标数据表;
获取图表配置信息,根据所述图表配置信息中记录的源数据表中待对比的字段名以及目标数据表中待对比的字段名,将所述源数据表中的图表数据 与目标数据表中的图表数据进行对比;及
当源数据表中的图表数据与目标数据表中的图表数据一致时,根据所述目标数据表中的图表数据生成对应的图表。
一个或多个存储有计算机可读指令的计算机可读非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:
接收图表生成指令,根据图表生成指令获取待生成的图表的地址;所述地址包括同步前地址和同步后地址;
根据所述同步前地址在源数据库中抓取源数据表,根据所述同步后地址在目标数据库中抓取目标数据表;
获取图表配置信息,根据所述图表配置信息中记录的源数据表中待对比的字段名以及目标数据表中待对比的字段名,将所述源数据表中的图表数据与目标数据表中的图表数据进行对比;及
当源数据表中的图表数据与目标数据表中的图表数据一致时,根据所述目标数据表中的图表数据生成对应的图表。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为一个实施例中图表生成方法的应用环境图;
图2为一个实施例中图表生成方法的流程图;
图3为一个实施例中图表生成装置的结构示意图;
图4为一个实施例中计算机设备的结构示意图。
具体实施方式
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一客户端称为第二客户端,且类似地,可将第二客户端称为第一客户端。第一客户端和第二客户端两者都是客户端,但其不是同一客户端。
本发明实施例中所提供的图表生成方法可以应用于如图1所示的应用环境中。其中,终端102通过网络与业务服务器104连接。终端102可以是智能手机、平板电脑、台式计算机中的至少一种,但并不局限于此。终端102上运行了数据同步工具,如Hadoop、DBSync等。终端102上还运行了图表开发工具,如FusionCharts、Highcharts、Echarts等。可以理解,数据同步工具与图表开发工具也可以运行在不同终端上。终端102利用数据同步工具从业务服务器104同步图表数据,对同步到的图表数据进行去重处理后发送至图表开发工具。图表开发工具在利用获取到的图表数据进行图表生成之前,将获取到的图表数据与业务服务器104中原始的图表数据进行对比,只有对比结果为一致时,利用获取到的图表数据进行图表生成。
图2为本申请一个实施例的方法的流程示意图。应该理解的是,虽然图2的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,图2中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少 一部分轮流或者交替地执行。
在一个实施例中,如图2所示,提供了一种图表生成方法,以该方法应用于终端为例进行说明,具体包括以下步骤:
步骤202,接收图表生成指令,根据图表生成指令获取待生成的图表的地址;地址包括同步前地址和同步后地址。
终端上运行的数据同步工具可以将图表数据从业务服务器部署的源数据库同步至目标数据库。源数据库中包括一个或多个源数据表;目标数据库中包括一个或多个目标数据表。源数据库和目标数据库可以分别部署在不同的服务器上。源数据库与目标数据库均可以是关系型数据库,如Sql Server数据库、Oracle数据库或MySql数据库等;也可以是非关系型数据库,如键值存储数据库(Key-Value)等。
终端上运行的图表开发工具中存储了图表配置信息。图表配置信息可以是用户在需要创建图表时添加至图表开发工具的。图表开发工具根据图表配置信息可以对源数据库与目标数据库中的图表数据进行对比,根据对比结果进行图表生成。
步骤204,根据同步前地址在源数据库中抓取源数据表,根据同步后地址在目标数据库中抓取目标数据表。
步骤206,获取图表配置信息,根据图表配置信息中记录的源数据表中待对比的字段名以及目标数据表中待对比的字段名,将源数据表中的图表数据与目标数据表中的图表数据进行对比。
当用户需要创建图表时,终端利用图表开发工具接收用户的图表生成指令。图表开发工具根据图表生成指令获取预先设置的图表配置信息。图表配置信息包括待生成的图表的地址,该地址可以是数据库的连接字符串等。该地址包括同步前地址和同步后地址。图表配置信息还包括待对比的数据表的基本信息,如待对比的数据表表名、待对比的字段名等。图表开发工具根据源数据库的连接字符串,调用对应的数据库连接对象连接至源数据库,根据待对比的源数据表的表名在源数据库中抓取对应的源数据表。图表开发工具 根据目标数据库的连接字符串,调用对应的数据库连接对象连接至目标数据库,根据待对比的目标数据表的表名在目标数据库中抓取对应的目标数据表。
在抓取到源数据表和目标数据表后,图表开发工具分别读取源数据表的图表数据和目标数据表的图表数据,根据图表配置信息中源数据表中待对比的字段名以及目标数据表中待对比的字段名,将源数据表的图表数据和目标数据表的图表数据进行对比。
图表配置信息包括源数据表和目标数据表的全部字段名。图表开发工具对源数据表和目标数据表中全部图表数据进行逐一对比。例如,源数据表中的第一字段与目标数据表中的第一字段从第一行开始逐行对比,源数据表中的第二字段与目标数据表中的第二字段从第一行开始逐行对比,以此类推,直至所有的字段完成对比。可以理解,为了提高数据对比效率,图表配置信息也可以仅包括源数据表和目标数据表的部分字段名。
步骤208,当源数据表中的图表数据与目标数据表中的图表数据一致时,根据目标数据表中的图表数据生成对应的图表。
若对比结果为源数据表的图表数据和目标数据表的图表数据一致,则图表开发工具根据目标数据表中的图表数据生成对应的图表。
在一个实施例中,该方法还包括:当源数据表中的图表数据与目标数据表中的图表数据不一致时,则拦截图表生成指令;生成数据不一致提示,数据不一致提示包括一个或多个字段名;接收对字段名对应图表数据的补正请求,获取补正后的图表数据,根据目标数据表中的图表数据以及补正后的图表数据生成对应的图表;或接收对数据不一致提示的忽略请求,根据目标数据表中的图表数据生成对应的图表。
若对比结果为源数据表的图表数据和目标数据表的图表数据不一致,则图表开发工具生成数据不一致提示,展示该数据不一致提示,以提示用户目标数据表相对源数据表存在图表数据缺失或错误的情况。数据不一致提示可以包括全部图表数据,也可以只包括不一致的图表数据。为了便于用户了解对比结果,数据不一致提示可以只显示目标数据表相对源数据表缺少或出错 的图表数据对应的字段名。
若上述字段名对应的图表数据对于图表生成较为重要,用户可以在预设时间内对缺少的字段名对应图表数据进行补充,或对出错的图表数据进行替换。图表开发工具接收用户的补正请求,补正请求中携带了补正后的图表数据。图表开发工具利用目标数据表中的图表数据以及补正后的图表数据生成对应的图表。
若上述字段名对应的图表数据对于图表生成可以忽略,则图表开发工具接收用户在预设时间内的忽略请求,仍根据目标数据表中的图表数据生成对应的图表。当对比发现源数据表与目标数据表中的图表数据存在不一致时,及时提示用户,由用户自由选择是否需要对不一致的图表数据进行补正,以使图表开发工具可以及时创建图表,减少数据不一致对图表生成的耽搁,进而提高图表生成效率。
本实施例中,通过待生成的图表的同步前地址和同步后地址可以从不用的数据库中直接抓取源数据表和目标数据表,根据图表配置信息可以将源数据表和目标数据表的图表数据进行有效对比,并根据对比结果进行后续的图表生成过程。由于在创建图表之前对用于生成图表的图表数据的准确性进行校验,可以提高图表内容的准确性,进而方便用户根据图表进行准确数据分析。
在一个实施例中,在接收图表生成指令,根据图表生成指令获取待生成的图表的地址的步骤之前,还包括:接收图表配置请求,根据图表配置请求显示第一配置页面;获取用户在第一配置页面录入的图表配置信息;记录图表配置信息。
当用户需要开发图表时,图表开发工具接收用户的图表配置请求,根据图表配置请求显示第一配置页面,获取并记录用户在第一配置页面录入的图表配置信息。当用户需要利用其它图表数据生成图表或者对图表生成方式进行调整时,可以对图表配置信息进行变更。具体的,图表开发工具接收用户的配置变更请求,根据配置变更请求显示第二配置页面。配置变更请求携带 了需要变更的图表配置标识,图表开发工具根据该图表配置标识查询对应的图表配置信息,在第二配置页面展示查询到的图表配置信息,获取用户对该图表配置信息的修改操作,记录修改后的图表配置信息。
本实施例中,采用页面配置的方式添加或变更图表配置信息,使得用户无需重新编写代码,只需添加、删除或修改易读的图表配置信息即可实现图表开发,降低了图表开发的门槛。当需要针对其他某项图表数据生成图表时,用户只需要添加该项图表数据对应的图表配置信息即可,提高图表生成效率。
在一个实施例中,在根据同步后地址在目标数据库中抓取目标数据表的步骤之前,还包括:调用数据同步脚本,数据同步脚本包括第一同步脚本,第一同步脚本包括多个标签;获取同步配置信息,同步配置信息记录了源数据表的表名;利用源数据表的表名对第一同步脚本中的标签进行替换,以对数据同步脚本进行更新;通过执行更新后的数据同步脚本,将源数据库中的图表数据同步到目标数据库。
传统方式中,在利用数据同步工具从不同的业务服务器进行数据同步之前,用户需要预先针对不同的业务服务器编写不同的数据同步脚本。但事实上,不同业务服务器对应的数据同步脚本类似,若需要进行数据同步的业务服务器较多,则用户需要进行大量的重复动作,浪费人力,也降低了数据同步效率。为了减少用户操作,本方案利用图表开发工具预先编写一套通用的数据同步脚本。该数据同步脚本包括第一同步脚本和第二同步脚本。
第一同步脚本包括至少一个预设格式的标签。预设格式是指在标签两侧中的至少一侧设有预设标识。预设标识可以是“#”,“@”,“*”等,从而预设格式的标签可以是“#ABC#”,“@DEF”或“GHI*”等。当用户需要进行数据同步时,可以采用上述页面配置的方式在数据同步工具中添加图表配置信息。图表配置信息包括多个标签及其对应的源数据表的表名。数据同步工具调用数据同步脚本,根据预设标识识别第一同步脚本中的标签,根据图表配置信息查询每个标签对应的源数据表的表名,利用查询到的源数据表的表名对相应的标签进行替换,以对第一同步脚本进行更新。
第二同步脚本包括建表脚本和同步脚本。图表配置信息还包括源数据库的连接字符串,验证标识等。验证标识可以是用户名和密码等。数据同步工具根据源数据库的连接字符串和验证标识,与源数据库建立连接,在源数据库中读取每张源数据表的字段信息。字段信息不同,对应的建表脚本和同步脚本不同。数据同步工具根据每张源数据表的字段信息,生成对应的建表语句和同步语句,将生成的多条建表语句写入对应的建表脚本,将生成的多条同步语句写入对应的同步脚本,以对第二同步脚本进行更新。数据同步工具通过执行更新后的数据同步脚本,从源数据库将图表数据同步至目标数据库。
本实施例中,利用图表开发工具预先编写一套通用的数据同步脚本,针对需要进行数据同步的不同业务服务器添加了对应的同步配置信息。当需要从某个业务服务器同步图表数据时,只需根据对应的同步配置信息对通用的数据同步脚本进行更新,通过执行更新后的数据同步脚本即可将图表数据从源数据库同步至目标数据库,可以减少用户操作,也提高了数据同步效率。
在一个实施例中,数据同步脚本还包括第二同步脚本,同步配置信息还记录了源数据库的连接字符串;通过执行更新后的数据同步脚本,将源数据库中的图表数据同步到目标数据库的步骤,包括:根据源数据库的连接字符串,在源数据库中读取源数据表中的字段信息,根据字段信息生成第二同步脚本;通过执行更新后的数据同步脚本,对源数据库中的图表数据进行去重处理,将去重后的图表数据同步到目标数据库。
图表配置信息还包括每张源数据表对应的同步方式。同步方式包括全量同步,增量去重同步和增量不去重同步。当用户需要进行数据同步时,数据同步工具获取每张源数据表对应的同步方式,若同步方式为增量去重,则根据源数据表的字段信息,生成对应的去重语句。数据同步工具调用通用的数据同步脚本,在第二同步脚本中添加去重脚本,将生成的去重语句写入去重脚本,以对第二同步脚本进行更新。数据同步工具通过执行更新后的数据同步脚本,对源数据库中的图表数据进行去重处理,将去重后的图表数据同步至目标数据库。
本实施例中,数据同步工具已经对同步到目标数据库中的图表数据进行了去重处理,使得图表开发工具可以直接利用目标数据库中的图表数据进行图表生成,无需再作其他处理,进而提高图表生成效率。
在一个实施例中,根据目标数据表中的图表数据生成对应的图表的步骤,包括:获取目标数据表的表名和字段名,根据表名和字段名生成一种或多种图例的推荐信息;展示推荐信息,获取推荐信息在预设时间内的确认结果;若确认结果为同意,则根据推荐信息在图例库中获取对应的图例;否则,获取一种或多种图例的选定信息,根据选定信息在图例库中获取对应的图例;利用获取到的图例以及目标数据表中的图表数据生成对应的图表。
若源数据表的图表数据和目标数据表的图表数据一致,则图表开发工具在图例库中获取一种或多种图例,根据获取到的图例和目标数据表中的图表数据生成对应的图表。其中,获取到的图例可以是图表开发工具自动推荐的,也可以是用户指定的。具体的,图表开发工具获取目标数据表的表名和字段名,按照预设规则,针对该表名和字段名生成对应的图例的推荐信息。例如,若表名包括“密度”“分布”“率”或“比例”等关键词,则生成柱状图或饼形图的推荐信息;若字段名包括“时间”或“日期”等关键词,则生成折线图的推荐信息。
在另一个实施例中,用户利用图表开发工具发送的图表生成指令携带了用户标识。图表开发工具根据该用户标识查询该用户对应的历史图例选择信息,如对某种图例的选定比例达到阈值。图表开发工具也可以根据该图例选择信息生成一种或多种图例的推荐信息。
图表开发工具展示推荐信息,用户在预设时间内可以对该推荐信息进行确认。若确认结果为同意,或者在预设时间内未接收到用户对推荐信息的确认结果,则图表开发工具根据该推荐信息在图例库中获取对应的图例。若用户不同意推荐信息,也可以重新选定一个或多个图例。图表开发工具根据该选定信息在图例库中获取对应的图例。
本实施例中,根据用于生成图表的图表数据向用户推荐一种或多种图例,使得生成的图表可以更好的反映数据的变化趋势或者比例分布等。用户也可 以根据自己的喜好自由选定图例,实用性强。
在一个实施例中,图表配置信息还记录了待生成的图表对应的属性信息,根据目标数据表中的图表数据生成对应的图表的步骤,包括:根据待生成的图表对应的属性信息生成对应的数据传输对象;创建画布,在画布中渲染数据传输对象,生成临时图表;对图表数据中的字符长度进行筛选,得到字符长度最长的图表数据;根据字符长度最长的图表数据对应的像素点在画布上的起止位置,计算图表数据的字符宽度;根据字符宽度调整临时图表的边距,生成对应的图表。
在传统方式中,初始化图表开发工具时,通常将图表的坐标轴的边距设置为一个默认固定值,如50像素,但实际图表数据在画布中占据的宽度无法预先得知,当图表数据长度过长时,容易超出坐标轴的显示范围,导致部分图表数据被截断显示不完整。
图表配置信息还包括待生成的图表的属性信息。属性信息包括图表标识、图表标题、多个图表显示顺序、图层设置或坐标信息等。坐标信息包括图表编号、图例名称、坐标轴类型、坐标轴最大值、坐标轴最小值、数据显示方式等。其中,坐标轴类型包括categoryAxis(分类轴)和valueAxis(数值轴)。数据显示方式包括整数型、百分数型和小数型。图表开发工具根据待生成的图表的属性信息生成对应的数据传输对象(以下简称dto对象)。dto对象可以是键值对的形式,如optionDTO(title、xAxis、yAxis、series)。图表开发工具对dto对象进行格式转换,转换为Json格式。图表开发工具创建canvas等画布,并将Json格式的dto对象发送至JSP页面(Java服务器页面),以使JSP页面在画布上对Json格式的dto对象进行渲染,得到临时图表。
图表开发工具对目标数据表中图表数据的字符长度进行筛选,得到字符长度最长的图表数据,根据字符长度最长的图表数据对应的像素点在画布上的起止位置计算该图表数据的字符宽度。图表开发工具比较该字符宽度是否超过默认固定值,当源数据表中的图表数据与目标数据表中的图表数据不一致时,根据该字符宽度调整临时图表的边距,生成最终的图表;否则,则无 需对生成的临时图表进行调整,从而生成的临时图表即为最终的图表。
本实施例中,根据字符长度最长的图表数据及时调整画布的边距,从而可以保证最终生成的图表可以完整的显示每项图表数据。
在一个实施例中,在根据获取到的图例以及目标数据表中的图表数据生成对应的图表的步骤之后,还包括:检测是否到达图表更新周期;返回获取待生成的图表的地址的步骤,重新对比源数据表和目标数据表中的图表数据是否一致;若不一致,则根据源数据表中的图表数据对目标数据表中的图表数据进行更新,根据更新后的图表数据生成对应的图表。
每隔图表更新周期,图表开发工具根据图表配置信息对源数据表和目标数据表中的图表数据重新对比,以检测用于生成图表的图表数据是否发生变化。当源数据表中的图表数据与目标数据表中的图表数据不一致时,数据同步工具根据源数据表中的图表数据对目标数据表中的图表数据进行更新,图表开发工具利用更新后的图表数据生成对应的图表。
本实施例中,自动检测用于生成图表的图表数据是否发生变化,根据检测结果对图表进行周期性更新,可以提高图表内容的准确性,进一步方便用户根据图表进行准确数据分析。
在一个实施例中,如图3所示,提供了一种图表生成装置,包括:数据抓取模块302,数据对比模块304和图表生成模块306,其中:
数据抓取模块302,用于接收图表生成指令,根据图表生成指令获取待生成的图表的地址;地址包括同步前地址和同步后地址;根据同步前地址在源数据库中抓取源数据表,根据同步后地址在目标数据库中抓取目标数据表。
数据对比模块304,用于获取图表配置信息,根据图表配置信息中记录的源数据表中待对比的字段名以及目标数据表中待对比的字段名,将源数据表中的图表数据与目标数据表中的图表数据进行对比。
图表生成模块306,用于当源数据表中的图表数据与目标数据表中的图表数据一致时,根据目标数据表中的图表数据生成对应的图表。
在一个实施例中,该装置还包括数据同步模块308,用于调用数据同步脚本,数据同步脚本包括第一同步脚本,第一同步脚本包括多个标签;获取同步配置信息,同步配置信息记录了源数据表的表名;利用源数据表的表名对第一同步脚本中的标签进行替换,以对数据同步脚本进行更新;通过执行更新后的数据同步脚本,将源数据库中的图表数据同步到目标数据库。
在一个实施例中,数据同步脚本还包括第二同步脚本,同步配置信息还记录了源数据库的连接字符串;同步模块308还用于根据源数据库的连接字符串,在源数据库中读取源数据表中的字段信息,根据字段信息生成第二同步脚本;通过执行更新后的数据同步脚本,对源数据库中的图表数据进行去重处理,将去重后的图表数据同步到目标数据库。
在一个实施例中,图表配置信息还记录了待生成的图表对应的属性信息;图表生成模块306还用于根据待生成的图表对应的属性信息生成对应的数据传输对象;创建画布,在画布中渲染数据传输对象,生成临时图表;对图表数据中的字符长度进行筛选,得到字符长度最长的图表数据;根据字符长度最长的图表数据对应的像素点在画布上的起止位置,计算图表数据的字符宽度;及根据字符宽度调整临时图表的边距,生成对应的图表。
在一个实施例中,该装置还包括数据补正模块310,用于当源数据表中的图表数据与目标数据表中的图表数据不一致时,则拦截图表生成指令;生成数据不一致提示,数据不一致提示包括一个或多个字段名;接收对字段名对应图表数据的补正请求,获取补正后的图表数据,根据目标数据表中的图表数据以及补正后的图表数据生成对应的图表;及当接收到对数据不一致提示的忽略请求时,根据目标数据表中的图表数据生成对应的图表。
上述的图表生成装置可以实现为一种计算机可读指令的形式,计算机可读指令可在如图4所示的计算机设备上运行。
在一个实施例中,提供了一种计算机设备,如图4所示,该计算机设备包括通过系统总线连接的处理器、非易失性存储介质、内存储器、网络接口、 显示屏和输入装置。其中,计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该计算机设备的非易失性存储介质存储有操作系统和计算机可读指令,该计算机设备的内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机可读指令被处理器执行时以实现一种图表生成方法。该终端的网络接口用于与外部的网络接口进行通信。终端的显示屏可以是触摸屏等,输入装置可以是显示屏上覆盖的触摸层,还可以是终端外壳上设置的按键、轨迹球,触控板,外接的键盘、触控板或鼠标等。该计算机设备可以是电脑、手机、平板电脑等。处理器执行计算机可读指令时可以执行以下步骤:接收图表生成指令,根据图表生成指令获取待生成的图表的地址;地址包括同步前地址和同步后地址;根据同步前地址在源数据库中抓取源数据表,根据同步后地址在目标数据库中抓取目标数据表;获取图表配置信息,根据图表配置信息中记录的源数据表中待对比的字段名以及目标数据表中待对比的字段名,将源数据表中的图表数据与目标数据表中的图表数据进行对比;及当源数据表中的图表数据与目标数据表中的图表数据一致时,根据目标数据表中的图表数据生成对应的图表。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
在一个实施例中,处理器执行计算机可读指令时还执行以下步骤:调用数据同步脚本,数据同步脚本包括第一同步脚本,第一同步脚本包括多个标签;获取同步配置信息,同步配置信息记录了源数据表的表名;及利用源数据表的表名对第一同步脚本中的标签进行替换,以对数据同步脚本进行更新;通过执行更新后的数据同步脚本,将源数据库中的图表数据同步到目标数据库。
在一个实施例中,数据同步脚本还包括第二同步脚本,同步配置信息还记录了源数据库的连接字符串;处理器执行计算机可读指令时还执行以下步 骤:根据源数据库的连接字符串,在源数据库中读取源数据表中的字段信息,根据字段信息生成第二同步脚本;及通过执行更新后的数据同步脚本,对源数据库中的图表数据进行去重处理,将去重后的图表数据同步到目标数据库。
在一个实施例中,图表配置信息还记录了待生成的图表对应的属性信息,处理器执行计算机可读指令时还执行以下步骤:根据待生成的图表对应的属性信息生成对应的数据传输对象;创建画布,在画布中渲染数据传输对象,生成临时图表;对图表数据中的字符长度进行筛选,得到字符长度最长的图表数据;根据字符长度最长的图表数据对应的像素点在画布上的起止位置,计算图表数据的字符宽度;及根据字符宽度调整临时图表的边距,生成对应的图表。
在一个实施例中,处理器执行计算机可读指令时还执行以下步骤:当源数据表中的图表数据与目标数据表中的图表数据不一致时,则拦截图表生成指令;生成数据不一致提示,数据不一致提示包括一个或多个字段名;接收对字段名对应图表数据的补正请求,获取补正后的图表数据,根据目标数据表中的图表数据以及补正后的图表数据生成对应的图表;及当接收到对数据不一致提示的忽略请求时,根据目标数据表中的图表数据生成对应的图表。
在一个实施例中,提供了一个或多个存储有计算机可读指令的计算机可读非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:接收图表生成指令,根据图表生成指令获取待生成的图表的地址;地址包括同步前地址和同步后地址;根据同步前地址在源数据库中抓取源数据表,根据同步后地址在目标数据库中抓取目标数据表;获取图表配置信息,根据图表配置信息中记录的源数据表中待对比的字段名以及目标数据表中待对比的字段名,将源数据表中的图表数据与目标数据表中的图表数据进行对比;及当源数据表中的图表数据与目标数据表中的图表数据一致时,根据目标数据表中的图表数据生成对应的图表。
在一个实施例中,计算机可读指令被处理器执行时还执行以下步骤:调 用数据同步脚本,数据同步脚本包括第一同步脚本,第一同步脚本包括多个标签;获取同步配置信息,同步配置信息记录了源数据表的表名;利用源数据表的表名对第一同步脚本中的标签进行替换,以对数据同步脚本进行更新;及通过执行更新后的数据同步脚本,将源数据库中的图表数据同步到目标数据库。
在一个实施例中,,数据同步脚本还包括第二同步脚本,同步配置信息还记录了源数据库的连接字符串;计算机可读指令被处理器执行时还执行以下步骤:根据源数据库的连接字符串,在源数据库中读取源数据表中的字段信息,根据字段信息生成第二同步脚本;及通过执行更新后的数据同步脚本,对源数据库中的图表数据进行去重处理,将去重后的图表数据同步到目标数据库。
在一个实施例中,图表配置信息还记录了待生成的图表对应的属性信息,计算机可读指令被处理器执行时还执行以下步骤:根据待生成的图表对应的属性信息生成对应的数据传输对象;创建画布,在画布中渲染数据传输对象,生成临时图表;对图表数据中的字符长度进行筛选,得到字符长度最长的图表数据;根据字符长度最长的图表数据对应的像素点在画布上的起止位置,计算图表数据的字符宽度;及根据字符宽度调整临时图表的边距,生成对应的图表。
在一个实施例中,计算机可读指令被处理器执行时还执行以下步骤:当源数据表中的图表数据与目标数据表中的图表数据不一致时,则拦截图表生成指令;生成数据不一致提示,数据不一致提示包括一个或多个字段名;接收对字段名对应图表数据的补正请求,获取补正后的图表数据,根据目标数据表中的图表数据以及补正后的图表数据生成对应的图表;及当接收到对数据不一致提示的忽略请求时,根据目标数据表中的图表数据生成对应的图表。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时, 可包括如上述各方法的实施例的流程。其中,存储介质可为磁碟、光盘、只读存储记忆体(ReCd-Only Memory,ROM)等。
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (20)

  1. 一种图表生成方法,包括:
    接收图表生成指令,根据图表生成指令获取待生成的图表的地址;所述地址包括同步前地址和同步后地址;
    根据所述同步前地址在源数据库中抓取源数据表,根据所述同步后地址在目标数据库中抓取目标数据表;
    获取图表配置信息,根据所述图表配置信息中记录的源数据表中待对比的字段名以及目标数据表中待对比的字段名,将所述源数据表中的图表数据与目标数据表中的图表数据进行对比;及
    当所述源数据表中的图表数据与目标数据表中的图表数据一致时,根据所述目标数据表中的图表数据生成对应的图表。
  2. 根据权利要求1所述的方法,其特征在于,在所述根据所述同步后地址在目标数据库中抓取目标数据表之前,还包括:
    调用数据同步脚本,所述数据同步脚本包括第一同步脚本,所述第一同步脚本包括多个标签;
    获取同步配置信息,所述同步配置信息记录了源数据表的表名;
    利用源数据表的表名对第一同步脚本中的标签进行替换,以对数据同步脚本进行更新;及
    通过执行更新后的数据同步脚本,将源数据库中的图表数据同步到目标数据库。
  3. 根据权利要求2所述的方法,其特征在于,所述数据同步脚本还包括第二同步脚本,所述同步配置信息还记录了源数据库的连接字符串;所述通过执行更新后的数据同步脚本,将源数据库中的图表数据同步到目标数据库,包括:
    根据源数据库的连接字符串,在源数据库中读取源数据表中的字段信息,根据所述字段信息生成第二同步脚本;及
    通过执行更新后的数据同步脚本,对源数据库中的图表数据进行去重处 理,将去重后的图表数据同步到目标数据库。
  4. 根据权利要求1所述的方法,其特征在于,所述图表配置信息还记录了待生成的图表对应的属性信息,所述根据所述目标数据表中的图表数据生成对应的图表,包括:
    根据待生成的图表对应的属性信息生成对应的数据传输对象;
    创建画布,在所述画布中渲染所述数据传输对象,生成临时图表;
    对所述图表数据中的字符长度进行筛选,得到字符长度最长的图表数据;
    根据字符长度最长的图表数据对应的像素点在所述画布上的起止位置,计算所述图表数据的字符宽度;及
    根据所述字符宽度调整所述临时图表的边距,生成对应的图表。
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    当源数据表中的图表数据与目标数据表中的图表数据不一致时,则拦截所述图表生成指令;
    生成数据不一致提示,所述数据不一致提示包括一个或多个字段名;
    接收对所述字段名对应图表数据的补正请求,获取补正后的图表数据,根据目标数据表中的图表数据以及补正后的图表数据生成对应的图表;及
    当接收到对所述数据不一致提示的忽略请求时,根据目标数据表中的图表数据生成对应的图表。
  6. 一种图表生成装置,包括:
    数据抓取模块,用于接收图表生成指令,根据图表生成指令获取待生成的图表的地址;所述地址包括同步前地址和同步后地址;根据所述同步前地址在源数据库中抓取源数据表,根据所述同步后地址在目标数据库中抓取目标数据表;
    数据对比模块,用于获取图表配置信息,根据所述图表配置信息中记录的源数据表中待对比的字段名以及目标数据表中待对比的字段名,将所述源数据表中的图表数据与目标数据表中的图表数据进行对比;及
    图表生成模块,用于当源数据表中的图表数据与目标数据表中的图表数 据一致时,根据所述目标数据表中的图表数据生成对应的图表。
  7. 根据权利要求6所述的装置,其特征在于,还包括数据同步模块,用于调用数据同步脚本,所述数据同步脚本包括第一同步脚本,所述第一同步脚本包括多个标签;获取同步配置信息,所述同步配置信息记录了源数据表的表名;利用源数据表的表名对第一同步脚本中的标签进行替换,以对数据同步脚本进行更新;及通过执行更新后的数据同步脚本,将源数据库中的图表数据同步到目标数据库。
  8. 根据权利要求7所述的装置,其特征在于,所述数据同步脚本还包括第二同步脚本,所述同步配置信息还记录了源数据库的连接字符串;所述装置还包括数据同步模块,用于根据源数据库的连接字符串,在源数据库中读取源数据表中的字段信息,根据所述字段信息生成第二同步脚本;通过执行更新后的数据同步脚本,对源数据库中的图表数据进行去重处理,将去重后的图表数据同步到目标数据库。
  9. 根据权利要求6所述的装置,其特征在于,所述图表配置信息还记录了待生成的图表对应的属性信息;所述图表生成模块还用于根据待生成的图表对应的属性信息生成对应的数据传输对象;创建画布,在所述画布中渲染所述数据传输对象,生成临时图表;对所述图表数据中的字符长度进行筛选,得到字符长度最长的图表数据;根据字符长度最长的图表数据对应的像素点在所述画布上的起止位置,计算所述图表数据的字符宽度;及根据所述字符宽度调整所述临时图表的边距,生成对应的图表。
  10. 根据权利要求6所述的装置,其特征在于,还包括数据补正模块,用于当源数据表中的图表数据与目标数据表中的图表数据不一致时,则拦截所述图表生成指令;生成数据不一致提示,所述数据不一致提示包括一个或多个字段名;接收对所述字段名对应图表数据的补正请求,获取补正后的图表数据,根据目标数据表中的图表数据以及补正后的图表数据生成对应的图表;及当接收到对所述数据不一致提示的忽略请求时,根据目标数据表中的图表数据生成对应的图表。
  11. 一种计算机设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行以下步骤:
    接收图表生成指令,根据图表生成指令获取待生成的图表的地址;所述地址包括同步前地址和同步后地址;
    根据所述同步前地址在源数据库中抓取源数据表,根据所述同步后地址在目标数据库中抓取目标数据表;
    获取图表配置信息,根据所述图表配置信息中记录的源数据表中待对比的字段名以及目标数据表中待对比的字段名,将所述源数据表中的图表数据与目标数据表中的图表数据进行对比;及
    当所述源数据表中的图表数据与目标数据表中的图表数据一致时,根据所述目标数据表中的图表数据生成对应的图表。
  12. 根据权利要求11所述的计算机设备,其特征在于,所述处理器还用于执行:
    调用数据同步脚本,所述数据同步脚本包括第一同步脚本,所述第一同步脚本包括多个标签;
    获取同步配置信息,所述同步配置信息记录了源数据表的表名;
    利用源数据表的表名对第一同步脚本中的标签进行替换,以对数据同步脚本进行更新;及
    通过执行更新后的数据同步脚本,将源数据库中的图表数据同步到目标数据库。
  13. 根据权利要求12所述的计算机设备,其特征在于,所述数据同步脚本还包括第二同步脚本,所述同步配置信息还记录了源数据库的连接字符串;所述处理器还用于执行:
    根据源数据库的连接字符串,在源数据库中读取源数据表中的字段信息,根据所述字段信息生成第二同步脚本;及
    通过执行更新后的数据同步脚本,对源数据库中的图表数据进行去重处 理,将去重后的图表数据同步到目标数据库。
  14. 根据权利要求11所述的计算机设备,其特征在于,所述图表配置信息还记录了待生成的图表对应的属性信息;所述处理器还用于执行:
    根据待生成的图表对应的属性信息生成对应的数据传输对象;
    创建画布,在所述画布中渲染所述数据传输对象,生成临时图表;
    对所述图表数据中的字符长度进行筛选,得到字符长度最长的图表数据;
    根据字符长度最长的图表数据对应的像素点在所述画布上的起止位置,计算所述图表数据的字符宽度;及
    根据所述字符宽度调整所述临时图表的边距,生成对应的图表。
  15. 根据权利要求11所述的计算机设备,其特征在于,所述处理器还用于执行:
    当源数据表中的图表数据与目标数据表中的图表数据不一致时,则拦截所述图表生成指令;
    生成数据不一致提示,所述数据不一致提示包括一个或多个字段名;
    接收对所述字段名对应图表数据的补正请求,获取补正后的图表数据,根据目标数据表中的图表数据以及补正后的图表数据生成对应的图表;及
    当接收到对所述数据不一致提示的忽略请求时,根据目标数据表中的图表数据生成对应的图表。
  16. 一个或多个存储有计算机可读指令的计算机可读非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:
    接收图表生成指令,根据图表生成指令获取待生成的图表的地址;所述地址包括同步前地址和同步后地址;
    根据所述同步前地址在源数据库中抓取源数据表,根据所述同步后地址在目标数据库中抓取目标数据表;
    获取图表配置信息,根据所述图表配置信息中记录的源数据表中待对比的字段名以及目标数据表中待对比的字段名,将所述源数据表中的图表数据 与目标数据表中的图表数据进行对比;及
    当所述源数据表中的图表数据与目标数据表中的图表数据一致时,根据所述目标数据表中的图表数据生成对应的图表。
  17. 根据权利要求16所述的存储介质,其特征在于,所述处理器还用于执行:
    调用数据同步脚本,所述数据同步脚本包括第一同步脚本,所述第一同步脚本包括多个标签;
    获取同步配置信息,所述同步配置信息记录了源数据表的表名;
    利用源数据表的表名对第一同步脚本中的标签进行替换,以对数据同步脚本进行更新;及
    通过执行更新后的数据同步脚本,将源数据库中的图表数据同步到目标数据库。
  18. 根据权利要求17所述的存储介质,其特征在于,所述数据同步脚本还包括第二同步脚本,所述同步配置信息还记录了源数据库的连接字符串;所述处理器还用于执行:
    根据源数据库的连接字符串,在源数据库中读取源数据表中的字段信息,根据所述字段信息生成第二同步脚本;及
    通过执行更新后的数据同步脚本,对源数据库中的图表数据进行去重处理,将去重后的图表数据同步到目标数据库。
  19. 根据权利要求16所述的存储介质,其特征在于,所述图表配置信息还记录了待生成的图表对应的属性信息;所述处理器还用于执行:
    根据待生成的图表对应的属性信息生成对应的数据传输对象;
    创建画布,在所述画布中渲染所述数据传输对象,生成临时图表;
    对所述图表数据中的字符长度进行筛选,得到字符长度最长的图表数据;
    根据字符长度最长的图表数据对应的像素点在所述画布上的起止位置,计算所述图表数据的字符宽度;及
    根据所述字符宽度调整所述临时图表的边距,生成对应的图表。
  20. 根据权利要求16所述的存储介质,其特征在于,所述处理器还用于执行:
    当源数据表中的图表数据与目标数据表中的图表数据不一致时,则拦截所述图表生成指令;
    生成数据不一致提示,所述数据不一致提示包括一个或多个字段名;
    接收对所述字段名对应图表数据的补正请求,获取补正后的图表数据,根据目标数据表中的图表数据以及补正后的图表数据生成对应的图表;及
    当接收到对所述数据不一致提示的忽略请求时,根据目标数据表中的图表数据生成对应的图表。
PCT/CN2017/108454 2017-09-25 2017-10-31 图表生成方法、装置、计算机设备和存储介质 WO2019056494A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710874046.X 2017-09-25
CN201710874046.XA CN107688664B (zh) 2017-09-25 2017-09-25 图表生成方法、装置、计算机设备和存储介质

Publications (1)

Publication Number Publication Date
WO2019056494A1 true WO2019056494A1 (zh) 2019-03-28

Family

ID=61156645

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/108454 WO2019056494A1 (zh) 2017-09-25 2017-10-31 图表生成方法、装置、计算机设备和存储介质

Country Status (2)

Country Link
CN (1) CN107688664B (zh)
WO (1) WO2019056494A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020208632A1 (en) * 2019-04-10 2020-10-15 Beacon Cure Ltd. System and method for validating tabular summary reports

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110019533A (zh) * 2018-05-24 2019-07-16 中国平安人寿保险股份有限公司 同步脚本生成方法、装置、设备及计算机可读存储介质
CN109634951B (zh) * 2018-10-23 2023-12-22 平安科技(深圳)有限公司 大数据采集方法、装置、计算机设备及存储介质
CN110069571A (zh) * 2019-03-18 2019-07-30 平安普惠企业管理有限公司 一种自动化数据对比方法及装置、电子设备
CN110119319B (zh) * 2019-03-29 2021-09-03 北京康爱营养科技股份有限公司 一种接口匹配方法及装置
CN110413161B (zh) * 2019-06-14 2021-08-31 深圳爱根斯通科技有限公司 组件配置方法、装置以及电子设备
CN110688423A (zh) * 2019-09-06 2020-01-14 中国平安财产保险股份有限公司 数据处理及展示方法、系统、设备及存储介质
CN110889286B (zh) * 2019-10-12 2022-04-12 平安科技(深圳)有限公司 基于数据表的依赖关系识别方法、装置和计算机设备
CN111342933B (zh) * 2020-02-25 2022-06-07 卓望数码技术(深圳)有限公司 数据传输方法、设备及介质
CN114372445B (zh) * 2022-03-21 2022-08-12 奇安信科技集团股份有限公司 文档生成方法、装置、电子设备及介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067849A (zh) * 2006-12-20 2007-11-07 腾讯科技(深圳)有限公司 数据图表的生成方法及生成系统
US20120166456A1 (en) * 2010-12-27 2012-06-28 Electronics And Telecommunications Research Institute Method and apparatus for creating data table of forensics data
CN105989194A (zh) * 2015-03-20 2016-10-05 国际商业机器公司 表数据比较的方法和系统
CN106055535A (zh) * 2016-06-02 2016-10-26 深圳市中润四方信息技术有限公司 一种图表生成方法及装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007279842A (ja) * 2006-04-03 2007-10-25 Canon Inc 電子カルテシステム及びデータ処理装置並びにその方法
US8542117B1 (en) * 2010-02-18 2013-09-24 Athoc, Inc. Predictive alert targeting for mass notification systems
CN104461513B (zh) * 2014-11-21 2018-01-09 山东航天信息有限公司 一种生成表单界面的方法及装置
CN105447200A (zh) * 2015-12-30 2016-03-30 金蝶软件(中国)有限公司 一种数据处理方法及数据处理装置
CN107122364B (zh) * 2016-02-25 2021-05-18 华为技术有限公司 数据操作方法和数据管理服务器
CN107015957A (zh) * 2017-03-16 2017-08-04 深圳市沃易科技有限公司 用户表单生成方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067849A (zh) * 2006-12-20 2007-11-07 腾讯科技(深圳)有限公司 数据图表的生成方法及生成系统
US20120166456A1 (en) * 2010-12-27 2012-06-28 Electronics And Telecommunications Research Institute Method and apparatus for creating data table of forensics data
CN105989194A (zh) * 2015-03-20 2016-10-05 国际商业机器公司 表数据比较的方法和系统
CN106055535A (zh) * 2016-06-02 2016-10-26 深圳市中润四方信息技术有限公司 一种图表生成方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020208632A1 (en) * 2019-04-10 2020-10-15 Beacon Cure Ltd. System and method for validating tabular summary reports

Also Published As

Publication number Publication date
CN107688664B (zh) 2020-04-03
CN107688664A (zh) 2018-02-13

Similar Documents

Publication Publication Date Title
WO2019056494A1 (zh) 图表生成方法、装置、计算机设备和存储介质
US9665473B2 (en) Smart tester application for testing other applications
US10261893B2 (en) Implicit coordination of deployment and regression testing across data centers and system clusters
US9076072B2 (en) System and method for web page rendering test automation suite
US11232017B2 (en) System for refreshing and sanitizing testing data in a low-level environment
US8495080B2 (en) Initializing a multi-tenant database
WO2019019769A1 (zh) 业务功能实现的方法、装置、计算机设备及存储介质
WO2019029155A1 (zh) 数据对比方法、装置、计算机设备和存储介质
US10969929B2 (en) Dependency graph-controlled object and compute pipeline migration
JP6514244B2 (ja) 差異検出装置及びプログラム
US8805777B2 (en) Data record collapse and split functionality
CN110287101A (zh) 用户界面自动化测试方法、装置、计算机设备及存储介质
US11797258B2 (en) Conversational analytics with data visualization snapshots
WO2019019647A1 (zh) 应用程序测试范围确定方法、系统、服务器和存储介质
US10949399B2 (en) Dynamically synchronizing electronic surveys and collaborative survey representation documents
US10713070B2 (en) Systems and methods for capturing and visualizing user interactions across devices
US10013315B2 (en) Reverse snapshot clone
CN113254534A (zh) 数据同步方法、装置及计算机存储介质
WO2022188386A1 (zh) 视频发布方法及装置、设备
US20210240730A1 (en) Selective synchronization of database objects
US11567929B2 (en) Stitching event data using identity mappings
WO2019085354A1 (zh) 基于Excel系统界面的数据库联动方法、电子装置及存储介质
CN107526816B (zh) 一种流式分发记录的保存方法、装置及电子设备
CN112287021B (zh) 数据实时同步参数的生成、同步方法及装置、存储介质、终端
US11567743B1 (en) Integrated testing tool for data replication

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 24/06/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17925918

Country of ref document: EP

Kind code of ref document: A1