CN111813838B - Data processing method and device and electronic equipment - Google Patents

Data processing method and device and electronic equipment Download PDF

Info

Publication number
CN111813838B
CN111813838B CN201910289824.8A CN201910289824A CN111813838B CN 111813838 B CN111813838 B CN 111813838B CN 201910289824 A CN201910289824 A CN 201910289824A CN 111813838 B CN111813838 B CN 111813838B
Authority
CN
China
Prior art keywords
data
target
time period
feature map
preset time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910289824.8A
Other languages
Chinese (zh)
Other versions
CN111813838A (en
Inventor
王超
王振宇
霍学媛
赵志殷
李欣
梁哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910289824.8A priority Critical patent/CN111813838B/en
Publication of CN111813838A publication Critical patent/CN111813838A/en
Application granted granted Critical
Publication of CN111813838B publication Critical patent/CN111813838B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/06Asset management; Financial planning or analysis
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Operations Research (AREA)
  • Data Mining & Analysis (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Computational Linguistics (AREA)
  • Game Theory and Decision Science (AREA)
  • Human Resources & Organizations (AREA)
  • Databases & Information Systems (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention provides a data processing method, a data processing device and electronic equipment. The method comprises the following steps: sending a data acquisition request, and acquiring first data and second data returned by a server in response to the data acquisition request, wherein the first data and the second data correspond to each other; analyzing the first data, and drawing according to the analysis result to form a first feature map; determining target data according to the second data, and drawing according to the target data to form a second characteristic diagram; and responding to the triggering operation of the user on the target key, and synchronously displaying the first characteristic diagram and the second characteristic diagram. On one hand, the invention can automatically play the feature map, and avoid manual operation of a user; on the other hand, the user can conduct data analysis according to the first feature map and the second feature map which are synchronously displayed, the data analysis efficiency of the user is improved, and the user experience is further improved.

Description

Data processing method and device and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data processing method, a data processing device, and an electronic device.
Background
With the development of computer technology, more and more people perform data analysis and data processing through mobile terminals. In data analysis, a plurality of charts are usually arranged on a display screen at the same time for a user to perform contrast analysis, for example, the user needs to watch a k line chart and watch a chip distribution chart corresponding to the k line at the time of staring at a tray.
At present, when a k line diagram is watched, the k line is usually dragged manually to watch a past chip distribution diagram, and a user cannot release both hands, so that user experience is reduced; in order to free the hands of the user, the playing progress bar can be further added, but the chip distribution map is displayed on a single page, and the situation that the chip distribution cannot be checked along with the k line causes great trouble to the user staring at the tray.
In view of this, there is a need in the art to develop a new data processing method.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the application and thus may include information that does not form the prior art that is already known to those of ordinary skill in the art.
Disclosure of Invention
The embodiment of the application provides a data processing method, a data processing device and electronic equipment, which can display a plurality of data charts on the same plane at least to a certain extent, help users to effectively compare and analyze data, avoid manual operation of the users and further improve user experience.
Other features and advantages of the invention will be apparent from the following detailed description, or may be learned by the practice of the invention.
According to an aspect of an embodiment of the present invention, there is provided a data processing method including: sending a data acquisition request, and acquiring first data and second data returned by a server in response to the data acquisition request, wherein the first data and the second data correspond to each other; analyzing the first data, and drawing according to the analysis result to form a first feature map; determining target data according to the second data, and drawing according to the target data to form a second characteristic diagram; and responding to the triggering operation of the user on the target key, and synchronously displaying the first characteristic diagram and the second characteristic diagram.
According to an aspect of an embodiment of the present invention, there is provided a data processing apparatus including: the data acquisition module is used for sending a data acquisition request, acquiring first data and second data returned by the server in response to the data acquisition request, wherein the first data and the second data correspond to each other; the first feature map generating module is used for analyzing the first data and drawing according to the analysis result to form a first feature map; the second feature map generating module is used for determining target data according to the second data and drawing according to the target data to form a second feature map; and the feature map display module is used for responding to the triggering operation of the user on the target key and synchronously displaying the first feature map and the second feature map.
In some embodiments of the present invention, based on the foregoing, the first data includes first feature data corresponding to a plurality of preset time periods, and the second data includes second feature data corresponding to each of the preset time periods, where any two adjacent preset time periods are continuous in a time domain.
In some embodiments of the present invention, the first feature data includes initial data corresponding to a start time point in the preset time period, end data corresponding to an end time point, and a maximum value and a minimum value in the preset time period; based on the foregoing, the first feature map generating module is configured to: and calling a first application programming interface of an application platform, and sending the first characteristic data to the application platform through the first application programming interface so that the application platform draws characteristic identifiers corresponding to the preset time periods according to the initial data, the termination data, the maximum value and the minimum value, and forms the first characteristic diagram according to the characteristic identifiers.
In some embodiments of the present invention, the second characteristic data includes a transaction data corresponding to each of the preset time periods, the transaction data including a transaction price and a transaction quantity corresponding to each of the transaction prices; based on the foregoing, the second feature map generating module is configured to: after responding to the preset triggering operation of the user, acquiring corresponding cost and quantity of the deal according to each preset time period, and calculating target data corresponding to each preset time period according to the cost and quantity of the deal.
In some embodiments of the present invention, based on the foregoing solution, the second feature map generating module is configured to: and calling a second application programming interface of the application platform, and sending the target data to the application platform through the second application programming interface so that the application platform draws the second feature map according to the target data.
In some embodiments of the present invention, based on the foregoing, the data processing apparatus further includes: the cross mark generation module is used for forming a cross mark according to the preset time period and the termination data corresponding to the preset time period, and displaying the cross mark on the target feature mark in a superimposed mode, wherein the cross mark and the target feature mark correspond to the same preset time period and the same termination data.
In some embodiments of the present invention, based on the foregoing solution, the feature map display module includes: the calculating unit is used for responding to the triggering operation, moving the cross mark along a preset direction in a preset stride, and determining target data corresponding to a target time period according to the target time period corresponding to the cross mark; the drawing unit is used for drawing according to the target data corresponding to the target time period to form a target feature map; and the display unit is used for replacing the second characteristic diagram which is currently displayed with the target characteristic diagram and dynamically displaying the first characteristic diagram, the target characteristic diagram and the cross mark in different display areas of a display screen.
In some embodiments of the invention, based on the foregoing, the computing unit is configured to: determining a target trading price and a target trading quantity according to the target time period; and calculating target data corresponding to the target time period according to the target deal price and the target deal quantity.
According to an aspect of an embodiment of the present invention, there is provided an electronic apparatus including: one or more processors; and a storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the data processing method as described in the above embodiments.
In some embodiments of the present invention, a client acquires first data and second data sent by a server in response to a data acquisition request; then analyzing the first data, drawing according to the analysis result to form a first feature map, locally calculating target data according to the second data, and drawing according to the target data to form a second feature map; and finally, responding to the triggering operation of the user on the target key, and synchronously displaying the first characteristic diagram and the second characteristic diagram on the display screen. According to the technical scheme, on one hand, the feature map can be automatically played, and manual operation of a user is avoided; on the other hand, the user can conduct data analysis according to the first feature map and the second feature map which are synchronously displayed, the data analysis efficiency of the user is improved, and the user experience is further improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is evident that the drawings in the following description are only some embodiments of the present invention and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art. In the drawings:
FIG. 1 shows a schematic diagram of an exemplary system architecture to which the technical solution of an embodiment of the invention may be applied;
FIG. 2 schematically shows an interface diagram of a related art where a k-ray diagram and a chip distribution diagram are simultaneously displayed;
figure 3 schematically illustrates an interface diagram of a chip distribution diagram in the related art;
FIG. 4 schematically shows a flow diagram of a data processing method according to one embodiment of the invention;
FIG. 5 schematically shows a structural schematic of a k-ray diagram according to one embodiment of the invention;
figure 6 schematically illustrates an interface schematic of a chip profile in accordance with one embodiment of the invention;
FIG. 7 schematically illustrates an interface diagram including a cross-tag according to one embodiment of the invention;
FIG. 8 schematically shows a block diagram of a data processing apparatus according to an embodiment of the invention;
FIG. 9 schematically shows a block diagram of a data processing apparatus according to an embodiment of the invention;
fig. 10 shows a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the invention.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
Fig. 1 shows a schematic diagram of an exemplary system architecture to which the technical solution of an embodiment of the present invention may be applied.
As shown in fig. 1, the system architecture 100 may include a terminal device (such as one or more of the smart phone 101, tablet 102, and portable computer 103 shown in fig. 1, but may also be a terminal device with a display screen such as a desktop computer), a network 104, and a server 105. The network 104 is the medium used to provide communication links between the terminal devices and the server 105. The network 104 may include various connection types, such as wired communication links, wireless communication links, and the like.
It should be understood that the number of terminals, networks and servers in fig. 1 is merely illustrative. There may be any number of terminals, networks, and servers, as desired for implementation. For example, the server 105 may be a server cluster formed by a plurality of servers.
In one embodiment of the present invention, the user may send a data acquisition request to the server 105 by using the terminal device (may also be the tablet 102 or the portable computer 103) to acquire the data for drawing the first feature map and the second feature map; after receiving the data acquisition request sent by the terminal device, the server 105 responds to the data acquisition request and sends first data and second data to the terminal device, wherein the first data and the second data correspond to each other; after receiving the first data and the second data, the terminal equipment can analyze the first data and draw according to the analysis result to form a first characteristic diagram, and can locally calculate and acquire target data according to the second data and draw according to the target data to form a second characteristic diagram; finally, after receiving the triggering operation of the user, the terminal device can respond to the triggering operation to synchronously display the first feature map and the second feature map on the display screen. According to the technical scheme, on one hand, the feature map can be automatically played, and manual operation of a user is avoided; on the other hand, the user can conduct data analysis according to the first feature map and the second feature map which are synchronously displayed, the data analysis efficiency of the user is improved, and the user experience is further improved.
It should be noted that, the data processing method provided in the embodiment of the present invention is generally executed by the server 105, and accordingly, the data processing device is generally disposed in the server 105. However, in other embodiments of the present invention, the terminal may also have a similar function as the server, so as to execute the data processing scheme provided by the embodiment of the present invention.
In the related art, users are often accustomed to displaying associated charts on the same display screen to perform joint analysis of data according to data in different charts. Taking analysis of stock market data as an example, when a user stares at a round, he wants to see a k line graph and meanwhile can clearly know past chip distribution conditions without acquiring relevant information by switching pages, although in the related art, the k line graph and the chip distribution graph are displayed on the same display screen as shown in fig. 2, but the graph in fig. 2 is static, the user needs to manually drag the k line left and right, and when the user drags the k line to a candle line corresponding to target time, the chip distribution graph on the right side of the screen is correspondingly replaced, so that the purpose of looking for the past chip distribution is achieved. However, this method requires manual operation by a user, and the user experience is poor. With the improvement of the technology, people try to dynamically display charts by adding a progress bar for automatic playing, but the method can only display the chip distribution diagram on a single page, as shown in fig. 3, the detailed information of the chips is displayed on the upper part of the display interface, the chip distribution diagram is displayed in the middle part, and the progress bar is displayed on the lower part. However, the method cannot check the chip distribution condition against the k line graph, and reduces the meaning of the chip distribution function.
In view of the problems existing in the related art, the embodiment of the present invention first proposes a data processing method, where the data processing method in the embodiment of the present invention may be used in any data analysis scenario, such as scientific research, project analysis, stock analysis, fund analysis, futures analysis, etc., and the implementation details of the technical solution in the embodiment of the present invention will be described in detail below by taking the analysis of a stock market according to k-line and chip distribution diagrams as an example:
fig. 4 schematically shows a flow chart of a data processing method according to an embodiment of the invention, which may be performed by a terminal device, which may be the terminal device shown in fig. 1. Referring to fig. 4, the data processing method at least includes steps S410 to S440, and is described in detail as follows:
in step S410, a data acquisition request is sent, and first data and second data returned by the acquisition server in response to the data acquisition request correspond to each other.
In one embodiment of the present invention, a user logs into an application platform on a terminal device (or tablet 102, portable computer 103) to obtain relevant data and graphs to analyze stock dynamics of a certain code. When the user logs in, a stock k-line diagram can be presented in the display interface, a plurality of options are displayed at the bottom or at the side edge of the display interface, and the user can select a proper k-line diagram type from the plurality of options. The k-line pattern differs depending on the calculation period, for example, a daily k-line can be obtained with a daily as the calculation period, a weekly k-line can be obtained with a weekly as the calculation period, and so on. Generally, the k-line diagram includes a daily k-line, a weekly k-line, a monthly k-line, and the like, and for a short-line operator, a 5-minute k-line, a 15-minute k-line, a 30-minute k-line, and the like are also provided. Fig. 5 shows a schematic structural diagram of a k line graph, and as shown in fig. 5, the k line graph is located at the left part of a display interface, a plurality of types of options are arranged below the k line graph, namely time sharing, 5 days, day k, week k, month k and 120 minutes, more options are also arranged, more types of options can be expanded by clicking an expansion arrow beside the more options, and a user can select a proper k line type according to actual needs. The k line graph is formed by a plurality of candle lines from the aspect of morphology, each candle line is drawn according to stock data in a single calculation period, a daily k line corresponding to a certain stock is taken as an example, the daily k line can be drawn according to the daily price of the stock, the highest price and the lowest price, specifically, a rectangular entity is determined according to the price of the stock, and if the price of the stock is higher than the price of the stock, the k line is called a positive line and is represented by a hollow entity; if the closing price is lower than the opening price, the k line is called a shading line, represented by a black solid or a white solid. The highest and lowest prices are then connected to the entity with thinner wires, respectively. The line between the highest price and the entity is called an upper hatching and the line between the lowest price and the entity is called a lower hatching.
In one embodiment of the present invention, after the user clicks the selection item to select the corresponding k line pattern, the terminal device may send a data acquisition request to the server 105 according to the k line pattern corresponding to the clicking operation after receiving the clicking operation of the user, for example, if the user selects the daily k line, the terminal device may send a request to the server 105 to acquire the daily k line data, if the user selects the monthly k line, the terminal device may send a request to the server 105 to acquire the monthly k line data, and so on. After receiving the data acquisition request, the server 105 can respond to the data acquisition request and return the data to the terminal device in a corresponding type, the data returned by the server 105 may include first data and second data, where the first data includes first feature data corresponding to a plurality of preset time periods, the second data includes second feature data corresponding to each preset time period, and any two adjacent preset time periods in the plurality of preset time periods are continuous in a time domain, specifically, the first data may be k-line data corresponding to a time period of daily, weekly, monthly, and so on, the second data may be chip distribution data corresponding to a time period of daily, weekly, monthly, and so on, and the server 105 returns the corresponding chip distribution data to the terminal device at the same time as the k-line data, so that the k-line data and the chip distribution data are mutually corresponding in a time dimension.
In one embodiment of the present invention, the first data includes first feature data corresponding to a plurality of preset time periods, where the first feature data includes initial data corresponding to a start time point in the preset time period, end data corresponding to an end time point, and a maximum value and a minimum value in the preset time period. Taking the day k line data of a certain stock as an example, the initial data is the opening price of the stock on the same day, the ending data is the closing price of the stock on the same day, the maximum value is the maximum value reached by the stock on the same day, and the minimum value is the minimum value reached by the stock on the same day. The week k line data, month k line data, and the like are similar to the day k line data, and are not described here again.
In one embodiment of the present invention, the second data includes second characteristic data corresponding to each preset time period, wherein the second characteristic data includes a bargain data corresponding to each preset time period, the bargain data including a bargain price and a bargain quantity for the bargain price. For example, the preset time period may be one of 1 month in 2019, and taking 10 month 1 month in 2019 as an example, the second characteristic data may be 45.00 yuan for the price of the deal corresponding to the date, and the number of deals is 1200 ten thousand.
In step S420, the first data is parsed, and a first feature map is formed according to the parsing result.
In one embodiment of the present invention, the data returned by the server 105 to the terminal device is data in JSON format, which is a lightweight data exchange format, and the data is stored and represented in a text format completely independent of the programming language, typically in the form of JSON key-value pairs, where JSON objects are stored, in the specific form of { key1: value1, key2: value2, …, where key is the attribute of the object and value is the corresponding value. After receiving the first data returned by the server 105, the terminal device may parse the first data, and extract the values corresponding to the attributes from the first data, and specifically may extract each time period in the first data and the open price, the closed price, the maximum value and the minimum value corresponding to each time period.
In one embodiment of the present invention, after first data is parsed to obtain first feature data, a first application programming interface (Application Program Interface, abbreviated as API) of the application platform may be called, the first feature data is sent to the application platform through the first application programming interface, drawing is performed according to the first feature data through a drawing module in the application platform, the drawing module may draw a plurality of feature identifiers according to the first feature data corresponding to each time period, and form a first feature map according to the plurality of feature identifiers, where the first feature data includes an opening price, a closing price, a maximum value, and a minimum value corresponding to each time period, and the feature identifiers are candle lines drawn according to the opening price, the closing price, the maximum value, and the minimum value, and the first feature map is a k line map.
In one embodiment of the invention, returning to FIG. 5, the k-wire plot has time periods on the abscissa and stock prices on the ordinate, from which a single candle wire can be uniquely determined.
In step S430, target data is determined according to the second data, and a second feature map is formed by plotting according to the target data.
In one embodiment of the present invention, while the first feature map is formed, target data required for drawing the second feature map may also be calculated locally by the terminal device according to the second data, specifically, the second data may include the transaction data corresponding to each preset time period, the transaction data includes the transaction price and the transaction quantity corresponding to each transaction price, and the target data may include a proportion of the transaction quantity corresponding to each transaction price in the total transaction quantity, an average cost, a profit ratio, a price interval and a concentration corresponding to 90% chips, a price interval and a concentration corresponding to 70% chips, and of course, other data may also be included.
In one embodiment of the invention, after the target data is determined, a second feature map may be drawn from the target data. Specifically, a second application programming interface of the application platform can be called through the terminal equipment, target data is sent to the application platform through the second application programming interface, and drawing is performed according to the target data through a drawing module in the application platform to form a second feature diagram. Taking the second feature diagram as a chip distribution diagram as an example, fig. 6 shows an interface schematic diagram of the chip distribution diagram, as shown in fig. 6, in a candle diagram corresponding to 7 months and 20 days in 2018, the round price is 1746.823 yuan, accordingly, the chip distribution diagram shows the distribution of the number of deals corresponding to each deal price in the day, the distribution diagram is presented in a column diagram form, the average cost is 362.12 yuan, the profit ratio is 68.01%, the price interval corresponding to 90% of chips is 246.00-415.50 yuan, the concentration of 90% of chips is 14.43%, 70% of chips are also arranged in the chip distribution diagram, the price interval corresponding to 70% of chips and the concentration can be obtained by clicking 70% of chips, and in the chip distribution diagram, the chips can be distinguished by different colors, and the chips are fast-fit and the chips are profitable.
In step S440, the first feature map and the second feature map are displayed in synchronization in response to a triggering operation of the target key by the user.
In one embodiment of the present invention, in order to help the user start or stop the automatic playing of the k-wire diagram and the chip distribution diagram, a target key may be set on the display interface, where the target key may be a play button with a play identifier, or may be other identifiers with a certain shape, color, or other features, and the embodiment of the present invention is not limited in this way. Meanwhile, the hidden attribute of the target key can be set to be NO, so that the target key can be always displayed on the display interface, the specific position of the target key can be changed according to the actual requirement of a user, the system defaults to set the target key at the lower left corner of the display interface, but in order to adapt to different user operations, the user can drag the target key through a mouse or finger touch, and move the target key to any position as long as other functional keys are not present at the position of the target key. When the user wants to watch the automatically played k-line diagram and the chip distribution diagram, the triggering operation can be performed on the target key, and the triggering operation can be specifically a single click operation, a double click operation and the like, and the embodiment of the invention is not limited in detail. After the terminal equipment receives the triggering operation of the user, the first characteristic diagram and the second characteristic diagram can be synchronously displayed on the display interface according to preset logic, namely, the k diagram and the chip distribution diagram are synchronously displayed.
In one embodiment of the present invention, the initial state of the chip profile may be set to be hidden, and when the user selects the type of k-wire diagram, only the k-wire diagram may be displayed in the display interface without displaying the chip profile. When the user wants to watch the k line graph and the chip distribution graph at the same time, the user can click the chip distribution mark positioned in the display interface, and after receiving the preset triggering operation of the chip distribution mark by the user, the terminal equipment can adaptively adjust the size of the k line graph and display the corresponding chip distribution graph in other areas of the display screen.
In one embodiment of the invention, to enhance the user's visual access to information in the k-wire plot and chip distribution plot, a cross mark may be formed on the k-wire plot that may automatically jump from one candle line to another at certain intervals. In the embodiment of the invention, the cross mark can be formed according to a preset time period and termination data corresponding to the preset time period, in the k line graph, the abscissa is time, the ordinate is stock price, the cross mark can be formed according to the time and the closing price corresponding to the time, for example, for the day k line, the cross mark can be determined according to each day and the corresponding closing price; after the cross mark is determined, the cross mark and the target feature mark can be displayed in a superimposed mode, and the cross mark and the target feature mark correspond to the same preset time and the same termination data. Fig. 7 shows a schematic diagram of an interface including a cross mark, as shown in fig. 7, where a cross mark exists on a left day k diagram, the cross mark corresponds to a 20 th day of 2018 in 7 th month, the ordinate is 1746.823 yuan of the closing price of the day, and the horizontal line of the cross mark extends transversely to a right chip distribution diagram, so that a user can determine how many chips are in a profit temporarily and how many chips are in a firm state by comparing the chip distribution diagram with the closing price.
In one embodiment of the present invention, after a user clicks a target key on a display interface, the terminal device responds to a trigger operation of the user to move the cross identifier along a preset direction in a preset stride, where the preset stride is different according to a preset time period, for example, when the k-line diagram is a daily k-line diagram, the preset stride may be set to one day, when the k-line diagram is a weekly k-line diagram, the preset stride may be set to one week, and so on; the preset direction may be a direction in which the date increases, and generally, a candle line corresponding to a farther date is located on the left side of the k-wire diagram, and a candle line corresponding to a closer date is located on the right side of the k-wire diagram, so the preset direction may be a direction from left to right.
In one embodiment of the invention, a timer can be arranged in the terminal equipment, the timer is used for counting, and the cross mark is controlled to be transferred to the next candle line after the counting reaches the preset time. The timer can be specifically an NSTimer, the preset time can be set according to actual needs, for example, the time can be set to be 2s, 3s and the like, when the NSTimer timing meets the preset time, the cross mark automatically jumps to the next candle line, and the intersection point coordinate of the cross mark is changed according to the time period and the take-up price corresponding to the next candle line.
In one embodiment of the present invention, the user may manually drag the cross identifier to a time coordinate where the user wants to acquire corresponding data, and after the position of the cross identifier changes, the terminal device may determine the target candle line according to the abscissa corresponding to the cross identifier, adjust the intersection point coordinate of the cross identifier according to the take-up price corresponding to the target candle line, and correspondingly change the chip distribution map along with the change of the cross identifier, and update the chip distribution map to the chip distribution map corresponding to the time period corresponding to the abscissa.
In one embodiment of the present invention, when the cross identifier jumps to the next candleline, target data corresponding to the target time period may be determined according to the target time period corresponding to the cross identifier, specifically, a target achievement price and a target achievement amount may be determined according to the target time period, and target data corresponding to the target time period may be calculated according to the target achievement price and the target achievement amount. After determining the target data corresponding to the target time period, a second feature map can be formed by a method of forming the target feature map according to the target data corresponding to the target time period, and then the second feature map displayed on the right side is replaced by the target feature map, so that the change of the chip distribution map along with the movement of the cross mark on the k line map is realized, and the better data analysis and data processing of a user are facilitated.
In one embodiment of the present invention, the first feature map and the second feature map/target feature map may be located in different areas of the same display interface, for example, the first feature map may be located on the left side of the display interface, and the second feature map/target feature map may be located on the right side of the display interface; or the first feature map may be located on the right side of the display interface, and the second feature map/target feature map may be located on the left side of the display interface, and of course, the first feature map and the second feature map may be arranged according to other positional relationships, so long as the user can obtain relevant chip distribution information according to the changed cross identifier.
In one embodiment of the invention, a user can control automatic playing or stopping of the first feature map and the second feature map by clicking a target key, when the user clicks the target key for the first time, the first feature map and the second feature map start to be automatically played, the cross mark moves along a preset direction according to a preset stride, corresponding achievement price and achievement quantity can be obtained according to a time period corresponding to the cross mark while moving, the terminal equipment can calculate new target data according to the obtained achievement price and achievement quantity, and a drawing module is used for drawing according to the new target data to form a target feature map for replacing the second feature map displayed in a display interface so as to realize updating of the second feature map along with the change of the cross mark; when the user clicks the target key for the second time, automatic playing pauses, and the positions of the image and the cross mark on the display interface are not changed; and when the user clicks the target key for the third time, the automatic playing is resumed, the cross mark starts to move from the current position, and the second feature map is updated along with the movement of the cross mark. It is worth to say that, when automatic playing is finished, the progress mark on the progress bar automatically jumps to the starting position, so that the user can watch again conveniently.
Of course, the data processing method in the embodiment of the invention can also be applied to other scenes, such as scientific research, project analysis and the like, different feature graphs can be drawn according to the acquired data information by the data processing method in the embodiment of the invention, and different feature graphs are automatically played on a display screen at the same time, so that hands of a user are liberated, the user can be ensured to acquire related data quickly, and user experience is further improved.
Taking advertisement delivery in a certain area as an example, in order to fully understand the purchasing power of users in the area, a first feature map may be drawn according to the daily/weekly/monthly delivery amount of a target advertisement in the area, and target data may be calculated according to the age of users and the purchase amount of users corresponding to the target advertisement in the target time period, where the target data may include an average purchase amount, a price interval in which 90% of users are concentrated, a price interval in which 70% of users are concentrated, and the like, and then a second feature map may be drawn according to the target data, and the first feature map and the second feature map may be synchronously displayed in a display interface, and the first feature map and the second feature map may be automatically played/stopped in response to a trigger operation of a target key by a user. The user can rapidly acquire the required advertisement putting information through the first feature map and the second feature map which are automatically played, and data analysis is carried out according to the acquired advertisement putting information so as to guide the advertisement putting in the later period.
According to the technical scheme, the double-hand operation of a user is avoided, the image is dragged to move, the user can acquire data information only by watching the automatically played feature map, and the user experience is improved; and the user can acquire the data information in different charts at the same time in the same display interface, so that the data acquisition efficiency of the user is improved, and the data analysis efficiency of the user is further improved.
The following describes embodiments of the apparatus of the present invention that may be used to perform the data processing methods of the above-described embodiments of the present invention. For details not disclosed in the embodiments of the apparatus of the present invention, please refer to the embodiments of the data processing method of the present invention.
Fig. 8 schematically shows a block diagram of a data processing apparatus according to an embodiment of the invention.
Referring to fig. 8, a data processing apparatus 800 according to an embodiment of the present invention includes: a data acquisition module 801, a first feature map generation module 802, a second feature map generation module 803, and a feature map display module 804.
The data acquisition module 801 is configured to send a data acquisition request, and acquire first data and second data returned by a server in response to the data acquisition request, where the first data and the second data correspond to each other; a first feature map generating module 802, configured to parse the first data, and draw a map according to the parsing result to form a first feature map; a second feature map generating module 803, configured to determine target data according to the second data, and plot according to the target data to form a second feature map; and the feature map display module 804 is configured to respond to a triggering operation of the user on the target key, and synchronously display the first feature map and the second feature map.
In one embodiment of the present invention, the first data includes first feature data corresponding to a plurality of preset time periods, and the second data includes second feature data corresponding to each of the preset time periods, where any two adjacent preset time periods are continuous in a time domain.
In one embodiment of the present invention, the first feature data includes initial data corresponding to a start time point in the preset time period, end data corresponding to an end time point, and a maximum value and a minimum value in the preset time period; the first feature map generating module 802 is configured to: and calling a first application programming interface of an application platform, and sending the first characteristic data to the application platform through the first application programming interface so that the application platform draws characteristic identifiers corresponding to the preset time periods according to the initial data, the termination data, the maximum value and the minimum value, and forms the first characteristic diagram according to the characteristic identifiers.
In one embodiment of the present invention, the second feature data includes transaction data corresponding to each of the preset time periods, and the second feature map generating module 803 is configured to: after responding to the preset triggering operation of the user, acquiring corresponding cost and quantity of the deal according to each preset time period, and calculating target data corresponding to each preset time period according to the cost and quantity of the deal.
In one embodiment of the present invention, the second feature map generating module 803 is configured to: and calling a second application programming interface of the application platform, and sending the target data to the application platform through the second application programming interface so that the application platform draws the second feature map according to the target data.
Fig. 9 schematically shows a block diagram of a data processing apparatus according to an embodiment of the invention.
Referring to fig. 9, the data processing apparatus 800 according to an embodiment of the present invention further includes: the cross identifier generating module 805 is configured to form a cross identifier according to the preset time period and the termination data corresponding to the preset time period, and superimpose and display the cross identifier on a target feature identifier, where the cross identifier and the target feature identifier correspond to the same preset time period and the same termination data.
In one embodiment of the present invention, the feature map display module 804 includes: the calculating unit is used for responding to the triggering operation, moving the cross mark along a preset direction in a preset stride, and determining target data corresponding to a target time period according to the target time period corresponding to the cross mark; the drawing unit is used for drawing according to the target data corresponding to the target time period to form a target feature map; and the display unit is used for replacing the second characteristic diagram which is currently displayed with the target characteristic diagram and dynamically displaying the first characteristic diagram, the target characteristic diagram and the cross mark in different display areas of a display screen.
In one embodiment of the invention, the computing unit is configured to: determining a target trading price and a target trading quantity according to the target time period; and calculating target data corresponding to the target time period according to the target deal price and the target deal quantity.
Fig. 10 shows a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
It should be noted that, the computer system 1000 of the electronic device shown in fig. 10 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present invention.
As shown in fig. 10, the computer system 1000 includes a central processing unit (Central Processing Unit, CPU) 1001 which can execute various appropriate actions and processes according to a program stored in a Read-Only Memory (ROM) 1002 or a program loaded from a storage section 1008 into a random access Memory (Random Access Memory, RAM) 1003. In the RAM 1003, various programs and data required for system operation are also stored. The CPU 1001, ROM 1002, and RAM 1003 are connected to each other by a bus 1004. An Input/Output (I/O) interface 1005 is also connected to bus 1004.
The following components are connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output portion 1007 including a Cathode Ray Tube (CRT), a liquid crystal display (Liquid Crystal Display, LCD), and a speaker; a storage portion 1008 including a hard disk or the like; and a communication section 1009 including a network interface card such as a LAN (Local Area Network ) card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The drive 1010 is also connected to the I/O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is installed as needed in the drive 1010, so that a computer program read out therefrom is installed as needed in the storage section 1008.
In particular, according to embodiments of the present application, the processes described below with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 1009, and/or installed from the removable medium 1011. When executed by a Central Processing Unit (CPU) 1001, the computer program performs various functions defined in the system of the present application.
It should be noted that, the computer readable medium shown in the embodiments of the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-Only Memory (ROM), an erasable programmable read-Only Memory (Erasable Programmable Read Only Memory, EPROM), flash Memory, an optical fiber, a portable compact disc read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present 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 some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
As another aspect, the present application also provides a computer-readable medium that may be contained in the electronic device described in the above embodiment; or may exist alone without being incorporated into the electronic device. The computer-readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to implement the methods described in the above embodiments.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a touch terminal, or a network device, etc.) to perform the method according to the embodiments of the present application.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (8)

1. A method of data processing, comprising:
sending a data acquisition request, and acquiring first data and second data returned by a server in response to the data acquisition request, wherein the first data and the second data correspond to each other;
analyzing the first data, and drawing according to the analysis result to form a first feature map;
determining target data according to the second data, and drawing according to the target data to form a second characteristic diagram;
responding to the triggering operation of a user to a target key, and synchronously displaying the first characteristic diagram and the second characteristic diagram;
The first data comprise initial data corresponding to a starting time point and termination data corresponding to a termination time point in a preset time period; the method further comprises the steps of:
forming a cross mark according to the preset time period and the termination data corresponding to the preset time period, and superposing and displaying the cross mark on a target feature mark, wherein the cross mark and the target feature mark correspond to the same preset time period and the same termination data;
and responding to the triggering operation of a user on a target key, synchronously displaying the first characteristic diagram and the second characteristic diagram, and comprising the following steps:
responding to the triggering operation, moving the cross mark along a preset direction in a preset stride, and determining target data corresponding to a target time period according to the target time period corresponding to the cross mark;
drawing according to the target data corresponding to the target time period to form a target feature map;
and replacing the second characteristic diagram which is currently displayed with the target characteristic diagram, and dynamically displaying the first characteristic diagram, the target characteristic diagram and the cross mark in different display areas of a display screen.
2. The data processing method according to claim 1, wherein the first data includes first feature data corresponding to a plurality of preset time periods, and the second data includes second feature data corresponding to each of the preset time periods, wherein any two adjacent preset time periods are continuous in a time domain.
3. The data processing method according to claim 2, wherein the first characteristic data includes initial data corresponding to a start time point in the preset time period, end data corresponding to an end time point, and a maximum value and a minimum value in the preset time period;
analyzing the first data, and drawing according to the analysis result to form a first feature map, including:
analyzing the first data to obtain the first characteristic data;
and calling a first application programming interface of an application platform, and sending the first characteristic data to the application platform through the first application programming interface so that the application platform draws characteristic identifiers corresponding to the preset time periods according to the initial data, the termination data, the maximum value and the minimum value, and forms the first characteristic diagram according to the characteristic identifiers.
4. The data processing method according to claim 2, wherein the second characteristic data includes a bargain data corresponding to each of the preset time periods, the bargain data including a bargain price and a bargain quantity corresponding to each of the bargain prices;
determining target data according to the second data, including:
After responding to the preset triggering operation of the user, acquiring corresponding cost and quantity of the deal according to each preset time period, and calculating target data corresponding to each preset time period according to the cost and quantity of the deal.
5. The data processing method of claim 1, wherein plotting from the target data to form a second signature comprises:
and calling a second application programming interface of the application platform, and sending the target data to the application platform through the second application programming interface so that the application platform draws the second feature map according to the target data.
6. The data processing method according to claim 1, wherein determining target data corresponding to the target time period according to the target time period corresponding to the cross identifier includes:
determining a target trading price and a target trading quantity according to the target time period;
and calculating target data corresponding to the target time period according to the target deal price and the target deal quantity.
7. A data processing apparatus, comprising:
the data acquisition module is used for sending a data acquisition request, acquiring first data and second data returned by the server in response to the data acquisition request, wherein the first data and the second data correspond to each other;
The first feature map generating module is used for analyzing the first data and drawing according to the analysis result to form a first feature map;
the second feature map generating module is used for determining target data according to the second data and drawing according to the target data to form a second feature map;
the feature map display module is used for responding to the triggering operation of a user on a target key and synchronously displaying the first feature map and the second feature map;
the first data comprise initial data corresponding to a starting time point and termination data corresponding to a termination time point in a preset time period; the apparatus further comprises:
the cross mark generation module is used for forming a cross mark according to the preset time period and the termination data corresponding to the preset time period, and superposing and displaying the cross mark on a target feature mark, wherein the cross mark and the target feature mark correspond to the same preset time period and the same termination data;
the feature map display module includes: the calculating unit is used for responding to the triggering operation, moving the cross mark along a preset direction in a preset stride, and determining target data corresponding to a target time period according to the target time period corresponding to the cross mark; the drawing unit is used for drawing according to the target data corresponding to the target time period to form a target feature map; and the display unit is used for replacing the second characteristic diagram which is currently displayed with the target characteristic diagram and dynamically displaying the first characteristic diagram, the target characteristic diagram and the cross mark in different display areas of a display screen.
8. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which when executed by the one or more processors cause the one or more processors to implement the data processing method of any of claims 1 to 6.
CN201910289824.8A 2019-04-11 2019-04-11 Data processing method and device and electronic equipment Active CN111813838B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910289824.8A CN111813838B (en) 2019-04-11 2019-04-11 Data processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910289824.8A CN111813838B (en) 2019-04-11 2019-04-11 Data processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111813838A CN111813838A (en) 2020-10-23
CN111813838B true CN111813838B (en) 2023-10-24

Family

ID=72843677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910289824.8A Active CN111813838B (en) 2019-04-11 2019-04-11 Data processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111813838B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150170385A1 (en) * 2012-06-22 2015-06-18 Google Inc. Editing a feature within a map
CN109213404A (en) * 2018-09-05 2019-01-15 北京骏嘉财通科技有限公司 A kind of stock market displaying device and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150170385A1 (en) * 2012-06-22 2015-06-18 Google Inc. Editing a feature within a map
CN109213404A (en) * 2018-09-05 2019-01-15 北京骏嘉财通科技有限公司 A kind of stock market displaying device and method

Also Published As

Publication number Publication date
CN111813838A (en) 2020-10-23

Similar Documents

Publication Publication Date Title
US20190196698A1 (en) Removing and Replacing Objects in Images According to a Directed User Conversation
US20140189476A1 (en) Image manipulation for web content
CN105190665A (en) Mobile creative management system
EP4270967A1 (en) Resource interaction method and apparatus, computer device, and readable storage medium
US10014030B2 (en) Method, device and system for playing video
US11893076B2 (en) Systems and methods for managing an online user experience
CN111124564A (en) Method and device for displaying user interface
US11073965B2 (en) Graphical interface for presentation of interaction data across multiple webpage configurations
CN112130731A (en) Data processing method and device and electronic equipment
CN111626021B (en) Presentation generation method and device
US20150012354A1 (en) Method and System for Placing and Presenting Advertisements
CN111813838B (en) Data processing method and device and electronic equipment
TW201833850A (en) Device, method and computer program product of a watchlist view with a real-time chart
CN113609423B (en) Task configuration method and device, storage medium and computer equipment
US20150227953A1 (en) Holding access price constant for selected time when access prices change dynamically in an automates system for delivering reasonably priced access to content
CN111870951B (en) Page display method and device and page determination method and device
CN113849164A (en) Data processing method and device, electronic equipment and memory
CN110046384B (en) Model instantiation method and device, electronic equipment and computer-readable storage medium
CN105843575A (en) Information display method, device and system
KR101869247B1 (en) Method and system for providing auction service of the contents by using object-information-service based on spot images of video
US20200242684A1 (en) Item resale management
US11782705B2 (en) Scene switching method, device and medium
CN115065866B (en) Video generation method, device, equipment and storage medium
CN115442664A (en) Display method, device, medium and electronic equipment of panel view
CN117519534A (en) Interaction method, device, electronic equipment and storage medium

Legal Events

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