CN110263310A - Data drawing generating method, device and computer readable storage medium - Google Patents

Data drawing generating method, device and computer readable storage medium Download PDF

Info

Publication number
CN110263310A
CN110263310A CN201910404757.XA CN201910404757A CN110263310A CN 110263310 A CN110263310 A CN 110263310A CN 201910404757 A CN201910404757 A CN 201910404757A CN 110263310 A CN110263310 A CN 110263310A
Authority
CN
China
Prior art keywords
data
reference axis
group
boundary
target data
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.)
Granted
Application number
CN201910404757.XA
Other languages
Chinese (zh)
Other versions
CN110263310B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910404757.XA priority Critical patent/CN110263310B/en
Publication of CN110263310A publication Critical patent/CN110263310A/en
Application granted granted Critical
Publication of CN110263310B publication Critical patent/CN110263310B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Abstract

The invention discloses a kind of data drawing generating methods, this method comprises: obtaining the file destination that user provides;Read the target data in the file destination;To the target data statistical disposition, the boundary of reference axis is determined;Judge whether to execute reference axis truncation;If executing reference axis truncation, based on the boundary of the reference axis, strategy is truncated using reference axis and draws target data figure;If not executing reference axis truncation, based on the boundary of the reference axis, target data figure is drawn according to the timing of the target data.The present invention can improve drawing efficiency, adapt to trend and needs that big data is drawn, improve the accuracy and readability of map data result.

Description

Data drawing generating method, device and computer readable storage medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of data drawing generating methods, device and computer-readable Storage medium.
Background technique
Traditional map data is based primarily upon the data processing softwares such as Excel and carries out hand drawn, but with big data skill The fast development of art and the raising of productivity, typical graphics mode have been unable to satisfy the needs of the input of current mass data, It is difficult to realize the efficient image output demand of regularization.In addition, such as image is truncated, the more high-end drawing of splicing needs in proportion It asks, it is relatively difficult to achieve in common mapping software, and manual modified mode is mostly used to complete greatly, time-consuming and laborious, there are larger Drawing bottleneck.
Summary of the invention
The present invention provides a kind of data drawing generating method, device and computer readable storage medium, main purpose and is Test cases can be automatically generated, and is presented to user automatically for selection by the user, improves user experience.
To achieve the above object, the present invention also provides a kind of data drawing generating methods, which comprises
Obtain the file destination that user provides;
Read the target data in the file destination;
To the target data statistical disposition, the boundary of reference axis is determined;
Judge whether to execute reference axis truncation;
If executing reference axis truncation, based on the boundary of the reference axis, strategy is truncated using reference axis and draws target data Figure;
If not executing reference axis truncation, based on the boundary of the reference axis, mesh is drawn according to the timing of the target data Mark datagram.
Preferably, the target data read in the file destination includes:
The space character in row data by reading the file destination obtains target data, wherein the target data Including at least one set of data group, the corresponding datagram of every group of data group.
Preferably, described to the target data statistical disposition, determine that the boundary of reference axis includes:
For every group of data group, every group of data group is ranked up according to the sequence that timing is incremented by, make every group of data group by Timing incremental arrangement obtains every group of arrangement data;
According to every group of arrangement data, it is minimum to obtain target value maximum value and target value at least one set of data group Value and time point maximum value and time point minimum value;
According to the target value maximum value and Target Minimum, the up-and-down boundary of axis of ordinates is determined;
According to time point maximum value and time point minimum value, the up-and-down boundary of axis of abscissas is determined.
Preferably, described to judge whether that executing reference axis truncation includes:
If existing in the region more than preset range size in the target data without data point, it is determined that there is truncation Point executes reference axis truncation.
Preferably, the boundary based on the reference axis, strategy drafting target data figure, which is truncated, using reference axis includes:
The target data is divided into multiple portions using point of cut-off;
The corresponding data subgraph of data of each part is drawn respectively;
Based on the boundary of the reference axis, by the corresponding data subgraph splicing of the data of each part in the reference axis In, and obtain the target data figure.
Preferably, target data figure is drawn according to the timing of the target data in the boundary based on the reference axis Include:
According to every group of arrangement data, every group of data group maximum value and minimum value are obtained, and determines the drawing of this group of data Up-and-down boundary;
In the white space of up-and-down boundary, according to the timing of every group of arrangement data, by the data point of every group of data by It is a to be plotted in figure, and obtain the target data figure.
Preferably, the method also includes:
If there are multi-group datas in the target data, every data figure is drawn using different the preset styles.
Preferably, the method also includes:
By scaled to the default size of target data figure, and draw the coordinate scale in the target data figure Line and mark.
To achieve the goals above, the present invention also provides a kind of datagram generating means, described device include memory and Processor, the datagram that be stored on the memory to run on the processor generate program, and the datagram generates Program realizes following steps when being executed by the processor:
Obtain the file destination that user provides;
Read the target data in the file destination;
To the target data statistical disposition, the boundary of reference axis is determined;
Judge whether to execute reference axis truncation;
If executing reference axis truncation, based on the boundary of the reference axis, strategy is truncated using reference axis and draws target data Figure;
If not executing reference axis truncation, based on the boundary of the reference axis, mesh is drawn according to the timing of the target data Mark datagram.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium It is stored with datagram on storage medium and generates program, the datagram generates program and can be executed by one or more processor, With the step of realizing data drawing generating method as described above.
Through the above technical solutions, the present invention obtains the file destination that user provides;Read the mesh in the file destination Mark data;To the target data statistical disposition, the boundary of reference axis is determined;Judge whether to execute reference axis truncation;If executing Reference axis truncation is truncated strategy using reference axis and is drawn target data figure based on the boundary of the reference axis;If not executing coordinate Axis truncation draws target data figure according to the timing of the target data based on the boundary of the reference axis.The present invention can improve Drawing efficiency adapts to trend and needs that big data is drawn, improves the accuracy and readability of map data result.
Detailed description of the invention
Fig. 1 is the flow diagram for the data drawing generating method that one embodiment of the invention provides;
Fig. 2 is the schematic diagram of internal structure for the datagram generating means that one embodiment of the invention provides;
Datagram generates the module diagram of program in the datagram generating means that Fig. 3 provides for one embodiment of the invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of data drawing generating method.It is the datagram that one embodiment of the invention provides shown in referring to Fig.1 The flow diagram of generation method.This method can be executed by a device, which can be by software and or hardware realization.
In the present embodiment, data drawing generating method includes:
S10, the file destination that user provides is obtained.
In the present embodiment, input of the data file provided from user as drawing process is provided.Data file master It to be stored with csv, txt, xls or xlsx format.
Wherein csv file is with plain text storage list data (number and text).Plain text is a character string, Without data that must be interpreted as binary digit.Csv file is made of any number of record, with certain between record Newline separates;Every record is made of field, and the separator of interfield is other characters or character string, most commonly comma Or tab.The data file data storage method of txt format is similar to csv, passes through separators data, reading manner It is identical as the reading manner of csv file.Xls or xlsx file is read then directly by reading the data with each unit lattice in a line Read data.
Target data in S11, the reading file destination.
In the present embodiment, the target data read in the file destination includes:
The space character in row data by reading the file destination obtains target data, wherein the target data Including at least one set of data group, the corresponding datagram of every group of data group.
One in the specific implementation, by every data line in reading file destination to the number at same abscissa (i.e. time point) According to being read out, data are separated by reading the space character in row data.First data represents current after segmentation The abscissa (time point) of data, data bulk thereafter represent the group number of data group in the tables of data, that is, need to be plotted in figure In folding number of lines, each data respectively represent notebook data group in the Y value of this abscissa (time point).By data group Number scale is recorded in memory, is used for subsequent step.Data line moves to next line after the completion of reading continues to read future time point Data read all data lines completed in data file until reading to end of file.
S12, to the target data statistical disposition, determine the boundary of reference axis.
In order to avoid selecting unreasonable or there are the datagrams that larger reference axis interval causes to complete because of coordinate scale Readable poor, trend shows situations such as unobvious, needs to carry out statistics and analysis to data before drafting, to determine drawing data The boundary of figure and scale.
Preferably, described to the target data statistical disposition, determine that the boundary of reference axis includes:
For every group of data group, every group of data group is ranked up according to the sequence that timing is incremented by, make every group of data group by Timing incremental arrangement obtains every group of arrangement data;
According to every group of arrangement data, it is minimum to obtain target value maximum value and target value at least one set of data group Value and time point maximum value and time point minimum value;
According to the target value maximum value and Target Minimum, the up-and-down boundary of axis of ordinates is determined;
According to time point maximum value and time point minimum value, the up-and-down boundary of axis of abscissas is determined.
S13, judge whether to execute reference axis truncation.
In one embodiment, it is preferable that described to judge whether that executing reference axis truncation includes:
If existing in the region more than preset range size in the target data without data point, it is determined that there is truncation Point executes reference axis truncation.
Such as a part of data are fallen within the scope of 0-100, and another part data are fallen within the scope of 500-900, then by 100 It is recorded as point of cut-off with 500, point of cut-off must be performed corresponding processing in subsequent drawing course.
If S14, executing reference axis truncation, based on the boundary of the reference axis, strategy is truncated using reference axis and draws target Datagram.
Preferably, the boundary based on the reference axis, strategy drafting target data figure, which is truncated, using reference axis includes:
The target data is divided into multiple portions using point of cut-off;
The corresponding data subgraph of data of each part is drawn respectively;
Based on the boundary of the reference axis, by the corresponding data subgraph splicing of the data of each part in the reference axis In, and obtain the target data figure.
Specifically, data point is divided into two or more parts using point of cut-off, each part is distinguished as subgraph It draws, the detailed process that subgraph is drawn is consistent with the method for drafting in next step.Each subgraph is spliced in proportion after completing, Splice that the subgraph of each section in complete the same coordinate system.Reference axis is finally subjected to unification, removes redundant coordinates axis, and right Splice reference axis truncation position in the figure completed and puts on cutoff flag and truncation point value.
If S15, not executing reference axis truncation, based on the boundary of the reference axis, drawn according to the timing of the target data Target data figure processed.
Preferably, target data figure is drawn according to the timing of the target data in the boundary based on the reference axis Include:
According to every group of arrangement data, every group of data group maximum value and minimum value are obtained, and determines the drawing of this group of data Up-and-down boundary;
In the white space of up-and-down boundary, according to the timing of every group of arrangement data, by the data point of every group of data by It is a to be plotted in figure, and obtain the target data figure.
Specifically, the bound drawn is determined according to the data group maximum value and minimum value that acquire first, and to upper Lower boundary increase is suitably left white space, avoids curve from reaching picture boundary, influences vision perception.It determines behind drawing boundary chronologically Data point is plotted in figure one by one.For each data point, abscissa is the first numerical value of data line (i.e. time point), ordinate Corresponding numerical value is in the relative position of ordinate.It often increases point of completing newly, i.e., connect the point with straight line with previous point, Broken line is formed, until Drawing of Curve is completed.
Preferably, the method also includes:
If there are multi-group datas in the target data, every data figure is drawn using different the preset styles.When depositing In multi-group data, system draw each group of data respectively using preset different patterns, distinguishes and recognizes convenient for user Data.The same coordinate system is shared in the drafting of multi-group data, so as to the Relationship Between Dynamic Change and numeric ratio of customer analysis multi-group data Compared with.
Preferably, the method also includes:
By scaled to the default size of target data figure, and draw the coordinate scale in the target data figure Line and mark.Facilitate user to understand the substantially numberical range of data, improves the readability of datagram.Output for multi-group data Picture must also increase style identifications in the picture upper right corner, to prompt user to distinguish data group.
The invention discloses a kind of data drawing generating methods, this method comprises: obtaining the file destination that user provides;It reads Target data in the file destination;To the target data statistical disposition, the boundary of reference axis is determined;Judge whether to execute Reference axis truncation;If executing reference axis truncation, based on the boundary of the reference axis, strategy is truncated using reference axis and draws number of targets According to figure;If not executing reference axis truncation, based on the boundary of the reference axis, number of targets is drawn according to the timing of the target data According to figure.The present invention can improve drawing efficiency, adapt to trend and needs that big data is drawn, improve the accuracy of map data result And readability.
The present invention also provides a kind of datagram generating means.It is the data that one embodiment of the invention provides referring to shown in Fig. 2 The schematic diagram of internal structure of figure generating means.
In the present embodiment, datagram generating means 1 can be PC (Personal Computer, PC), can also To be the terminal devices such as smart phone, tablet computer, portable computer.The datagram generating means 1 include at least memory 11, Processor 12, communication bus 13 and network interface 14.
Wherein, memory 11 include at least a type of readable storage medium storing program for executing, the readable storage medium storing program for executing include flash memory, Hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), magnetic storage, disk, CD etc..Memory 11 It can be the internal storage unit of datagram generating means 1 in some embodiments, such as the datagram generating means 1 is hard Disk.Memory 11 is also possible to the External memory equipment of datagram generating means 1, such as datagram life in further embodiments At the plug-in type hard disk being equipped on device 1, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, memory 11 can also both include that datagram generates dress The internal storage unit for setting 1 also includes External memory equipment.Memory 11 can be not only used for storage and be installed on datagram generation The application software and Various types of data of device 1, such as datagram generate the code etc. of program 01, can be also used for temporarily storing Data through exporting or will export.
Processor 12 can be in some embodiments a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips, the program for being stored in run memory 11 Code or processing data, such as execute datagram and generate program 01 etc..
Communication bus 13 is for realizing the connection communication between these components.
Network interface 14 optionally may include standard wireline interface and wireless interface (such as WI-FI interface), be commonly used in Communication connection is established between the device 1 and other electronic equipments.
Optionally, which can also include user interface, and user interface may include display (Display), input Unit such as keyboard (Keyboard), optional user interface can also include standard wireline interface and wireless interface.It is optional Ground, in some embodiments, display can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display and organic hair Optical diode (Organic Light-Emitting Diode, OLED) touches device etc..Wherein, display appropriate can also claim It is visual for being shown in the information handled in datagram generating means 1 and for showing for display screen or display unit User interface.
Fig. 2 illustrates only the datagram generating means 1 that program 01 is generated with component 11-14 and datagram, this field Technical staff it is understood that structure shown in fig. 1 not structure paired data figure generating means 1 restriction, may include ratio It illustrates less perhaps more components and perhaps combines certain components or different component layouts.
In 1 embodiment of device shown in Fig. 2, it is stored with datagram in memory 11 and generates program 01;Processor 12 is held The datagram stored in line storage 11 realizes following steps when generating program 01:
Obtain the file destination that user provides.
In the present embodiment, input of the data file provided from user as drawing process is provided.Data file master It to be stored with csv, txt, xls or xlsx format.
Wherein csv file is with plain text storage list data (number and text).Plain text is a character string, Without data that must be interpreted as binary digit.Csv file is made of any number of record, with certain between record Newline separates;Every record is made of field, and the separator of interfield is other characters or character string, most commonly comma Or tab.The data file data storage method of txt format is similar to csv, passes through separators data, reading manner It is identical as the reading manner of csv file.Xls or xlsx file is read then directly by reading the data with each unit lattice in a line Read data.
Read the target data in the file destination.
In the present embodiment, the target data read in the file destination includes:
The space character in row data by reading the file destination obtains target data, wherein the target data Including at least one set of data group, the corresponding datagram of every group of data group.
One in the specific implementation, by every data line in reading file destination to the number at same abscissa (i.e. time point) According to being read out, data are separated by reading the space character in row data.First data represents current after segmentation The abscissa (time point) of data, data bulk thereafter represent the group number of data group in the tables of data, that is, need to be plotted in figure In folding number of lines, each data respectively represent notebook data group in the Y value of this abscissa (time point).By data group Number scale is recorded in memory, is used for subsequent step.Data line moves to next line after the completion of reading continues to read future time point Data read all data lines completed in data file until reading to end of file.
To the target data statistical disposition, the boundary of reference axis is determined.
In order to avoid selecting unreasonable or there are the datagrams that larger reference axis interval causes to complete because of coordinate scale Readable poor, trend shows situations such as unobvious, needs to carry out statistics and analysis to data before drafting, to determine drawing data The boundary of figure and scale.
Preferably, described to the target data statistical disposition, determine that the boundary of reference axis includes:
For every group of data group, every group of data group is ranked up according to the sequence that timing is incremented by, make every group of data group by Timing incremental arrangement obtains every group of arrangement data;
According to every group of arrangement data, it is minimum to obtain target value maximum value and target value at least one set of data group Value and time point maximum value and time point minimum value;
According to the target value maximum value and Target Minimum, the up-and-down boundary of axis of ordinates is determined;
According to time point maximum value and time point minimum value, the up-and-down boundary of axis of abscissas is determined.
Judge whether to execute reference axis truncation.
In one embodiment, it is preferable that described to judge whether that executing reference axis truncation includes:
If existing in the region more than preset range size in the target data without data point, it is determined that there is truncation Point executes reference axis truncation.
Such as a part of data are fallen within the scope of 0-100, and another part data are fallen within the scope of 500-900, then by 100 It is recorded as point of cut-off with 500, point of cut-off must be performed corresponding processing in subsequent drawing course.
If executing reference axis truncation, based on the boundary of the reference axis, strategy is truncated using reference axis and draws target data Figure.
Preferably, the boundary based on the reference axis, strategy drafting target data figure, which is truncated, using reference axis includes:
The target data is divided into multiple portions using point of cut-off;
The corresponding data subgraph of data of each part is drawn respectively;
Based on the boundary of the reference axis, by the corresponding data subgraph splicing of the data of each part in the reference axis In, and obtain the target data figure.
Specifically, data point is divided into two or more parts using point of cut-off, each part is distinguished as subgraph It draws, the detailed process that subgraph is drawn is consistent with the method for drafting in next step.Each subgraph is spliced in proportion after completing, Splice that the subgraph of each section in complete the same coordinate system.Reference axis is finally subjected to unification, removes redundant coordinates axis, and right Splice reference axis truncation position in the figure completed and puts on cutoff flag and truncation point value.
If not executing reference axis truncation, based on the boundary of the reference axis, mesh is drawn according to the timing of the target data Mark datagram.
Preferably, target data figure is drawn according to the timing of the target data in the boundary based on the reference axis Include:
According to every group of arrangement data, every group of data group maximum value and minimum value are obtained, and determines the drawing of this group of data Up-and-down boundary;
In the white space of up-and-down boundary, according to the timing of every group of arrangement data, by the data point of every group of data by It is a to be plotted in figure, and obtain the target data figure.
Specifically, the bound drawn is determined according to the data group maximum value and minimum value that acquire first, and to upper Lower boundary increase is suitably left white space, avoids curve from reaching picture boundary, influences vision perception.It determines behind drawing boundary chronologically Data point is plotted in figure one by one.For each data point, abscissa is the first numerical value of data line (i.e. time point), ordinate Corresponding numerical value is in the relative position of ordinate.It often increases point of completing newly, i.e., connect the point with straight line with previous point, Broken line is formed, until Drawing of Curve is completed.
Preferably, the method also includes:
If there are multi-group datas in the target data, every data figure is drawn using different the preset styles.When depositing In multi-group data, system draw each group of data respectively using preset different patterns, distinguishes and recognizes convenient for user Data.The same coordinate system is shared in the drafting of multi-group data, so as to the Relationship Between Dynamic Change and numeric ratio of customer analysis multi-group data Compared with.
Preferably, the method also includes:
By scaled to the default size of target data figure, and draw the coordinate scale in the target data figure Line and mark.Facilitate user to understand the substantially numberical range of data, improves the readability of datagram.Output for multi-group data Picture must also increase style identifications in the picture upper right corner, to prompt user to distinguish data group.
The invention discloses a kind of data drawing generating methods, this method comprises: obtaining the file destination that user provides;It reads Target data in the file destination;To the target data statistical disposition, the boundary of reference axis is determined;Judge whether to execute Reference axis truncation;If executing reference axis truncation, based on the boundary of the reference axis, strategy is truncated using reference axis and draws number of targets According to figure;If not executing reference axis truncation, based on the boundary of the reference axis, number of targets is drawn according to the timing of the target data According to figure.The present invention can improve drawing efficiency, adapt to trend and needs that big data is drawn, improve the accuracy of map data result And readability.
Optionally, in other embodiments, datagram, which generates program, can also be divided into one or more module, and one A or multiple modules are stored in memory 11, and are held by one or more processors (the present embodiment is by processor 12) For row to complete the present invention, the so-called module of the present invention is the series of computation machine program instruction section for referring to complete specific function, Implementation procedure of the program in datagram generating means is generated for describing datagram.
For example, referring to shown in Fig. 3, the journey of program is generated for the datagram in one embodiment of datagram generating means of the present invention Sequence module diagram, in the embodiment, datagram, which generates program and can be divided into, to be obtained module 10, read module 20, determines Module 30, judgment module 40 and drafting module 50, illustratively:
It obtains module 10 and obtains the file destination that user provides;
Read module 20 reads the target data in the file destination;
Determining module 30 determines the boundary of reference axis to the target data statistical disposition;
Judgment module 40 judges whether to execute reference axis truncation;
If drafting module 50 executes reference axis truncation, based on the boundary of the reference axis, drawn using reference axis truncation strategy Target data figure processed;
If the drafting module 50 does not execute reference axis truncation, based on the boundary of the reference axis, according to the number of targets According to timing draw target data figure.
The program modules such as above-mentioned acquisition module 10, read module 20, determining module 30, judgment module 40 and drafting module 50 It is performed realized functions or operations step to be substantially the same with above-described embodiment, details are not described herein.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with datagram and generate program, the datagram generates program and can be executed by one or more processors, as follows to realize Operation:
Obtain the file destination that user provides;
Read the target data in the file destination;
To the target data statistical disposition, the boundary of reference axis is determined;
Judge whether to execute reference axis truncation;
If executing reference axis truncation, based on the boundary of the reference axis, strategy is truncated using reference axis and draws target data Figure;
If not executing reference axis truncation, based on the boundary of the reference axis, mesh is drawn according to the timing of the target data Mark datagram.
Computer readable storage medium specific embodiment of the present invention is respectively implemented with above-mentioned datagram generating means and method Example is essentially identical, does not make tired state herein.
It should be noted that the serial number of the above embodiments of the invention is only for description, do not represent the advantages or disadvantages of the embodiments.And The terms "include", "comprise" herein or any other variant thereof is intended to cover non-exclusive inclusion, so that packet Process, device, article or the method for including a series of elements not only include those elements, but also including being not explicitly listed Other element, or further include for this process, device, article or the intrinsic element of method.Do not limiting more In the case where, the element that is limited by sentence "including a ...", it is not excluded that including process, device, the article of the element Or there is also other identical elements in method.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of data drawing generating method, which is characterized in that the described method includes:
Obtain the file destination that user provides;
Read the target data in the file destination;
To the target data statistical disposition, the boundary of reference axis is determined;
Judge whether to execute reference axis truncation;
If executing reference axis truncation, based on the boundary of the reference axis, strategy is truncated using reference axis and draws target data figure;
If not executing reference axis truncation, based on the boundary of the reference axis, number of targets is drawn according to the timing of the target data According to figure.
2. data drawing generating method as described in claim 1, which is characterized in that the target read in the file destination Data include:
The space character in row data by reading the file destination obtains target data, wherein the target packet includes At least one set of data group, the corresponding datagram of every group of data group.
3. data drawing generating method as claimed in claim 2, which is characterized in that it is described to the target data statistical disposition, The boundary for determining reference axis includes:
For every group of data group, every group of data group is ranked up according to the sequence that timing is incremented by, makes every group of data group chronologically Incremental arrangement obtains every group of arrangement data;
According to every group of arrangement data, target value maximum value and Target Minimum at least one set of data group are obtained, and Time point maximum value and time point minimum value;
According to the target value maximum value and Target Minimum, the up-and-down boundary of axis of ordinates is determined;
According to time point maximum value and time point minimum value, the up-and-down boundary of axis of abscissas is determined.
4. data drawing generating method as described in claim 1, which is characterized in that described to judge whether to execute reference axis truncation packet It includes:
If existing in the region more than preset range size in the target data without data point, it is determined that there are point of cut-off, Execute reference axis truncation.
5. data drawing generating method as claimed in claim 4, which is characterized in that the boundary based on the reference axis makes Strategy drafting target data figure, which is truncated, with reference axis includes:
The target data is divided into multiple portions using point of cut-off;
The corresponding data subgraph of data of each part is drawn respectively;
Based on the boundary of the reference axis, by the corresponding data subgraph splicing of the data of each part in the reference axis, and Obtain the target data figure.
6. data drawing generating method as claimed in claim 3, which is characterized in that the boundary based on the reference axis is pressed According to the target data timing draw target data figure include:
According to every group of arrangement data, every group of data group maximum value and minimum value are obtained, and the drawing of determining this group of data is upper Lower boundary;
In the white space of up-and-down boundary, according to the timing of every group of arrangement data, the data point of every group of data is drawn one by one It makes in figure, and obtains the target data figure.
7. data drawing generating method as claimed in claim 2, which is characterized in that the method also includes:
If there are multi-group datas in the target data, every data figure is drawn using different the preset styles.
8. the data drawing generating method as described in any one of claims 1 to 7, which is characterized in that the method also includes:
By scaled to the default size of target data figure, and draw the coordinate scale line in the target data figure and Mark.
9. a kind of datagram generating means, which is characterized in that described device includes memory and processor, is deposited on the memory The datagram that contain to run on the processor generates program, when the datagram generation program is executed by the processor Realize following steps:
Obtain the file destination that user provides;
Read the target data in the file destination;
To the target data statistical disposition, the boundary of reference axis is determined;
Judge whether to execute reference axis truncation;
If executing reference axis truncation, based on the boundary of the reference axis, strategy is truncated using reference axis and draws target data figure;
If not executing reference axis truncation, based on the boundary of the reference axis, number of targets is drawn according to the timing of the target data According to figure.
10. a kind of computer readable storage medium, which is characterized in that be stored with datagram on the computer readable storage medium Program is generated, the datagram generates program and can be executed by one or more processor, to realize as in claim 1 to 8 Described in any item data drawing generating methods.
CN201910404757.XA 2019-05-15 2019-05-15 Data graph generation method and device and computer readable storage medium Active CN110263310B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910404757.XA CN110263310B (en) 2019-05-15 2019-05-15 Data graph generation method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910404757.XA CN110263310B (en) 2019-05-15 2019-05-15 Data graph generation method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110263310A true CN110263310A (en) 2019-09-20
CN110263310B CN110263310B (en) 2024-05-10

Family

ID=67913229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910404757.XA Active CN110263310B (en) 2019-05-15 2019-05-15 Data graph generation method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110263310B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045768A (en) * 2019-11-27 2020-04-21 青岛歌尔智能传感器有限公司 Graph module application method, graph module application device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090027395A1 (en) * 2007-07-26 2009-01-29 Chii Ying Co., Ltd. Machine-implemented method and electronic device for presenting a normalized graph for a plurality of data sets
CN105389170A (en) * 2015-11-20 2016-03-09 中国农业大学 Drawing method and system
WO2017028436A1 (en) * 2015-08-18 2017-02-23 百度在线网络技术(北京)有限公司 Drawing tool implementation method, apparatus, device, and computer storage medium
CN107958020A (en) * 2017-10-24 2018-04-24 中国南方电网有限责任公司超高压输电公司检修试验中心 It is a kind of based on cluster electric network data processing and data visualization method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090027395A1 (en) * 2007-07-26 2009-01-29 Chii Ying Co., Ltd. Machine-implemented method and electronic device for presenting a normalized graph for a plurality of data sets
WO2017028436A1 (en) * 2015-08-18 2017-02-23 百度在线网络技术(北京)有限公司 Drawing tool implementation method, apparatus, device, and computer storage medium
CN105389170A (en) * 2015-11-20 2016-03-09 中国农业大学 Drawing method and system
CN107958020A (en) * 2017-10-24 2018-04-24 中国南方电网有限责任公司超高压输电公司检修试验中心 It is a kind of based on cluster electric network data processing and data visualization method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
DMOLL: "Python作图实现坐标轴截断(打断)", pages 1 - 3, Retrieved from the Internet <URL:https://blog.csdn.net/maryyu8873/article/details/84313423?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522168472069116800211552516%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=168472069116800211552516&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~so***end~default-1-84313423-null-null.142^v87^koosearch_v1,239^v2^insert_chatgpt&utm_term=Python%20%E4%BD%9C%E5%9B%BE%E5%AE%9E%E7%8E%B0%E5%9D%90%E6%A0%87%E8%BD%B4%E6%88%AA%E6%96%AD%EF%BC%88%E6%89%93%E6%96%AD%EF%BC%89&spm=1018.2226.3001.4187> *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045768A (en) * 2019-11-27 2020-04-21 青岛歌尔智能传感器有限公司 Graph module application method, graph module application device and storage medium
CN111045768B (en) * 2019-11-27 2023-06-23 青岛歌尔智能传感器有限公司 Application method of chart module, application device of chart module and storage medium

Also Published As

Publication number Publication date
CN110263310B (en) 2024-05-10

Similar Documents

Publication Publication Date Title
US9824269B2 (en) Enhanced interpretation of character arrangements
CN110085224B (en) Intelligent terminal whole-course voice control processing method, intelligent terminal and storage medium
CN110659527B (en) Form detection in electronic forms
CN110334346A (en) A kind of information extraction method and device of pdf document
CN114330233A (en) Method for realizing correlation between electronic form content and file through file bottom
EP4177783A1 (en) Method and apparatus for browsing table in document, and electronic device and storage medium
CN111240669B (en) Interface generation method and device, electronic equipment and computer storage medium
CN108958881A (en) Data processing method, device and computer readable storage medium
US20140089841A1 (en) Device and method for providing application interface based on writing input
US9311289B1 (en) Spreadsheet document tab conditional formatting
CN110990010A (en) Software interface code generation method and device
US10521499B2 (en) Method and device for editing data
CN110263310A (en) Data drawing generating method, device and computer readable storage medium
CN110287094A (en) UI automated testing method, device and computer readable storage medium
CN112306959B (en) File scanning method of mobile storage device, storage medium and device terminal
CN106776527B (en) Electronic book data display method and device and terminal equipment
US10719642B2 (en) Automated generation of electronics schematics with single wire tracing
CN111596989A (en) Histogram display method, terminal and storage medium
CN111507057A (en) Method and device for outputting PADS drawing and computer readable storage medium
KR101397711B1 (en) Device and method implementing for particular function based on writing
CN111191063A (en) Picture classification method and device, terminal and storage medium
CN109284097A (en) Realize method, equipment, system and the storage medium of complex data analysis
CN110442663A (en) Raster data batch method of cutting out, device and computer readable storage medium
CN111026307B (en) Method and device for quickly associating graphics primitives in graphics configuration tool
CN108874486B (en) Page loading method, terminal and device with storage function

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