CN104298439B - A kind of method of adjustment that chart is shown and device - Google Patents

A kind of method of adjustment that chart is shown and device Download PDF

Info

Publication number
CN104298439B
CN104298439B CN201310306875.XA CN201310306875A CN104298439B CN 104298439 B CN104298439 B CN 104298439B CN 201310306875 A CN201310306875 A CN 201310306875A CN 104298439 B CN104298439 B CN 104298439B
Authority
CN
China
Prior art keywords
data
representated
higher position
numerical value
extreme higher
Prior art date
Application number
CN201310306875.XA
Other languages
Chinese (zh)
Other versions
CN104298439A (en
Inventor
刘玉磊
唐廷勇
王智培
汤浩
王曦
张凯
青欣
刘斯睿
杨惠姣
黄英
李未
冯诚
胡博
周睿奕
关磊
贺柏森
马宁
李洋
李英各
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
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

Links

Abstract

The present invention is suitable for data statistics field, provides a kind of method of adjustment that chart show and device, is used for the first data group that chart is shown this method comprises: receiving, the data in the data group are corresponding with the data point figure in chart respectively;Judge the ratio of numerical value representated by data and the current axis of ordinates extreme higher position in first data group whether in default range;If the ratio of numerical value representated by data in first data group and current axis of ordinates extreme higher position is more than the preset range, according to preset first ratio adjust the axis of ordinates extreme higher position representated by numerical value;The numerical value as representated by the axis of ordinates extreme higher position adjusted, the height of data point figure in corresponding adjusting diagram.The embodiment of the present invention can clearly show that the relativeness of each data point figure, do not need the other adjustment operation of user, allow to improve the cruising ability of battery of mobile terminal.

Description

A kind of method of adjustment that chart is shown and device

Technical field

The invention belongs to data statistics field more particularly to a kind of method of adjustment that chart is shown and devices.

Background technique

When for statistical analysis to data, for the more vivid relationship reflected between multi-group data, usually need The size relation between the reaction each group of data of chart image is used, such as in column diagram, by the abscissa of two-dimensional coordinate system In different location at cylindricality represent different groups of data, the height of ordinate corresponding to cylindricality corresponds to the big of each group of data It is small.User by cylindrical height, can image the size known between each data.

Using chart in addition to the size between multiple groups static data can be reacted, can also react between multiple groups dynamic data Size relation, by receiving the multi-group data of dynamic change, the corresponding data point map adjusted in each group of data correspondence graph Shape, the i.e. corresponding specific figure of a data point, such as cylindrical height make user obtain dynamic size of data transformation and close System.

But with the variation of data, biggish change can occur for data, such as use specific throttling for mobile phone user Measure, such as the comparison chart using the monitoring flow before and after QQ browser, the space that data change upwards is larger, when in data group Data it is larger when, chart all reaches relatively high height, and chart picture is full of whole coordinate system, and user cannot clearly show that The relativeness of each point datagraphic needs to adjust the display page so that more clearly more each data, so adjustment process are grasped Be more troublesome, and adjust process need the operating time, be unfavorable for improve mobile terminal, as intelligent mobile phone battery continuation of the journey when Between.

Summary of the invention

The embodiment of the present invention is designed to provide a kind of method of adjustment that chart is shown and device, to solve the prior art Relativeness of the chart because that cannot clearly show that each data point figure, user adjusts the problem of trouble, to improve mobile terminal The cruising ability of battery.

The embodiments of the present invention are implemented as follows, and a kind of method of adjustment that chart is shown, the method includes the following steps:

Receive the first data group shown for chart, the data in the data group respectively with the data point map in chart Shape is corresponding;

Judge the ratio of numerical value representated by data and the current axis of ordinates extreme higher position in first data group Whether in default range;

If the ratio of numerical value representated by the data and current axis of ordinates extreme higher position in first data group More than the preset range, according to preset first ratio adjust the axis of ordinates extreme higher position representated by numerical value;

The numerical value as representated by the axis of ordinates extreme higher position adjusted, data point figure in corresponding adjusting diagram Height.

The another object of the embodiment of the present invention is to provide a kind of adjustment device that chart is shown, described device includes:

Receiving unit is used for the first data group for showing of chart for receiving, the data in the data group respectively with figure Data point figure in table is corresponding;

Judging unit, for judging representated by the data in first data group and current axis of ordinates extreme higher position Numerical value ratio whether in default range;

The first adjustment unit, if in first data group data and current axis of ordinates extreme higher position institute The ratio of the numerical value of representative is more than the preset range, adjusts the axis of ordinates extreme higher position according to preset first ratio Representative numerical value;

Second adjustment unit, it is corresponding to adjust for the numerical value as representated by the axis of ordinates extreme higher position adjusted The height of data point figure in whole chart.

In embodiments of the present invention, by being used for the first data group and current axis of ordinates that chart is shown for received The ratio of numerical value representated by extreme higher position and preset range are compared, if the ratio is more than the range, root Numerical value representated by the axis of ordinates extreme higher position is adjusted according to preset first ratio, then according to axis of ordinates adjusted Numerical value representated by extreme higher position, the height of data point figure, makes the corresponding data of the first data group in corresponding adjusting diagram Dot pattern is shown in the position of the level of the middle part in graphics table, to clearly show that the relativeness of each data point figure, no The adjustment operation that user is other is needed, allows to improve the cruising ability of battery of mobile terminal.

Detailed description of the invention

Fig. 1 a is the implementation flow chart for the method for adjustment that the chart that first embodiment of the invention provides is shown;

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 implementation flow chart for the method for adjustment that the chart that second embodiment of the invention provides is shown;

Fig. 3 is the implementation flow chart for the method for adjustment that the chart that third embodiment of the invention provides is shown;

Fig. 4 is the structural schematic diagram for the adjustment device that the chart that fourth embodiment of the invention provides is shown;

Fig. 5 is the block diagram for the relevant part-structure of equipment that fifth embodiment of the invention provides.

Specific embodiment

In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.

In embodiments of the present invention, to the method for adjustment of the Dynamically Announce of chart, it can be used for the number that data gradually add up According to statistics, it can be used for the data statistics for the case where data are gradually successively decreased, do not advised in addition, may change up and down for data The case where rule, is applied equally to scheme described in the embodiment of the present invention.

The method of adjustment that chart described in the embodiment of the present invention is shown, including receiving the first data group shown for chart, Data in the data group are corresponding with the data point figure in chart respectively;Judge data in first data group and works as Whether the ratio of numerical value representated by preceding axis of ordinates extreme higher position is in default range;If in first data group Data and current axis of ordinates extreme higher position representated by the ratio of numerical value be more than the preset range, according to preset First ratio adjusts numerical value representated by the axis of ordinates extreme higher position;By the axis of ordinates extreme higher position institute adjusted The numerical value of representative, the height of data point figure in corresponding adjusting diagram.

By being used for received representated by the first data group that chart is shown and current axis of ordinates extreme higher position The ratio of numerical value and preset range are compared, if the ratio is more than the range, according to preset first ratio Numerical value representated by the axis of ordinates extreme higher position is adjusted, then according to representated by axis of ordinates extreme higher position adjusted Numerical value, the height of data point figure, makes the corresponding data point of the first data group be graphically displayed at chart in corresponding adjusting diagram The position of middle part level in table does not need the other tune of user to clearly show that the relativeness of each data point figure Whole operation allows to improve the cruising ability of battery of mobile terminal.

Embodiment one:

The implementation process for the method for adjustment that the chart that Fig. 1 a shows first embodiment of the invention offer is shown, is described in detail such as Under:

In step s101, receive the first data group shown for chart, the data in the data group respectively with figure Data point figure in table is corresponding.

Specifically, chart described in the embodiment of the present invention, can be the chart of Dynamically Announce, or preset figure The chart of data representated by ordinate extreme higher position in table.

First data group, for data group corresponding with the data point figure in chart respectively.I.e. in data group Number is corresponding with the number of data point figure in graphics table, when data are shown by chart, each data point figure Size of data that highly should be corresponding is corresponding.

The chart as shown in Fig. 1 b, Fig. 1 c, Fig. 1 d be divided into expression using browser, using QQ browser and open an account super The contrast schematic diagram of flow used by a user after traffic engineering capability is saved, from left to right successively it is column diagram chart, bar chart figure Table and click and sweep line diagram, the abscissa in chart are successively indicated using general browser, using QQ browser and the super province that opens an account Three kinds of situations after traffic engineering capability, data point corresponding to three kinds of situations, i.e., flow service condition under three circumstances, respectively It is 30,25,21, data point figure is each cylindricality in chart, the data point in second chart in first chart Figure is each rectangle in chart, and data point figure is each stain in chart in third chart.

Received first data group of system, the data that data therein can acquire for mobile terminal or computer, Such as the data on flows used, or rule of thumb formula or theoretical obtained theoretical Value Data, or be stored in Data value in the memory of equipment can also be the data value of received equipment input module input, be not limited thereto.It connects The system for receiving data can be the statistics plug-in unit in statistics application program or other application program.

In step s 102, judge representated by data and the current axis of ordinates extreme higher position in first data group Numerical value ratio whether in default range.

To the data in first data group, by its respectively with numerical value representated by current axis of ordinates extreme higher position Ratio is done, does molecule by the data in the first data group, numerical value representated by current axis of ordinates extreme higher position does denominator, obtains To one group of ratio, the ratio is compared with preset range.

The height of the extreme higher position of the ordinate, i.e. ordinate (Y-axis), numerical value representated by the extreme higher position of ordinate It determines the maximum data value that can be expressed in coordinate system, therefore, with the variation of data, needs the extreme higher position to ordinate Representative numerical value is adjusted.

The preset range, for the section of two values composition, the size in section can carry out phase according to the actual situation The adjustment answered, as one kind of the embodiment of the present invention more preferred embodiment, the preset range is [1/3,3/4], i.e., Numerical intervals more than or equal to 1/3, less than or equal to 3/4.

In step s 103, if representated by data in first data group and current axis of ordinates extreme higher position The ratio of numerical value be more than the preset range, in axis of ordinates extreme higher position institute's generation, is adjusted according to preset first ratio The numerical value of table.

The ratio of numerical value representated by data and current axis of ordinates extreme higher position in first data group, and because It is such as bigger for the numerical value of the data in the first data group there are many possibility for concrete condition, so that the first data group In data and current axis of ordinates extreme higher position representated by the ratio of numerical value be greater than the maximum value of the preset range;Or The numerical value of data in the first data group of person is smaller, so that the data in the first data group and current axis of ordinates highest The ratio of numerical value representated by position is less than the minimum value of the preset range;Or the numerical value of the first data in data group has Have greatly small, the ratio some of numerical value representated by data in the first data group and current axis of ordinates extreme higher position is default In the range of, some, for above-mentioned various situations, can be used corresponding first ratio and adjust the vertical seat outside preset range Numerical value representated by parameter extreme higher position makes the top of the data point figure in chart be located at the horizontal position in the middle part of graphics table as far as possible It sets.Herein the first ratio as the case may be, can be different data, below to these types of situation, respectively by embodiment into Row illustrates.

In step S104, the numerical value as representated by the axis of ordinates extreme higher position adjusted, corresponding adjustment figure The height of data point figure in table.

According to numerical value representated by reference axis extreme higher position adjusted, the height of data point figure in corresponding adjusting diagram Degree, makes the top of the data point figure in chart be located at the horizontal position in the middle part of graphics table as far as possible.

The chart is bar chart, histogram or line chart, and the data point data point figure is rectangle, the column of bar chart The cylindricality of shape figure or the point of line chart.

The embodiment of the present invention is by being used for the first data group and current axis of ordinates highest that chart is shown for received The ratio of numerical value representated by position and preset range are compared, if the ratio is more than the range, according to pre- If the first ratio adjust numerical value representated by the axis of ordinates extreme higher position, then according to axis of ordinates highest adjusted Numerical value representated by position, the height of data point figure, makes the corresponding data point map of the first data group in corresponding adjusting diagram Shape is shown in the position of the level of the middle part in graphics table, to clearly show that the relativeness of each data point figure, does not need The other adjustment operation of user, allows to improve the cruising ability of battery of mobile terminal.

Embodiment two:

Fig. 2 is the implementation process for the method for adjustment that the chart that second embodiment of the invention provides is shown, details are as follows:

The embodiment of the present invention can be used for the situation that received data group gradually increases, can be to each when realizing in a browser The use correlation data of flow is shown between a browser, flow with use the time increase can it is single show a increasing trend, The case where must will appear more than ordinate is shown in original chart.Therefore a kind of mode for facilitating adjusting is needed, makes it more Add and clearly shows that.It can be such as that terminal is connected to network for first data group, the stream counted by different browsers Correlation data is measured, first data group includes that browser initial data uses flow, using the use after the optimization of QQ browser Flow is used after flow and the super province's flow of unlatching.

Gradually increasing with data, the top of the data point figure shown in original graphics table are directed in the present embodiment Portion can gradually be shown in the top in graphics table, be not easy to the comparative situation that user clearly views each data point figure, The embodiment of the present invention is realized by following below scheme:

In step s 201, receive the first data group shown for chart, the data in the data group respectively with figure Data point figure in table is corresponding.

In step S202, judge representated by data and the current axis of ordinates extreme higher position in first data group Numerical value ratio whether in default range.If it is not, then going to step S203, otherwise terminate.

It is described it is preset may range from be greater than or equal to 1/3, be less than or equal to 3/4.

In step S203, the maximum data value in the first data group is searched, if the maximum in first data group The ratio of numerical value representated by data value and current axis of ordinates extreme higher position is greater than the maximum value of preset range.

For the accuracy for further increasing adjustment, the embodiment of the present invention may also include step S204 and step S205, in step In rapid S204, the minimum data value in the first data group is searched, if minimum data value in first data group and current Axis of ordinates extreme higher position representated by numerical value ratio be less than preset range minimum value or belong to preset range.

In step S205, using numerical value representated by the extreme higher position of current axis of ordinates as ordinate adjusted Numerical value representated by axis extreme higher position;Otherwise next step is gone to.

Specifically, judging representated by the maximum data value in the first data group and current axis of ordinates extreme higher position When the ratio of numerical value is greater than the maximum value of preset range, also in the first data group minimum data value and current ordinate The ratio of numerical value representated by axis extreme higher position is compared with the minimum value of preset range, or judges whether to belong to default Range, if the ratio of numerical value representated by maximum data value in the first data group and current axis of ordinates extreme higher position Minimum data value and current axis of ordinates extreme higher position institute greater than the maximum value of preset range, and in the first data group The ratio of the numerical value of representative is less than the minimum value of preset range or the minimum data value in the first data group is indulged with current The ratio of numerical value representated by reference axis extreme higher position belongs to preset range, then by the extreme higher position institute of current axis of ordinates The numerical value of representative is as numerical value representated by axis of ordinates extreme higher position adjusted.

By above-mentioned comparison, it can to exist simultaneously data bigger than preset range and smaller than preset range in chart When data or data within a preset range, when to avoid numerical value representated by the extreme higher position of adjustment axis of ordinates, that is, increase Add numerical value representated by the extreme higher position of axis of ordinates, make shorter compared with data point figure corresponding to small data, is unfavorable for small The data point figure of data clearly shows that.

It certainly, include the scheme of step S204-S205, only one of optional embodiment party in the embodiment of the present invention Formula, the data uniformly increased for one group can be directly by the way that after the comparison of step S203, go to step S206, equally can be with Obtain the purpose effectively adjusted to chart.

In step S206, the numerical value representated by the extreme higher position of current axis of ordinates or in first data Multiplied by the first proportionality coefficient on the basis of maximum data value in group, as representated by axis of ordinates extreme higher position adjusted Numerical value, first proportionality coefficient are the coefficient greater than 1.

In the maximum data value and the ratio of numerical value representated by current axis of ordinates extreme higher position in the first data group Greater than preset range maximum value when, the embodiment of the invention provides two kinds of adjustment modes:

Multiplied by first on the basis of a kind of adjustment mode is the numerical value representated by the extreme higher position of current axis of ordinates Proportionality coefficient, as numerical value representated by axis of ordinates extreme higher position adjusted.Such as current axis of ordinates extreme higher position institute's generation The numerical value of table is 50, and first proportionality coefficient is 2, then numerical value representated by axis of ordinates extreme higher position adjusted is 100。

Multiplied by the first ratio system on the basis of another adjustment mode is the maximum data value in first data group Number, as numerical value representated by axis of ordinates extreme higher position adjusted, the maximum data value in such as first data group is 50, the maximum data value in the first data group is 40, and the second coefficient of comparisons is 2, then axis of ordinates extreme higher position adjusted Representative numerical value is 80.

Second adjustment mode is adjusted according to the data in data group, quick-adjustsing purpose may be implemented, for number According to very fast situation is changed, second adjustment mode is more efficient.

In step S207, the numerical value as representated by the axis of ordinates extreme higher position adjusted, corresponding adjustment figure The height of data point figure in table.

According to numerical value representated by the axis of ordinates extreme higher position adjusted, data point map in corresponding adjusting diagram The height of shape makes data point figure corresponding to the data being higher by default range be returned to the horizontal position in the middle part of graphics table It sets, it is made more to clearly show that the corresponding relationship of data.

Be in place of the difference of the embodiment of the present invention and embodiment one, by by the first data group maximum data and with The ratio of numerical value representated by current axis of ordinates extreme higher position compared with the maximum value of preset range, to overall data compared with Big situation is adjusted numerical value representated by axis of ordinates extreme higher position, disperses biggish chart without adjusting for data It is whole, so that it is more in line with display and clearly requires.

Embodiment three:

Fig. 3 is the implementation process for the method for adjustment that the chart that third embodiment of the invention provides is shown, details are as follows:

The embodiment of the present invention can adjust accordingly the gradually smaller situation of numerical value in the first data group to chart It is whole, it is clearly required so that it meets display.

In step S301, receive the first data group shown for chart, the data in the data group respectively with figure Data point figure in table is corresponding.

In step s 302, judge representated by data and the current axis of ordinates extreme higher position in first data group Numerical value ratio whether in default range.If it is not, then going to step S303, otherwise terminate.

It is described it is preset may range from be greater than or equal to 1/3, be less than or equal to 3/4.

In step S303, the minimum data value in the first data group is searched, if the minimum in first data group The ratio of numerical value representated by data value and current axis of ordinates extreme higher position is less than the minimum value of preset range.

For the accuracy for further increasing adjustment, the embodiment of the present invention may also include step S304 and step S305, in step In rapid S304, the maximum data value in the first data group is searched, if maximum data value in first data group and current Axis of ordinates extreme higher position representated by numerical value ratio be greater than preset range maximum value or belong to preset range.

In step S305, using numerical value representated by the extreme higher position of current axis of ordinates as ordinate adjusted Numerical value representated by axis extreme higher position;Otherwise next step is gone to.

Specifically, judging representated by the minimum data value in the first data group and current axis of ordinates extreme higher position When the ratio of numerical value is greater than the minimum value of preset range, also in the first data group maximum data value and current ordinate The ratio of numerical value representated by axis extreme higher position is compared with the maximum value of preset range, or judges whether to belong to default Range, if the ratio of numerical value representated by minimum data value in the first data group and current axis of ordinates extreme higher position Less than the minimum value of preset range, and the maximum data value in the first data group and current axis of ordinates extreme higher position institute The ratio of the numerical value of representative is greater than the maximum value of preset range or the maximum data value in the first data group is indulged with current The ratio of numerical value representated by reference axis extreme higher position belongs to preset range, then by the extreme higher position institute of current axis of ordinates The numerical value of representative is as numerical value representated by axis of ordinates extreme higher position adjusted.

By above-mentioned comparison, it can to exist simultaneously data smaller than preset range and smaller than preset range in chart When data or data within a preset range, when to avoid numerical value representated by the extreme higher position of adjustment axis of ordinates, that is, subtract Numerical value representated by the extreme higher position of small axis of ordinates makes data point figure corresponding to larger data seem excessively high, is unfavorable for The data point figure of big data clearly shows that.

It certainly, include the scheme of step S304-S305, only one of optional embodiment party in the embodiment of the present invention Formula, the data uniformly reduced for one group can be directly by the way that after the comparison of step S203, go to step S306, equally can be with Obtain the purpose effectively adjusted to chart.

In step S306, multiplied by the first ratio on the basis of the numerical value representated by the extreme higher position of current axis of ordinates Example coefficient, as numerical value representated by axis of ordinates extreme higher position adjusted, first proportionality coefficient is to be less than 1 Number.

In the minimum data value and the ratio of numerical value representated by current axis of ordinates extreme higher position in the first data group Less than preset range minimum value when, multiplied by the basis of the numerical value representated by the extreme higher position of current axis of ordinates One proportionality coefficient, as numerical value representated by axis of ordinates extreme higher position adjusted.

The numerical value as representated by the extreme higher position of current axis of ordinates is 50, preset to may range from being greater than or equal to 1/3, it is less than or equal to 3/4, minimum value is 10 in the first data group, due to 10 < 50*1/3, and the maximum in the first data group The ratio of numerical value representated by the extreme higher position of value and current axis of ordinates is not belonging to preset range or is greater than preset model It encloses, then multiplied by the first proportionality coefficient 0.5 on the basis of the numerical value representated by the extreme higher position of current axis of ordinates, by 50* 0.5=25 as numerical value representated by axis of ordinates extreme higher position adjusted.

In step S307, the numerical value as representated by the axis of ordinates extreme higher position adjusted, corresponding adjustment figure The height of data point figure in table.

The embodiment of the present invention is similar with the adjustment principle of embodiment two, but adjustment direction will be on the contrary, embodiment two will be indulged currently Numerical value representated by the extreme higher position of reference axis tunes up, and the present embodiment is by numerical value representated by the extreme higher position of current axis of ordinates It turns down, purpose is that data point figure is enable more to clearly show that.

Example IV:

Fig. 4 is the structural schematic diagram for the adjustment device that the chart that fourth embodiment of the invention provides is shown, details are as follows:

The adjustment device that chart described in the embodiment of the present invention is shown, including receiving unit 401, judging unit 402, first are adjusted Whole unit 403 and second adjustment unit 404, in which:

The receiving unit 401, the data point for receiving the first data group for being used for chart and showing, in the data group It is not corresponding with the data point figure in chart;

The judging unit 402, for judging the data in first data group and current axis of ordinates highest order The ratio of representative numerical value is set whether in default range;

The first adjustment unit 403, if for data and current axis of ordinates highest order in first data group The ratio for setting representative numerical value is more than the preset range, adjusts the axis of ordinates highest according to preset first ratio Numerical value representated by position;

Second adjustment unit 404, for the numerical value as representated by the axis of ordinates extreme higher position adjusted, accordingly The height of data point figure in adjusting diagram.

Optionally, the first adjustment unit 403 includes:

First searches subelement 4031, for searching the maximum data value in the first data group, if first data The ratio of numerical value representated by maximum data value and current axis of ordinates extreme higher position in group is greater than preset range most Big value;

First multiplication subunit 4032, for the numerical value representated by the extreme higher position of current axis of ordinates or in institute It states on the basis of the maximum data value in the first data group multiplied by the first proportionality coefficient, as axis of ordinates highest order adjusted Representative numerical value is set, first proportionality coefficient is the coefficient greater than 1.

Another optional embodiment, the first adjustment unit 403 can include:

Second searches subelement 4033, for searching the minimum data value in the first data group, if first data The ratio of numerical value representated by minimum data value and current axis of ordinates extreme higher position in group is less than preset range most Small value;

Second multiplication subunit 4034, on the basis of for the numerical value representated by the extreme higher position of current axis of ordinates Multiplied by the first proportionality coefficient, as numerical value representated by axis of ordinates extreme higher position adjusted, first proportionality coefficient is Coefficient less than 1.

Described device of the embodiment of the present invention is corresponding with one, two, three the method for embodiment, so here is no more repetition.

Embodiment five:

Fig. 5 is the block diagram for the relevant part-structure of equipment that fifth embodiment of the invention provides.With reference to Fig. 5, the equipment It include: radio frequency (Radio Frequency, RF) circuit 510, memory 520, input unit 530, display unit 540, audio-frequency electric The components such as road 560, Wireless Fidelity (wireless fidelity, WiFi) module 570, processor 580 and power supply 590.This Field technical staff is appreciated that device structure shown in Fig. 5 does not constitute the restriction to equipment, may include than illustrating more More or less component perhaps combines certain components or different component layouts.

It is specifically introduced below with reference to each component parts of the Fig. 5 to equipment:

RF circuit 510 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, handled to processor 580;In addition, the data for designing uplink are sent to base station.In general, RF circuit packet Include but be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 110 can also be communicated with network and other equipment by wireless communication. Any communication standard or agreement, including but not limited to global system for mobile communications (Global can be used in above-mentioned wireless communication 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 (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email, short message service (Short Messaging Service, SMS) etc..

Memory 520 can be used for storing software program and module, and processor 580 is stored in memory 520 by operation Software program and module, thereby executing the various function application and data processing of equipment.Memory 520 can mainly include Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be created according to using for equipment Data (such as audio data, phone directory etc.) etc..It, can be in addition, memory 520 may include high-speed random access memory Including nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part.

Input unit 530 can be used for receiving the number or character information of input, and generate the user setting with equipment 500 And the related key signals input of function control.Specifically, input unit 530 may include touch panel 531 and other inputs Equipment 532.Touch panel 531, also referred to as touch screen, collecting the touch operation of user on it or nearby, (for example user makes With the operation of any suitable object or attachment such as finger, stylus on touch panel 531 or near touch panel 531), and Corresponding attachment device is driven according to preset formula.Optionally, touch panel 531 may include touch detecting apparatus and touching Touch two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation bring letter Number, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into Contact coordinate, then give processor 580, and order that processor 580 is sent can be received and executed.Furthermore, it is possible to using The multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave realize touch panel 531.It is defeated in addition to touch panel 531 Entering unit 530 can also include other input equipments 532.Specifically, other input equipments 532 can include but is not limited to physics One of keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.

Display unit 540 can be used for showing information input by user or be supplied to user information and equipment it is various Menu.Display unit 540 may include display panel 541, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Show panel 541.Further, touch panel 531 can cover display panel 541, when touch panel 531 detect it is on it or attached After close touch operation, processor 580 is sent to determine the type of touch event, is followed by subsequent processing device 580 according to touch event Type corresponding visual output is provided on display panel 541.Although in Fig. 5, touch panel 531 and display panel 541 It is that the input and input function of equipment are realized as two independent components, but in some embodiments it is possible to by touch-control Panel 531 and display panel 541 are integrated and that realizes equipment output and input function.

Equipment 500 may also include at least one sensor 550, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 541, and proximity sensor can close display panel when equipment is moved in one's ear 541 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of equipment posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Also as equipment The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.

Voicefrequency circuit 560, loudspeaker 561, microphone 562 can provide the audio interface between user and equipment.Audio-frequency electric Electric signal after the audio data received conversion can be transferred to loudspeaker 561, be converted to sound by loudspeaker 561 by road 560 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 562, is turned after being received by voicefrequency circuit 560 It is changed to audio data, then by after the processing of audio data output processor 580, such as another equipment is sent to through RF circuit 510, Or audio data is exported to memory 520 to be further processed.

WiFi belongs to short range wireless transmission technology, and equipment can help user's transceiver electronics postal by WiFi module 570 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 5 is shown WiFi module 570, but it is understood that, and it is not belonging to must be configured into for equipment 500, it is can according to need completely not Change in the range of the essence of invention and omits.

Processor 580 is the control centre of equipment, using the various pieces of various interfaces and connection whole equipment, is led to It crosses operation or executes the software program and/or module being stored in memory 520, and call and be stored in memory 520 Data execute the various functions and processing data of equipment, to carry out integral monitoring to equipment.Optionally, processor 580 can wrap Include one or more processing units;Preferably, processor 580 can integrate application processor and modem processor, wherein answer With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication. It is understood that above-mentioned modem processor can not also be integrated into processor 580.

Equipment 500 further includes the power supply 590(such as battery powered to all parts), it is preferred that power supply can pass through electricity Management system and processor 580 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.

Although being not shown, equipment 500 can also include camera, bluetooth module etc., and details are not described herein.

In embodiments of the present invention, processor 580 included by the terminal is also with the following functions: executing what chart was shown Method of adjustment, comprising:

Receive the first data group shown for chart, the data in the data group respectively with the data point map in chart Shape is corresponding;

Judge the ratio of numerical value representated by data and the current axis of ordinates extreme higher position in first data group Whether in default range;

If the ratio of numerical value representated by the data and current axis of ordinates extreme higher position in first data group More than the preset range, according to preset first ratio adjust the axis of ordinates extreme higher position representated by numerical value;

The numerical value as representated by the axis of ordinates extreme higher position adjusted, data point figure in corresponding adjusting diagram Height.

The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.

Claims (10)

1. a kind of method of adjustment that chart is shown, which is characterized in that the described method includes:
Receive the first data group shown for chart, the data in the data group respectively with the data point figure pair in chart It answers;
Judge the ratio of numerical value representated by the axis of ordinates extreme higher position of the data and current chart in first data group Whether in default range;
If the ratio of the data in first data group and numerical value representated by current axis of ordinates extreme higher position is more than The preset range, according to preset first ratio adjust the axis of ordinates extreme higher position representated by numerical value;
The numerical value as representated by the axis of ordinates extreme higher position adjusted, the height of data point figure in corresponding adjusting diagram Degree;
Wherein, if the data in first data group and numerical value representated by current axis of ordinates extreme higher position Ratio be more than the preset range, according to preset first ratio adjust the axis of ordinates extreme higher position representated by numerical value Step includes: the maximum data value searched in the first data group, if maximum data value in first data group and current Axis of ordinates extreme higher position representated by numerical value ratio be greater than preset range maximum value;In current axis of ordinates Multiplied by the first ratio system on the basis of numerical value representated by extreme higher position or the maximum data value in first data group Number, as numerical value representated by axis of ordinates extreme higher position adjusted, first proportionality coefficient is the coefficient greater than 1;
If alternatively, the data in first data group and numerical value representated by current axis of ordinates extreme higher position Ratio be more than the preset range, according to preset first ratio adjust the axis of ordinates extreme higher position representated by numerical value Step includes: the minimum data value searched in the first data group, if minimum data value in first data group and current Axis of ordinates extreme higher position representated by numerical value ratio be less than preset range minimum value;In current axis of ordinates Multiplied by the first proportionality coefficient on the basis of numerical value representated by extreme higher position, as axis of ordinates extreme higher position institute's generation adjusted The numerical value of table, first proportionality coefficient are the coefficient less than 1.
2. the method according to claim 1, wherein described in the extreme higher position of current axis of ordinates institute's generation The numerical value of table or on the basis of the maximum data value in first data group multiplied by the first proportionality coefficient step before, institute State method further include:
The minimum data value in the first data group is searched, if the minimum data value in first data group and current vertical seat The ratio of numerical value representated by parameter extreme higher position is less than the minimum value of preset range or belongs to preset range;
Using numerical value representated by the extreme higher position of current axis of ordinates as representated by axis of ordinates extreme higher position adjusted Numerical value;Otherwise next step is gone to.
3. method according to claim 1, which is characterized in that described representated by the extreme higher position of current axis of ordinates Multiplied by the first proportionality coefficient on the basis of numerical value, before numerical steps representated by axis of ordinates extreme higher position adjusted Further include:
The maximum data value in the first data group is searched, if the maximum data value in first data group and current vertical seat The ratio of numerical value representated by parameter extreme higher position is greater than the maximum value of preset range or belongs to preset range;
Using numerical value representated by the extreme higher position of current axis of ordinates as representated by axis of ordinates extreme higher position adjusted Numerical value;Otherwise next step is gone to.
4. method according to claim 1-3, which is characterized in that the preset range is more than or equal to 1/ 3, it is less than or equal to 3/4.
5. method according to claim 1-3, which is characterized in that the chart is bar chart, histogram or folding Line chart, the data point figure are rectangle, the cylindricality of column diagram or the point of line chart of bar chart.
6. method according to claim 1-3, which is characterized in that first data group is that terminal is connected to net Network, the current capacity contrast's data counted by different browsers, first data group include that browser initial data uses stream Amount uses flow using after flow and the super province's flow of unlatching using after the optimization of QQ browser.
7. the method according to claim 1, wherein being judged by the following manner the number in first data group According to the ratio of numerical value representated by the axis of ordinates extreme higher position with current chart whether in default range: to described first Numerical value representated by its respectively the axis of ordinates extreme higher position with the current chart is done ratio by the data in data group, by Data in first data group do molecule, and numerical value representated by current axis of ordinates extreme higher position does denominator, obtains one Group ratio, the ratio is compared with preset range.
8. a kind of adjustment device that chart is shown, which is characterized in that described device includes:
Receiving unit, for receiving the first data group for being used for chart and showing, the data in the data group are respectively and in chart Figure it is corresponding;
Judging unit, for judging number representated by the data in first data group and current axis of ordinates extreme higher position Whether the ratio of value is in default range;
The first adjustment unit, if in first data group data and current axis of ordinates extreme higher position representated by The ratio of numerical value be more than the preset range, in axis of ordinates extreme higher position institute's generation, is adjusted according to preset first ratio The numerical value of table;
Second adjustment unit, for the numerical value as representated by the axis of ordinates extreme higher position adjusted, corresponding adjustment figure The height of figure in table;
Wherein, the first adjustment unit includes: the first lookup subelement, for searching the maximum data in the first data group Value, if maximum data value and the ratio of numerical value representated by current axis of ordinates extreme higher position in first data group Greater than the maximum value of preset range;First multiplication subunit, for representated by the extreme higher position of current axis of ordinates Multiplied by the first proportionality coefficient on the basis of numerical value or maximum data value in first data group, as adjusted vertical Numerical value representated by reference axis extreme higher position, first proportionality coefficient are the coefficient greater than 1;
Alternatively, the first adjustment unit includes: the second lookup subelement, for searching the minimum data in the first data group Value, if minimum data value and the ratio of numerical value representated by current axis of ordinates extreme higher position in first data group Less than the minimum value of preset range;Second multiplication subunit, for representated by the extreme higher position of current axis of ordinates Multiplied by the first proportionality coefficient on the basis of numerical value, as numerical value representated by axis of ordinates extreme higher position adjusted, described One proportionality coefficient is the coefficient less than 1.
9. device according to claim 8, which is characterized in that the preset range be more than or equal to 1/3, be less than or Equal to 3/4.
10. device according to claim 8, which is characterized in that the judging unit is for being judged by the following manner institute The ratio of numerical value representated by data and the current axis of ordinates extreme higher position in the first data group is stated whether in preset model In enclosing:, will be representated by its respectively the axis of ordinates extreme higher position with the current chart to the data in first data group Numerical value do ratio, do molecule, number representated by current axis of ordinates extreme higher position by the data in first data group Value does denominator, obtains one group of ratio, and the ratio is compared with preset range.
CN201310306875.XA 2013-07-19 2013-07-19 A kind of method of adjustment that chart is shown and device 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 CN104298439A (en) 2015-01-21
CN104298439B true CN104298439B (en) 2019-03-26

Family

ID=52318189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310306875.XA 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105574094B (en) * 2015-12-11 2019-03-01 深圳安泰创新科技股份有限公司 Tendency chart display methods and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7752633B1 (en) * 2005-03-14 2010-07-06 Seven Networks, Inc. Cross-platform event engine

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN104298439A (en) 2015-01-21

Similar Documents

Publication Publication Date Title
US9591235B2 (en) Method and device for image taking brightness control and computer readable storage medium
CN103345355A (en) Screen-locking interface display control method, device and terminal device
CN103455256B (en) Rotary screen display method and a terminal screen
US10326861B2 (en) Method for controlling cooperation of multiple intelligent devices and apparatus thereof
WO2015035796A1 (en) Tabletop display method, apparatus, and terminal
US20170344255A1 (en) Method for displaying graphical user interface and mobile terminal
CN103414766A (en) Method, device and terminal equipment for installing application
WO2017206916A1 (en) Method for determining kernel running configuration in processor and related product
WO2014206101A1 (en) Gesture-based conversation processing method, apparatus, and terminal device
CN103854298B (en) A method of two-dimensional code integration and picture and terminal
CN103310004A (en) Method, device and equipment for displaying number of unread messages
US9697622B2 (en) Interface adjustment method, apparatus, and terminal
WO2013149530A1 (en) Information display method, mobile terminal and computer readable storage medium
CN103530115B (en) Application program display method and device and terminal equipment
CN103414488A (en) Mobile device antenna control method, mobile device antenna control device and equipment
US10033920B2 (en) Method for controlling cameras, non-transitory storage medium and terminal
US10133480B2 (en) Method for adjusting input-method keyboard and mobile terminal thereof
CN104168175A (en) Message group sensing method and terminal in instant messaging
WO2015081801A1 (en) Method, server, and system for information push
US20150020058A1 (en) Method and System for Prompting Application Update
CN104093123B (en) Application information delivery method, apparatus and system, the mobile terminal
CN104954402A (en) Application recommending method, system and apparatus
CN104866505A (en) Application recommendation method and device
US9489469B2 (en) Page display method, apparatus and terminal
CN103473092A (en) Method and device for processing downloaded applications and terminal equipment

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01 Patent grant