CN104298439A - Chart display adjusting method and device - Google Patents

Chart display adjusting method and device Download PDF

Info

Publication number
CN104298439A
CN104298439A CN201310306875.XA CN201310306875A CN104298439A CN 104298439 A CN104298439 A CN 104298439A CN 201310306875 A CN201310306875 A CN 201310306875A CN 104298439 A CN104298439 A CN 104298439A
Authority
CN
China
Prior art keywords
data
ordinates
axis
higher position
numerical value
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
CN201310306875.XA
Other languages
Chinese (zh)
Other versions
CN104298439B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310306875.XA priority Critical patent/CN104298439B/en
Publication of CN104298439A publication Critical patent/CN104298439A/en
Application granted granted Critical
Publication of CN104298439B publication Critical patent/CN104298439B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention belongs to the field of data statistics, and provides a chart display adjusting method and device. The method comprises the steps that a first data set for chart displaying is received, wherein data in the data set correspond to data point patterns in a chart; whether the specific value of the data in the first data set to the numerical value representing for the current highest position of a y-axis is in the preset range or not is judged; if the specific value of the data in the first data set to the numerical value representing for the current highest position of the y-axis is not in the preset range, the numerical value representing for the highest position of the y-axis is adjusted according to a preset first proportion; the heights of the data point patterns in the chart are correspondingly adjusted according to the numerical value representing for the highest position of the y-axis. According to the method, relative relations of the data point patterns can be displayed clearly without additional adjusting operation of a user, and the running time of a battery of a mobile terminal can be prolonged.

Description

A kind of method of adjustment of chart display and device
Technical field
The invention belongs to data statistics field, particularly relate to method of adjustment and the device of the display of a kind of chart.
Background technology
When carrying out statistical study to data, in order to the more vivid relation reflected between multi-group data, magnitude relationship between the reaction each group of data usually needing use figure table image, as in column diagram, the data of different group are represented, the size of the corresponding each group data of height of the ordinate corresponding to cylindricality by the cylindricality of the diverse location in the horizontal ordinate of two-dimensional coordinate system.User by the height of cylindricality, can image the size known between each data.
Use chart except the size between many group static datas can be reacted, the magnitude relationship between many group dynamic datas can also be reacted, by receiving the multi-group data of dynamic change, data point figure in corresponding adjustment each group of data correspondence graph, the i.e. corresponding concrete figure of data point, as the height of cylindricality, user is made to obtain dynamic size of data transformation relation.
But, along with the change of data, larger change can be there is in data, as adopted specific water saving measures for cellphone subscriber, as used the contrast chart of the monitoring flow before and after QQ browser, the space that data upwards change is larger, when the data in data group are all larger, chart all reaches higher height, chart picture is full of whole coordinate system, user clearly can not show the relativeness of each point datagraphic, need adjustment display page with more each data clearly, adjustment process operation like this comparatively bothers, and adjustment process needs the running time, be unfavorable for improving mobile terminal, as the cruising time of intelligent mobile phone battery.
Summary of the invention
The method of adjustment that the object of the embodiment of the present invention is to provide a kind of chart to show and device, to solve prior art chart because the relativeness of each data point figure clearly can not be shown, user adjusts troublesome problem, to improve the flying power of battery of mobile terminal.
The embodiment of the present invention is achieved in that the method for adjustment that a kind of chart shows, and described method comprises the steps:
Receive the first data group being used for chart display, the data in described data group are corresponding with the data point figure in chart respectively;
Judge that the ratio of data in described first data group and the current numerical value representated by axis of ordinates extreme higher position is whether in the scope preset;
If the data in described first data group and the ratio of the current numerical value representated by axis of ordinates extreme higher position exceed described default scope, adjust the numerical value representated by described axis of ordinates extreme higher position according to the first ratio preset;
By the numerical value representated by the axis of ordinates extreme higher position after described adjustment, the height of data point figure in corresponding adjusting diagram.
Another object of the embodiment of the present invention is the adjusting gear providing a kind of chart to show, and described device comprises:
Receiving element, for receiving the first data group for chart display, the data in described data group are corresponding with the data point figure in chart respectively;
Judging unit, for judging that the ratio of the data in described first data group and the numerical value representated by current axis of ordinates extreme higher position is whether in the scope preset;
First adjustment unit, if exceed described default scope for the ratio of the data in described first data group and the numerical value representated by current axis of ordinates extreme higher position, adjust the numerical value representated by described axis of ordinates extreme higher position according to the first ratio preset;
Second adjustment unit, for the numerical value representated by the axis of ordinates extreme higher position after described adjustment, the height of data point figure in corresponding adjusting diagram.
In embodiments of the present invention, by the ratio of numerical value representated by the first data group being used for chart display that will receive and current axis of ordinates extreme higher position, compare with the scope preset, if described ratio exceedes described scope, then adjust the numerical value representated by described axis of ordinates extreme higher position according to the first ratio preset, then the numerical value representated by the axis of ordinates extreme higher position after adjustment, the height of data point figure in corresponding adjusting diagram, data point figure corresponding to the first data group is made to be presented at the position of the middle part level in graphics table, thus clearly show the relativeness of each data point figure, the adjustment operation not needing user other, make it possible to the flying power improving battery of mobile terminal.
Accompanying drawing explanation
Fig. 1 a is the realization flow figure of the method for adjustment of the chart display that first embodiment of the invention provides;
Fig. 1 b, Fig. 1 c, Fig. 1 d are the chart schematic diagram that first embodiment of the invention provides respectively;
Fig. 2 is the realization flow figure of the method for adjustment of the chart display that second embodiment of the invention provides;
Fig. 3 is the realization flow figure of the method for adjustment of the chart display that third embodiment of the invention provides;
The structural representation of the adjusting gear of the chart display that Fig. 4 provides for fourth embodiment of the invention;
The block diagram of the device-dependent part-structure that Fig. 5 provides for fifth embodiment of the invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
In embodiments of the present invention, to the method for adjustment of the Dynamic Announce of chart, may be used for the data statistics that data add up gradually, also may be used for the data statistics of the situation that data are successively decreased gradually, in addition, random situation may be changed up and down for data, be applicable to scheme described in the embodiment of the present invention too.
The method of adjustment of chart display described in the embodiment of the present invention, comprise the first data group received for chart display, the data in described data group are corresponding with the data point figure in chart respectively; Judge that the ratio of data in described first data group and the current numerical value representated by axis of ordinates extreme higher position is whether in the scope preset; If the data in described first data group and the ratio of the current numerical value representated by axis of ordinates extreme higher position exceed described default scope, adjust the numerical value representated by described axis of ordinates extreme higher position according to the first ratio preset; By the numerical value representated by the axis of ordinates extreme higher position after described adjustment, the height of data point figure in corresponding adjusting diagram.
By the ratio of numerical value representated by the first data group being used for chart display that will receive and current axis of ordinates extreme higher position, compare with the scope preset, if described ratio exceedes described scope, then adjust the numerical value representated by described axis of ordinates extreme higher position according to the first ratio preset, then the numerical value representated by the axis of ordinates extreme higher position after adjustment, the height of data point figure in corresponding adjusting diagram, data point figure corresponding to the first data group is made to be presented at the position of the middle part level in graphics table, thus clearly show the relativeness of each data point figure, the adjustment operation not needing user other, make it possible to the flying power improving battery of mobile terminal.
Embodiment one:
Fig. 1 a shows the realization flow of the method for adjustment of the chart display that first embodiment of the invention provides, and details are as follows:
In step S101, receive the first data group being used for chart display, the data in described data group are corresponding with the data point figure in chart respectively.
Concrete, chart described in the embodiment of the present invention can be the chart of Dynamic Announce, also can for having preset the chart of the data representated by the ordinate extreme higher position in chart.
Described first data group is data group corresponding with the data point figure in chart respectively.Namely the number in data group is corresponding with the number of the data point figure in graphics table, and when data being shown by chart, the size of data that the height of each data point figure should be corresponding with it is corresponding.
As Fig. 1 b, Fig. 1 c, chart shown in Fig. 1 d is divided into and represents the general browser of use, the contrast schematic diagram of the flow that user uses after using QQ browser and super province traffic engineering capability of opening an account, from left to right it is column diagram chart successively, bar chart chart and dot-and-dash line chart, horizontal ordinate in chart represents the general browser of use successively, use three kinds of situations after QQ browser and super province traffic engineering capability of opening an account, data point corresponding to three kinds of situations, i.e. flow service condition under three circumstances, be respectively 30, 25, 21, in first chart, data point figure is each cylindricality in chart, in second chart, data point figure is each rectangle in chart, in the 3rd chart, data point figure is each stain in chart.
First data group of described system acceptance, data wherein can be the data that mobile terminal or computer gather, as the data on flows used, the theoretical value data that also can obtain for rule of thumb formula or theory, also can for being stored in the data value in the storer of equipment, the data value that can also input for the equipment load module received, in this no limit.Receiving the system of data can be statistics plug-in unit in statistics application program or other application program.
In step s 102, judge that the ratio of data in described first data group and the current numerical value representated by axis of ordinates extreme higher position is whether in the scope preset.
To the data in described first data group, it is done ratio with the numerical value representated by current axis of ordinates extreme higher position respectively, molecule is done by the data in the first data group, the current numerical value representated by axis of ordinates extreme higher position does denominator, obtain one group of ratio, described ratio and the scope preset are compared.
The extreme higher position of described ordinate, the i.e. height of ordinate (Y-axis), the numerical value representated by the extreme higher position of ordinate determines the maximum data value can expressed in coordinate system, therefore, along with the change of data, need to adjust the numerical value representated by the extreme higher position of ordinate.
Described default scope, it is the interval of two numerical value compositions, interval size can adjust accordingly according to actual conditions, as embodiment of the present invention one comparatively preferred embodiment, described default scope is [1/3,3/4], be namely more than or equal to 1/3, be less than or equal to the numerical intervals of 3/4.
In step s 103, if the ratio of the data in described first data group and the current numerical value representated by axis of ordinates extreme higher position exceedes described default scope, adjust the numerical value representated by described axis of ordinates extreme higher position according to the first ratio preset.
Data in described first data group and the ratio of the current numerical value representated by axis of ordinates extreme higher position, again because concrete condition, be divided into multiple possibility, as all larger in the numerical value for the data in the first data group, make the ratio of the data in the first data group and the current numerical value representated by axis of ordinates extreme higher position be greater than the maximal value of described preset range; Or the numerical value of the data in the first data group is all smaller, the ratio of the data in the first data group and the current numerical value representated by axis of ordinates extreme higher position is made to be less than the minimum value of described preset range; Or the numerical value of the data in the first data group varies, the ratio of the data in the first data group and the current numerical value representated by axis of ordinates extreme higher position have in the scope preset, have preset scope outside, for above-mentioned various situation, corresponding first ratio can be adopted to adjust numerical value representated by described axis of ordinates extreme higher position, make the top of the data point figure in chart be positioned at horizontal level in the middle part of graphics table as far as possible.First ratio as the case may be herein, can be different pieces of information, below to this several situation, explain respectively by embodiment.
In step S104, by the numerical value representated by the axis of ordinates extreme higher position after described adjustment, the height of data point figure in corresponding adjusting diagram.
According to the numerical value representated by the coordinate axis extreme higher position after adjustment, the height of data point figure in corresponding adjusting diagram, makes the top of the data point figure in chart be positioned at horizontal level in the middle part of graphics table as far as possible.
Described chart is bar chart, histogram or broken line graph, and described number of data points strong point figure is the point of the rectangle of bar chart, the cylindricality of column diagram or broken line graph.
The embodiment of the present invention passes through the ratio being used for the first data group of chart display and the numerical value representated by current axis of ordinates extreme higher position that will receive, compare with the scope preset, if described ratio exceedes described scope, then adjust the numerical value representated by described axis of ordinates extreme higher position according to the first ratio preset, then the numerical value representated by the axis of ordinates extreme higher position after adjustment, the height of data point figure in corresponding adjusting diagram, data point figure corresponding to the first data group is made to be presented at the position of the middle part level in graphics table, thus clearly show the relativeness of each data point figure, the adjustment operation not needing user other, make it possible to the flying power improving battery of mobile terminal.
Embodiment two:
The realization flow of the method for adjustment of the chart display that Fig. 2 provides for second embodiment of the invention, details are as follows:
The situation that the data group that the embodiment of the present invention can be used for receiving increases gradually, when realizing in a browser, can show the use correlation data of flow between each browser, flow along with the increase of service time can be single show a rising trend, must there will be in the display of original chart the situation exceeding ordinate.Therefore need a kind of convenient mode regulated, make its display clearly.As can for as described in the first data group be that terminal is connected to network, current capacity contrast's data of being added up by different browsers, described first data group comprises the use traffic after browser raw data use traffic, the optimization of use QQ browser and the use traffic after opening super province flow.
For the increase gradually along with data in the present embodiment, the top of the data point figure shown in original graphics table can be shown in the top in graphics table gradually, be not easy to the contrast situation that user clearly views each data point figure, the embodiment of the present invention is realized by following flow process:
In step s 201, receive the first data group being used for chart display, the data in described data group are corresponding with the data point figure in chart respectively.
In step S202, judge that the ratio of data in described first data group and the current numerical value representated by axis of ordinates extreme higher position is whether in the scope preset.If not, then forward step S203 to, otherwise terminate.
Described default scope for being more than or equal to 1/3, can be less than or equal to 3/4.
In step S203, search the maximum data value in the first data group, if the ratio of the maximum data value in described first data group and the current numerical value representated by axis of ordinates extreme higher position is greater than the maximal value of default scope.
For improving the accuracy of adjustment further, the embodiment of the present invention also can comprise step S204 and step S205, in step S204, search the minimum data value in the first data group, if the ratio of the minimum data value in described first data group and the current numerical value representated by axis of ordinates extreme higher position is less than the minimum value of default scope or belongs to default scope.
In step S205, using the numerical value representated by the extreme higher position of current axis of ordinates as the numerical value representated by the axis of ordinates extreme higher position after adjustment; Otherwise forward next step to.
Concrete, when the ratio of the maximum data value in judgement first data group and the numerical value representated by current axis of ordinates extreme higher position is greater than the maximal value of default scope, also the ratio of the numerical value representated by the minimum data value in the first data group and current axis of ordinates extreme higher position is compared with the minimum value of the scope preset, or judge whether to belong to default scope, if the ratio of the maximum data value in the first data group and the current numerical value representated by axis of ordinates extreme higher position is greater than the maximal value of default scope, and first the ratio of minimum data value in data group and the current numerical value representated by axis of ordinates extreme higher position be less than the minimum value of default scope, or the ratio of the minimum data value in the first data group and the current numerical value representated by axis of ordinates extreme higher position belongs to default scope, then using the numerical value representated by the extreme higher position of current axis of ordinates as adjustment after axis of ordinates extreme higher position representated by numerical value.
By above-mentioned comparison, when can make to exist in chart the data larger than preset range and the data less than preset range or the data in preset range simultaneously, for avoid adjust axis of ordinates extreme higher position representated by numerical value time, namely the numerical value representated by extreme higher position of axis of ordinates is increased, make shorter compared with the data point figure corresponding to small data, be unfavorable for the clear display of the data point figure of small data.
Certainly, the embodiment of the present invention comprises the scheme of step S204-S205, is only wherein a kind of optional embodiment, for the data that a group evenly increases, can directly by step S203 relatively after, jump to step S206, the object that chart is effectively adjusted can be obtained equally.
In step S206, the first scale-up factor is multiplied by the basis of the numerical value representated by the extreme higher position of current axis of ordinates or the maximum data value in described first data group, as adjustment after axis of ordinates extreme higher position representated by numerical value, described first scale-up factor be greater than 1 coefficient.
When the ratio of the maximum data value in the first data group and the numerical value representated by current axis of ordinates extreme higher position is greater than the maximal value of default scope, embodiments provide two kinds of adjustment modes:
First scale-up factor is multiplied by the basis adjusting the numerical value of mode representated by the extreme higher position at current axis of ordinates, as the numerical value representated by the axis of ordinates extreme higher position after adjustment.Numerical value representated by current axis of ordinates extreme higher position is 50, and described first scale-up factor is 2, and the numerical value representated by axis of ordinates extreme higher position so after adjustment is 100.
Another kind of adjustment mode be maximum data value in described first data group basis on be multiplied by the first scale-up factor, as the numerical value representated by the axis of ordinates extreme higher position after adjustment, as as described in maximum data value in the first data group be 50, maximum data value in first data group is 40, second coefficient of comparisons is 2, and the numerical value representated by axis of ordinates extreme higher position so after adjustment is 80.
Second adjustment mode adjusts according to the data in data group, can realize quick-adjustsing object, and for data variation situation faster, the second adjustment mode efficiency is higher.
In step S207, by the numerical value representated by the axis of ordinates extreme higher position after described adjustment, the height of data point figure in corresponding adjusting diagram.
According to the numerical value representated by the axis of ordinates extreme higher position after described adjustment, the height of data point figure in corresponding adjusting diagram, make the data point figure exceeded corresponding to the data in default scope be returned to horizontal level in the middle part of graphics table, make the corresponding relation of its display data clearly.
The difference part of the embodiment of the present invention and embodiment one is, by comparing with the maximal value of the scope preset by the maximum data in the first data group with the ratio of the numerical value representated by current axis of ordinates extreme higher position, the situation larger to overall data adjusts the numerical value representated by axis of ordinates extreme higher position, the chart larger for data scatter does not adjust, and makes it more meet and shows clearly requirement.
Embodiment three:
The realization flow of the method for adjustment of the chart display that Fig. 3 provides for third embodiment of the invention, details are as follows:
The situation that the embodiment of the present invention can diminish gradually for the numerical value in the first data group, adjusts accordingly to chart, meets show clearly requirement to make it.
In step S301, receive the first data group being used for chart display, the data in described data group are corresponding with the data point figure in chart respectively.
In step s 302, judge that the ratio of data in described first data group and the current numerical value representated by axis of ordinates extreme higher position is whether in the scope preset.If not, then forward step S303 to, otherwise terminate.
Described default scope for being more than or equal to 1/3, can be less than or equal to 3/4.
In step S303, search the minimum data value in the first data group, if the ratio of the minimum data value in described first data group and the current numerical value representated by axis of ordinates extreme higher position is less than the minimum value of default scope.
For improving the accuracy of adjustment further, the embodiment of the present invention also can comprise step S304 and step S305, in step s 304, search the maximum data value in the first data group, if the ratio of the maximum data value in described first data group and the current numerical value representated by axis of ordinates extreme higher position is greater than the maximal value of default scope or belongs to default scope.
In step S305, using the numerical value representated by the extreme higher position of current axis of ordinates as the numerical value representated by the axis of ordinates extreme higher position after adjustment; Otherwise forward next step to.
Concrete, when the ratio of the minimum data value in judgement first data group and the numerical value representated by current axis of ordinates extreme higher position is greater than the minimum value of default scope, also the ratio of the numerical value representated by the maximum data value in the first data group and current axis of ordinates extreme higher position is compared with the maximal value of the scope preset, or judge whether to belong to default scope, if the ratio of the minimum data value in the first data group and the current numerical value representated by axis of ordinates extreme higher position is less than the minimum value of default scope, and first the ratio of maximum data value in data group and the current numerical value representated by axis of ordinates extreme higher position be greater than the maximal value of default scope, or the ratio of the maximum data value in the first data group and the current numerical value representated by axis of ordinates extreme higher position belongs to default scope, then using the numerical value representated by the extreme higher position of current axis of ordinates as adjustment after axis of ordinates extreme higher position representated by numerical value.
By above-mentioned comparison, when can make to exist in chart the data less than preset range and the data less than preset range or the data in preset range simultaneously, for avoid adjust axis of ordinates extreme higher position representated by numerical value time, namely the numerical value representated by extreme higher position of axis of ordinates is reduced, make the data point figure corresponding to larger data seem too high, be unfavorable for the clear display of the data point figure of large data.
Certainly, the embodiment of the present invention comprises the scheme of step S304-S305, is only wherein a kind of optional embodiment, for the data that a group is evenly reduced, can directly by step S203 relatively after, jump to step S306, the object that chart is effectively adjusted can be obtained equally.
In step S306, the basis of the numerical value representated by the extreme higher position of current axis of ordinates is multiplied by the first scale-up factor, as adjustment after axis of ordinates extreme higher position representated by numerical value, described first scale-up factor be less than 1 coefficient.
When the ratio of the minimum data value in the first data group and the numerical value representated by current axis of ordinates extreme higher position is less than the minimum value of default scope, the basis of the numerical value representated by the extreme higher position of current axis of ordinates is multiplied by the first scale-up factor, as the numerical value representated by the axis of ordinates extreme higher position after adjustment.
Numerical value representated by the extreme higher position of current axis of ordinates is 50, the scope preset can for being more than or equal to 1/3, be less than or equal to 3/4, in first data group, minimum value is 10, due to 10<50*1/3, and first the ratio of the numerical value representated by extreme higher position of maximal value in data group and current axis of ordinates do not belong to default scope or be greater than default scope, then on the basis of the numerical value representated by the extreme higher position of current axis of ordinates, be multiplied by the first scale-up factor 0.5, using 50*0.5=25 as the numerical value representated by the axis of ordinates extreme higher position after adjustment.
In step S307, by the numerical value representated by the axis of ordinates extreme higher position after described adjustment, the height of data point figure in corresponding adjusting diagram.
The adjustment principle of the embodiment of the present invention and embodiment two is similar, but adjustment direction is contrary, numerical value representated by the extreme higher position of current axis of ordinates tunes up by embodiment two, numerical value representated by the extreme higher position of current axis of ordinates is turned down by the present embodiment, and its object is all to enable the display clearly of data point figure.
Embodiment four:
The structural representation of the adjusting gear of the chart display that Fig. 4 provides for fourth embodiment of the invention, details are as follows:
The adjusting gear of chart display described in the embodiment of the present invention, comprises receiving element 401, judging unit 402, first adjustment unit 403 and the second adjustment unit 404, wherein:
Described receiving element 401, for receiving the first data group for chart display, the data in described data group are corresponding with the data point figure in chart respectively;
Described judging unit 402, for judging that the ratio of the data in described first data group and the numerical value representated by current axis of ordinates extreme higher position is whether in the scope preset;
First adjustment unit 403, if exceed described default scope for the ratio of the data in described first data group and the numerical value representated by current axis of ordinates extreme higher position, adjust the numerical value representated by described axis of ordinates extreme higher position according to the first ratio preset;
Second adjustment unit 404, for the numerical value representated by the axis of ordinates extreme higher position after described adjustment, the height of data point figure in corresponding adjusting diagram.
Optionally, described first adjustment unit 403 comprises:
First searches subelement 4031, for searching the maximum data value in the first data group, if the ratio of the maximum data value in described first data group and the current numerical value representated by axis of ordinates extreme higher position is greater than the maximal value of default scope;
First multiplication subelement 4032, the first scale-up factor is multiplied by the basis of the numerical value representated by the extreme higher position at current axis of ordinates or the maximum data value in described first data group, as adjustment after axis of ordinates extreme higher position representated by numerical value, described first scale-up factor be greater than 1 coefficient.
Another kind of optional embodiment, described first adjustment unit 403 can comprise:
Second searches subelement 4033, for searching the minimum data value in the first data group, if the ratio of the minimum data value in described first data group and the current numerical value representated by axis of ordinates extreme higher position is less than the minimum value of default scope;
Second multiplication subelement 4034, is multiplied by the first scale-up factor on the basis of the numerical value representated by the extreme higher position at current axis of ordinates, as adjustment after axis of ordinates extreme higher position representated by numerical value, described first scale-up factor be less than 1 coefficient.
Device described in the embodiment of the present invention is corresponding with method described in embodiment one, two, three, does not repeat at this.
Embodiment five:
The block diagram of the device-dependent part-structure that Fig. 5 provides for fifth embodiment of the invention.With reference to figure 5, described equipment comprises: radio frequency (Radio Frequency, RF) parts such as circuit 510, storer 520, input block 530, display unit 540, voicefrequency circuit 560, Wireless Fidelity (wireless fidelity, WiFi) module 570, processor 580 and power supply 590.It will be understood by those skilled in the art that the device structure shown in Fig. 5 does not form the restriction to equipment, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.
Concrete introduction is carried out below in conjunction with Fig. 5 each component parts to equipment:
RF circuit 510 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, process to processor 580; In addition, the up data of design are sent to base station.Usually, RF circuit includes but not limited to antenna, at least one amplifier, transceiver, coupling mechanism, low noise amplifier (Low Noise Amplifier, LNA), diplexer etc.In addition, RF circuit 110 can also by radio communication and network and other devices communicatings.Above-mentioned radio communication can use arbitrary communication standard or agreement, include but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA) (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE)), Email, Short Message Service (Short Messaging Service, SMS) etc.
Storer 520 can be used for storing software program and module, and processor 580 is stored in software program and the module of storer 520 by running, thus the various function application of actuating equipment and data processing.Storer 520 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of equipment.In addition, storer 520 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.
Input block 530 can be used for the numeral or the character information that receive input, and generation arranges with the user of equipment 500 and function controls the input of relevant key signals.Particularly, input block 530 can comprise contact panel 531 and other input equipments 532.Contact panel 531, also referred to as touch-screen, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on contact panel 531 or near contact panel 531 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, contact panel 531 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 580, and the order that energy receiving processor 580 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize contact panel 531.Except contact panel 531, input block 530 can also comprise other input equipments 532.Particularly, other input equipments 532 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 540 can be used for the various menus showing information or the information being supplied to user and the equipment inputted by user.Display unit 540 can comprise display panel 541, optionally, the form such as liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) can be adopted to configure display panel 541.Further, contact panel 531 can cover display panel 541, when contact panel 531 detects thereon or after neighbouring touch operation, send processor 580 to determine the type of touch event, on display panel 541, provide corresponding vision to export with preprocessor 580 according to the type of touch event.Although in Figure 5, contact panel 531 and display panel 541 be as two independently parts to realize input and the input function of equipment, but in certain embodiments, can by integrated to contact panel 531 and display panel 541 and realize the input and output function of equipment.
Equipment 500 also can comprise at least one sensor 550, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 541, proximity transducer at equipment moving to time in one's ear, can cut out display panel 541 and/or backlight.As the one of motion sensor; accelerometer sensor can detect the size of all directions (are generally three axles) acceleration; size and the direction of gravity can be detected time static, can be used for the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of identification equipment attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for equipment also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 560, loudspeaker 561, microphone 562 can provide the audio interface between user and equipment.Voicefrequency circuit 560 can by receive voice data conversion after electric signal, be transferred to loudspeaker 561, by loudspeaker 561 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 562, voice data is converted to after being received by voicefrequency circuit 560, after again voice data output processor 580 being processed, through RF circuit 510 to send to such as another equipment, or export voice data to storer 520 to process further.
WiFi belongs to short range wireless transmission technology, and equipment can help user to send and receive e-mail by WiFi module 570, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 5 shows WiFi module 570, be understandable that, it does not belong to must forming of equipment 500, can omit in the scope of essence not changing invention as required completely.
Processor 580 is control centers of equipment, utilize the various piece of various interface and the whole equipment of connection, software program in storer 520 and/or module is stored in by running or performing, and call the data be stored in storer 520, the various function of actuating equipment and process data, thus integral monitoring is carried out to equipment.Optionally, processor 580 can comprise one or more processing unit; Preferably, processor 580 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 580.
Equipment 500 also comprises the power supply 590(such as battery of powering to all parts), preferably, power supply can be connected with processor 580 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.
Although not shown, equipment 500 can also comprise camera, bluetooth module etc., does not repeat them here.
In embodiments of the present invention, the processor 580 included by this terminal also has following functions: the method for adjustment performing chart display, comprising:
Receive the first data group being used for chart display, the data in described data group are corresponding with the data point figure in chart respectively;
Judge that the ratio of data in described first data group and the current numerical value representated by axis of ordinates extreme higher position is whether in the scope preset;
If the data in described first data group and the ratio of the current numerical value representated by axis of ordinates extreme higher position exceed described default scope, adjust the numerical value representated by described axis of ordinates extreme higher position according to the first ratio preset;
By the numerical value representated by the axis of ordinates extreme higher position after described adjustment, the height of data point figure in corresponding adjusting diagram.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. a method of adjustment for chart display, it is characterized in that, described method comprises:
Receive the first data group being used for chart display, the data in described data group are corresponding with the data point figure in chart respectively;
Judge that the ratio of the numerical value representated by axis of ordinates extreme higher position of data in described first data group and current chart is whether in the scope preset;
If the data in described first data group and the ratio of the current numerical value representated by axis of ordinates extreme higher position exceed described default scope, adjust the numerical value representated by described axis of ordinates extreme higher position according to the first ratio preset;
By the numerical value representated by the axis of ordinates extreme higher position after described adjustment, the height of data point figure in corresponding adjusting diagram.
2. method according to claim 1, it is characterized in that, if the data in described first data group and the ratio of the current numerical value representated by axis of ordinates extreme higher position exceed described default scope, comprise according to the numerical steps that the first ratio preset adjusts representated by described axis of ordinates extreme higher position:
Search the maximum data value in the first data group, if the ratio of the maximum data value in described first data group and the current numerical value representated by axis of ordinates extreme higher position is greater than the maximal value of default scope;
The first scale-up factor is multiplied by the basis of the numerical value representated by the extreme higher position of current axis of ordinates or the maximum data value in described first data group, as adjustment after axis of ordinates extreme higher position representated by numerical value, described first scale-up factor be greater than 1 coefficient.
3. method according to claim 2, it is characterized in that, described on the basis of the numerical value representated by the extreme higher position of current axis of ordinates or the maximum data value in described first data group, be multiplied by the first scale-up factor step before, described method also comprises:
Search the minimum data value in the first data group, if the ratio of the minimum data value in described first data group and the current numerical value representated by axis of ordinates extreme higher position is less than the minimum value of default scope or belongs to default scope;
Using the numerical value representated by the extreme higher position of current axis of ordinates as the numerical value representated by the axis of ordinates extreme higher position after adjustment; Otherwise forward next step to.
4. method according to claim 1, it is characterized in that, if the data in described first data group and the ratio of the current numerical value representated by axis of ordinates extreme higher position exceed described default scope, comprise according to the numerical steps that the first ratio preset adjusts representated by described axis of ordinates extreme higher position:
Search the minimum data value in the first data group, if the ratio of the minimum data value in described first data group and the current numerical value representated by axis of ordinates extreme higher position is less than the minimum value of default scope;
The basis of the numerical value representated by the extreme higher position of current axis of ordinates is multiplied by the first scale-up factor, as adjustment after axis of ordinates extreme higher position representated by numerical value, described first scale-up factor be less than 1 coefficient.
5. method according to claim 4, is characterized in that, describedly on the basis of the numerical value representated by the extreme higher position of current axis of ordinates, is multiplied by the first scale-up factor, also comprises as before the numerical steps representated by the axis of ordinates extreme higher position after adjustment:
Search the maximum data value in the first data group, if the ratio of the maximum data value in described first data group and the current numerical value representated by axis of ordinates extreme higher position is greater than the maximal value of default scope or belongs to default scope;
Using the numerical value representated by the extreme higher position of current axis of ordinates as the numerical value representated by the axis of ordinates extreme higher position after adjustment; Otherwise forward next step to.
6. the method according to any one of claim 1-5, is characterized in that, described default scope, for being more than or equal to 1/3, is less than or equal to 3/4.
7. the method according to any one of claim 1-5, is characterized in that, described chart is bar chart, histogram or broken line graph, and described data point figure is the point of the rectangle of bar chart, the cylindricality of column diagram or broken line graph.
8. the method according to any one of claim 1-5, it is characterized in that, described first data group is that terminal is connected to network, current capacity contrast's data of being added up by different browsers, described first data group comprises the use traffic after browser raw data use traffic, the optimization of use QQ browser and the use traffic after opening super province flow.
9. an adjusting gear for chart display, it is characterized in that, described device comprises:
Receiving element, for receiving the first data group for chart display, the data in described data group are corresponding with the figure in chart respectively;
Judging unit, for judging that the ratio of the data in described first data group and the numerical value representated by current axis of ordinates extreme higher position is whether in the scope preset;
First adjustment unit, if exceed described default scope for the ratio of the data in described first data group and the numerical value representated by current axis of ordinates extreme higher position, adjust the numerical value representated by described axis of ordinates extreme higher position according to the first ratio preset;
Second adjustment unit, for the numerical value representated by the axis of ordinates extreme higher position after described adjustment, the height of figure in corresponding adjusting diagram.
10. device according to claim 9, it is characterized in that, described first adjustment unit comprises:
First searches subelement, for searching the maximum data value in the first data group, if the ratio of the maximum data value in described first data group and the current numerical value representated by axis of ordinates extreme higher position is greater than the maximal value of default scope;
First multiplication subelement, the first scale-up factor is multiplied by the basis of the numerical value representated by the extreme higher position at current axis of ordinates or the maximum data value in described first data group, as adjustment after axis of ordinates extreme higher position representated by numerical value, described first scale-up factor be greater than 1 coefficient.
11. devices according to claim 9, it is characterized in that, described first adjustment unit comprises:
Second searches subelement, for searching the minimum data value in the first data group, if the ratio of the minimum data value in described first data group and the current numerical value representated by axis of ordinates extreme higher position is less than the minimum value of default scope;
Second multiplication subelement, is multiplied by the first scale-up factor on the basis of the numerical value representated by the extreme higher position at current axis of ordinates, as adjustment after axis of ordinates extreme higher position representated by numerical value, described first scale-up factor be less than 1 coefficient.
12. devices according to any one of claim 9-11, it is characterized in that, described default scope, for being more than or equal to 1/3, is less than or equal to 3/4.
CN201310306875.XA 2013-07-19 2013-07-19 A kind of method of adjustment that chart is shown and device Active CN104298439B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310306875.XA CN104298439B (en) 2013-07-19 2013-07-19 A kind of method of adjustment that chart is shown and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310306875.XA CN104298439B (en) 2013-07-19 2013-07-19 A kind of method of adjustment that chart is shown and device

Publications (2)

Publication Number Publication Date
CN104298439A true CN104298439A (en) 2015-01-21
CN104298439B CN104298439B (en) 2019-03-26

Family

ID=52318189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310306875.XA Active CN104298439B (en) 2013-07-19 2013-07-19 A kind of method of adjustment that chart is shown and device

Country Status (1)

Country Link
CN (1) CN104298439B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105574094A (en) * 2015-12-11 2016-05-11 深圳安泰创新科技股份有限公司 Trend graph display method and device
CN107329943A (en) * 2017-06-29 2017-11-07 江苏软开信息科技有限公司 Chart intelligently increases method, storage medium and application server
CN107958418A (en) * 2017-12-28 2018-04-24 深圳市富途网络科技有限公司 A kind of method and system for realizing stock Overlapping display
CN108804437A (en) * 2017-04-26 2018-11-13 东软集团股份有限公司 Data display method, device, computer readable storage medium and electronic equipment
CN110046184A (en) * 2019-02-19 2019-07-23 广州视源电子科技股份有限公司 Datagraphic display adjusting method, device, storage medium and computer equipment
WO2020135143A1 (en) * 2018-12-28 2020-07-02 阿里巴巴集团控股有限公司 Application performance management information display method and apparatus, device and storage medium
CN112328346A (en) * 2020-11-04 2021-02-05 支付宝(杭州)信息技术有限公司 Method and apparatus for data processing
CN115543518A (en) * 2022-10-21 2022-12-30 北京世冠金洋科技发展有限公司 Image coordinate display method, device and equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090051706A1 (en) * 2005-03-14 2009-02-26 Michael Fleming Coordinate evaluation
CN101441458A (en) * 2008-12-18 2009-05-27 北京北方微电子基地设备工艺研究中心有限责任公司 Visualization apparatus and method for process parameter
CN102968808A (en) * 2012-11-21 2013-03-13 华为技术有限公司 Method and device for displaying
CN103036741A (en) * 2012-12-19 2013-04-10 北京神州绿盟信息安全科技股份有限公司 Determination method and determination device of flow monitoring base line

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090051706A1 (en) * 2005-03-14 2009-02-26 Michael Fleming Coordinate evaluation
CN101441458A (en) * 2008-12-18 2009-05-27 北京北方微电子基地设备工艺研究中心有限责任公司 Visualization apparatus and method for process parameter
CN102968808A (en) * 2012-11-21 2013-03-13 华为技术有限公司 Method and device for displaying
CN103036741A (en) * 2012-12-19 2013-04-10 北京神州绿盟信息安全科技股份有限公司 Determination method and determination device of flow monitoring base line

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105574094A (en) * 2015-12-11 2016-05-11 深圳安泰创新科技股份有限公司 Trend graph display method and device
CN105574094B (en) * 2015-12-11 2019-03-01 深圳安泰创新科技股份有限公司 Tendency chart display methods and device
CN108804437A (en) * 2017-04-26 2018-11-13 东软集团股份有限公司 Data display method, device, computer readable storage medium and electronic equipment
CN108804437B (en) * 2017-04-26 2021-03-26 东软集团股份有限公司 Data display method and device, computer readable storage medium and electronic equipment
CN107329943A (en) * 2017-06-29 2017-11-07 江苏软开信息科技有限公司 Chart intelligently increases method, storage medium and application server
CN107958418A (en) * 2017-12-28 2018-04-24 深圳市富途网络科技有限公司 A kind of method and system for realizing stock Overlapping display
WO2020135143A1 (en) * 2018-12-28 2020-07-02 阿里巴巴集团控股有限公司 Application performance management information display method and apparatus, device and storage medium
CN110046184A (en) * 2019-02-19 2019-07-23 广州视源电子科技股份有限公司 Datagraphic display adjusting method, device, storage medium and computer equipment
CN112328346A (en) * 2020-11-04 2021-02-05 支付宝(杭州)信息技术有限公司 Method and apparatus for data processing
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
CN104298439B (en) 2019-03-26

Similar Documents

Publication Publication Date Title
CN104298439A (en) Chart display adjusting method and device
CN104834529A (en) Method and device for optimizing performance of application
CN103530115B (en) Application program display method and device and terminal equipment
CN103327102A (en) Application program recommending method and device
CN104657666A (en) Method and device for optimizing terminal operation environment
CN104598476A (en) Message aggregation display method and information display method and relevant device
CN104866110A (en) Gesture control method, mobile terminal and system
CN103472949A (en) Method and device for remote-control processing of touch screen terminal and terminal
CN104967634A (en) File upload method and apparatus thereof
CN104571979A (en) Method and device for realizing split-screen views
CN104423840A (en) Progress bar implementing method and device
US10324134B2 (en) Method and device for ascertaining required charging time
CN104519269A (en) Finder frame display method and finder frame display device of photographic equipment
CN103472905A (en) Display method, displayer and display device
CN104850274A (en) Method and device for realizing key function by infrared induction
CN104007887A (en) Floating layer display method and terminal
CN104836717A (en) Data processing method and apparatus, and terminal equipment
CN106452644A (en) Playing control method and device, and terminal
CN103631592A (en) Configuration method, calling method, device and equipment for displaying resources
CN104348949A (en) Method and apparatus for switching operation state of electronic device
CN105511597A (en) Method and device for controlling page based on browser
CN103310155B (en) A kind of method and apparatus searching viral parent
CN104702643A (en) A webpage access method, device and system
CN103034319B (en) A kind of the method for display and control, control device and terminal are carried out to terminal
CN103064501A (en) Control method, device and terminal for information input

Legal Events

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