CN110147183B - Data screening method and device - Google Patents
Data screening method and device Download PDFInfo
- Publication number
- CN110147183B CN110147183B CN201710931328.9A CN201710931328A CN110147183B CN 110147183 B CN110147183 B CN 110147183B CN 201710931328 A CN201710931328 A CN 201710931328A CN 110147183 B CN110147183 B CN 110147183B
- Authority
- CN
- China
- Prior art keywords
- data
- line drawing
- drawing data
- selection operation
- screening
- 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.)
- Expired - Fee Related
Links
- 238000012216 screening Methods 0.000 title claims abstract description 84
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000010422 painting Methods 0.000 claims abstract description 68
- 230000001680 brushing effect Effects 0.000 claims abstract description 65
- 230000001960 triggered effect Effects 0.000 claims abstract description 60
- 230000006870 function Effects 0.000 description 27
- 238000004590 computer program Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 10
- 230000008901 benefit Effects 0.000 description 9
- 238000001914 filtration Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000013079 data visualisation Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000012800 visualization Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G06F19/00—
Landscapes
- User Interface Of Digital Computer (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a method and a device for screening data, relates to the technical field of computers, and mainly aims to realize the dragging operation of a line graph and expand the data display function of the line graph, wherein the main technical scheme of the invention is as follows: obtaining line drawing data; judging whether a painting selection operation is triggered in an area corresponding to the line drawing data, wherein a preset code for screening the line drawing data is embedded in the painting selection operation; and if so, screening out data in the area corresponding to the brushing selection operation from the line drawing data according to the preset code. The invention screens the main data.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a data screening method and device.
Background
The polyline statistical graph is the most common graph in a data visualization graph, can not only show the quantity, but also clearly show the increase and decrease of the quantity along with the change of time, is one of the most effective available analysis tools, and plays an important role in data analysis and report.
At present, a common data visualization chart library provides basic line graph components for users to use, and then screening of data is achieved. However, in many application scenarios, a user needs to perform a drag operation on a line graph to obtain data in an area corresponding to the line graph, for example, to obtain data in a start time and an end time of a certain time period in the line graph, while an existing data visualization chart library does not support the drag operation on the line graph, and does not provide a corresponding interface to implement a drag function, so that the screening of line graph data is limited to a certain extent.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for screening data, and mainly aims to implement drag operation of a line graph and expand a data display function of the line graph.
In order to solve the above problems, the present invention mainly provides the following technical solutions:
in one aspect, an embodiment of the present invention provides a data screening method, including:
obtaining line drawing data;
judging whether a painting selection operation is triggered in an area corresponding to the line drawing data, wherein a preset code for screening the line drawing data is embedded in the painting selection operation;
and if so, screening out data in the area corresponding to the brushing selection operation from the line drawing data according to the preset code.
Further, the judging whether a brushing selection operation is triggered in an area corresponding to the line drawing data includes:
acquiring the length of a selected area coated in an area corresponding to the line drawing data;
judging whether a selection operation is triggered in the area corresponding to the line drawing data according to the length of the selected area;
if the length of the brushing selected area is empty, judging that brushing selection operation is not triggered in the area corresponding to the line drawing data;
otherwise, judging that brushing selection operation is triggered in the area corresponding to the line drawing data.
Further, the acquiring the length of the selected area painted in the area corresponding to the line drawing data includes:
setting a brushing selection variable, wherein the brushing selection variable is used for marking a selection state brushed in the line drawing data;
and determining the length of the selected area brushed in the area corresponding to the line drawing data according to the numerical value corresponding to the brushing selection variable.
Further, the screening out data in the area corresponding to the painting selection operation from the line drawing data according to the preset code comprises:
determining a time interval of data corresponding to the edge of the selected area painted in the line drawing data according to the preset code;
and screening the data in the corresponding time interval from the line graph data according to the time interval of the data corresponding to the selected area edge.
Further, the method further comprises:
and screening all data in the area of the broken line graph from the broken line graph if the time interval of the data corresponding to the selected area edge is larger than that of the data of the broken line graph.
In order to achieve the above object, according to another aspect of the present invention, a storage medium is provided, and the storage medium includes a stored program, wherein when the program runs, a device on which the storage medium is located is controlled to execute the above data filtering method.
In order to achieve the above object, according to another aspect of the present invention, there is provided a processor for executing a program, wherein the program executes the method for screening data described above.
On the other hand, an embodiment of the present invention further provides a data screening apparatus, including:
an acquisition unit configured to acquire line drawing data;
the judging unit is used for judging whether a painting selection operation is triggered in an area corresponding to the line drawing data, and a preset screening event is embedded in the painting selection operation;
and the first screening unit is used for screening data in the area corresponding to the brushing selection operation from the line graph data according to the preset code if the brushing selection operation is triggered in the area corresponding to the line graph data.
Further, the judging unit includes:
the acquisition module is used for acquiring the length of the selected area coated in the area corresponding to the line drawing data;
the judging module is used for judging whether the selection operation is triggered in the area corresponding to the line drawing data according to the length of the selected area;
the judging module is specifically used for judging that the painting selection operation is not triggered in the area corresponding to the line drawing data if the length of the painting selected area is empty;
the judging module is specifically further configured to judge that a painting selection operation is triggered in an area corresponding to the line drawing data if the length of the area selected by painting is not empty.
Further, the obtaining module is specifically configured to set a brushing selection variable, where the brushing selection variable is used to identify a selection state of brushing in the line drawing data;
the obtaining module is specifically further configured to determine, according to the numerical value corresponding to the brushing selection variable, a length of the selected area brushed in the area corresponding to the line drawing data.
Further, the first screening unit includes:
the determining module is used for determining a time interval of data corresponding to the selected area edge painted in the line drawing data according to the painting selection operation;
and the screening module is used for screening the data in the corresponding time interval from the line graph data according to the time interval of the data corresponding to the selected area edge.
Further, the apparatus further comprises:
and the second screening unit is used for displaying all the data in the area of the broken line graph if the time interval of the data corresponding to the selected area edge is greater than that of the broken line graph data.
By the technical scheme, the technical scheme provided by the embodiment of the invention at least has the following advantages:
according to the data screening method and device provided by the embodiment of the invention, after the painting selection operation is triggered in the area corresponding to the line drawing data, the data in the area corresponding to the painting selection operation is screened from the line drawing data according to the preset code embedded in the painting selection operation. Compared with the screening method of the data which does not support the dragging operation in the prior art, the method and the device have the advantages that the painting function in the broken line graph is packaged and processed on the basis of not modifying the source code, so that the painting which does not support the broken line graph data screening function originally can realize the dragging function of the broken line graph area after the selection operation is triggered, and the data in the dragging area is screened.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of a data screening method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another data screening method provided by the embodiment of the invention;
fig. 3 is a block diagram illustrating a data filtering apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram of another data screening apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The embodiment of the invention provides a data screening method, as shown in fig. 1, the method can realize a drag function of a line graph area by screening out data in an area corresponding to a brushing selection operation from line graph data according to a preset code embedded in the brushing selection operation after triggering the brushing selection operation in the area corresponding to the line graph data, and the following specific steps are provided for the embodiment of the invention:
101. line graph data is acquired.
The line graph data is obtained by drawing data arranged in columns or rows of a worksheet into a line graph, and the trend of data change in unit time can be obviously observed through the line graph, wherein the line graph data can be clothing sales in different seasons, the browsing number of video website users in unit time and the weather temperature in unit time.
102. And judging whether brushing selection operation is triggered in the area corresponding to the line drawing data.
It should be noted that, because excessive data information may be included in the line graph data, in many scenarios, interaction needs to be performed on part of data in the line graph data, and data in a certain time period needs to be screened from the line graph data for analysis, while the existing data visualization chart library does not support drag operation of a line graph, and a corresponding interface is not provided to implement drag operation to screen the line graph data.
For the embodiment of the invention, the preset code for screening the line drawing data is embedded in the painting selection operation of the line drawing, and the code can screen the line drawing data in the specified data area when a user drags the area in the line drawing by using the painting operation, so that whether the painting selection operation is triggered in the area corresponding to the line drawing data can be judged, if the painting selection operation is triggered, the line drawing data in the selected area is screened, and if not, the data screening operation is not executed.
According to the embodiment of the invention, whether the brushing selection operation embedded with the preset code is triggered in the area corresponding to the line drawing data is judged, so that the brushing selection operation of the line drawing which does not support the data screening function originally supports the data screening function, and a user can conveniently screen the data in the line drawing.
103. And if so, screening out data in the area corresponding to the brushing selection operation from the line drawing data according to the preset code.
The area corresponding to the selection operation is the area corresponding to the data to be screened dragged from the line drawing data by brushing, and the data in the selected area is further screened from the transmitted data, so that the screening of the data is realized.
According to the data screening method provided by the embodiment of the invention, after the painting selection operation is triggered in the area corresponding to the line drawing data, the data in the area corresponding to the painting selection operation is screened from the line drawing data according to the preset code embedded in the painting selection operation. Compared with the screening method of the data which does not support the dragging operation in the prior art, the method and the device have the advantages that the painting function in the broken line graph is packaged and processed on the basis of not modifying the source code, so that the painting which does not support the broken line graph data screening function originally can realize the dragging function of the broken line graph area after the selection operation is triggered, and the data in the dragging area is screened.
In order to describe the data screening method proposed by the present invention in more detail, and in particular, to a step of determining whether a painting selection operation is triggered in an area corresponding to the line graph data, another data screening method is further provided in an embodiment of the present invention, as shown in fig. 2, and the method includes:
201. line graph data is acquired.
For the embodiment of the present invention, the line graph data may be specifically drawn through a line graph option in the Echarts visualization tool and the incoming data LineData, and the line graph data corresponds to the start time StartTime and the end time EndTime of the data.
The Echarts visualization tool described above is a javascript gallery from an open source of hundredths. Through ECharts, various types of charts such as histograms, line charts, chords and the like can be presented, and meanwhile stacking of any dimension and multi-chart mixed presentation are supported.
202. And acquiring the length of the selected area painted in the area corresponding to the line drawing data.
The length of the selected area can be obtained by brushing the first triggered operating point and the coordinate position of the last lifted operating point in the area corresponding to the line drawing data, and further obtaining the length of the selected area painted in the area corresponding to the line drawing according to the coordinate position.
For the embodiment of the present invention, a painting selection variable may be specifically set, where the painting selection variable is used to identify a selection state of painting in the line drawing data, and further, the length of the selected area painted in the area corresponding to the line drawing data is determined according to a numerical value corresponding to the painting selection variable.
203. And judging whether the selection operation is triggered in the area corresponding to the line drawing data according to the length of the selected area.
For the embodiment of the invention, the position relationship of the areas corresponding to the line drawing data when the brushing selection operation is triggered to be lifted for the last time and when the brushing selection operation is triggered to be lifted for the first time may be different, so that the lengths of the selected areas painted in the areas corresponding to the line drawing data are different, and whether the selection operation is triggered in the area corresponding to the line drawing data is further judged according to the length of the selected area.
204a, if the length of the selected painting area is empty, judging that the painting selection operation is not triggered in the area corresponding to the line drawing data.
It should be noted that, if the position of the area corresponding to the line drawing data when the brushing selection operation is triggered to be lifted for the last time may be the same as the position of the area corresponding to the line drawing data when the brushing selection operation is triggered to be lifted for the first time, the selected area is empty, the length of the selected area is zero, and it is determined that the brushing selection operation is not triggered in the area corresponding to the line drawing data.
And if the brushing selection operation is not triggered in the area corresponding to the line drawing data, the fact that any area is not selected in the area corresponding to the line drawing data is shown, and the screening operation is not required to be executed.
Correspondingly, a step 204b is provided corresponding to the step 204a, and if the length of the painting selected area is not empty, it is determined that the painting selection operation is triggered in the area corresponding to the line graph data.
It should be noted that, if the position of the area corresponding to the line drawing data when the brushing selection operation is triggered to be lifted for the last time may be different from the position of the area corresponding to the line drawing data when the brushing selection operation is triggered to be lifted for the first time, and at this time, the selected area is not empty, and it is determined that the brushing selection operation is triggered in the area corresponding to the line drawing data.
And if the brushing selection operation is triggered in the area corresponding to the line drawing data, the selected area is indicated in the area corresponding to the line drawing data, and the data in the selected area needs to be screened.
205b, determining the time interval of the data corresponding to the selected area edge painted in the line drawing data according to the preset code.
The preset code is used for screening out data in a region corresponding to the painting selection operation from the line graph data, the data corresponding to the edge of the selected region corresponds to a corresponding time interval in the line graph data, for example, the unit time is hour, the time interval corresponding to the data corresponding to the edge of the selected region in the line graph can be 7 hours to 9 hours, the unit time is month, the time interval corresponding to the data corresponding to the edge of the selected region in the line graph can be 1 month to 4 months, and the like.
206b, screening the data in the corresponding time interval from the line graph data according to the time interval of the data corresponding to the selected area edge.
After the time interval of the data corresponding to the edge is determined, the time interval corresponds to corresponding line graph data, and it can be understood that the line graph data in the time interval is part of or all of the data in the line graph data, and the data corresponds to respective time information when being transmitted through the Echarts visualization tool, so that the part of the data is screened from the line graph data according to the time interval.
And 207b, if the time interval of the data corresponding to the selected area edge is larger than that of the data of the line graph, screening all data in the area of the line graph from the line graph.
It should be noted that if the time interval of the data corresponding to the selected area edge is greater than the time interval of the line graph data, it indicates that the data to be screened is greater than the range of the line graph data, and there is no redundant line graph data when the data is transmitted, so that the time interval of the data corresponding to the selected area edge is greater than the time interval of the line graph data, all the data in the line graph area is screened out from the line graph.
For the embodiment of the invention, Echarts is a very mature visualization tool, the stability and reliability of the acquired line graph data can be ensured, the preset code is embedded in the painting selection operation of the line graph, so that the screening of the data of the selected area in the line graph can be realized through the painting selection operation, a very practical function is added for the Echarts line graph, the practicability of the Echarts line graph is expanded, and the method does not need to modify the Echarts source code, thereby saving the work of research personnel.
According to another data screening method provided by the embodiment of the invention, after the painting selection operation is triggered in the area corresponding to the line drawing data, the data in the area corresponding to the painting selection operation is screened from the line drawing data according to the preset code embedded in the painting selection operation. Compared with the screening method of the data which does not support the dragging operation in the prior art, the method and the device have the advantages that the painting function in the broken line graph is packaged and processed on the basis of not modifying the source code, so that the painting which does not support the broken line graph data screening function originally can realize the dragging function of the broken line graph area after the selection operation is triggered, and the data in the dragging area is screened.
In order to achieve the above object, according to another aspect of the present invention, an embodiment of the present invention further provides a storage medium, where the storage medium includes a stored program, and when the program runs, a device on which the storage medium is located is controlled to execute the above data filtering method.
In order to achieve the above object, according to another aspect of the present invention, an embodiment of the present invention further provides a processor, where the processor is configured to execute a program, where the program executes the method for screening data described above.
Further, as an implementation of the method shown in fig. 1 and fig. 2, another embodiment of the present invention further provides a data screening apparatus. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. The device can realize the dragging operation of the line graph and expand the data display function of the line graph, and specifically as shown in fig. 3, the device comprises:
an acquisition unit 31 operable to acquire line drawing data;
the judging unit 32 may be configured to judge whether a brushing selection operation is triggered in an area corresponding to the line drawing data, where a preset screening event is embedded in the brushing selection operation;
the first screening unit 33 may be configured to, if a painting selection operation is triggered in an area corresponding to the line drawing data, screen data in the area corresponding to the painting selection operation from the line drawing data according to the preset code.
The embodiment of the invention provides a data screening device, which screens out data in an area corresponding to a brushing selection operation from line graph data according to a preset code embedded in the brushing selection operation after triggering the brushing selection operation in the area corresponding to the line graph data. Compared with the screening method of the data which does not support the dragging operation in the prior art, the method and the device have the advantages that the painting function in the broken line graph is packaged and processed on the basis of not modifying the source code, so that the painting which does not support the broken line graph data screening function originally can realize the dragging function of the broken line graph area after the selection operation is triggered, and the data in the dragging area is screened.
Further, as shown in fig. 4, the apparatus further includes:
the second filtering unit 34 may be configured to display all data in the polyline map area if the time interval of the data corresponding to the selected area edge is greater than the time interval of the polyline map data.
Further, the judging unit 32 includes:
an obtaining module 321, configured to obtain a length of a selected area painted in an area corresponding to the line drawing data;
the judging module 322 may be configured to judge whether a selection operation is triggered in an area corresponding to the line drawing data according to the length of the selected area;
the determining module 322 is specifically configured to determine that the painting selection operation is not triggered in the area corresponding to the line drawing data if the length of the painting selected area is empty;
the determining module 322 may be further configured to determine that a painting selection operation is triggered in an area corresponding to the line drawing data if the length of the selected area is not empty.
Further, the obtaining module 321 may be specifically configured to set a brushing selection variable, where the brushing selection variable is used to identify a selection state of brushing in the line drawing data;
the obtaining module 321 may be further specifically configured to determine, according to the numerical value corresponding to the brushing selection variable, a length of the selected area brushed in the area corresponding to the line drawing data.
Further, the first screening unit 33 includes:
the determining module 331 may be configured to determine, according to the brushing selection operation, a time interval of data corresponding to the edge of the selected area painted in the line drawing data;
the filtering module 332 may be configured to filter the data in the corresponding time interval from the line graph data according to the time interval of the data corresponding to the selected area edge.
According to the screening device for the other data, provided by the embodiment of the invention, after the painting selection operation is triggered in the area corresponding to the line drawing data, the data in the area corresponding to the painting selection operation is screened from the line drawing data according to the preset code embedded in the painting selection operation. Compared with the screening method of the data which does not support the dragging operation in the prior art, the method and the device have the advantages that the painting function in the broken line graph is packaged and processed on the basis of not modifying the source code, so that the painting which does not support the broken line graph data screening function originally can realize the dragging function of the broken line graph area after the selection operation is triggered, and the data in the dragging area is screened.
The data screening device comprises a processor and a memory, wherein the acquiring unit 31, the judging unit 32, the first screening unit 33 and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more, and the complexity of program development of a developer is reduced by adjusting kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium on which a program is stored, the program implementing the method for screening data when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program executes the data screening method during running.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps:
a method of screening data, comprising: obtaining line drawing data; judging whether a painting selection operation is triggered in an area corresponding to the line drawing data, wherein a preset code for screening the line drawing data is embedded in the painting selection operation; and if so, screening out data in the area corresponding to the brushing selection operation from the line drawing data according to the preset code.
Further, the judging whether a brushing selection operation is triggered in an area corresponding to the line drawing data includes: acquiring the length of a selected area coated in an area corresponding to the line drawing data; judging whether a selection operation is triggered in the area corresponding to the line drawing data according to the length of the selected area; if the length of the brushing selected area is empty, judging that brushing selection operation is not triggered in the area corresponding to the line drawing data; otherwise, judging that brushing selection operation is triggered in the area corresponding to the line drawing data.
Further, the acquiring the length of the selected area painted in the area corresponding to the line drawing data includes: setting a brushing selection variable, wherein the brushing selection variable is used for marking a selection state brushed in the line drawing data; and determining the length of the selected area brushed in the area corresponding to the line drawing data according to the numerical value corresponding to the brushing selection variable.
Further, the screening out data in the area corresponding to the painting selection operation from the line drawing data according to the preset code comprises: determining a time interval of data corresponding to the edge of the selected area painted in the line drawing data according to the preset code; and screening the data in the corresponding time interval from the line graph data according to the time interval of the data corresponding to the selected area edge.
Further, the method further comprises: and screening all data in the area of the broken line graph from the broken line graph if the time interval of the data corresponding to the selected area edge is larger than that of the data of the broken line graph.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform program code for initializing the following method steps when executed on a data processing device: acquiring message delay time; setting a data structure of a timer to be a Boolean type data structure when the message delay time reaches a preset time threshold; starting a timer of a Boolean data structure, and judging whether the message delay time reaches a preset time interval or not through the timer of the Boolean data structure; if yes, message alarm information is sent to the monitoring system.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (10)
1. A method for screening data, comprising:
obtaining line drawing data;
judging whether a painting selection operation is triggered in an area corresponding to the line drawing data, wherein a preset code for screening the line drawing data is embedded in the painting selection operation;
and if so, screening out data in the area corresponding to the brushing selection operation from the line drawing data according to the preset code.
2. The method of claim 1, wherein the determining whether a painting selection operation is triggered in an area corresponding to the line graph data comprises:
acquiring the length of a selected area coated in an area corresponding to the line drawing data;
judging whether a selection operation is triggered in the area corresponding to the line drawing data according to the length of the selected area;
if the length of the brushing selected area is empty, judging that brushing selection operation is not triggered in the area corresponding to the line drawing data;
otherwise, judging that brushing selection operation is triggered in the area corresponding to the line drawing data.
3. The method of claim 2, wherein obtaining the length of the selected region painted within the region corresponding to the line drawing data comprises:
setting a brushing selection variable, wherein the brushing selection variable is used for marking a selection state brushed in the line drawing data;
and determining the length of the selected area brushed in the area corresponding to the line drawing data according to the numerical value corresponding to the brushing selection variable.
4. The method of claim 1, wherein the screening data in the region corresponding to a painting selection operation from the line graph data according to the preset code comprises:
determining a time interval of data corresponding to the edge of the selected area painted in the line drawing data according to the preset code;
and screening the data in the corresponding time interval from the line graph data according to the time interval of the data corresponding to the selected area edge.
5. The method of claim 4, further comprising:
and screening all data in the area of the broken line graph from the broken line graph if the time interval of the data corresponding to the selected area edge is larger than that of the data of the broken line graph.
6. A data screening device is characterized in that,
an acquisition unit configured to acquire line drawing data;
the judging unit is used for judging whether a painting selection operation is triggered in an area corresponding to the line drawing data, and a preset screening event is embedded in the painting selection operation;
and the first screening unit is used for screening data in the area corresponding to the brushing selection operation from the line graph data according to a preset code if the brushing selection operation is triggered in the area corresponding to the line graph data.
7. The apparatus according to claim 6, wherein the judging unit includes:
the acquisition module is used for acquiring the length of the selected area coated in the area corresponding to the line drawing data;
the judging module is used for judging whether the selection operation is triggered in the area corresponding to the line drawing data according to the length of the selected area;
the judging module is specifically used for judging that the painting selection operation is not triggered in the area corresponding to the line drawing data if the length of the painting selected area is empty;
the judging module is specifically further configured to judge that a painting selection operation is triggered in an area corresponding to the line drawing data if the length of the area selected by painting is not empty.
8. The apparatus of claim 7,
the acquisition module is specifically used for setting a brushing selection variable, and the brushing selection variable is used for identifying a selection state of brushing in the line drawing data;
the obtaining module is specifically further configured to determine, according to the numerical value corresponding to the brushing selection variable, a length of the selected area brushed in the area corresponding to the line drawing data.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device where the storage medium is located is controlled to execute the data screening method according to any one of claims 1 to 5.
10. A processor configured to run a program, wherein the program is configured to perform the method for screening data according to any one of claims 1 to 5 when the program is run.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710931328.9A CN110147183B (en) | 2017-10-09 | 2017-10-09 | Data screening method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710931328.9A CN110147183B (en) | 2017-10-09 | 2017-10-09 | Data screening method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110147183A CN110147183A (en) | 2019-08-20 |
CN110147183B true CN110147183B (en) | 2021-03-30 |
Family
ID=67588105
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710931328.9A Expired - Fee Related CN110147183B (en) | 2017-10-09 | 2017-10-09 | Data screening method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110147183B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111352688A (en) * | 2020-03-27 | 2020-06-30 | 西安震有信通科技有限公司 | Method and device for screening line graphs and storage medium |
CN114327215B (en) * | 2022-03-15 | 2022-07-29 | 之江实验室 | Method, device and medium for intelligently identifying object brushing of chart |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103412871A (en) * | 2013-07-08 | 2013-11-27 | 北京百度网讯科技有限公司 | Method and device for generating visualized view |
CN106528521A (en) * | 2015-09-11 | 2017-03-22 | 北京国双科技有限公司 | Method and device for screening social application data |
CN106648567A (en) * | 2015-10-30 | 2017-05-10 | 北京国双科技有限公司 | Data acquisition method and device |
CN106648397A (en) * | 2015-11-02 | 2017-05-10 | 网易(杭州)网络有限公司 | Game operation recording and processing method and system for mobile terminal |
CN106802750A (en) * | 2015-11-26 | 2017-06-06 | 北京国双科技有限公司 | Realize the exchange method and device of data processing |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9135233B2 (en) * | 2011-10-13 | 2015-09-15 | Microsoft Technology Licensing, Llc | Suggesting alternate data mappings for charts |
US8860762B2 (en) * | 2011-10-28 | 2014-10-14 | Sap Se | Polar multi-selection |
KR20150026095A (en) * | 2013-08-30 | 2015-03-11 | 삼성전자주식회사 | Apparatus and method for displaying a chart in an eletronic device |
-
2017
- 2017-10-09 CN CN201710931328.9A patent/CN110147183B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103412871A (en) * | 2013-07-08 | 2013-11-27 | 北京百度网讯科技有限公司 | Method and device for generating visualized view |
CN106528521A (en) * | 2015-09-11 | 2017-03-22 | 北京国双科技有限公司 | Method and device for screening social application data |
CN106648567A (en) * | 2015-10-30 | 2017-05-10 | 北京国双科技有限公司 | Data acquisition method and device |
CN106648397A (en) * | 2015-11-02 | 2017-05-10 | 网易(杭州)网络有限公司 | Game operation recording and processing method and system for mobile terminal |
CN106802750A (en) * | 2015-11-26 | 2017-06-06 | 北京国双科技有限公司 | Realize the exchange method and device of data processing |
Also Published As
Publication number | Publication date |
---|---|
CN110147183A (en) | 2019-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108089856B (en) | Page element monitoring method and device | |
CN107506376B (en) | Client for acquiring data of information point in area | |
CN110083346B (en) | Screening configuration method and device based on data visualization interface | |
CN106933887B (en) | Data visualization method and device | |
CN106909294B (en) | Method and device for realizing data graph comparison on touch screen equipment | |
TW201737053A (en) | Information display method and apparatus | |
CN110147183B (en) | Data screening method and device | |
CN109857964B (en) | Thermodynamic diagram drawing method and device for page operation, storage medium and processor | |
CN112579686A (en) | Interaction method, interaction device, storage medium and electronic equipment | |
CN110110000B (en) | Display method and device | |
CN110888922A (en) | Method and device for creating target table during data synchronization | |
CN110968811B (en) | Display control method and device | |
CN110968385A (en) | Proportion display method and device | |
CN107450809B (en) | Page interaction method and device and electronic terminal | |
CN109495531A (en) | Request processing method and device | |
CN112559576A (en) | Data display method, system, device, storage medium and electronic equipment | |
CN110968377B (en) | Interface display processing method and device | |
CN112579880A (en) | Data analysis method and device, storage medium and electronic equipment | |
CN115688102A (en) | Window processing method and device, processor and electronic equipment | |
CN110968993A (en) | Information processing method and device, storage medium and processor | |
CN115659045A (en) | User operation identification method and device, storage medium and electronic equipment | |
CN114968028A (en) | Method, apparatus, and medium for dynamically changing menu layout based on user behavior analysis | |
CN107133241B (en) | Data display method and device | |
CN109582191B (en) | Menu content display method and device | |
CN112579082A (en) | Interactive state data establishing method and device, storage medium and electronic equipment |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210330 |