CN109933264A - Graph data display methods and device - Google Patents

Graph data display methods and device Download PDF

Info

Publication number
CN109933264A
CN109933264A CN201910208625.XA CN201910208625A CN109933264A CN 109933264 A CN109933264 A CN 109933264A CN 201910208625 A CN201910208625 A CN 201910208625A CN 109933264 A CN109933264 A CN 109933264A
Authority
CN
China
Prior art keywords
data
displayed
target
indication range
scale
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
CN201910208625.XA
Other languages
Chinese (zh)
Other versions
CN109933264B (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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch 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 Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201910208625.XA priority Critical patent/CN109933264B/en
Publication of CN109933264A publication Critical patent/CN109933264A/en
Application granted granted Critical
Publication of CN109933264B publication Critical patent/CN109933264B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

This application discloses a kind of graph data display methods and devices.This method comprises: obtaining data to be displayed;According to the data to be displayed and target scale multiple, target indication range is obtained;The data to be displayed in the target indication range is shown under coordinate system.Also disclose corresponding device.The application passes through using the midpoint of initial indication range as datum mark, the current indication range of reference axis is determined according to the quantity of the scale of reference axis, and the data to be displayed in current indication range is shown, the Zoom display of the accurate data for realizing logarithm dynamic change.

Description

Graph data display methods and device
Technical field
This application involves field of computer technology more particularly to a kind of graph data display methods and devices.
Background technique
In recent years, economic development was swift and violent, and people's lives level is continuously improved, and more and more people have purchased automobile.Vapour Vehicle is that people bring many conveniences, but after all, automobile is also a machine, also can be faulty, when failure, it is necessary to It is repaired.Maintenance personal is analyzed by the status data to automotive interior spare and accessory parts, it may be determined that vehicle failure.Dimension Personnel are repaired to need to zoom in and out vehicle condition data when checking vehicle condition data.Traditional approach can be to vehicle condition data Display is zoomed in and out, but the Zoom display of the data of logarithm transformation is ineffective.
Summary of the invention
The application provides a kind of graph data display methods and device, to realize the Zoom display of graph data.
In a first aspect, providing a kind of graph data display methods, comprising: obtain data to be displayed;According to described to aobvious Registration accordingly and target scale multiple, obtains target indication range;It will be described to be shown in the target indication range Data are shown under coordinate system.
It is described according to the data to be displayed and target scale multiple in a kind of mode in the cards, obtain mesh Mark indication range, comprising: according to the maximum value and minimum value in the data to be displayed, determine initial indication range;It obtains Target scale multiple, and according to the target scale multiple adjustment initial range to be shown, it obtains the target and shows model It encloses.
In the mode of alternatively possible realization, the acquisition target scale multiple, and according to the target scale multiple The size for adjusting the range to be shown obtains the target indication range, comprising: determines in the initial indication range Point;According to the scaling multiple, the initial scale of the reference axis of the coordinate system is adjusted, target scale is obtained;Obtain the seat The quantity of the scale of parameter obtains institute according to the numerical values recited at the midpoint, the quantity of the target scale and the scale State target indication range.
In another mode in the cards, the scaling multiple includes shrinking of object multiple, described according to the contracting Multiple is put, the initial scale of the reference axis of the coordinate system is adjusted, obtains target scale, comprising: according to the data to be displayed Quantity, determine maximum zoom multiple, wherein the maximum zoom multiple includes maximum minification;Object run is to reduce Operation, and when the shrinking of object multiple is less than the maximum zoom multiple, by the initial scale and the shrinking of object Multiple is multiplied, and obtains the target scale.
In another mode in the cards, the scaling multiple further includes object magnification, the maximum zoom Multiple further includes maximum amplification, and the maximum minification is equal with the maximum amplification, and the method is also wrapped Include: object run is amplifying operation, and when the object magnification is less than the maximum amplification, by the initial quarter The quotient of degree and the object magnification is as the target scale.
In another mode in the cards, the method also includes: it is greater than or equal in the target scale multiple In the case where the maximum zoom multiple, using the initial scale as target scale.
In another mode in the cards, the quantity according to the data to be displayed determines maximum zoom times Number, comprising: obtain the maximum zoom multiple: [log according to the following formula2N]=M;Wherein, the M is the maximum zoom Multiple and be positive integer;Wherein, described, the N is the quantity of the data to be displayed.
In another mode in the cards, the acquisition data to be displayed, comprising: obtain S data, and store institute State S data, wherein the S is equal with the N, and the N is the quantity of the data to be displayed, and the data include the time Stamp;In the case where getting a new data, the smallest data of timestamp are removed, and store the new data;It will storage S data as the data to be displayed.
In another mode in the cards, the maximum value and minimum value according in the data to be displayed, Determine initial indication range, comprising: using the difference of the maxima and minima of the data to be displayed as the reference axis Initial range;The quantity for obtaining the scale of the reference axis of the coordinate system, by the multiple of the quantity of the scale with it is described just Target span of the smallest numerical value of difference of beginning span as the reference axis;With the minimum value of the data to be displayed for the seat The starting point of parameter determines the initial indication range according to the target span of the reference axis;Or with the data to be displayed Maximum value is that the terminal of the reference axis determines the initial indication range according to the target span of the reference axis.
In another mode in the cards, the data to be displayed by the current indication range It is shown under coordinate system, comprising: be arranged successively the sequence that the data to be displayed temporally stabs from big to small, and in institute It states and is shown under coordinate.
Second aspect provides a kind of graph data display device, comprising: acquiring unit, for obtaining data to be displayed; Processing unit, for obtaining target indication range according to the data to be displayed and target scale multiple;Display unit is used It is shown under coordinate system in by the data to be displayed being in the target indication range.
In a kind of mode in the cards, the processing unit includes: first to determine subelement, for according to it is described to It shows the maximum value and minimum value in data, determines initial indication range;First obtains subelement, for obtaining target scale Multiple, and according to the target scale multiple adjustment initial range to be shown, obtain the target indication range.
In the mode of alternatively possible realization, the first acquisition subelement is also used to: determining the initial display model The midpoint enclosed;And according to the scaling multiple, the initial scale of the reference axis of the coordinate system is adjusted, target scale is obtained; And the quantity of the scale of the reference axis is obtained, according to the numerical values recited at the midpoint, the target scale and the quarter The quantity of degree obtains the target indication range.
In another mode in the cards, the scaling multiple includes shrinking of object multiple, and described first obtains son Unit is also used to: according to the quantity of the data to be displayed, determining maximum zoom multiple, wherein the maximum zoom multiple packet Include maximum minification;And object run is reduction operation, and when the shrinking of object multiple is less than the maximum zoom times When number, the initial scale is multiplied with the shrinking of object multiple, obtains the target scale.
In another mode in the cards, the scaling multiple further includes object magnification, the maximum zoom Multiple further includes maximum amplification, and the maximum minification is equal with the maximum amplification, and described first obtains Subelement is also used to: object run is amplifying operation, and when the object magnification is less than the maximum amplification, will The quotient of the initial scale and the object magnification is as the target scale.
In another mode in the cards, the first acquisition subelement is also used to: in the target scale multiple When more than or equal to the maximum zoom multiple, using the initial scale as target scale.
In another mode in the cards, the maximum zoom adjustment subelement: is obtained according to the following formula Multiple: [log2N]=M;Wherein, the M is the maximum zoom multiple and is positive integer, and the N is the data to be displayed Quantity.
In another mode in the cards, the acquiring unit includes: the second acquisition subelement, for obtaining S Data, and store the S data, wherein the S is equal with the N, and the N is the quantity of the data to be displayed, described Data include timestamp;Subelement is stored, in the case where getting a new data, the smallest data of timestamp to be gone It removes, and stores the new data;Second determines subelement, and the S data for that will store are as the data to be displayed.
In another mode in the cards, described first determines that subelement is also used to: by the data to be displayed Initial range of the difference of maxima and minima as the reference axis;And obtain the scale of the reference axis of the coordinate system Quantity, using in the multiple of the quantity of the scale with the smallest numerical value of difference of the initial range as the mesh of the reference axis Mark span;And with the minimum value of the data to be displayed be the reference axis starting point, according to the target of the reference axis across Degree, determines the initial indication range;Or with the maximum value of the data to be displayed be the reference axis terminal, according to described The target span of reference axis determines the initial indication range.
In another mode in the cards, the display unit includes: display subelement, and being used for will be described to be shown The sequence that data temporally stab from big to small is arranged successively, and is shown under the coordinate.
The third aspect provides a kind of graph data display device, comprising: including processor, memory;The processor It is configured as that described device is supported to execute corresponding function in above-mentioned first aspect and its method of any possible implementation Energy.Memory saves the necessary program of described device (instruction) and data for coupling with processor.Optionally, the dress Setting to include input/output interface, for supporting the communication between described device and other devices.
Fourth aspect provides a kind of computer readable storage medium, is stored in the computer readable storage medium Instruction, when run on a computer, so that computer executes above-mentioned first aspect and its any possible implementation Method.
5th aspect, provides a kind of computer program product comprising instruction, when run on a computer, so that The method that computer executes above-mentioned first aspect and its any possible implementation.
The application according to the quantity of the scale of reference axis by determining and sitting using the midpoint of initial indication range as datum mark The current indication range of parameter, and the data to be displayed in current indication range is shown, accurately realize logarithm The Zoom display of the data of dynamic change.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application or in background technique below will be implemented the application Attached drawing needed in example or background technique is illustrated.
Fig. 1 is a kind of flow diagram of graph data display methods provided by the embodiments of the present application;
Fig. 2 is the flow diagram of another graph data display methods provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another graph data display methods provided by the embodiments of the present application;
Fig. 4 is a kind of schematic diagram of the indication range of reference axis provided by the embodiments of the present application;
Fig. 5 is the schematic diagram of the indication range of another reference axis provided by the embodiments of the present application;
Fig. 6 is a kind of structural schematic diagram of graph data display device provided by the embodiments of the present application;
Fig. 7 is a kind of hardware structural diagram of graph data display device provided by the embodiments of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Technical solution in ord to more clearly illustrate embodiments of the present application or in background technique below will be implemented the application Attached drawing needed in example or background technique is illustrated.
The embodiment of the present application is described below with reference to the attached drawing in the embodiment of the present application.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of graph data display methods provided by the embodiments of the present application.
101, data to be displayed is obtained.
The embodiment of the present application, which can be realized, zooms in and out display to the graph data of dynamic change, shows to graph data Before showing, the maximum quantity of data to be displayed is set, in this way, can reduce while guaranteeing the real-time of current display data Memory space improves the speed of service of display equipment.In a kind of mode in the cards, data to be displayed include timestamp with And numerical values recited, the acquiring size predetermined quantity temporally stabbed (maximum quantity of the data to be displayed set) a number to be shown According to, and these data to be displayed are stored, while getting new data to be displayed, by the smallest number to be shown of timestamp It is stored according to removal, and by the new data to be displayed, realizes the real-time update of data to be displayed.
102, according to above-mentioned data to be displayed and target scale multiple, target indication range is obtained.
Zoom operations include reducing and amplifying, and display equipment determines target scale times by the current operation of detection user Number, by detecting the operation of user, determines target scale multiple, specifically, user often holds in a kind of mode in the cards Row first-stage reduction operation, shrinking of object multiple are increased by once, and the every execution of user is primary to be enlarged, and object magnification just increases Add once, such as: current minification is 1, and when user executes first-stage reduction operation, minification increase once becomes 2.
When user executes reduction operation, it should increase the quantity of display data, and increase indication range;When user executes When amplifying operation, it should the quantity of display data is reduced, and reduces indication range, in a kind of mode in the cards, according to The maximum value and minimum value of data to be displayed, determine benchmark indication range, on this basis, every execution first-stage reduction operation, The increasing of benchmark indication range is twice, target indication range is obtained;Every execution is primary to be enlarged, and benchmark indication range is reduced One times, target indication range is obtained, and guarantees that the midpoint of benchmark indication range is identical as the midpoint of target zone, such as: current aobvious It is 20 to 60 that demonstration, which is enclosed, and the midpoint of current indication range is 40, and when user executes first-stage reduction operation, target indication range is 0 to 80, the midpoint of target indication range or 40;When user executes primary be enlarged, target indication range is 30 to 50, The midpoint of target indication range or 40.
103, the above-mentioned data to be displayed in above-mentioned target indication range is shown under coordinate system.
Since target indication range is dynamic change according to the real-time operation of user, and target indication range is always positioned at In initial indication range, there can be the data to be displayed except target indication range, under current zoom operation, this part Data to be displayed does not need to be shown, therefore, by the data to be displayed in target indication range under coordinate system It is shown.In a kind of mode in the cards, according to the data to be displayed got, corresponding figure is drawn under coordinate system Shape shows the figure in target indication range after determining target indication range.In alternatively possible realization In mode, from data of the acquisition in target indication range in data to be displayed, and according to these data, drawn under coordinate Corresponding figure.
The embodiment of the present application is by using the midpoint of initial indication range as datum mark, according to the quantity of the scale of reference axis It determines the current indication range of reference axis, and the data to be displayed in current indication range is shown, it is accurate to realize The Zoom display of the data of logarithm dynamic change.
Referring to Fig. 2, Fig. 2 is the flow diagram of another graph data display methods provided by the embodiments of the present application.
201, data to be displayed is obtained.
The embodiment of the present application, which can be realized, zooms in and out display to the graph data of dynamic change, shows to graph data Before showing, the maximum quantity of data to be displayed is set, in this way, can reduce while guaranteeing the real-time of current display data Memory space improves the speed of service of display equipment.In a kind of mode in the cards, data to be displayed include timestamp with And numerical values recited, the acquiring size predetermined quantity temporally stabbed (maximum quantity of the data to be displayed set) a number to be shown According to, and these data to be displayed are stored, while getting new data to be displayed, by the smallest number to be shown of timestamp It is stored according to removal, and by the new data to be displayed, realizes the real-time update of data to be displayed.
202, according to the maximum value and minimum value in above-mentioned data to be displayed, initial indication range is determined.
To show that all data to be displayed can under coordinate system, according to the maximum value and minimum of data to be displayed It is worth and determines benchmark indication range, such as: the maximum value of data to be displayed is 60, minimum value 10, and benchmark indication range is 10 to 60.
Due to the scale of reference axis be it is determining, for guarantee always show complete lattice scale, brought more preferably to user Experience, the scale based on benchmark indication range and reference axis determines initial indication range, and subsequent display can be based on initial Indication range is adjusted, initial to show to guarantee to always show complete lattice scale in a kind of mode in the cards The span of range need to be the multiple of scale, meanwhile, to guarantee that data to be displayed can normally show that benchmark indication range should be at In initial indication range, when scale is 6, and basic indication range is 10 to 60, the span of initial indication range is 54, initial aobvious It is 10 to 64 or 6 to 60 that demonstration, which is enclosed,.
203, target scale multiple is obtained, and according to the above-mentioned initial range to be shown of above-mentioned target scale multiple adjustment, is obtained To target indication range.
When user executes reduction operation, it should increase the quantity of display data, and increase indication range;When user executes When amplifying operation, it should reduce the quantity of display data, and reduce indication range, in a kind of mode in the cards, often hold The increasing of initial indication range is twice, obtains target indication range by row first-stage reduction operation;Every execution is primary to be enlarged, will Initial indication range reduces one times, obtains target indication range, and in the midpoint and target zone of the current indication range of guarantee Point is identical, such as: current indication range is 20 to 60, and the midpoint of current indication range is 40, when user executes first-stage reduction operation When, target indication range is 0 to 80, the midpoint of target indication range or 40;When user executes primary be enlarged, target Indication range is 30 to 50, the midpoint of target indication range or 40.
204, the above-mentioned data to be displayed in above-mentioned target indication range is shown under coordinate system.
Since target indication range is dynamic change according to the real-time operation of user, and target indication range is always positioned at In initial indication range, there can be the data to be displayed except target indication range, under current zoom operation, this part Data to be displayed does not need to be shown, therefore, by the data to be displayed in target indication range under coordinate system It is shown.In a kind of mode in the cards, according to the data to be displayed got, corresponding figure is drawn under coordinate system Shape shows the figure in target indication range after determining target indication range.In alternatively possible realization In mode, from data of the acquisition in target indication range in data to be displayed, and according to these data, drawn under coordinate Corresponding figure.
The embodiment of the present application determines initial indication range, and according to the scale of benchmark indication range and reference axis with first The midpoint of beginning indication range determines the current indication range of reference axis according to the quantity of the scale of reference axis as datum mark, and Data to be displayed in current indication range is shown, the scaling of the accurate data for realizing logarithm dynamic change is aobvious Show.
Referring to Fig. 3, Fig. 3 is the flow diagram of another graph data display methods provided by the embodiments of the present application.
301, data to be displayed is obtained.
The embodiment of the present application, which can be realized, zooms in and out display to the graph data of dynamic change, shows to graph data Before showing, the maximum quantity of data to be displayed is set, in this way, can reduce while guaranteeing the real-time of current display data Memory space improves the speed of service of display equipment.In a kind of mode in the cards, data to be displayed include timestamp with And numerical values recited, the acquiring size predetermined quantity temporally stabbed (maximum quantity of the data to be displayed set) a number to be shown According to, and these data to be displayed are stored, while getting new data to be displayed, by the smallest number to be shown of timestamp It is stored according to removal, and by the new data to be displayed, realizes the real-time update of data to be displayed.In a kind of mode in the cards In, S data are obtained, and store this S data, wherein S is the maximum quantity of data to be displayed, when each data include Between stab, in the case where getting a new data, the smallest data of timestamp are removed, and store this new data, will be stored up The S data deposited are as data to be displayed.
302, according to the maximum value and minimum value in above-mentioned data to be displayed, initial indication range is determined.
Data to be displayed to guarantee all can normally be shown, by the maxima and minima of above-mentioned data to be displayed Initial range of the difference as the reference axis, in a kind of mode in the cards: the maximum value of data to be displayed is 60, most Small value is 5, then initial range is 60-5=55.The quantity for obtaining the scale of the reference axis of above-mentioned coordinate system, by above-mentioned scale Target span in the multiple of quantity with the smallest numerical value of difference of above-mentioned initial range as above-mentioned reference axis, in a kind of possible reality In existing mode, the quantity of the scale of the reference axis of coordinate system is 6, i.e., no matter scales how many times, which only shows 6 lattice Scale, initial range 55, using it is bigger than 55 and for the minimum value in all numbers of 6 multiple as the target of above-mentioned reference axis across Degree, i.e., 60.
The target span of numerical values recited and reference axis based on data to be displayed determines the initial display model of reference axis It encloses, i.e., is that the starting point of above-mentioned reference axis is determined according to the target span of above-mentioned reference axis with the minimum value of above-mentioned data to be displayed Initial indication range, in a kind of mode in the cards, by the minimum value 5 of data to be displayed rising as initial indication range Point determines that the terminal of initial indication range, i.e. 5+60=65 finally determine initial indication range in starting point plus target span It is 5 to 65.The target span of numerical values recited and reference axis based on data to be displayed determines the initial display model of reference axis It encloses, can also be the terminal of above-mentioned reference axis with the maximum value of above-mentioned data to be displayed, according to the target zone of above-mentioned reference axis, Initial indication range is determined, in a kind of mode in the cards, by the maximum value 60 of data to be displayed as initial display model The terminal enclosed, with the starting point for subtracting target span on terminal and determining initial indication range, i.e. 60-60=0, it is final determine it is initial aobvious It is 0 to 60 that demonstration, which is enclosed,.
303, the midpoint of above-mentioned initial indication range is determined.
When zooming in and out operation due to user, the data to be displayed of required display is dynamic change, correspondingly, above-mentioned seat The indication range of parameter is also variation, and to guarantee to show the data to match with user's operation, the embodiment of the present application is with initial The midpoint of indication range is used as the midpoint of the indication range of reference axis always, and according to the big of the corresponding indication range of zoom operations It is small, determine the corresponding indication range of zoom operations.Therefore, before carrying out subsequent processing, above-mentioned initial indication range is determined Midpoint, in a kind of mode in the cards, 302 obtained initial indication ranges are 0 to 60, then the midpoint of initial indication range It is 30.
304, according to above-mentioned scaling multiple, the initial scale of the reference axis of above-mentioned coordinate system is adjusted, target scale is obtained.
When practical operation, but zoom in or out to a certain extent, when being further continued for zooming in or out, the meaning of the data of display To greatly reduce, such as: when reduce to a certain extent, when not seen the data of display, it is clear that be at this moment further continued for being reduced The meaning of display will be little;When the quantity for being amplified to the data to be displayed only included in indication range is very small, be further continued for into The meaning of row amplification display also will be little.Therefore, it should limitation appropriate be carried out to scaling multiple, in a kind of side in the cards In formula, according to the following formula, maximum zoom multiple is determined:
[log2N]=M
Wherein, the M is the maximum zoom multiple and is positive integer, and [] is to be rounded symbol, and N is above-mentioned data to be displayed Quantity.
In a kind of mode in the cards, the quantity of data to be displayed is 8, acquires maximum zoom times according to above-mentioned formula Number is log28=3, at this point, can amplify on the basis of initial indication range 2 times, when amplification factor reaches maximum amplification When, it can reduce 3 times.It is to be appreciated that above-mentioned maximum zoom multiple includes maximum minification, minification is every to increase by one Secondary, amplification factor is reduced once, and similarly, amplification factor is every to be increased once, and minification reduces primary.Initial indication range is corresponding Minification be maximum minification, amplification factor 1, such as: maximum zoom multiple is 3, diminution when initial indication range Multiple is 3, amplification factor 1, and after executing primary be enlarged on this basis, minification becomes 2, and amplification factor becomes 2. At this point, executing primary amplifying operation again, minification becomes 1, and amplification factor becomes 3, and amplification factor has reached maximum times magnification Number, can not continue to amplify, if executing first-stage reduction operation, minification becomes 2, and amplification factor becomes 2.It should be pointed out that Above-mentioned scaling multiple is corresponding with scaling multiple, that is, amplifying 1 time makes 2 times of amplification, and reducing 1 time is to reduce 2 times.
As described above, the quantity of the scale shown in reference axis is constant, and the midpoint of the indication range of reference axis Be it is constant, therefore, only corresponding reference axis scale need to be determined according to zoom operations, that is, can determine the corresponding display of zoom operations Range.When detect object run be reduction operation, and when shrinking of object multiple be less than above-mentioned maximum zoom multiple when, will be above-mentioned Initial scale is multiplied with above-mentioned shrinking of object multiple, obtains target scale.In a kind of mode in the cards, as shown in figure 4, Initial indication range is 15 to 45, and the quantity of scale is 6, and initial scale is 5 at this time, when shrinking of object multiple is 2, such as Fig. 5 Shown, target scale is adjusted to 5*2=10.When detect object run for be enlarged, and when above-mentioned object magnification it is small When above-mentioned maximum amplification, using the quotient of above-mentioned initial scale and above-mentioned object magnification as target scale.In one kind In mode in the cards, as shown in figure 5, initial indication range is 0 to 60, the quantity of scale is 6, and initial scale is at this time 10, when object magnification is 2, as shown in figure 4, target scale is adjusted to 10/2=5.It is greater than in the target scale multiple Or in the case where being equal to the maximum zoom multiple, it will be unable to continue Zoom display, therefore, using above-mentioned initial scale as target Scale.
305, the quantity for obtaining the scale of above-mentioned reference axis, according to the numerical values recited at above-mentioned midpoint, above-mentioned target scale with And the quantity of above-mentioned scale, obtain target indication range.
After determining target scale, according to the numerical values recited at the midpoint of the quantity of scale, target indication range, target is obtained Indication range.In a kind of mode in the cards, as shown in figure 4, target scale is 5, the quantity of scale is 6, the number at midpoint Being worth size is 30, and target indication range is 15 to 45.
306, the above-mentioned data to be displayed in above-mentioned target indication range is shown under coordinate system.
According to the zoom operations of user, target indication range is determined, finally by the data to be displayed in target indication range It is shown under coordinate system.In a kind of mode in the cards, N number of vehicle diagnosis data are obtained, by 301~305 Processing adjusts the indication range of Y-axis (the corresponding reference axis of numerical values recited) according to the zoom operations of user in real time, and will be in Data to be displayed in target indication range is shown under coordinate.
The indication range of reference axis by being fixed as the midpoint of initial indication range by the embodiment of the present application, and according to scaling The scale of the multiple adjustment reference axis of operation, determines target indication range, realizes the Zoom display of graph data.
It is above-mentioned to illustrate the method for the embodiment of the present application, the device of the embodiment of the present application is provided below.
Referring to Fig. 6, Fig. 6 is a kind of structural schematic diagram of image data display apparatus provided by the embodiments of the present application, it should Device 1 includes: acquiring unit 11, processing unit 12 and display unit 13.Wherein:
Acquiring unit 11, for obtaining data to be displayed;
Processing unit 12, for obtaining target indication range according to the data to be displayed and target scale multiple;
Display unit 13, for carrying out the data to be displayed being in the target indication range under coordinate system Display.
Further, the processing unit 12 includes: the first determining subelement 121, for according to the data to be displayed In maximum value and minimum value, determine initial indication range;First obtains subelement 122, for obtaining target scale multiple, And according to the target scale multiple adjustment initial range to be shown, the target indication range is obtained.
Further, the first acquisition subelement 122 is also used to: determining the midpoint of the initial indication range;And According to the scaling multiple, the initial scale of the reference axis of the coordinate system is adjusted, target scale is obtained;And obtain the seat The quantity of the scale of parameter obtains institute according to the numerical values recited at the midpoint, the quantity of the target scale and the scale State target indication range.
In another mode in the cards, the scaling multiple includes shrinking of object multiple, and described first obtains son Unit 122 is also used to: according to the quantity of the data to be displayed, determining maximum zoom multiple, wherein the maximum zoom multiple Including maximum minification;And object run is reduction operation, and when the shrinking of object multiple is less than the maximum zoom When multiple, the initial scale is multiplied with the shrinking of object multiple, obtains the target scale.
In another mode in the cards, the scaling multiple further includes object magnification, the maximum zoom Multiple further includes maximum amplification, and the maximum minification is equal with the maximum amplification, and described first obtains Subelement 122 is also used to: object run is to be enlarged, and work as the object magnification and be less than the maximum amplification When, using the quotient of the initial scale and the object magnification as the target scale.
In another mode in the cards, the first acquisition subelement 122 is also used to: in the target scale times When number is greater than or equal to the maximum zoom multiple, using the initial scale as target scale.
In another mode in the cards, the first acquisition subelement 122: described in obtaining according to the following formula most Big scaling multiple: [log2N]=M;Wherein, the M is the maximum zoom multiple and is positive integer;Wherein, described, the N For the quantity of the data to be displayed.
In another mode in the cards, the acquiring unit 11 includes: the second acquisition subelement 111, for obtaining S data are taken, and store the S data, wherein the S is equal with the N, and the N is the number of the data to be displayed Amount, the data include timestamp;Subelement 112 is stored, in the case where getting a new data, most by timestamp Small data removal, and store the new data;Second determine subelement 113, for that will store S data conduct described in Show data.
In another mode in the cards, described first determines that subelement 121 is also used to: by the data to be displayed Maxima and minima initial range of the difference as the reference axis;And obtain the quarter of the reference axis of the coordinate system The quantity of degree, using in the multiple of the quantity of the scale with the smallest numerical value of difference of the initial range as the reference axis Target span;And with the minimum value of the data to be displayed be the reference axis starting point, according to the target of the reference axis Span determines the initial indication range;Or with the maximum value of the data to be displayed be the reference axis terminal, according to institute The target span for stating reference axis determines the initial indication range.
In another mode in the cards, the display unit 13 includes: display subelement 131, and being used for will be described The sequence that data to be displayed temporally stabs from big to small is arranged successively, and is shown under the coordinate.
Fig. 7 is a kind of hardware structural diagram of image data display apparatus provided by the embodiments of the present application.Display dress Setting 2 includes processor 21, can also include input unit 22, output device 23 and memory 24.The input unit 22, output dress It sets and is connected with each other between 23, memory 24 and processor 21 by bus.
Memory include but is not limited to be random access memory (random access memory, RAM), read-only storage Device (read-only memory, ROM), Erasable Programmable Read Only Memory EPROM (erasable programmable read Only memory, EPROM) or portable read-only memory (compact disc read-only memory, CD-ROM), The memory is used for dependent instruction and data.
Input unit is used for output data and/or signal for input data and/or signal and output device.Output Device and input unit can be independent device, be also possible to the device of an entirety.
Processor may include be one or more processors, for example including one or more central processing unit (central Processing unit, CPU), in the case where processor is a CPU, which can be monokaryon CPU, be also possible to more Core CPU.
Memory is used for the program code and data of storage networking device.
Processor is used to call the program code and data in the memory, executes the step in above method embodiment. For details, reference can be made to the descriptions in embodiment of the method, and details are not described herein.
It is understood that Fig. 7 illustrate only a kind of simplified design of graph data display device.In practical application In, graph data display device can also separately include necessary other elements, including but not limited to it is any number of input/it is defeated Device, processor, controller, memory etc. out, and all graph data display devices that the embodiment of the present application may be implemented are all Within the scope of protection of this application.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present application.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or transmitted by the computer readable storage medium.The computer instruction can be from a web-site, meter Calculation machine, server or data center pass through wired (such as coaxial cable, optical fiber, Digital Subscriber Line (digital subscriber Line, DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or number It is transmitted according to center.The computer readable storage medium can be any usable medium that computer can access either The data storage devices such as server, the data center integrated comprising one or more usable mediums.The usable medium can be Magnetic medium, (for example, floppy disk, hard disk, tape), optical medium are (for example, digital versatile disc (digital versatile Disc, DVD)) or semiconductor medium (such as solid state hard disk (solid state disk, SSD)) etc..
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, the process Relevant hardware can be instructed to complete by computer program, which can be stored in computer-readable storage medium, should Program is when being executed, it may include such as the process of above-mentioned each method embodiment.And storage medium above-mentioned includes: read-only memory (read-only memory, ROM) or random access memory (random access memory, RAM), magnetic or disk Etc. the medium of various program storage codes.

Claims (10)

1. a kind of graph data display methods characterized by comprising
Obtain data to be displayed;
According to the data to be displayed and target scale multiple, target indication range is obtained;
The data to be displayed in the target indication range is shown under coordinate system.
2. the method according to claim 1, wherein described according to the data to be displayed and target scale times Number, obtains target indication range, comprising:
According to the maximum value and minimum value in the data to be displayed, initial indication range is determined;
Target scale multiple is obtained, and according to the target scale multiple adjustment initial range to be shown, obtains the mesh Mark indication range.
3. according to the method described in claim 2, it is characterized in that, the acquisition target scale multiple, and according to the target It scales multiple and adjusts the range to be shown, obtain the target indication range, comprising:
Determine the midpoint of the initial indication range;
According to the scaling multiple, the initial scale of the reference axis of the coordinate system is adjusted, target scale is obtained;
The quantity for obtaining the scale of the reference axis, according to the numerical values recited at the midpoint, the target scale and the quarter The quantity of degree obtains the target indication range.
4. according to the method described in claim 3, it is characterized in that, the scaling multiple includes shrinking of object multiple, described According to the scaling multiple, the initial scale of the reference axis of the coordinate system is adjusted, target scale is obtained, comprising:
According to the quantity of the data to be displayed, maximum zoom multiple is determined, wherein the maximum zoom multiple includes maximum contracting Small multiple;
Object run is reduction operation, and when the shrinking of object multiple is less than the maximum zoom multiple, will be described initial Scale is multiplied with the shrinking of object multiple, obtains the target scale.
5. described according to the method described in claim 4, it is characterized in that, the scaling multiple further includes object magnification Maximum zoom multiple further includes maximum amplification, and the maximum minification is equal with the maximum amplification, described Method further include:
Object run is amplifying operation, and when the object magnification is less than the maximum amplification, will be described initial The quotient of scale and the object magnification is as the target scale.
6. according to the method described in claim 4, it is characterized in that, the quantity according to the data to be displayed, determines most Big scaling multiple, comprising:
The maximum zoom multiple is obtained according to the following formula:
[log2N]=M;
Wherein, the M is the maximum zoom multiple and is positive integer, and the N is the quantity of the data to be displayed.
7. the method according to claim 1, wherein the acquisition data to be displayed, comprising:
S data are obtained, and store the S data, wherein the S is equal with the N, and the N is the data to be displayed Quantity, the data include timestamp;
In the case where getting a new data, the smallest data of timestamp are removed, and store the new data;
Using S data of storage as the data to be displayed.
8. according to the method described in claim 2, it is characterized in that, the maximum value according in the data to be displayed and Minimum value determines initial indication range, comprising:
Using the difference of the maxima and minima of the data to be displayed as the initial range of the reference axis;
The quantity for obtaining the scale of the reference axis of the coordinate system, by the multiple of the quantity of the scale with the initial range Target span of the smallest numerical value of difference as the reference axis;
It is that the starting point of the reference axis is determined according to the target span of the reference axis with the minimum value of the data to be displayed The initial indication range;Or
It is that the terminal of the reference axis is determined according to the target span of the reference axis with the maximum value of the data to be displayed The initial indication range.
9. a kind of graph data display device characterized by comprising processor and memory and described are deposited the processor Store up coupler;Wherein, the memory is stored with program instruction, when described program instruction is executed by the processor, makes described Processor executes the method as described in claim 1 to 8 any one.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program, the computer program include program instruction, and described program instruction makes institute when the processor for being batch processing device executes State method of the processor execution as described in claim 1 to 8 any one.
CN201910208625.XA 2019-03-19 2019-03-19 Graphic data display method and device Active CN109933264B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910208625.XA CN109933264B (en) 2019-03-19 2019-03-19 Graphic data display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910208625.XA CN109933264B (en) 2019-03-19 2019-03-19 Graphic data display method and device

Publications (2)

Publication Number Publication Date
CN109933264A true CN109933264A (en) 2019-06-25
CN109933264B CN109933264B (en) 2022-01-04

Family

ID=66987632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910208625.XA Active CN109933264B (en) 2019-03-19 2019-03-19 Graphic data display method and device

Country Status (1)

Country Link
CN (1) CN109933264B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110765184A (en) * 2019-11-08 2020-02-07 深圳微品致远信息科技有限公司 Parking lot data display method and system, computer equipment and storage medium
CN112347183A (en) * 2020-11-30 2021-02-09 杭州安恒信息技术股份有限公司 Data display device, method, equipment and medium
CN112967418A (en) * 2021-01-29 2021-06-15 惠州市大圣和乘科技有限公司 Vehicle-mounted data record display method and device, computer equipment and storage medium
CN113284584A (en) * 2021-05-31 2021-08-20 青岛海信医疗设备股份有限公司 DICOM standard curve verification method, device and equipment
CN115543518A (en) * 2022-10-21 2022-12-30 北京世冠金洋科技发展有限公司 Image coordinate display method, device and equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104181365A (en) * 2013-05-24 2014-12-03 苏州普源精电科技有限公司 Measurement device with zoom display function
CN107248192A (en) * 2017-06-27 2017-10-13 广州视源电子科技股份有限公司 Solid figure method for drafting, device, equipment and storage medium
CN108170350A (en) * 2017-12-28 2018-06-15 努比亚技术有限公司 Realize method, terminal and the computer readable storage medium of Digital Zoom
CN108961318A (en) * 2018-05-04 2018-12-07 上海芯仑光电科技有限公司 A kind of data processing method and calculate equipment
CN109242929A (en) * 2018-08-16 2019-01-18 东软集团股份有限公司 Conversion method, device, storage medium and the equipment of path coordinate figure

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104181365A (en) * 2013-05-24 2014-12-03 苏州普源精电科技有限公司 Measurement device with zoom display function
CN107248192A (en) * 2017-06-27 2017-10-13 广州视源电子科技股份有限公司 Solid figure method for drafting, device, equipment and storage medium
CN108170350A (en) * 2017-12-28 2018-06-15 努比亚技术有限公司 Realize method, terminal and the computer readable storage medium of Digital Zoom
CN108961318A (en) * 2018-05-04 2018-12-07 上海芯仑光电科技有限公司 A kind of data processing method and calculate equipment
CN109242929A (en) * 2018-08-16 2019-01-18 东软集团股份有限公司 Conversion method, device, storage medium and the equipment of path coordinate figure

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110765184A (en) * 2019-11-08 2020-02-07 深圳微品致远信息科技有限公司 Parking lot data display method and system, computer equipment and storage medium
CN112347183A (en) * 2020-11-30 2021-02-09 杭州安恒信息技术股份有限公司 Data display device, method, equipment and medium
CN112347183B (en) * 2020-11-30 2024-04-09 杭州安恒信息技术股份有限公司 Data display device, method, equipment and medium
CN112967418A (en) * 2021-01-29 2021-06-15 惠州市大圣和乘科技有限公司 Vehicle-mounted data record display method and device, computer equipment and storage medium
CN113284584A (en) * 2021-05-31 2021-08-20 青岛海信医疗设备股份有限公司 DICOM standard curve verification method, device and equipment
CN115543518A (en) * 2022-10-21 2022-12-30 北京世冠金洋科技发展有限公司 Image coordinate display method, device and equipment and readable storage medium
CN115543518B (en) * 2022-10-21 2023-05-12 北京世冠金洋科技发展有限公司 Image coordinate display method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN109933264B (en) 2022-01-04

Similar Documents

Publication Publication Date Title
CN109933264A (en) Graph data display methods and device
EP2827155B1 (en) Analytical gateway device for measurement devices
CN109347653B (en) Index abnormity discovery method and device
JP2018525042A5 (en)
CN109115257B (en) Method, device, equipment and storage medium for correcting sensor characteristic curve
CN110059939A (en) A kind of risk checking method and device
CN103581951A (en) Base station detection method and device
US11457873B2 (en) Method and apparatus for identifying homology of physiological signals
CN111130944B (en) System monitoring method and system
CN110680297A (en) Fault detection method, device and equipment of blood pressure monitor
EP3999983B1 (en) Time-series data condensation and graphical signature analysis
CN111736648B (en) Output voltage control method and device and terminal equipment
CN112731030A (en) Electronic component detection method and device, terminal equipment and storage medium
CN111368104B (en) Information processing method, device and equipment
US20190056838A1 (en) Method for determining touch position and touch control chip
CN111956198B (en) Equipment state determination method and device
KR101615346B1 (en) Method and apparatus for detecting fault in the semiconductor menufacturing process and recording medium thereof
CN111710347A (en) Audio data analysis method, electronic device and storage medium
CN108700874A (en) A kind of graphic display method of data flow, system and automotive diagnostic installation
CN108961356A (en) Curve drawing drawing method, device, computer equipment and storage medium
CN117290175A (en) Abnormal data processing method and system based on time sequence database
US11899439B2 (en) Method and device for calculating degree of abnormality
CN114116406A (en) Method and device for monitoring component, electronic equipment and medium
CN109997087A (en) Fault diagnosis system
CN108170349B (en) Medical image display method, device, equipment and storage medium

Legal Events

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