Summary of the invention
Based on the problems referred to above, the embodiment of the invention discloses a kind of display packing of chart, device.Technical scheme is as follows:
A kind of chart display method, comprising:
The data selection operation of user is monitored, determines user-selected source data region;
If monitor described user-selected source data region to change, then using the data in the source data region after change as data source, generate data drawing list;
Described data drawing list is shown.
Preferably, in above-mentioned chart display method, described generation data drawing list, comprising:
According to the subtype preset, generate the data drawing list of the type;
Or
According to subtype shown before change, generate the data drawing list identical with subtype shown before described change.
Preferably, in above-mentioned chart display method, described chart display method is applied to the electronic equipment with touch-screen;
Describedly determine user-selected source data region, comprising:
Obtain starting point and the terminal of touch operation on described touch-screen;
Using the line of described starting point and terminal as diagonal line, generate rectangular graph and also show, according to the region that described rectangular graph covers, determine user-selected source data region.
Preferably, in above-mentioned chart display method, the described operation of the data selection to user is monitored, and determines user-selected source data region, comprising:
The data selection operation of user is monitored, determines the source data region that user is selected on the graphics data source of electrical form.
Preferably, in above-mentioned chart display method, the described operation of the data selection to user is monitored, and determines user-selected source data region, also comprises before: on the graphics data source of described electrical form, show graphics data source mark line;
Describedly determine user-selected source data region, comprising:
Obtain the region that described graphics data source mark line surrounds, the region surrounded by described graphics data source mark line is as described user-selected source data region.
Preferably, in above-mentioned chart display method, described described data drawing list to be shown, comprising:
The same interface in described user-selected source data region shows described data drawing list.
The embodiment of the present invention also provides a kind of graph display device, comprising:
Source data area determination unit, for monitoring the data selection operation of user, determines user-selected source data region;
Chart generation unit, for when monitoring described user-selected source data region and changing, using the data in the source data region after changing as data source, generates data drawing list;
Chart display unit, for showing described data drawing list.
Preferably, in above-mentioned graph display device, described chart generation unit, comprising:
First chart generating module, for according to the subtype preset, generates the data drawing list of the type;
Or
Second chart generating module, for according to subtype shown before change, generates the data drawing list identical with subtype shown before described change.
Preferably, in above-mentioned graph display device, described application of installation is in the electronic equipment with touch-screen;
Described source data area determination unit, comprising:
Touch operation acquisition module, for obtaining starting point and the terminal of touch operation on described touch-screen;
Source data area determination module, for using the line of described starting point and terminal as diagonal line, generates rectangular graph and shows, according to the region that described rectangular graph covers, determining user-selected source data region.
Preferably, in above-mentioned graph display device, described source data area determination unit, comprising:
Electrical form source data area determination module, for monitoring the data selection operation of user, determines the source data region that user is selected on the graphics data source of electrical form.
Preferably, in above-mentioned graph display device, described device also comprises graphics data source mark line display unit, and described graphics data source mark line shows graphics data source mark line on the graphics data source at described electrical form;
Described source data area determination unit, comprising:
Graphics data source mark line enclosing region acquisition module, for obtaining the region that described graphics data source mark line surrounds, the region surrounded by described graphics data source mark line is as described user-selected source data region.
Preferably, in above-mentioned graph display device, described chart display unit, comprising:
Chart display module, shows described data drawing list on the same interface in described user-selected source data region.
The chart display method that the embodiment of the present invention provides, the data selection operation of Real-Time Monitoring user, determine user-selected source data region, if monitor user-selected source data region to change, then using the data in the source data region after change as data source, generate data drawing list, then this data drawing list is shown.The chart display method that the embodiment of the present invention provides, along with user data selects the change of operation, generation and the display of chart also change accordingly, that is, generation and the display of chart are selected the change of operation along with user data and change, therefore, when the data selection operation of user changes, user can operate the real-time procedure for displaying seeing chart according to the data selection of oneself.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
See Fig. 1, the embodiment of the present invention provides a kind of schematic flow sheet of chart display method, comprising:
S110: the data selection operation of user is monitored, determines user-selected source data region.
S120: change if monitor user-selected source data region, then using the data in the source data region after change as data source, generate data drawing list.
S130: this data drawing list is shown.
The chart display method that the embodiment of the present invention provides, the data selection operation of Real-Time Monitoring user, determine user-selected source data region, if monitor user-selected source data region to change, then using the data in the source data region after change as data source, generate data drawing list, then this data drawing list is shown.The chart display method that the embodiment of the present invention provides, along with user data selects the change of operation, generation and the display of chart also change accordingly, that is, generation and the display of chart are selected the change of operation along with user data and change, therefore, when the data selection operation of user changes, user can operate the real-time procedure for displaying seeing chart according to the data selection of oneself.
See Fig. 2, the embodiment of the present invention provides another schematic flow sheet of chart display method, comprising:
S210: the data selection operation of user is monitored, determines user-selected source data region.
The chart display method that the embodiment of the present invention provides can be applied to the electronic equipment with touch-screen, as electronic equipments such as smart mobile phone, panel computer, the notebook with touch-screen, desktop computers.
A kind of schematic diagram determining user-selected source data region is shown see Fig. 3, Fig. 3.When determining user-selected source data region, can realize in the following manner:
Obtain starting point A and the terminal B of touch operation on touch-screen;
Using the line of starting point A and terminal B as diagonal line, generate rectangular graph and show, according to the region that this rectangular graph covers, determining user-selected source data region S.
Wherein, the data in the S of source data region are raw data that chart generates institute's foundation.
It should be noted that, when determining user-selected source data region, being not limited to above-mentioned method, can also according to the starting point obtained and terminal, generate the figure of other shapes, as circle etc., determine user-selected source data region according to the region that the figure of this generation covers.
Further, the data in source data region can be the data on electrical form graphics data source.If the data in source data region are the data on electrical form graphics data source, then: the data selection operation of user is monitored, determine user-selected source data region, can comprise: the data selection operation of user is monitored, determines the source data region that user is selected on the graphics data source of electrical form.
Further, monitoring the data selection operation of user, before determining user-selected source data region, the graphics data source of electrical form can show graphics data source mark line.Then: above-mentionedly determine user-selected source data region, can comprise: obtain the region that graphics data source mark line surrounds, the region surrounded by graphics data source mark line is as user-selected source data region.Wherein, graphics data source mark line is the line with color mark, for the raw data generating chart institute foundation being enclosed.
A kind of schematic diagram of graphics data source mark line on electrical form graphics data source is shown see Fig. 4, Fig. 4.Graphics data source mark line can be rectangle, and graphics data source mark line comprises multiple controllable dot and multiple controlled limit.As the D in Fig. 4, controlled limit can be the limit of rectangle; As the C in Fig. 4, controllable dot can be the intersection point between two controlled limits.By dragging the size of controllable dot or controlled limit adjusting diagram data source, obtain the region that graphics data source mark line surrounds, the region surrounded by graphics data source mark line is as user-selected source data region.
You need to add is that, when the electronic equipment without touch-screen adjusts the size of graphics data source, can keyboard direction be passed through, or other particular key of keyboard are come upwards, downwards, left, move right the controlled limit or controllable dot selected.Or the controlled limit selected by mouse drag or controllable dot are with the size of adjusting diagram data source.
S220: change if monitor user-selected source data region, then using the data in the source data region after change as data source, according to the subtype preset, generate the data drawing list of the type.
Wherein, the subtype preset can be bar chart, histogram, broken line graph, pie chart etc.
When the chart that establishment one is new, user selects the source data region needing to generate chart, when monitoring user-selected source data region and changing, then using the data in the source data region after change as data source, according to the subtype preset, generate the data drawing list of the type.
S230: data drawing list is shown.
With reference to figure 5, when data drawing list is shown, preferably, the same interface in user-selected source data region shows this data drawing list.If show this data drawing list on the same interface in user-selected source data region, then, when the data selection operation of user changes, user can operate the real-time chart seen according to selected Area generation according to the data selection of oneself.
In other embodiments of the invention, this data drawing list can also be shown in the document of assigned catalogue position is as electrical form, during display, document on assigned catalogue position is transferred on the same interface in user-selected source data region, with make user can according to the data selection operation of oneself real-time see chart.
The chart display method that Fig. 2 embodiment provides, for creating and showing new chart.When new chart, user selects the source data region needing to generate chart, when monitoring user-selected source data region and changing, then using the data in the source data region after change as data source, according to the subtype preset, generate the data drawing list of the type.The generative process of new chart is selected the change of operation along with user data and changes, and therefore, when the data selection operation of user changes, user can operate the real-time generative process seeing new chart according to the data selection of oneself.
See Fig. 6, show another schematic flow sheet of the chart display method that the embodiment of the present invention provides, the method comprises:
S310: the data selection operation of user is monitored, determines user-selected source data region.
S310 is identical with above-mentioned S210, specifically can see above-mentioned S210 part, and therefore not to repeat here.
S320: change if monitor user-selected source data region, then using the data in the source data region after change as data source, according to subtype shown before change, generate the data drawing list identical with subtype shown before change.
Subtype shown before change can for opening the subtype of chart.
S330: renewal display is carried out to this data drawing list.
S330 is identical with above-mentioned S230, specifically can see above-mentioned S230 part, and therefore not to repeat here.
Show before and after user-selected source data region changes see Fig. 7, Fig. 7, opened the schematic diagram that chart upgrades display.Fig. 7, when showing data drawing list, the same interface in user-selected source data region shows this data drawing list, and wherein, the change change that can comprise source data region of source data region is large or diminish.
With embodiment illustrated in fig. 2 unlike, the chart display method that Fig. 7 embodiment provides shows the chart opened for real-time update.When user chooses and opens a certain chart, the data in source data region if current chart allows to modify, whether the source data region then selected by monitor user ' changes, if changed, then using the data in the source data region after change as data source, according to the subtype opening chart, generate the data drawing list identical with the subtype opening chart, and renewal display is carried out to this chart.The chart display method that Fig. 7 embodiment provides, when upgrading the data in source data region, can changing along with the change of user data selection operation of the chart opened, therefore, when the data selection operation of user changes, user can operate the real-time renewal process seeing chart according to the data selection of oneself.
See Fig. 8, the chart that the embodiment of the present invention provides upgrades a kind of schematic flow sheet of display packing, comprising:
S410: opening document.
The document opened can be the file that the softwares for editing such as WORD, EXCEL produce, and includes chart to be updated in this file.
S420: whether click chart, if so, then carries out S430, otherwise process ends or enter other flow processs.
S430: choose current chart.
S440: whether direct editing data source, if so, then carry out step 450, otherwise process ends or non-display data sources mark line.
S450: display data sources mark line.
S460: the controllable dot on click data source marking line or controlled limit also drag.
S470: data source upgrades display.
S480: whether unclamp click, if so, then carry out step 490, otherwise process ends or enter other flow processs.
S490: application data source, to current chart, upgrades display chart.
See Fig. 9, the embodiment of the present invention provides a kind of graph display device, comprising:
Source data area determination unit 100, for monitoring the data selection operation of user, determines user-selected source data region;
Chart generation unit 110, if changed for monitoring described user-selected source data region, then using the data in the source data region after change as data source, generates data drawing list;
Chart display unit 120, for showing described data drawing list.
The graph display device that the embodiment of the present invention provides, source data area determination unit 100, the data selection operation of Real-Time Monitoring user, determine user-selected source data region, if monitor user-selected source data region to change, chart generation unit 110 is using the data in the source data region after change as data source, and generate data drawing list, then chart display unit 120 shows this data drawing list.The chart display method that the embodiment of the present invention provides, along with user data selects the change of operation, generation and the display of chart also change accordingly, that is, generation and the display of chart are selected the change of operation along with user data and change, therefore, when the data selection operation of user changes, user can operate the real-time procedure for displaying seeing chart according to the data selection of oneself.
In other embodiments of the invention, described chart generation unit, comprising:
First chart generating module, for according to the subtype preset, generates the data drawing list of the type;
Or
Second chart generating module, for according to subtype shown before change, generates the data drawing list identical with subtype shown before described change.
In other embodiments of the invention, described application of installation is in the electronic equipment with touch-screen;
Described source data area determination unit, comprising:
Touch operation acquisition module, for obtaining starting point and the terminal of touch operation on described touch-screen;
Source data area determination module, for using the line of described starting point and terminal as diagonal line, generates rectangular graph and shows, according to the region that described rectangular graph covers, determining user-selected source data region.
In other embodiments of the invention, described source data area determination unit, comprising:
Electrical form source data area determination module, for monitoring the data selection operation of user, determines the source data region that user is selected on the graphics data source of electrical form.
In other embodiments of the invention, described device also comprises graphics data source mark line display unit, and described graphics data source mark line shows graphics data source mark line on the graphics data source at described electrical form;
Described source data area determination unit, comprising:
Graphics data source mark line enclosing region acquisition module, for obtaining the region that described graphics data source mark line surrounds, the region surrounded by described graphics data source mark line is as described user-selected source data region.
In other embodiments of the invention, described chart display unit, comprising:
Chart display module, shows described data drawing list on the same interface in described user-selected source data region.
For system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
It should be noted that, in this article, the relational terms of such as with the second grade and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
One of ordinary skill in the art will appreciate that all or part of step realized in said method embodiment is that the hardware that can carry out instruction relevant by program has come, described program can be stored in computer read/write memory medium, here the alleged storage medium obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.