Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present inventionFormula is described in further detail.
Referring to FIG. 2, it illustrates the method flow diagram of image display method provided by one embodiment of the present invention, the figureAs display methods can be applied to such as mobile phone, tablet computer, E-book reader, smart television and portable calculating on kneeIn the electronic equipments such as machine.The image display method may include the following steps:
Step 202, at least two data to be shown are obtained.
Step 204, it is determined according to the maximum value at least two data and minimum value between adjacent and parallel data lineCoordinate difference, above-mentioned data line is the graticule for coordinate values different in labeled data axis.
Step 206, the quantity and pieces of data line of data line are dynamically determined according to maximum value, minimum value and coordinate differenceRepresentative coordinate value.
Step 208, a graphical interface of user, graphical user circle are drawn by the user graphical interface in electronic equipmentFace includes the coordinate system being made of time shaft and data axis, include in the coordinate system data line parallel with time shaft and according to whenBetween at least two data of the dimension graphically to characterize.
In conclusion image display method provided in this embodiment, by according at least two data to be shownMaximum value and after minimum value determines the coordinate difference between adjacent data line, further according to maximum value, minimum value and seatMark difference be dynamically determined data line quantity and pieces of data line representated by coordinate value;It solves involved in background techniqueImage display pattern can not intuitively, significantly reflect the overall variation situation of data, and be not easy to the problem of reading;It realizes moreIntuitively, significantly to reflect the overall variation situations of data, and improve the degree of convenience of reading.
Please refer to Fig. 3 A, it illustrates another embodiment of the present invention provides image display method method flow diagram, shouldImage display method can be applied to such as mobile phone, tablet computer, E-book reader, smart television and portable meter on kneeIn the electronic equipments such as calculation machine.The image display method may include the following steps:
Step 301, at least two data to be shown are obtained.
Image display method provided in this embodiment, for drawing and showing a graphical interface of user.The graphical userInclude the two-dimensional Cartesian coordinate system being made of time shaft and data axis in interface, and includes parallel with time shaft in the coordinate systemData line and at least two data according to time dimension graphically to characterize.Wherein, data refer to it is any can with the time comeA plurality of types of data such as the data, such as gas epidemic disaster, price, yield of reactions change rule.
Step 302, it is determined according to the maximum value at least two data and minimum value between adjacent and parallel data lineCoordinate difference.
Data are read in order to facilitate user, need the drawing data line in above-mentioned two-dimensional Cartesian coordinate system.Data line is to sitGraticule in mark system for coordinate values different in labeled data axis.Data line is parallel with time shaft, intersects vertically with data axis, andEqually spacedly arrange.Wherein, coordinate difference is between coordinate value represented by any two adjacent and parallel data linesDifference.
Specifically, this step may include following several sub-steps:
First, according to the difference of maximum value max and minimum value min, inquiry obtains minimum scale value in default corresponding relationshipa0。
Minimum scale value a0Refer to the minimum value of the coordinate difference DELTA a between two adjacent and parallel data lines.At thisIn inventive embodiments, coordinate difference DELTA a is minimum scale value a0Integral multiple.Optionally, minimum scale value a is determined0Method canTo include:
1, the maximum difference Δ s between maximum value max and minimum value min is calculated:
Δ s=max-min.
For example, as the maximum value max=52 and minimum value min=20 in the one group of data got, maximum difference Δ s=max-min=32.
2, the Query Value less than preset threshold is obtained after maximum difference Δ s being carried out double of value of n times, N >=0 and N are wholeNumber.
Minimum scale value a0It can be determined according to default corresponding relationship by tabling look-up.Wherein, it presets in corresponding relationship and wrapsInclude the corresponding relationship between different Query Values and different minimum scale values.Maximum difference Δ s can be carried out n times and half-and-half taken by Query ValueIt is determined after value.
For example, maximum difference Δ s take for 5 times double as maximum difference Δ s=32 and when assuming that preset threshold is 2The number obtained after value isThen Query Value is 1.
3, minimum scale value a corresponding with Query Value is inquired according to default corresponding relationship0。
As shown in following table -1, it illustrates a kind of possible default corresponding relationships:
| Query Value | Minimum scale value a0 |
| 0.05 | 0.05 |
| 0.10 | 0.05 |
| 0.15 | 0.15 |
| 0.20 | 0.05 |
| 0.25 | 0.25 |
| 0.30 | 0.15 |
| 0.35 | 0.35 |
| 0.40 | 0.05 |
| 0.45 | 0.45 |
| 0.50 | 0.25 |
| 0.60 | 0.15 |
| 0.70 | 0.35 |
| 0.80 | 0.05 |
| 0.90 | 0.45 |
| 1.00 | 0.25 |
| 1.20 | 0.15 |
| 1.40 | 0.35 |
| 1.60 | 0.05 |
| 1.80 | 0.45 |
Table -1
According to the default corresponding relationship of upper table, minimum scale value a corresponding with Query Value 1 can be inquired0It is 0.25.
It should be noted is that: it, can be pre- when the Query Value being calculated is not present in default corresponding relationshipIf the closest Query Value of the Query Value chosen and be calculated at least one Query Value included in corresponding relationship, andFurther inquiry obtains minimum scale value a corresponding with the closest Query Value of above-mentioned selection0。
Certainly, above-mentioned default corresponding relationship is only with Query Value and minimum scale value a0Between the point-to-point mapping that is constitutedRelationship is illustrated.In other possible implementations, default corresponding relationship is also possible to one group of continuous data instituteThe minimum scale value a that the Query Value of composition and one group of continuous data are constituted0Between mapping relations, in this case,Any one Query Value for being less than predetermined threshold may both correspond to a minimum scale value a0。
Determining minimum scale value a0Later, it also needs to determine minimum scale value a0Amplification coefficient λ.Amplification coefficient λ and minimumScale value a0Product be equal to coordinate difference DELTA a.
Second, according to maximum value max, minimum value min, minimum scale value a0And primary data line number amount n0It determines minimumScale value a0Amplification coefficient λ.
Amplification coefficient λ reflects minimum scale value a0With the proportionate relationship between coordinate difference DELTA a.Optionally, determination is putThe method of big coefficient lambda may include:
1, according to maximum value max, minimum value min and primary data line number amount n0Calculate the coordinate between adjacent data lineThe reference value Δ a ' of difference DELTA a:
Primary data line number amount n0It is the preset experience of size according to the graphical interface of user of required draftingValue.If the size of graphical interface of user is larger, primary data line number amount n0Value may also set up it is larger;On the contrary, if withThe size of family graphical interfaces is smaller, then primary data line number amount n0Value may also set up it is smaller.For example, working as graphical interface of userSize be mobile phone screen size when, primary data line number amount n0It can be set to 4 or 5.
In this example, it is assumed that primary data line number amount n0=5, then
2, by custom algorithm by reference value Δ a ' and minimum scale value a0Amplification coefficient λ is calculated.
Custom algorithm isAmplification coefficient λ=2M.Wherein, custom algorithmTableShow minimum scale value a0It carries out doubling a obtained after value M times0×2MFor closest to the number of reference value Δ a ', M >=0 and MFor integer.
For example, working as reference value Δ a '=8, and minimum scale value a0When=0.25, due toSo λ=25=32.
Third, according to minimum scale value a0With amplification coefficient λ coordinates computed difference DELTA a:
Δ a=λ × a0。
Wherein, n0, λ be positive integer.
In the present embodiment, coordinate difference DELTA a=λ × a0=8 namely adjacent data line represented by coordinate value differenceIt is 8.
Step 303, the quantity and pieces of data line of data line are dynamically determined according to maximum value, minimum value and coordinate differenceRepresentative coordinate value.
With image display pattern involved in background technique the difference is that scheming provided by each embodiment of the present inventionAs displaying scheme, as time shaft is dragged, the quantity of shown data line can be with the change of data to be shown in interfaceChange also changes accordingly;At the same time, the position of pieces of data line also can be also smooth with the variation of data to be shownIt is moved on ground.
Specifically, this step may include following several sub-steps:
First, first reference value is selected in the data interval (min, max) that maximum value max and minimum value min are constituteds0, with first reference value s0Corresponding data line is as reference data line.
Selected reference data line first, reference data line are one in n data line, and min < s0< max.It is optional, coordinate value s representated by reference data line0It can be the mean value of maximum value max and minimum value min.
For example, as maximum value max=52 and minimum value min=20, coordinate value s representated by reference data line0It can be withIt is chosen for 36.
Second, on the basis of reference data line, successively increases coordinate difference DELTA a and/or successively reduction coordinate difference DELTA a is trueMake several other data lines to conform to a predetermined condition.
After selected reference data line, the coordinate value s according to representated by reference data line0, coordinate difference DELTA a, mostBig value max and minimum value min, and the quantity n of the data line by the determining drafting required in interface of plus/minus operation.Wherein, in advanceThe section that fixed condition is covered by the coordinate value of other data lines is greater than or equal to data interval (min, max), and two sectionsCorrespondence endpoint value between difference be no more than coordinate difference DELTA a.
For example, working as representated by maximum value max=52, minimum value min=20, coordinate difference DELTA a=8 and reference data lineCoordinate value s0When=36, due to 36-8=28,28-8=20,36+8=44,44+8=52, the quantity of data line can determineN=5, and coordinate value represented by 5 data lines is respectively 52,44,36,28 and 20.
Whether third, the quantity n of detection data line belong to scheduled experience section [n1, n2], n1< n2And n1、n2It is positiveInteger.
In order to optimize the display effect for the data line drawn and shown in interface, when further increasing user's reading dataDegree of convenience, need the control of the quantity of the data line of drafting required in interface in a certain range.If data line quantity is excessive,Data line will be will lead to excessively to be densely aligned in coordinate system, influence reading and display effect;It, will if data line quantity is very fewWill lead to can not accurately and rapidly read data.Therefore, after the quantity n of data line is calculated, detection data line is neededWhether quantity n belongs to scheduled experience section [n1, n2]。
Wherein, n1、n2It is the empirical value previously according to the size setting of the graphical interface of user of required drafting.For example, working asWhen the size of graphical interface of user is mobile phone screen size, n1It may be configured as 3, n2It may be configured as 7.
4th, if the quantity n of data line belongs to experience section [n1, n2], then execute following step 304.
5th, if the quantity n of data line is not belonging to experience section [n1, n2], then coordinate difference DELTA a is halved or doubledAfterwards, above-mentioned second sub-steps are re-executed, until the quantity n of the data line redefined belongs to experience section [n1, n2]。
Specifically: if n < n1, then coordinate difference DELTA a is halved, and execute above-mentioned second sub-steps again, will be satAfter mark difference DELTA a halves, data line density can be increased, increase the quantity of data line.If n > n2, then coordinate difference DELTA a is addedTimes, and above-mentioned second sub-steps are executed again.After coordinate difference DELTA a is halved, data line density can reduce, reduce dataThe quantity of line.
In addition, needing during time shaft is moved to coordinate value s representated by reference data line0It carries out real-timeGround updates, to guarantee that reference data line is always positioned between maximum value and minimum value at least two data to be shown, intoOne step guarantees the coordinate value s according to representated by reference data line0The quantity for the data line being calculated is kept in the reasonable scope.Specifically, step 303 may also include following several sub-steps:
1, during time shaft is moved, at least two data to be shown are obtained again.
As time shaft is moved, data to be shown can also change, and electronic equipment needs to obtain at interface in real timeIn at least two data to be shown.
2, first reference value s is detected0Whether maximum value max ' and minimum at least two data that again obtain is belonged toThe data interval (min ', max ') that value min ' is constituted.
If 3, first reference value s0It is not belonging to the data interval (min ', max ') obtained again, then in the number obtained againAccording to reselecting the second a reference value s in section (min ', max ')0', the second a reference value s0' and first reference value s0Between differenceIt is the integral multiple of coordinate difference DELTA a.
Wherein, the second a reference value s0' can be calculated by pre-defined algorithm, the pre-defined algorithm are as follows: s0'=s0+ k × Δ a, k ≠0 and k is integer.Using coordinate difference DELTA a as interval translation references data line, it is ensured that the coordinate difference between adjacent data lineΔ a is remained unchanged, and during data to be shown change, unification is remained between each data and data lineRatio and relative positional relationship convenient for reading, and can more intuitive, significantly reflect the overall variation situation of data.
Certainly, if coordinate value s representated by reference data line0Belong to section (min ', max '), then can directly execute above-mentionedThe second sub-steps in step 303 are to calculate the quantity of data line.
Step 304, a graphical interface of user is drawn by the user graphical interface in electronic equipment.
Wherein, graphical interface of user includes the coordinate system being made of time shaft and data axis, include in the coordinate system and whenBetween the parallel data line of axis and at least two data according to time dimension graphically to characterize.The quantity of data line and each itemCoordinate value representated by data line is dynamically determined by above-mentioned steps 303.
Specifically, this step may include following several sub-steps:
First, according to coordinate value representated by the quantity n of data line, pieces of data line and graphical interface of user in dataLength h in axis direction determines position coordinates corresponding to pieces of data line, h > 0.
In the first possible calculation, for the i-th data line, position coordinates corresponding to the i-th data line
Wherein, s1、si、snRespectively indicate coordinate value representated by the 1st article, i-th article and nth data line.
By data line determined by the first above-mentioned calculation, the 1st data line be located at graphical interface of user withThe parallel top edge of time shaft namely the 1st data line are located at the top of graphical interface of user;2nd article to nth data lineEqually spacedly successively arrangement downwards;Nth data line bit is in the lower edge parallel with time shaft of graphical interface of user, Ye JiN data line is located at the least significant end of graphical interface of user.
In second of possible calculation, for the i-th data line, position coordinates corresponding to the i-th data line
Wherein, s1、si、snRespectively indicate coordinate value representated by the 1st article, i-th article and nth data line, h1Indicate theLength between the 1 data line top edge parallel with time shaft with drawing area, h2Indicate nth data line and drawing areaLength between the lower edge parallel with time shaft, h1、h2≥0。
By data line determined by above-mentioned second of calculation, the 1st data line and graphical interface of user and whenBetween be reserved with a fixed gap between the parallel top edge of axis, and nth data line is parallel with time shaft with graphical interface of userLower edge between be also reserved with a fixed gap, can advanced optimize display effect and reading effect.
Second, n data line is drawn in graphical interface of user according to position coordinates corresponding to pieces of data line.
Further, it is drawn on at least two graphical datas that can be will acquire and is made of time shaft and data axisTwo-dimensional Cartesian coordinate system in.
Fig. 3 B is please referred to, it illustrates a kind of use drawn and shown using image display method provided in this embodimentIn reflection data change with time rule chart schematic diagram.Data are marked to be constituted in by time shaft 31 and data axis 32Two-dimensional Cartesian coordinate system in.After time shaft 31 is dragged, with the change of the data reflected needed in a coordinate system, dataThe quantity of line 33 becomes 6 from 5, and the coordinate difference between adjacent data line 33 remains unchanged, 33 tables of every data lineThe coordinate value shown also remains unchanged.In this manner it is ensured that data are in change procedure, between each data and data line 33 alwaysUnified ratio and relative positional relationship are kept, convenient for reading, and can more intuitive, significantly reflect the overall variation of dataSituation.
In conclusion image display method provided in this embodiment, by according at least two data to be shownMaximum value and after minimum value determines the coordinate difference between adjacent data line, further according to maximum value, minimum value and seatMark difference be dynamically determined data line quantity and pieces of data line representated by coordinate value;It solves involved in background techniqueImage display pattern can not intuitively, significantly reflect the overall variation situation of data, and be not easy to the problem of reading;It realizes moreIntuitively, significantly to reflect the overall variation situations of data, and improve the degree of convenience of reading.
In addition, whether image display method provided in this embodiment, belong to scheduled warp by the quantity of detection data lineTest section, it is ensured that the data line drawn and shown in interface will not be excessively intensive or excessively sparse, has advanced optimized dataThe display effect of line, while ensure that accuracy and degree of facilitating of the user when reading data.
It should be noted is that: in each embodiment of the present invention, data line refers to be made of data axis and time shaftTwo-dimensional Cartesian coordinate system in graticule for coordinate values different in labeled data axis.In a kind of typical application scenarios, thisInventive embodiments provide image display method can be applied in stock market, for draw and show Time Index Chart orData line in K line chart.
In a specific example, K line is drawn and shown using image display method provided in an embodiment of the present inventionFor data line in figure.By taking day K line as an example, day K line reflect opening price, closing price, highest price and the lowest price on the same dayThese four price datas.As shown in Figure 3 C, day K line 34 is made of the filament 36 at 35 both ends of cylinder 35 and cylinder.35 both ends of cylinderOpening price and closing price are respectively indicated, is connected respectively with filament 36 between highest price, lowest price and cylinder 35.Daily day K lineIt is arranged successively in the two-dimensional Cartesian coordinate system being made of time shaft 37 and data axis 38.
After time shaft 37 is dragged, with the change of the share price reflected needed in a coordinate system, the quantity of data line 39Become 6 from 5, and the coordinate difference between adjacent data line 39 remains unchanged, share price represented by every data line 39It remains unchanged, unified ratio and relative positional relationship is remained between each day K line 34 and data line 39.
Particularly, when the data interval corresponding to the share price of required reflection is larger, if according to determining under original stateThe quantity for the data line 39 that coordinate difference between adjacent data line 39 is calculated is more, then can double coordinate difference, makeThe quantity for obtaining the data line 39 calculated again halves, and ensures that data line 39 will not be excessively intensive with this, while ensure each day K lineUnified ratio and relative positional relationship are still maintained between 34 and data line 39, convenient for reading.When the share price institute of required reflectionWhen corresponding data interval is smaller, if being calculated according to the coordinate difference between the adjacent data line 39 determined under original stateData line 39 negligible amounts, then coordinate difference can be halved, so that the doubles of the data line 39 calculated again, with thisEnsure that data line 39 will not be excessively sparse, while ensuring to still maintain unified ratio between each day K line 34 and data line 39And relative positional relationship, convenient for reading.
The K line chart that the image display method provided through the embodiment of the present invention is drawn and shown, can be more intuitive, brightReflect the overall variation situation of share price aobviously, and is conducive to accurately and rapidly read.
In addition, image display method provided in an embodiment of the present invention can also be used to drawing and showing temperature change figure, humidityVariation diagram, change of production figure etc. it is any for reflect data change with time rule chart, this is not especially limited.
Following is apparatus of the present invention embodiment, can be used for executing embodiment of the present invention method.For apparatus of the present invention realityUndisclosed details in example is applied, embodiment of the present invention method is please referred to.
Referring to FIG. 4, it illustrates the structural block diagram of image display device provided by one embodiment of the present invention, the figureAs display device being implemented in combination with as some or all of of electronic equipment by software, hardware or both.The figureAs display device may include: that data acquisition module 410, difference determining module 420, quantity determining module 430 and interface are drawnModule 440.
Data acquisition module 410, for obtaining at least two data to be shown.
Difference determining module 420, for according at least two data maximum value and minimum value determine it is adjacent andCoordinate difference between parallel data line, the data line are the graticules for coordinate values different in labeled data axis.
Quantity determining module 430, for being dynamically determined institute according to the maximum value, the minimum value and the coordinate differenceState data line quantity and pieces of data line representated by coordinate value.
Interface drafting module 440, for drawing a graphical user by the user graphical interface in the electronic equipmentInterface, the graphical interface of user include the coordinate system being made of time shaft and data axis, include in the coordinate system with it is describedThe parallel data line of time shaft and at least two data according to time dimension graphically to characterize.
In conclusion image display device provided in this embodiment, by according at least two data to be shownMaximum value and after minimum value determines the coordinate difference between adjacent data line, further according to maximum value, minimum value and seatMark difference be dynamically determined data line quantity and pieces of data line representated by coordinate value;It solves involved in background techniqueImage display pattern can not intuitively, significantly reflect the overall variation situation of data, and be not easy to the problem of reading;It realizes moreIntuitively, significantly to reflect the overall variation situations of data, and improve the degree of convenience of reading.
Referring to FIG. 5, it illustrates another embodiment of the present invention provides image display device structural block diagram, the figureAs display device being implemented in combination with as some or all of of electronic equipment by software, hardware or both.The figureAs display device may include: that data acquisition module 410, difference determining module 420, quantity determining module 430 and interface are drawnModule 440.
Data acquisition module 410, for obtaining at least two data to be shown.
Difference determining module 420, for according at least two data maximum value and minimum value determine it is adjacent andCoordinate difference between parallel data line, the data line are the graticules for coordinate values different in labeled data axis.
The difference determining module 420, comprising: scale query unit 420a and difference computational unit 420b.
The scale query unit 420a, for being closed according to the difference of the maximum value and the minimum value in default correspond toInquiry obtains minimum scale value in system.
The difference computational unit 420b, for according to the maximum value, the minimum value, the minimum scale value andPrimary data line number amount determines the amplification coefficient of the minimum scale value, the product of the amplification coefficient and the minimum scale valueEqual to the coordinate difference.
Quantity determining module 430, for being dynamically determined institute according to the maximum value, the minimum value and the coordinate differenceState data line quantity and pieces of data line representated by coordinate value.
The quantity determining module 430, comprising: selection of datum unit 430a and quantity determination unit 430b.
The selection of datum unit 430a, for being selected in the data interval that the maximum value and the minimum value are constitutedFirst reference value is selected, using the corresponding data line of the first reference value as reference data line.
The quantity determination unit 430b, for successively increasing the coordinate difference on the basis of the reference data lineAnd/or several other data lines that the coordinate difference is determined to conform to a predetermined condition successively are reduced, the predetermined condition isThe section that the coordinate value of other data lines is covered is greater than or equal to the data interval, and the correspondence endpoint in two sectionsDifference between value is no more than the coordinate difference.
Optionally, the quantity determining module 430, further includes: data capture unit 430c, benchmaring unit 430d andBase weight menu member 430e.
The data capture unit 430c, for during time shaft is moved, obtain again it is to be shown at leastTwo data.
The benchmaring unit 430d, for detect the first reference value whether belong to obtain again described at leastData interval in two data and that minimum value is constituted.
The base weight menu member 430e, if being not belonging to the data field obtained again for the first reference valueBetween, then the second a reference value, second a reference value and first base are reselected in the data interval obtained againDifference between quasi- value is the integral multiple of the coordinate difference.
Optionally, the quantity determining module 430, further includes: quantity detection unit 430f and difference modify unit 430g.
Whether the quantity detection unit 430f, the quantity for detecting the data line belong to scheduled experience section.
The difference modifies unit 430g, if the quantity for the data line is not belonging to the experience section, by instituteIt states after coordinate difference halves or double, re-executes described on the basis of the reference data line, successively increase the coordinateDifference and/or the step of coordinate difference determines several other data lines to conform to a predetermined condition is successively reduced, untilThe quantity of the data line redefined belongs to the experience section.
Interface drafting module 440, for drawing a graphical user by the user graphical interface in the electronic equipmentInterface, the graphical interface of user include the coordinate system being made of time shaft and data axis, include in the coordinate system with it is describedThe parallel data line of time shaft and at least two data according to time dimension graphically to characterize.
The interface drafting module 440, comprising: coordinate determination unit 440a and interface drawing unit 440b.
The coordinate determination unit 440a, for according to representated by the quantity of the data line, the pieces of data lineThe length of coordinate value and the graphical interface of user in the data axis direction determines position corresponding to pieces of data lineCoordinate.
The interface drawing unit 440b, for the position coordinates according to corresponding to the pieces of data line in the userThe data line is drawn in graphical interfaces.
In conclusion image display device provided in this embodiment, by according at least two data to be shownMaximum value and after minimum value determines the coordinate difference between adjacent data line, further according to maximum value, minimum value and seatMark difference be dynamically determined data line quantity and pieces of data line representated by coordinate value;It solves involved in background techniqueImage display pattern can not intuitively, significantly reflect the overall variation situation of data, and be not easy to the problem of reading;It realizes moreIntuitively, significantly to reflect the overall variation situations of data, and improve the degree of convenience of reading.
In addition, whether image display method provided in this embodiment, belong to scheduled warp by the quantity of detection data lineTest section, it is ensured that the data line drawn and shown in interface will not be excessively intensive or excessively sparse, has advanced optimized numberAccording to the display effect of line, while it ensure that accuracy and degree of facilitating of the user when reading data.
It should be understood that image display device provided by the above embodiment draw and show image when, only with above-mentionedThe division progress of each functional module can according to need and for example, in practical application by above-mentioned function distribution by differentFunctional module is completed, i.e., the internal structure of equipment is divided into different functional modules, with complete it is described above whole orPartial function.In addition, the embodiment of the method for image display device provided by the above embodiment and image display method belong to it is sameDesign, specific implementation process are detailed in embodiment of the method, and which is not described herein again.
Referring to FIG. 6, it illustrates the structural schematic diagrams of electronic equipment provided by one embodiment of the present invention.The electronics is setIt is ready for use on the image display method for implementing to provide in above-described embodiment.Specifically:
Electronic equipment 600 may include RF (Radio Frequency, radio frequency) circuit 110, include one or one withMemory 120, input unit 130, display unit 140, the sensor 150, voicefrequency circuit of upper computer readable storage medium160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include one or more than one processing coreThe components such as processor 180 and power supply 190.It will be understood by those skilled in the art that electronic devices structure shown in Fig. 6 is simultaneouslyThe restriction to electronic equipment is not constituted, may include perhaps combining certain components or not than illustrating more or fewer componentsSame component layout.Wherein:
RF circuit 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base stationAfter downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent toBase station.In general, RF circuit 110 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, usesFamily identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplexDevice etc..In addition, RF circuit 110 can also be communicated with network and other equipment by wireless communication.The wireless communication can makeWith any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirelyBall mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (CodeDivision Multiple Access, CDMA), WCDMA (Wideband Code Division MultipleAccess, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (ShortMessaging Service, short message service) etc..
Memory 120 can be used for storing software program and module, and processor 180 is stored in memory 120 by operationSoftware program and module, thereby executing various function application and data processing.Memory 120 can mainly include storage journeySequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one functionSuch as sound-playing function, image player function) etc.;Storage data area can be stored to be created according to using for electronic equipment 600Data (such as audio data, phone directory etc.) etc..In addition, memory 120 may include high-speed random access memory, may be used alsoTo include nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-statesPart.Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and 130 pairs of input unit storagesThe access of device 120.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and functionControl related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 130 may include figureAs input equipment 131 and other input equipments 132.Image input device 131 can be camera, be also possible to optoelectronic scanningEquipment.In addition to image input device 131, input unit 130 can also include other input equipments 132.Specifically, other are inputtedEquipment 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouseOne of mark, operating stick etc. are a variety of.
Display unit 140 can be used for showing information input by user or the information and electronic equipment that are supplied to user600 various graphical user interface, these graphical user interface can by figure, text, icon, video and any combination thereof LaiIt constitutes.Display unit 140 may include display panel 141, optionally, can using LCD (Liquid Crystal Display,Liquid crystal display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure displayPanel 141.
Electronic equipment 600 may also include at least one sensor 150, for example, optical sensor, motion sensor and otherSensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can basisThe light and shade of ambient light adjusts the brightness of display panel 141, proximity sensor can when electronic equipment 600 is moved in one's ear,Close display panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect all directionsThe size of upper (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify mobile phone posture when staticApplication (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (for example pedometer, strikesHit) etc.;Gyroscope, barometer, hygrometer, thermometer, infrared sensor for can also configure as electronic equipment 600 etc. otherSensor, details are not described herein.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and electronic equipment 600.Electric signal after the audio data received conversion can be transferred to loudspeaker 161, be converted by loudspeaker 161 by voicefrequency circuit 160For voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, is connect by voicefrequency circuit 160Audio data is converted to after receipts, then by after the processing of audio data output processor 180, is sent to through RF circuit 110 such as anotherOne electronic equipment, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible thatEarphone jack, to provide the communication of peripheral hardware earphone Yu electronic equipment 600.
WiFi belongs to short range wireless transmission technology, and electronic equipment 600 can help user to receive and dispatch by WiFi module 170Email, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 6WiFi module 170 is shown, but it is understood that, and it is not belonging to must be configured into for electronic equipment 600, it completely can rootIt is omitted within the scope of not changing the essence of the invention according to needs.
Processor 180 is the control centre of electronic equipment 600, utilizes each of various interfaces and connection whole mobile phonePart by running or execute the software program and/or module that are stored in memory 120, and calls and is stored in memoryData in 120 execute the various functions and processing data of electronic equipment 600, to carry out integral monitoring to mobile phone.It is optional, processor 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modulatedemodulateAdjust processor, wherein the main processing operation system of application processor, user interface and application program etc., modem processorMain processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Electronic equipment 600 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can lead toCross power-supply management system and processor 180 be logically contiguous, thus by power-supply management system realize management charging, electric discharge andThe functions such as power managed.Power supply 190 can also include one or more direct current or AC power source, recharging system, electricityThe random components such as source fault detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, electronic equipment 600 can also be including bluetooth module etc., and details are not described herein.
Specifically in the present embodiment, electronic equipment 600 further includes having memory and one or more than one journeySequence, perhaps more than one program is stored in memory and is configured to by one or more than one processor for one of themIt executes.Said one or more than one program include the instruction for performing the following operation:
Obtain at least two data to be shown;
According at least two data maximum value and minimum value determine the seat between adjacent and parallel data lineDifference is marked, the data line is the graticule for coordinate values different in labeled data axis;
The quantity of the data line and each is dynamically determined according to the maximum value, the minimum value and the coordinate differenceCoordinate value representated by data line;
A graphical interface of user, the graphical interface of user are drawn by the user graphical interface in the electronic equipmentIt include the data line parallel with the time shaft in the coordinate system including the coordinate system being made of time shaft and data axisWith at least two data according to time dimension graphically to characterize.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodimentSecond of possible embodiment in, in the memory of the electronic equipment, also include instructions for performing the following operations:
First reference value is selected in the data interval that the maximum value and the minimum value are constituted, with first baseStandard is worth corresponding data line as reference data line;
On the basis of the reference data line, successively increases the coordinate difference and/or successively reduce the coordinate differenceDetermine several other data lines to conform to a predetermined condition, the predetermined condition is covered by the coordinate value of other data linesThe section of lid is greater than or equal to the data interval, and the difference between the correspondence endpoint value in two sections is no more than the coordinateDifference.
In the third the possible embodiment provided based on second of possible embodiment, the electronicsAlso include instructions for performing the following operations in the memory of equipment:
During time shaft is moved, at least two data to be shown are obtained again;
Detect whether the first reference value belongs at least two data obtained again and minimum value institute structureAt data interval;
If the first reference value is not belonging to the data interval obtained again, in the data field obtained againBetween in reselect the second a reference value, the difference between second a reference value and the first reference value is the coordinate differenceIntegral multiple.
In the 4th kind of possible embodiment provided based on second of possible embodiment, the electronicsAlso include instructions for performing the following operations in the memory of equipment:
Whether the quantity for detecting the data line belongs to scheduled experience section;
If the quantity of the data line is not belonging to the experience section, after the coordinate difference is halved or is doubled,Described in re-executing on the basis of the reference data line, successively increases the coordinate difference and/or successively reduce the coordinateDifference determines the step of several other data lines to conform to a predetermined condition, until the quantity of the data line redefinedBelong to the experience section.
In the 5th kind of possible embodiment provided based on the first possible embodiment, the electronicsAlso include instructions for performing the following operations in the memory of equipment:
According to the difference of the maximum value and the minimum value, inquiry obtains minimum scale value in default corresponding relationship;
It is described most according to the determination of the maximum value, the minimum value, the minimum scale value and primary data line number amountThe product of the amplification coefficient of down scale value, the amplification coefficient and the minimum scale value is equal to the coordinate difference.
The 6th kind of possible embodiment provided based on first to five any possible embodimentsIn, also include instructions for performing the following operations in the memory of the electronic equipment:
According to coordinate value and the graphical interface of user representated by the quantity of the data line, the pieces of data lineLength in the data axis direction determines position coordinates corresponding to pieces of data line;
The data line is drawn in the graphical interface of user according to position coordinates corresponding to the pieces of data line.
It should be understood that it is used in the present context, unless the context clearly supports exceptions, singular " oneIt is a " (" a ", " an ", " the ") be intended to also include plural form.It is to be further understood that "and/or" used herein isRefer to any and all possible combinations including one or more than one project listed in association.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardwareIt completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readableIn storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention andWithin principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.