CN106682011A - Method and device for presenting data by graphs - Google Patents

Method and device for presenting data by graphs Download PDF

Info

Publication number
CN106682011A
CN106682011A CN201510753453.6A CN201510753453A CN106682011A CN 106682011 A CN106682011 A CN 106682011A CN 201510753453 A CN201510753453 A CN 201510753453A CN 106682011 A CN106682011 A CN 106682011A
Authority
CN
China
Prior art keywords
data
variance
benchmark
scaled
presented
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
CN201510753453.6A
Other languages
Chinese (zh)
Other versions
CN106682011B (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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201510753453.6A priority Critical patent/CN106682011B/en
Publication of CN106682011A publication Critical patent/CN106682011A/en
Application granted granted Critical
Publication of CN106682011B publication Critical patent/CN106682011B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/904Browsing; Visualisation therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Complex Calculations (AREA)

Abstract

The invention discloses a method and a device for presenting data by graphs. The method includes the steps: acquiring a plurality of data to be presented; determining whether the data to be presented have discrepant data or not; scaling the discrepant data according to preset scaling parameters to obtain scaled data if the data to be presented have the discrepant data; drawing a plurality of data presentation graphs for the scaled data and non-discrepant data. Difference values of the discrepant data and the non-discrepant data among the data to be presented exceed a preset difference value range. The method solves the technical problem that the changing trend of the data to be presented along with time cannot be accurately presented.

Description

Using the method and apparatus of figure display data
Technical field
The present invention relates to data processing field, in particular to a kind of method and apparatus of utilization figure display data.
Background technology
In prior art, when being analyzed to data, in order to intuitively understand very much data on the whole with the time The rule and trend of change, it will usually using some charts (such as curve chart, block diagram) by each number that need to show According to being shown according to its time dimension.But, when a certain bar in the one group of data that need to show or a few datas and other Data difference (as numerical difference it is different) than it is larger when, be difficult to find out the variation tendency of other data.In the prior art, Generally will be considered that these data for differing greatly are abnormal datas, during being shown to data, typically all can These abnormal datas are given up to fall.
But, when one group of data according to time change is shown, if not giving up the larger abnormal number of diversity ratio According to, it is difficult to find out the variation tendency of other data, the numerical value of data as shown in Figure 16 is far longer than other numbers According to the variation tendency of other data cannot be learnt from figure;If giving up the data for differing greatly (such as the number in the figure It is zero), the data variation rule that is difficult to reflect on the time point given up or in the time period and to become according to 4 numerical value Gesture, as shown in Figure 2.
For in prior art due in data to be presented a certain bar or a few datas it is larger with other data differences, it is impossible to Accurately show the technical problem of the time dependent trend of the data to be presented, effective solution is not yet proposed at present.
The content of the invention
A kind of method and apparatus of utilization figure display data is embodiments provided, so that at least solve cannot be accurate Show the technical problem of the time dependent trend of the data to be presented.
One side according to embodiments of the present invention, there is provided a kind of method of utilization figure display data, the method bag Include:Obtain multiple data to be presented;Determine with the presence or absence of variance data in multiple data to be presented, wherein, difference number Exceed preset difference value scope according to the difference of each non-variance data in multiple data to be presented;If multiple data to be presented In have differences data, then process is zoomed in and out to variance data according to pre-set zoom parameter, obtain scaled data;Paint The present graphical of scaled data processed and each non-variance data.
Further, zooming in and out process to variance data according to pre-set zoom parameter includes:If variance data is one, According to pre-set zoom parameter, the scaled data of variance data is calculated;If variance data is multiple, multiple difference numbers are determined According to benchmark data;According to pre-set zoom parameter, the scaled data of calculating benchmark data;If variance data is more than each Non- variance data, and the scaled data of benchmark data is more than each non-variance data, then the scaling number based on benchmark data According to zooming in and out process to each variance data;If variance data is less than each non-variance data, and benchmark data Scaled data is less than each non-variance data, then the scaled data based on benchmark data, contracts to each variance data Put process.
Further, the scaled data based on variance data, zooming in and out process to each variance data includes:It is determined that The ratio a of each variance data and benchmark datam/ a, wherein, a is used to represent benchmark data, amIt is poor for representing Heteromerism evidence, wherein, 1≤m≤n, m and n are natural number, and n is used to represent the quantity of variance data;Calculate each poor Heteromerism is according to amScaled data a'm, a'm=a'*am/ a, wherein, a' is used to represent the scaled data of benchmark data.
Further, it is determined that the benchmark data of multiple variance data includes:Compare each variance data and each non-difference The size of data;If comparing each variance data more than each non-variance data, the minimum in variance data is obtained Value, using minima as benchmark data;If comparing each variance data less than each non-variance data, it is poor to obtain Maximum of the heteromerism according in, using maximum as benchmark data.
Further, according to pre-set zoom parameter, the scaled data of calculating benchmark data includes:Calculating benchmark data a Scaled data a', wherein, a'=X*a, a represents benchmark data, and a' represents the scaled data of benchmark data, X tables Show pre-set zoom parameter, n is natural number, and n is used to represent the quantity of variance data;Or calculate each non-variance data with The absolute value of the difference of benchmark data;Benchmark data is stated in the non-variance data of the absolute value minimum based on difference, calculating Scaled data a', wherein, a'=X*b, wherein, b represents the minimum non-variance data of the absolute value of difference.
Further, it is determined that including with the presence or absence of variance data in multiple data to be presented:Obtain multiple data to be presented Data sequence, wherein, the data to be presented in data sequence according to multiple data to be presented size order arrange; Calculate data a to be presented in data sequenceqWith data a previous to be presented being adjacentq- 1Difference absolute value | △ a |, wherein, q is positive integer;If the absolute value of difference, | △ a | are more than preset difference value, it is determined that exist in data sequence Variance data, and determine the variance data in data sequence, wherein, preset difference value scope is for (- k, k), k represents pre- If difference.
Further, it is determined that the variance data in data sequence includes:Obtain sequence number in data sequence and be more than or equal to q's First quantity of data to be presented;Obtain the second quantity of all data to be presented in data sequence;Calculate the first quantity With the ratio of the second quantity;If ratio is less than predetermined threshold value, it is determined that sequence number treating more than or equal to q is opened up in data sequence Registration evidence is variance data;If ratio is less than predetermined threshold value, it is determined that sequence number treating less than or equal to q is opened up in data sequence Registration evidence is variance data.
Another aspect according to embodiments of the present invention, additionally provides a kind of device of utilization figure display data, the device Including:Acquiring unit, for obtaining multiple data to be presented;Determining unit, for determining multiple data to be presented in With the presence or absence of variance data, wherein, variance data exceeds with the difference of each non-variance data in multiple data to be presented Preset difference value scope;Processing unit, if for having differences data in multiple data to be presented, according to pre-set zoom Parameter zooms in and out process to variance data, obtains scaled data;Drawing unit, for draw scaled data and each The present graphical of non-variance data.
Further, processing unit includes:Product computing module, if being one for variance data, according to default contracting Parameter is put, the scaled data of variance data is calculated;Data determining module, if being multiple for variance data, it is determined that many The benchmark data of individual variance data;Data computation module, for according to pre-set zoom parameter, the contracting of calculating benchmark data Put data;Scaling processing module, if being more than each non-variance data, and the scaling number of benchmark data for variance data According to more than each non-variance data, then the scaled data based on benchmark data, to each variance data process is zoomed in and out; If variance data is less than each non-variance data, and the scaled data of benchmark data is less than each non-variance data, then base In the scaled data of benchmark data, process is zoomed in and out to each variance data.
Further, scaling processing module includes:Ratio determination sub-module, for determining each variance data and benchmark The ratio a of datam/ a, wherein, a is used to represent benchmark data, amFor representing variance data, wherein, 1≤m≤n, M and n is natural number, and n is used to represent the quantity of variance data;Scaled data calculating sub module, it is poor for calculating each Heteromerism is according to amScaled data a'm, a'm=a'*am/ a, wherein, a' is used to represent the scaled data of benchmark data.
In embodiments of the present invention, there is the variance data larger with the difference of other data in multiple data to be presented In the case of, scaling process can be done to the variance data, drawn based on the scaled data after scaling and non-variance data Present graphical (such as curve chart, broken line graph, block diagram), due to before graphing, carrying out to variance data Scaling process, reduces the difference between variance data and non-variance data, can accurately show many on the figure of drafting Individual data to be presented according to time dimension trend, solve cannot accurately show in prior art the data to be presented with The technical problem of the trend of time change.
Description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this Bright schematic description and description does not constitute inappropriate limitation of the present invention for explaining the present invention.In accompanying drawing In:
Fig. 1 is a kind of schematic diagram of the utilization figure display data according to prior art;
Fig. 2 is the schematic diagram according to the another kind of prior art using figure display data;
Fig. 3 is the flow chart of the method for utilization figure display data according to embodiments of the present invention;
Fig. 4 is according to the schematic diagram in prior art using figure display data;
Fig. 5 is the effect diagram that the method for utilization figure display data according to embodiments of the present invention processes Fig. 4 data;
Fig. 6 is the schematic diagram of the device of utilization figure display data according to embodiments of the present invention.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention, it is clear that described embodiment The only embodiment of a present invention part, rather than the embodiment of whole.Based on the embodiment in the present invention, ability The every other embodiment that domain those of ordinary skill is obtained under the premise of creative work is not made, all should belong to The scope of protection of the invention.
It should be noted that description and claims of this specification and the term " first " in above-mentioned accompanying drawing, " Two " it is etc. the object for distinguishing similar, without for describing specific order or precedence.It should be appreciated that this The data that sample is used can be exchanged in the appropriate case, so as to embodiments of the invention described herein can with except Here the order beyond those for illustrating or describing is implemented.Additionally, term " comprising " and " having " and they Any deformation, it is intended that covering is non-exclusive to be included, and for example, contains process, the side of series of steps or unit Method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include unclear List or other steps intrinsic for these processes, method, product or equipment or unit.
Embodiment 1
According to embodiments of the present invention, there is provided a kind of embodiment of the method for utilization figure display data, it should be noted that Can perform in the such as computer system of one group of computer executable instructions the step of the flow process of accompanying drawing is illustrated, And, although show logical order in flow charts, but in some cases, can be with suitable different from herein Sequence performs shown or described step.
Fig. 3 is the flow chart of the method for utilization figure display data according to embodiments of the present invention, as shown in figure 3, should Method comprises the steps:
Step S302, obtains multiple data to be presented.
Step S304, determines with the presence or absence of variance data in multiple data to be presented, wherein, variance data is treated with multiple The difference of each non-variance data exceeds preset difference value scope in display data.
Step S306, if having differences data in multiple data to be presented, according to pre-set zoom parameter to variance data Process is zoomed in and out, scaled data is obtained.
Step S308, draws scaled data and the present graphical of each non-variance data.
Using the present invention, there is the situation of the variance data larger with the difference of other data in multiple data to be presented Under, scaling process can be done to the variance data, drawn based on the scaled data after scaling and non-variance data and show figure Shape (such as curve chart, broken line graph, block diagram), due to before graphing, having carried out at scaling to variance data Reason, reduces the difference between variance data and non-variance data, can accurately show on the figure of drafting and multiple wait to open up Registration is solved and cannot accurately show in prior art the data to be presented anaplasia at any time according to the trend according to time dimension The technical problem of the trend of change.
In the above-described embodiments, when multiple data to be presented are carried out with figure displaying, in order to preferably show data Variation tendency, after can particularly large or small data therein be zoomed in and out according to a certain percentage, then is opened up Show.
In above-described embodiment, the present graphical of multiple data to be presented can be drawn according to time dimension.
According to the abovementioned embodiments of the present invention, zooming in and out process to variance data according to pre-set zoom parameter includes:If Variance data is one, according to pre-set zoom parameter, calculates the scaled data of variance data;If variance data is multiple, Determine the benchmark data of multiple variance data;According to pre-set zoom parameter, the scaled data of calculating benchmark data;If poor Heteromerism evidence is more than each non-variance data, and the scaled data of benchmark data is more than each non-variance data, then based on base The scaled data of quasi- data, to each variance data process is zoomed in and out;If variance data is less than each non-variance data, And the scaled data of benchmark data is less than each non-variance data, then the scaled data based on benchmark data, poor to each Heteromerism evidence zooms in and out process.
In this embodiment, if variance data is relative to other data (the non-variance data i.e. in above-described embodiment) It is larger, then these variance data are reduced according to certain ratio, minima is greater than it in the data after diminution Maximum in his data;If variance data is less relative to other data, by these variance data according to certain Ratio be amplified, maximum is less than the minima in other data in the data after amplification.
Specifically, when process is zoomed in and out to variance data according to pre-set zoom parameter, if variance data only one of which, The product of variance data and pre-set zoom parameter can be calculated, the scaled data of the variance data is obtained.In the embodiment Middle pre-set zoom parameter is the decimal less than 1.
Optionally, if if the variance data only one of which variance data obtains each non-more than each non-variance data Maximum non-variance data in variance data, calculates the maximum variance data and is somebody's turn to do with the product of pre-set zoom parameter The scaled data of variance data;If the variance data is more than each non-variance data, in obtaining each non-variance data Maximum non-variance data, calculates the maximum variance data and obtains the variance data with the product of pre-set zoom parameter Scaled data.
In another optional embodiment, if variance data is multiple, the base value of the variance data is can determine According to the scaled data based on the benchmark data obtains the scaled data of multiple variance data.
Specifically, it is determined that the benchmark data of multiple variance data includes:Compare each variance data and each non-difference number According to size;If comparing each variance data more than each non-variance data, the minima in variance data is obtained, Using minima as benchmark data;If comparing each variance data less than each non-variance data, difference number is obtained Maximum according in, using maximum as benchmark data.
It is determined that after benchmark data, calculate the scaled data of the benchmark data, and the scaled data based on variance data, Zooming in and out process to each variance data includes:Determine the ratio a of each variance data and benchmark datam/ a, its In, a is used to represent benchmark data, amFor representing variance data, wherein, 1≤m≤n, m and n are natural number, N is used to represent the quantity of variance data;Calculate each variance data amScaled data a'm, a'm=a'*am/ a, Wherein, a' is used to represent the scaled data of benchmark data.
Alternatively, according to pre-set zoom parameter, the scaled data of calculating benchmark data can include:Calculating benchmark data a Scaled data a', wherein, a'=X*a, a represents benchmark data, and a' represents the scaled data of benchmark data, X Pre-set zoom parameter is represented, n is natural number, and n is used to represent the quantity of variance data;Or calculate each non-variance data With the absolute value of the difference of benchmark data;Benchmark data is stated in the non-variance data of the absolute value minimum based on difference, calculating Scaled data a', wherein, a'=X*b, wherein, b represents the minimum non-variance data of the absolute value of difference.
The scaled data of the benchmark data can be calculated according to benchmark data in the above-described embodiments, it is also possible to based on non-difference The scaled data of data calculating benchmark data of the heteromerism according in.
Alternatively, if the scaled data based on the data calculating benchmark data in non-variance data:
If each variance data is all higher than each non-variance data, non-difference maximum in non-variance data can be calculated Data b and the product of pre-set zoom parameter, obtain the scaled data of benchmark data;
If each variance data is respectively less than each non-variance data, non-difference minimum in non-variance data can be calculated Data b and the product of pre-set zoom parameter, obtain the scaled data of benchmark data.
Above-described embodiment is described in detail below by taking multiple variance data as an example in detail, one group of data to be presented in this embodiment include 15 data (data A0 to be presented are to data A15 to be presented), if the displaying drawn based on the original data to be presented Figure will be unable to show the variation tendency of multiple data.It is determined that the variance data in group data to be presented is arrived for A11 A15 (i.e. above-mentioned variance data am) after this five data, can carry out A11 to A15 according to above-mentioned rule Reduce or amplify.Such as, A11 (in this embodiment using A11 as benchmark data) is changed into A10 certain Multiple X (i.e. above-mentioned pre-set zoom parameter), then according to the ratio relation of A12 to A15 and A11, A12 is arrived A15 carries out waiting zooming in or out for ratio, and the data definition after A11 to A15 changes is that B11 to B15 is (i.e. above-mentioned Scaled data a' of variance datam), it is as a result as follows:
B11=A10*X;
B12=B11*A12/A11;
B13=B11*A13/A11;
B14=B11*A14/A11;
B15=B11*A15/A11.
According to the abovementioned embodiments of the present invention, any two data to be presented in the plurality of data to be presented can be calculated Difference, if there is the data to be presented more than preset difference value in calculated difference, can determine the plurality of to be presented Data are had differences in data.
Wherein, if calculated difference is less than predetermined threshold value, corresponding two data to be presented of the difference belong to same One classification;If calculated difference is not less than predetermined threshold value, corresponding two data to be presented of the difference are not belonging to Same category.According to above-mentioned sorting technique, multiple data to be presented are divided into into variance data and the class of non-variance data two.
In order to reduce amount of calculation, determining in multiple data to be presented can include with the presence or absence of variance data:Obtain multiple The data sequence of data to be presented, wherein, the data to be presented in data sequence according to multiple data to be presented size Order is arranged;Calculate data a to be presented in data sequenceqWith data a previous to be presented being adjacentq-1Difference Absolute value | △ a |, wherein, q is positive integer;If the absolute value of difference, | △ a | are more than preset difference value, it is determined that data sequence Data are had differences in row, and determine the variance data in data sequence, wherein, preset difference value scope for (- k, k), k Represent preset difference value.
Optionally it is determined that the variance data in data sequence includes:Obtain sequence number treating more than or equal to q in data sequence First quantity of display data;Obtain the second quantity of all data to be presented in data sequence;Calculate the first quantity with The ratio of the second quantity;If ratio is less than predetermined threshold value, it is determined that sequence number is to be presented more than or equal to q in data sequence Data are variance data;If ratio is less than predetermined threshold value, it is determined that sequence number is to be presented less than or equal to q in data sequence Data are variance data.
Wherein it is possible to the order sequence by multiple data to be presented from small to large or from big to small, obtains multiple waiting to open up The data sequence of registration evidence, in the data sequence is calculated successively after the difference of adjacent any two data to be presented, If wherein the absolute value of some or certain several differences is more than preset difference value, can determine that the data sequence includes certain One or several variance data.
Show above-described embodiment so that certain single data is larger as an example below.
Table 1 shows the numerical value of 10 data to be presented.
Table 1
Sequence number 1 2 3 4 5 6 7 8 9 10
Numerical value 410 350 640 550 870 22100 510 290 890 760
Fig. 4 shows the present graphical based on the numeric renderings in the table 1, and a crest is can only see in the figure, The trend of other data cannot be differentiated.
According to the scheme in above-described embodiment, data maximum in ten data are reduced, and the data after reducing More than the second big data, e.g., maximum number is revised as 1.5 times of second largest number, and (the pre-set zoom parameter can be according to reality Border situation setting).
Data after scaling are as shown in table 2.
Table 2
Sequence number 1 2 3 4 5 6 7 8 9 10
Numerical value 410 350 640 550 870 1335 510 290 890 760
Draw the present graphical for obtaining shown in Fig. 5 based on the data after scaling, the present graphical can obvious accurate earth's surface The data trend of above-mentioned ten data to be presented is shown.
Embodiment 2
Another aspect according to embodiments of the present invention, additionally provides a kind of device of utilization figure display data, such as Fig. 6 Shown, the device includes:Acquiring unit 10, for obtaining multiple data to be presented;Determining unit 30, for determining Whether there is variance data in multiple data to be presented, wherein, variance data and each non-difference in multiple data to be presented The difference of heteromerism evidence exceeds preset difference value scope;Processing unit 50, if for having differences number in multiple data to be presented According to, then process is zoomed in and out to variance data according to pre-set zoom parameter, obtain scaled data;Drawing unit 70, uses In the present graphical for drawing scaled data and each non-variance data.
Using the present invention, there is the situation of the variance data larger with the difference of other data in multiple data to be presented Under, scaling process can be done to the variance data, drawn based on the scaled data after scaling and non-variance data and show figure Shape (such as curve chart, broken line graph, block diagram), due to before graphing, having carried out at scaling to variance data Reason, reduces the difference between variance data and non-variance data, can accurately show on the figure of drafting and multiple wait to open up Registration is solved and cannot accurately show in prior art the data to be presented anaplasia at any time according to the trend according to time dimension The technical problem of the trend of change.
In the above-described embodiments, when multiple data to be presented are carried out with figure displaying, in order to preferably show data Variation tendency, after can particularly large or small data therein be zoomed in and out according to a certain percentage, then is opened up Show.
In above-described embodiment, the present graphical of multiple data to be presented can be drawn according to time dimension.
According to the abovementioned embodiments of the present invention, processing unit includes:Product computing module, if being one for variance data It is individual, calculate the product of variance data and pre-set zoom parameter;Data determining module, if for variance data for multiple, Determine the benchmark data of multiple variance data;Data computation module, for according to pre-set zoom parameter, calculating benchmark number According to scaled data;Scaling processing module, if being more than each non-variance data, and benchmark data for variance data Scaled data is more than each non-variance data, then the scaled data based on benchmark data, contracts to each variance data Put process;If variance data is less than each non-variance data, and the scaled data of benchmark data is less than each non-difference number According to then the scaled data based on benchmark data, to each variance data process is zoomed in and out.
In this embodiment, if variance data is relative to other data (the non-variance data i.e. in above-described embodiment) It is larger, then these variance data are reduced according to certain ratio, minima is greater than it in the data after diminution Maximum in his data;If variance data is less relative to other data, by these variance data according to certain Ratio be amplified, maximum is less than the minima in other data in the data after amplification.
Further, scaling processing module includes:Ratio determination sub-module, for determining each variance data and benchmark The ratio a of datam/ a, wherein, a is used to represent benchmark data, amFor representing variance data, wherein, 1≤m≤n, M and n is natural number, and n is used to represent the quantity of variance data;Scaled data calculating sub module, it is poor for calculating each Heteromerism is according to amScaled data a'm, a'm=a'*am/ a, wherein, a' is used to represent the scaled data of benchmark data.
Specifically, data determining module includes:Comparison module, for comparing each variance data and each non-difference number According to size;First data determination sub-module, if for comparing each variance data more than each non-variance data, The minima in variance data is then obtained, using minima as benchmark data;Second data determination sub-module, if for Each variance data is compared less than each non-variance data, then obtains the maximum in variance data, maximum is made On the basis of data.
The scaled data of the benchmark data can be calculated according to benchmark data in the above-described embodiments, it is also possible to based on non-difference The scaled data of data calculating benchmark data of the heteromerism according in.
Alternatively, if the scaled data based on the data calculating benchmark data in non-variance data:
If each variance data is all higher than each non-variance data, non-difference maximum in non-variance data can be calculated Data b and the product of pre-set zoom parameter, obtain the scaled data of benchmark data;
If each variance data is respectively less than each non-variance data, non-difference minimum in non-variance data can be calculated Data b and the product of pre-set zoom parameter, obtain the scaled data of benchmark data.
Alternatively, according to pre-set zoom parameter, the scaled data of calculating benchmark data can include:Calculating benchmark data a Scaled data a', wherein, a'=X*a, a represents benchmark data, and a' represents the scaled data of benchmark data, X Pre-set zoom parameter is represented, n is natural number, and n is used to represent the quantity of variance data;Or calculate each non-variance data With the absolute value of the difference of benchmark data;Benchmark data is stated in the non-variance data of the absolute value minimum based on difference, calculating Scaled data a', wherein, a'=X*b, wherein, b represents the minimum non-variance data of the absolute value of difference.
According to the abovementioned embodiments of the present invention, any two data to be presented in the plurality of data to be presented can be calculated Difference, if there is the data to be presented more than preset difference value in calculated difference, can determine the plurality of to be presented Data are had differences in data.
Wherein, if calculated difference is less than predetermined threshold value, corresponding two data to be presented of the difference belong to same One classification;If calculated difference is not less than predetermined threshold value, corresponding two data to be presented of the difference are not belonging to Same category.According to above-mentioned sorting technique, multiple data to be presented are divided into into variance data and the class of non-variance data two.
In order to reduce amount of calculation, determining in multiple data to be presented can include with the presence or absence of variance data:Obtain multiple The data sequence of data to be presented, wherein, the data to be presented in data sequence according to multiple data to be presented size Order is arranged;Calculate data a to be presented in data sequenceqWith data a previous to be presented being adjacentq- 1Difference Absolute value | △ a |, wherein, q is positive integer;If the absolute value of difference, | △ a | are more than preset difference value, it is determined that data sequence Data are had differences in row, and determine the variance data in data sequence, wherein, preset difference value scope for (- k, k), k Represent preset difference value.
The device of the utilization figure display data includes processor and memorizer, above-mentioned acquiring unit, determining unit, Processing unit and drawing unit etc. are stored in memory as program unit, and by computing device memorizer is stored in In said procedure unit realizing corresponding function.
Present invention also provides a kind of computer program, when performing in data handling equipment, is adapted for carrying out just The program code of beginningization there are as below methods step:Obtain multiple data to be presented;Whether determine in multiple data to be presented Data are had differences, wherein, variance data exceeds default with the difference of each non-variance data in multiple data to be presented Difference range;If having differences data in multiple data to be presented, variance data is carried out according to pre-set zoom parameter Scaling process, obtains scaled data;Draw scaled data and the present graphical of each non-variance data.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in certain embodiment The part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, other can be passed through Mode realize.Wherein, device embodiment described above is only schematic, such as division of described unit, Can be a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing Can with reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, institute The coupling each other for showing or discussing or direct-coupling or communication connection can be by some interfaces, unit or mould The INDIRECT COUPLING of block or communication connection, can be electrical or other forms.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to On multiple units.Some or all of unit therein can be according to the actual needs selected to realize this embodiment scheme Purpose.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.It is above-mentioned integrated Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized and as independent production marketing or when using using in the form of SFU software functional unit, During a computer read/write memory medium can be stored in.Based on such understanding, technical scheme essence On all or part of prior art is contributed part in other words or the technical scheme can be with software product Form is embodied, and the computer software product is stored in a storage medium, including some instructions are used so that one Platform computer equipment (can be personal computer, server or network equipment etc.) performs each embodiment institute of the invention State all or part of step of method.And aforesaid storage medium includes:USB flash disk, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD Etc. it is various can be with the medium of store program codes.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improve and moisten Decorations also should be regarded as protection scope of the present invention.

Claims (10)

1. a kind of method of utilization figure display data, it is characterised in that include:
Obtain multiple data to be presented;
Determine in the plurality of data to be presented with the presence or absence of variance data, wherein, the variance data with it is described The difference of each non-variance data exceeds preset difference value scope in multiple data to be presented;
If there is the variance data in the plurality of data to be presented, according to pre-set zoom parameter to the difference Heteromerism obtains scaled data according to process is zoomed in and out;
Draw the present graphical of the scaled data and each non-variance data.
2. method according to claim 1, it is characterised in that the variance data is entered according to pre-set zoom parameter The process of row scaling includes:
If the variance data is one, according to the pre-set zoom parameter, the scaling of the variance data is calculated Data;
If the variance data is multiple, the benchmark data of multiple variance data is determined;
According to the pre-set zoom parameter, the scaled data of the benchmark data is calculated;
If the variance data is more than each described non-variance data, and the scaled data of the benchmark data is more than Each described non-variance data, then the scaled data based on the benchmark data, enters to variance data each described The process of row scaling;
If the variance data is less than each described non-variance data, and the scaled data of the benchmark data is less than Each described non-variance data, then the scaled data based on the benchmark data, enters to variance data each described The process of row scaling.
3. method according to claim 2, it is characterised in that the scaled data based on the variance data, to each The individual variance data zooms in and out process to be included:
Determine the ratio a of each described variance data and the benchmark datam/ a, wherein, a is used to represent described Benchmark data, amFor representing the variance data, wherein, 1≤m≤n, m and n are natural number, and n is used In the quantity for representing the variance data;
Calculate each variance data amScaled data a'm, a'm=a'*am/ a, wherein, a' is used for table Show the scaled data of the benchmark data.
4. method according to claim 2, it is characterised in that determining the benchmark data of multiple variance data includes:
Compare the size of each described variance data and each non-variance data;
If comparing each described variance data more than each described non-variance data, the variance data is obtained In minima, using the minima as the benchmark data;
If comparing each described variance data less than each described non-variance data, the variance data is obtained In maximum, using the maximum as the benchmark data.
5. method according to claim 2, it is characterised in that according to the pre-set zoom parameter, calculating benchmark number According to scaled data include:
Scaled data a' of benchmark data a is calculated, wherein, a'=X*a, a represents the benchmark data, A' represents the scaled data of the benchmark data, and X represents the pre-set zoom parameter, and n is natural number, and n is used In the quantity for representing the variance data;Or
Calculate the absolute value of each described non-variance data and the difference of the benchmark data;
The minimum non-variance data of absolute value based on difference, calculate described in state scaled data a' of benchmark data, Wherein, a'=X*b, wherein, b represents the minimum non-variance data of the absolute value of the difference.
6. method as claimed in any of claims 1 to 5, it is characterised in that determine the plurality of to be presented Include with the presence or absence of variance data in data:
The data sequence of the plurality of data to be presented is obtained, wherein, the data to be presented in the data sequence Size order according to the plurality of data to be presented is arranged;
Calculate data a to be presented in the data sequenceqWith data a previous to be presented being adjacentq-1Difference The absolute value of value | △ a |, wherein, q is positive integer;
If the absolute value of the difference, | △ a | are more than preset difference value, it is determined that there is the difference in the data sequence Heteromerism evidence, and determine the variance data in the data sequence,
Wherein, the preset difference value scope is for (- k, k), the k represents the preset difference value.
7. method according to claim 6, it is characterised in that determine that the variance data in the data sequence includes:
Obtain the first quantity of to be presented data of the sequence number more than or equal to q in the data sequence;
Obtain the second quantity of all data to be presented in the data sequence;
Calculate the ratio of first quantity and second quantity;
If the ratio is less than predetermined threshold value, it is determined that sequence number is to be presented more than or equal to q in the data sequence Data are the variance data;
If the ratio is less than the predetermined threshold value, it is determined that sequence number treating less than or equal to q in the data sequence Display data is the variance data.
8. a kind of device of utilization figure display data, it is characterised in that include:
Acquiring unit, for obtaining multiple data to be presented;
Determining unit, for determining the plurality of data to be presented in whether there is variance data, wherein, it is described Variance data exceeds preset difference value scope with the difference of each non-variance data in the plurality of data to be presented;
Processing unit, if for there is the variance data in the plurality of data to be presented, according to default contracting Put parameter and process is zoomed in and out to the variance data, obtain scaled data;
Drawing unit, for drawing the present graphical of the scaled data and each non-variance data.
9. device according to claim 8, it is characterised in that the processing unit includes:
Product computing module, if being one for the variance data, according to the pre-set zoom parameter, calculates The scaled data of the variance data;
Data determining module, if being multiple for the variance data, determines the benchmark data of multiple variance data;
Data computation module, for according to the pre-set zoom parameter, calculating the scaled data of the benchmark data;
Scaling processing module, if being more than each described non-variance data, and the benchmark for the variance data The scaled data of data is more than each described non-variance data, then the scaled data based on the benchmark data, right Each described variance data zooms in and out process;If the variance data is less than each described non-variance data, and The scaled data of the benchmark data is less than each described non-variance data, then the scaling based on the benchmark data Data, to variance data each described process is zoomed in and out.
10. device according to claim 9, it is characterised in that the scaling processing module includes:
Ratio determination sub-module, for determining the ratio a of each described variance data and the benchmark datam/ a, Wherein, a is used to represent the benchmark data, amFor representing the variance data, wherein, 1≤m≤n, m It is natural number with n, n is used to represent the quantity of the variance data;
Scaled data calculating sub module, for calculating each variance data amScaled data a'm, a'm=a'*am/ a, wherein, a' is used to represent the scaled data of the benchmark data.
CN201510753453.6A 2015-11-06 2015-11-06 Method and device for displaying data by using graph Active CN106682011B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510753453.6A CN106682011B (en) 2015-11-06 2015-11-06 Method and device for displaying data by using graph

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510753453.6A CN106682011B (en) 2015-11-06 2015-11-06 Method and device for displaying data by using graph

Publications (2)

Publication Number Publication Date
CN106682011A true CN106682011A (en) 2017-05-17
CN106682011B CN106682011B (en) 2019-12-10

Family

ID=58863044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510753453.6A Active CN106682011B (en) 2015-11-06 2015-11-06 Method and device for displaying data by using graph

Country Status (1)

Country Link
CN (1) CN106682011B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344305A (en) * 2018-09-28 2019-02-15 新华三技术有限公司 Display methods, device and the equipment of statistical data
CN110046184A (en) * 2019-02-19 2019-07-23 广州视源电子科技股份有限公司 Datagraphic display adjusting method, device, storage medium and computer equipment
CN111899821A (en) * 2020-06-28 2020-11-06 广州万孚生物技术股份有限公司 Method for processing medical institution data, method and device for constructing database
CN112231316A (en) * 2019-07-15 2021-01-15 珠海金山办公软件有限公司 Chart display method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11230735A (en) * 1998-02-12 1999-08-27 Nikon Corp Data processing method for coordinate measuring device
CN101110881A (en) * 2006-07-20 2008-01-23 京瓷美达株式会社 Image forming processing apparatus and image forming processing method
CN101330030A (en) * 2007-06-21 2008-12-24 中芯国际集成电路制造(上海)有限公司 Method for removing abnormal point of detection data
CN101477589A (en) * 2009-01-16 2009-07-08 上海闻泰电子科技有限公司 Regional image display dimension setting method
CN102651093A (en) * 2012-03-31 2012-08-29 上海海洋大学 Marine information management system based on time series outlier detection technology
US8290990B2 (en) * 2003-02-28 2012-10-16 Abb Research Ltd System and method for managing and exchanging data of a technical project, technical installation and individual installation components

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11230735A (en) * 1998-02-12 1999-08-27 Nikon Corp Data processing method for coordinate measuring device
US8290990B2 (en) * 2003-02-28 2012-10-16 Abb Research Ltd System and method for managing and exchanging data of a technical project, technical installation and individual installation components
CN101110881A (en) * 2006-07-20 2008-01-23 京瓷美达株式会社 Image forming processing apparatus and image forming processing method
CN101330030A (en) * 2007-06-21 2008-12-24 中芯国际集成电路制造(上海)有限公司 Method for removing abnormal point of detection data
CN101477589A (en) * 2009-01-16 2009-07-08 上海闻泰电子科技有限公司 Regional image display dimension setting method
CN102651093A (en) * 2012-03-31 2012-08-29 上海海洋大学 Marine information management system based on time series outlier detection technology

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344305A (en) * 2018-09-28 2019-02-15 新华三技术有限公司 Display methods, device and the equipment of statistical data
CN110046184A (en) * 2019-02-19 2019-07-23 广州视源电子科技股份有限公司 Datagraphic display adjusting method, device, storage medium and computer equipment
CN112231316A (en) * 2019-07-15 2021-01-15 珠海金山办公软件有限公司 Chart display method and device and electronic equipment
CN111899821A (en) * 2020-06-28 2020-11-06 广州万孚生物技术股份有限公司 Method for processing medical institution data, method and device for constructing database

Also Published As

Publication number Publication date
CN106682011B (en) 2019-12-10

Similar Documents

Publication Publication Date Title
CN106682011A (en) Method and device for presenting data by graphs
CN106909901B (en) Method and device for detecting object from image
EP2899671A1 (en) Identification method and device for target object in image
CN110189341B (en) Image segmentation model training method, image segmentation method and device
CN110298858B (en) Image clipping method and device
US11403560B2 (en) Training apparatus, image recognition apparatus, training method, and program
CN109816283B (en) Method and device for determining time for goods to leave warehouse
CN106776769A (en) A kind of method and device of dynamic generation chart
CN111931809A (en) Data processing method and device, storage medium and electronic equipment
CN112990625A (en) Method and device for allocating annotation tasks and server
CN110275880B (en) Data analysis method, device, server and readable storage medium
CN104731329B (en) A kind of method and apparatus of user handwriting color treatments
CN106469459A (en) The method and apparatus drawing trendgram
CN113343767A (en) Logistics illegal operation identification method, device, equipment and storage medium
CN115167965A (en) Transaction progress bar processing method and device
CN111984637B (en) Missing value processing method and device in data modeling, equipment and storage medium
CN106991337A (en) The desensitization method and device of a kind of date of birth data
CN108921792B (en) Method and device for processing pictures
JP2012014684A (en) Processor, method and program for supporting integration of records
CN106934480A (en) Insure grade analysis method, server and terminal
CN110858363A (en) Method and device for identifying seasonal commodities
CN109784640A (en) Method for allocating tasks, device, equipment and computer readable storage medium
CN116152248B (en) Appearance defect detection method and device, storage medium and computer equipment
CN117830731A (en) Multidimensional parallel scheduling method
CN116204649B (en) Data processing system for label presentation

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant