CN109325220A - Chart generation method, device, storage medium and electronic equipment - Google Patents
Chart generation method, device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN109325220A CN109325220A CN201810996008.6A CN201810996008A CN109325220A CN 109325220 A CN109325220 A CN 109325220A CN 201810996008 A CN201810996008 A CN 201810996008A CN 109325220 A CN109325220 A CN 109325220A
- Authority
- CN
- China
- Prior art keywords
- chart
- data
- model
- target widget
- user
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000001914 filtration Methods 0.000 claims description 71
- 238000012216 screening Methods 0.000 claims description 13
- 238000012545 processing Methods 0.000 claims description 10
- 238000004422 calculation algorithm Methods 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 5
- 238000013461 design Methods 0.000 abstract description 14
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 8
- 230000005236 sound signal Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 238000009877 rendering Methods 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 238000012797 qualification Methods 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000001174 ascending effect Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/177—Editing, e.g. inserting or deleting of tables; using ruled lines
- G06F40/18—Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
This disclosure relates to a kind of chart generation method, device, storage medium and electronic equipment, it is related to information technology field, this method comprises: the target widget selected according to user in list, create data descriptive model, data descriptive model includes the attribute that control is corresponded to for describing reference axis, according to the chart attribute that user inputs, creates chart style model, according to the corresponding data of target widget, data descriptive model and chart style model, chart is generated.Chart can be customized according to user demand, simplify the design procedure of chart, improve efficiency, flexibility ratio and operability that chart generates.
Description
Technical field
This disclosure relates to information technology field, and in particular, to a kind of chart generation method, device, storage medium and electricity
Sub- equipment.
Background technique
Table with the fast development of the information technologies such as internet, big data, applied to fields such as industry, government affairs, management
Single business all begins to use electronic chart.Electronic chart can collect a large amount of data information, convenient for being analyzed data, examined
Rope and statistics.The generating process of electronic chart, it is necessary first to selected index axis and dimension axis, then by data corresponding in database
It shows in electronic chart.And the design for electronic chart, operation difficulty are big, for the user used for the first time, use
It is poor to experience, and expends workload.
Summary of the invention
Purpose of this disclosure is to provide a kind of chart generation method, device, storage medium and electronic equipments, to solve electricity
Sub-chart flexible design degree and the low problem of operability.
To achieve the goals above, according to the first aspect of the embodiments of the present disclosure, a kind of chart generation method is provided, it is described
Method includes:
According to the target widget that user in list selects, data descriptive model is created, the data descriptive model includes using
The attribute of control is corresponded in description reference axis;
According to the chart attribute that user inputs, chart style model is created;
According to the corresponding data of the target widget, the data descriptive model and the chart style model, figure is generated
Table.
Optionally, described according to the corresponding data of the target widget, the data descriptive model and the chart style
Model generates chart, comprising:
According to the first filter condition that user inputs, data filtering model is created;
According to the data filtering model, the corresponding data of the target widget are screened;
According to the corresponding data of the target widget, the data descriptive model and the chart style mould by screening
Type generates the chart.
Optionally, described according to the corresponding data of the target widget, the data descriptive model and the chart sample
Formula model, after generating chart, the method also includes:
According to the second filter condition that user inputs, user filtering model is created;
According to the user filtering model, the corresponding data of the target widget are screened;
According to the corresponding data of the target widget, the data descriptive model and the chart style mould by screening
Type updates the chart.
Optionally, described according to the corresponding data of the target widget, the data descriptive model and the chart style
Model generates chart, comprising:
The data descriptive model is sent to backstage by foreground;
The corresponding data of the target widget are analyzed using the data descriptive model by the backstage, so as to
Target data corresponding with the data descriptive model in the corresponding data of the target widget is sent to the foreground;
The target data is rendered according to the chart style model by the foreground, generates the chart.
Optionally, the data descriptive model includes: the category of attribute of the target widget in the list, reference axis
Property and the Processing Algorithm to the corresponding data of the target widget;
The chart style model includes: at least one of chart title, subtype, sortord, display rule.
Optionally, first filter condition or second filter condition include: in the list by filter controls,
At least one of filter condition, filtering rule, the data filtering model or the user filtering model include: model name
Claim, it is described by the data type of filter controls, it is described by the corresponding number in the list of filter controls, the filtering rod
At least one of part, described filtering rule.
According to the second aspect of an embodiment of the present disclosure, a kind of chart generating means are provided, described device includes:
Descriptive model creation module, the target widget for being selected according to user in list, creates data descriptive model, institute
Stating data descriptive model includes the attribute that control is corresponded to for describing reference axis;
Style model creation module, the chart attribute for being inputted according to user create chart style model;
Generation module, for according to the corresponding data of the target widget, the data descriptive model and the chart sample
Formula model generates chart.
Optionally, the generation module includes:
Filtering model creates submodule, and the first filter condition for being inputted according to user creates data filtering model;
Filter submodule, for being screened to the corresponding data of the target widget according to the data filtering model;
Submodule is generated, for according to the corresponding data of the target widget by screening, the data descriptive model
With the chart style model, the chart is generated.
Optionally, described device further include:
Filtering model creation module, for describing mould according to the corresponding data of the target widget, the data described
Type and the chart style model after generating chart, according to the second filter condition that user inputs, create user filtering mould
Type;
Filtering module, for being screened to the corresponding data of the target widget according to the user filtering model;
Update module, for according to by screening the corresponding data of the target widget, the data descriptive model and
The chart style model, updates the chart.
Optionally, the generation module includes:
Model sending submodule, for the data descriptive model to be sent to backstage by foreground;
Submodule is analyzed, for utilizing the data descriptive model to the corresponding number of the target widget by the backstage
According to being analyzed, so that target data corresponding with the data descriptive model in the corresponding data of the target widget is sent
To the foreground;
Submodule is rendered, for carrying out wash with watercolours to the target data according to the chart style model by the foreground
Dye, generates the chart.
Optionally, the data descriptive model includes: the category of attribute of the target widget in the list, reference axis
Property and the Processing Algorithm to the corresponding data of the target widget;
The chart style model includes: at least one of chart title, subtype, sortord, display rule.
Optionally, first filter condition or second filter condition include: in the list by filter controls,
At least one of filter condition, filtering rule, the data filtering model or the user filtering model include: model name
Claim, it is described by the data type of filter controls, it is described by the corresponding number in the list of filter controls, the filtering rod
At least one of part, described filtering rule.
According to the third aspect of an embodiment of the present disclosure, a kind of computer readable storage medium is provided, calculating is stored thereon with
The step of machine program, the chart generation method that realization first aspect provides when which is executed by processor.
According to a fourth aspect of embodiments of the present disclosure, a kind of electronic equipment is provided, comprising:
Memory is stored thereon with computer program;
Processor, for executing the computer program in the memory, to realize the chart of first aspect offer
The step of generation method.
Through the above technical solutions, the disclosure passes through the target widget that user selects from list, it include retouching to create
The data descriptive model that reference axis corresponds to the attribute of control is stated, creates chart style mould further according to the chart attribute of user's input
Type finally generates chart by the corresponding data of target widget in chart and data descriptive model, chart style model.It being capable of root
Chart is customized according to user demand, simplifies the design procedure of chart, improves efficiency, flexibility ratio and operability that chart generates.
Other feature and advantage of the disclosure will the following detailed description will be given in the detailed implementation section.
Detailed description of the invention
Attached drawing is and to constitute part of specification for providing further understanding of the disclosure, with following tool
Body embodiment is used to explain the disclosure together, but does not constitute the limitation to the disclosure.In the accompanying drawings:
Fig. 1 is a kind of flow chart of chart generation method shown according to an exemplary embodiment;
Fig. 2 is the display interface schematic diagram of an exemplary embodiment according to figure 1;
Fig. 3 is the chart that an exemplary embodiment according to figure 1 generates;
Fig. 4 is the flow chart of another chart generation method shown according to an exemplary embodiment;
Fig. 5 is the flow chart of another chart generation method shown according to an exemplary embodiment;
Fig. 6 is the flow chart of another chart generation method shown according to an exemplary embodiment;
Fig. 7 is a kind of block diagram of chart generating means shown according to an exemplary embodiment;
Fig. 8 is the block diagram of another chart generating means shown according to an exemplary embodiment;
Fig. 9 is the block diagram of another chart generating means shown according to an exemplary embodiment;
Figure 10 is the block diagram of another chart generating means shown according to an exemplary embodiment;
Figure 11 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Before introducing chart generation method, device, storage medium and the electronic equipment of disclosure offer, first to this public affairs
It opens application scenarios involved in each embodiment to be introduced, which can be Graphic Design device, Graphic Design device
Including for obtaining user's design requirement, the foreground (such as can be display interface) that database data is shown and chart is shown,
Further include for storing data and data are analyzed, the backstage screened (such as can be by the code of realization counterlogic
The module of composition).
Fig. 1 is a kind of flow chart of chart generation method shown according to an exemplary embodiment, as shown in Figure 1, the party
Method includes:
Step 101, the target widget selected according to user in list creates data descriptive model, data descriptive model packet
Include the attribute that control is corresponded to for describing reference axis.
For example, for the mass data stored in database, user is difficult directly to find out the rule for including in data
And trend, therefore can be generated it is more intuitive, be easier to the chart of Rule Summary to assist user.It can show in the display interface
Show list (containing multiple data column), allows the user to be intuitive to see the data in database, user is according to practical need
Ask each reference axis target widget to be shown (multiple data column i.e. in list) in selection chart.Wherein, in two-dimensional diagram
Include two axis: index axis (Y-axis) and dimension axis (X-axis), size of the index axis commonly used to display data, and dimension axis is usual
It is used to refer to different classification, it is generally the case that index axis can correspond to multiple data column, the corresponding data column of dimension axis.
User can input the title of target widget by keyboard, or target widget is dragged to designated position directly from list
Selection target control.Data descriptive model is created according to target widget, wherein may include each in data descriptive model
Reference axis corresponds to the attribute of control, i.e., (such as the data column of user's selection are corresponding for the corresponding attribute in list of target widget
Data type, number etc.), it can also include the attribute (such as: coordinate Spindle Name, unit etc.) of reference axis itself, further,
It can also include to the Processing Algorithm of target widget corresponding data (such as: summation, sequence etc.) and displaying rule etc..
Step 102, the chart attribute inputted according to user creates chart style model.
Exemplary, user can also select the pattern of chart to be shown, such as user that can lead to according to actual needs
Cross keyboard input chart title, or in drop-down list select chart display type (such as: histogram, cake chart, folding
Line chart, scatter plot, radar map etc.), the mode (such as: ascending order, descending etc.) of sequence etc., allow user that can intuitively select chart
Design parameter, convenient for operation.
It should be noted that data descriptive model and chart style model can be based on json (English: Java
Script Object Notation, Chinese: java scripting object numbered musical notation), xml (English: Extensible Markup
Language, Chinese: extensible markup language) etc. data formats describe, it is possible to understand that for what is established according to user demand
Structural body for providing the description rule and diagrammatic representation rule of data, and indicates how to render data to generate figure
Table.
Step 103, according to the corresponding data of target widget, data descriptive model and chart style model, chart is generated.
For example, the corresponding data of target widget are parsed with the data descriptive model obtained in step 101,
The corresponding data of target widget are extracted with the format indicated in data descriptive model, have obtained meeting data descriptive model
Data, the data for meeting data descriptive model are rendered further according to the chart style model obtained in step 102, generate
Meet the chart of user demand.
It should be noted that the data in data descriptive model and chart style model and list are separation, can make
Data in the chart and list of generation are dynamically consistent, and in the prior art, data and chart are in the chart of generation
Static difference, i.e., the data in list have updated or data descriptive model, chart style model are changed, then
Corresponding chart also can dynamic change, do not need user to execute refresh operation, reduce the data volume of calculating, generate chart
Speed is fast.
It is exemplary, for containing the data information of certain project bid in list, as shown in table 1, wherein containing more
A data column, the data type of " budget " data column are numeric type, and the data type of " contract status " data column is optional
Type (includes: effectively, fails, wait renew a contract), and " qualification " data are classified as text type.User is in display interface it can be seen that table 1
In shown list data, further, as shown in Fig. 2, user can describe mould according to specific requirements come design data
Type and chart style model, such as in data descriptive model, user can be made by the control " contract status " pulled in table 1
For X-axis, and " actual value " is set by the corresponding data processing algorithm of X-axis, then the control " budget " pulled in table 1 carries out conduct
Y-axis, and the corresponding data processing algorithm of Y-axis is set as " summing ".In chart style model, user inputs chart title
Are as follows: chart 1, chart style are as follows: histogram, sortord are as follows: descending arrangement.By " contract status " in table 1 and " budget " two
The data for including in data column are parsed according to the format indicated in data descriptive model, are carried out according still further to chart style model
Rendering, obtains chart as shown in Figure 3.
Table 1
Budget (ten thousand yuan) | Contract status | Qualification | … |
280 | Effectively | Second-rank first class | … |
510 | Effectively | Level-one the second grade | … |
375 | Wait renew a contract | Second level the second grade | … |
… | … | … | … |
420 | Effectively | Three-level is first-class | … |
In conclusion the disclosure passes through the target widget that user selects from list, it include description reference axis to create
The data descriptive model of the attribute of corresponding control creates chart style model further according to the chart attribute of user's input, finally
Chart is generated by the corresponding data of target widget in chart and data descriptive model, chart style model.It can be according to user
Demand customizes chart, simplifies the design procedure of chart, improves efficiency, flexibility ratio and operability that chart generates.
Fig. 4 is the flow chart of another chart generation method shown according to an exemplary embodiment, as shown in figure 4, step
Rapid 103 include:
Step 1031, the first filter condition inputted according to user creates data filtering model.
Step 1032, according to data filtering model, the corresponding data of target widget are screened.
Step 1033, the corresponding data of target widget, data descriptive model and the chart style model screened according to process,
Generate chart.
For example, user is during plan, in fact it could happen that only needs one in the corresponding data of target widget
The scene of partial data, that is, there are the unwanted data of user in the corresponding data of target widget, corresponding this scene can be with
Data filtering model is created according to the first filter condition of user's input.It wherein may indicate that in filter condition: needing to carry out
Control title, the condition of filtering or the rule of filtering of filtering, such as: it include the Chinese language end of term of a class student in list
Total marks of the examination, user wants to understand the Chinese Achievement Test distribution of schoolgirl in the class, then filter condition can be set are as follows: need to carry out
The control of filtering is entitled " gender ", and the condition of filtering is " female ".It may include: model name in corresponding data filtering model
Claim, title, data type, the number of the control for needing to be filtered, the parameters such as filter condition.Using data filtering model come pair
The corresponding data of target widget are screened, and the data for meeting the first filter condition are obtained, further according to chart style model to warp
The corresponding data of target widget for crossing screening are rendered, and the chart for meeting user demand is generated.
Fig. 5 is the flow chart of another chart generation method shown according to an exemplary embodiment, as shown in figure 5,
After step 103, this method further include:
Step 104, the second filter condition inputted according to user creates user filtering model.
Step 105, according to user filtering model, the corresponding data of target widget are screened.
Step 106, the corresponding data of target widget, data descriptive model and the chart style model screened according to process,
Update chart.
It is exemplary, it (can also include number by establishing data descriptive model and chart style model according to the demand of user
According to filtering model) obtain chart after, user may need further to screen data, or a chart can be sent to it is more
A different user, each user is according to specific requirements and usage scenario, it is also possible to need further to sieve the data in chart
Choosing.For such scene, the second filter condition that can be inputted according to user, to create user filtering model.Likewise, mistake
It may indicate that in filter condition: the rule of the control title, the condition of filtering or the filtering that need to be filtered.Corresponding user's mistake
Filtering in model may include: model name, title, data type, the number of the control for needing to be filtered, the ginseng such as filter condition
Number.
It should be noted that two class scenes can be divided into when screening to the corresponding data of target widget: one is
In step 1031, user does not input the first filter condition and passes through use at this time that is, without the scene for creating data filtering model
The corresponding data of target widget are screened in family filtering model, the data for meeting the second filter condition are obtained, further according to figure
Table style model renders the corresponding data of target widget by screening, is updated to the chart generated.Separately
A kind of scene is in step 1031, and user has input the first filter condition, corresponding data filtering model is generated, then scheming
The data for needing to show in table should meet the first filter condition, and meet the second filter condition, pass through data filtering at this time
Model and user filtering model simultaneously screen the corresponding data of target widget, obtain while meeting the first filter condition
With the data of the second filter condition, wash with watercolours is carried out to the corresponding data of target widget by screening further according to chart style model
Dye, is updated the chart generated.
In the prior art, after chart generates, it will not be automatically updated with the change of data in list, need to use householder
It is dynamic to be refreshed or regenerated table, it needs to render the total data in list, data volume is big, and speed is slow.And
By establishing user filtering model in the present embodiment, directly the corresponding data of target widget are screened, only to that will screen after
Data rendered, so that the data in chart and list is consistent, do not need user actively refresh, the data being related to
Measure small, speed is fast.Such as: it include a class student Chinese language final examination achievement in generated chart, teacher is by the chart
It is distributed to the group leader of each group in the class, each group leader can be using the name of group member in respective group as the second filtering rod
Part, to obtain the chart for only showing group member's achievement in each group.
Fig. 6 is the flow chart of another chart generation method shown according to an exemplary embodiment, as shown in fig. 6, step
Rapid 103 include:
Step 1034, data descriptive model is sent to by backstage by foreground.
Step 1035, the corresponding data of target widget are analyzed using data descriptive model by backstage, to incite somebody to action
Target data corresponding with data descriptive model is sent to foreground in the corresponding data of target widget.
Step 1036, target data is rendered according to chart style model by foreground, generates chart.
For example, the target widget and chart attribute for obtaining user's selection, are realized by foreground, wherein foreground
It can be the display interface shown by the display screen of terminal, foreground is according to the target widget and chart attribute of acquisition
Data descriptive model and chart style model are established, and data descriptive model is sent to backstage, end can be stored in from the background
In the processor at end, the module of the code composition of corresponding function is realized.Backstage is after receiving data descriptive model, with data
The format indicated in descriptive model extracts the corresponding data of target widget, has obtained the target for meeting data descriptive model
Data, then target data is sent to foreground.After foreground receives target data, according to chart style model to target data into
Row rendering, generates the chart for meeting user demand.
Optionally, data descriptive model includes: attribute of the target widget in list, the attribute of reference axis and to target control
The Processing Algorithm of the corresponding data of part.
Chart style model includes: at least one of chart title, subtype, sortord, display rule.
It is corresponding to be based on json lattice to include in list in a school for the English achievement of each collegian
The data descriptive model of formula description may include following field:
XAxisLabel: " institute ",
xAxisName:"strDepartment",
xAxisType:"String",
YAxisLabel: " achievement ",
yAxisName:"strGrade",
yAxisType:"String",……
Wherein, xAxisLabel is the name (such as: institute) of X-axis, and xAxisName is that the corresponding target widget of X-axis exists
In list name (such as: strDepartment), xAxisType be data class of the corresponding target widget of X-axis in list
Type (such as: character string type), yAxisLabel are the name (such as: achievement) of Y-axis, and yAxisName is the corresponding target of Y-axis
Control in list name (such as: strGrade), yAxisType be data of the corresponding target widget of Y-axis in list
Type (such as: character string type).
The corresponding chart style model based on the description of json format may include following field:
type:"bar",
CustomXAxisName: " institute "
CustomYAxisName: " achievement " ...
Wherein, type is the type (such as: histogram) of chart, and customXAxisName is the customized X-axis title of user
(such as: institute), customYAxisName are the customized Y-axis title of user (such as: achievement).
Optionally, the first filter condition or the second filter condition include: in list by filter controls, filter condition, mistake
At least one of rule is filtered, data filtering model or user filtering model include: model name, the data class by filter controls
Type, by least one of the corresponding number in list of filter controls, filter condition, filtering rule.
For example, to include needing in a school for the English achievement of each collegian in list
Except the achievement of " college of liberal arts " and " College of Education " Liang Ge institute, then the corresponding data filtering model based on the description of json format
Or user filtering model may include following field:
type:"String",
key:"strDepartment",
Value: " & College of Education of college of liberal arts " ...
Wherein, type is the data type (such as: character string type) by filter controls in list, and key is to be filtered
Control it is corresponding in list name (such as: strDepartment), value is filter condition, that is, the data for needing to filter
(such as: college of liberal arts and College of Education).
In conclusion the disclosure passes through the target widget that user selects from list, it include description reference axis to create
The data descriptive model of the attribute of corresponding control creates chart style model further according to the chart attribute of user's input, finally
Chart is generated by the corresponding data of target widget in chart and data descriptive model, chart style model.It can be according to user
Demand customizes chart, simplifies the design procedure of chart, improves efficiency, flexibility ratio and operability that chart generates.
Fig. 7 is a kind of block diagram of chart generating means shown according to an exemplary embodiment, as shown in fig. 7, the device
200 include:
Descriptive model creation module 201, the target widget for being selected according to user in list, creation data describe mould
Type, data descriptive model include the attribute that control is corresponded to for describing reference axis.
Style model creation module 202, the chart attribute for being inputted according to user create chart style model.
Generation module 203, for according to the corresponding data of target widget, data descriptive model and chart style model, life
At chart.
Fig. 8 is the block diagram of another chart generating means shown according to an exemplary embodiment, as shown in figure 8, generating
Module 203 includes:
Filtering model creates submodule 2031, and the first filter condition for being inputted according to user creates data filtering mould
Type.
Filter submodule 2032, for being screened to the corresponding data of target widget according to data filtering model.
Submodule 2033 is generated, for according to the corresponding data of target widget, data descriptive model and the figure by screening
Table style model generates chart.
Fig. 9 is the block diagram of another chart generating means shown according to an exemplary embodiment, as shown in figure 9, the dress
Set 200 further include:
Filtering model creation module 204, for according to the corresponding data of target widget, data descriptive model and chart sample
Formula model after generating chart, according to the second filter condition that user inputs, creates user filtering model.
Filtering module 205, for being screened to the corresponding data of target widget according to user filtering model.
Update module 206, for according to the corresponding data of target widget, data descriptive model and the chart sample by screening
Formula model updates chart.
Figure 10 is the block diagram of another chart generating means shown according to an exemplary embodiment, as shown in Figure 10, raw
Include: at module 203
Model sending submodule 2034, for data descriptive model to be sent to backstage by foreground.
Submodule 2035 is analyzed, for dividing using data descriptive model the corresponding data of target widget by backstage
Analysis, so that target data corresponding with data descriptive model in the corresponding data of target widget is sent to foreground.
Submodule 2036 is rendered, for rendering according to chart style model to target data by foreground, generates figure
Table.
Optionally, data descriptive model includes: attribute of the target widget in list, the attribute of reference axis and to target control
The Processing Algorithm of the corresponding data of part.
Chart style model includes: at least one of chart title, subtype, sortord, display rule.
Optionally, the first filter condition or the second filter condition include: in list by filter controls, filter condition, mistake
At least one of rule is filtered, data filtering model or user filtering model include: model name, the data class by filter controls
Type, by least one of the corresponding number in list of filter controls, filter condition, filtering rule.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
In conclusion the disclosure passes through the target widget that user selects from list, it include description reference axis to create
The data descriptive model of the attribute of corresponding control creates chart style model further according to the chart attribute of user's input, finally
Chart is generated by the corresponding data of target widget in chart and data descriptive model, chart style model.It can be according to user
Demand customizes chart, simplifies the design procedure of chart, improves efficiency, flexibility ratio and operability that chart generates.
Figure 11 is the block diagram of a kind of electronic equipment 300 shown according to an exemplary embodiment.As shown in figure 11, the electronics
Equipment 300 may include: processor 301, memory 302.The electronic equipment 300 can also include multimedia component 303, defeated
Enter/export one or more of (I/O) interface 304 and communication component 305.
Wherein, processor 301 is used to control the integrated operation of the electronic equipment 300, to complete above-mentioned chart generation side
All or part of the steps in method.Memory 302 is for storing various types of data to support the behaviour in the electronic equipment 300
To make, these data for example may include the instruction of any application or method for operating on the electronic equipment 300, with
And the relevant data of application program, such as contact data, the message of transmitting-receiving, picture, audio, video etc..The memory 302
It can be realized by any kind of volatibility or non-volatile memory device or their combination, such as static random-access is deposited
Reservoir (Static Random Access Memory, abbreviation SRAM), electrically erasable programmable read-only memory
(Electrically Erasable Programmable Read-Only Memory, abbreviation EEPROM), erasable programmable
Read-only memory (Erasable Programmable Read-Only Memory, abbreviation EPROM), programmable read only memory
(Programmable Read-Only Memory, abbreviation PROM), and read-only memory (Read-Only Memory, referred to as
ROM), magnetic memory, flash memory, disk or CD.Multimedia component 303 may include screen and audio component.Wherein
Screen for example can be touch screen, and audio component is used for output and/or input audio signal.For example, audio component may include
One microphone, microphone is for receiving external audio signal.The received audio signal can be further stored in storage
Device 302 is sent by communication component 305.Audio component further includes at least one loudspeaker, is used for output audio signal.I/O
Interface 304 provides interface between processor 301 and other interface modules, other above-mentioned interface modules can be keyboard, mouse,
Button etc..These buttons can be virtual push button or entity button.Communication component 305 is for the electronic equipment 300 and other
Wired or wireless communication is carried out between equipment.Wireless communication, such as Wi-Fi, bluetooth, near-field communication (Near Field
Communication, abbreviation NFC), 2G, 3G or 4G or they one or more of combination, therefore corresponding communication
Component 305 may include: Wi-Fi module, bluetooth module, NFC module.
In one exemplary embodiment, electronic equipment 300 can be by one or more application specific integrated circuit
(Application Specific Integrated Circuit, abbreviation ASIC), digital signal processor (Digital
Signal Processor, abbreviation DSP), digital signal processing appts (Digital Signal Processing Device,
Abbreviation DSPD), programmable logic device (Programmable Logic Device, abbreviation PLD), field programmable gate array
(Field Programmable Gate Array, abbreviation FPGA), controller, microcontroller, microprocessor or other electronics member
Part is realized, for executing above-mentioned chart generation method.
In a further exemplary embodiment, a kind of computer readable storage medium including program instruction is additionally provided, it should
The step of above-mentioned chart generation method is realized when program instruction is executed by processor.For example, the computer readable storage medium
It can be the above-mentioned memory 302 including program instruction, above procedure instruction can be executed by the processor 301 of electronic equipment 300
To complete above-mentioned chart generation method.
In conclusion the disclosure passes through the target widget that user selects from list, it include description reference axis to create
The data descriptive model of the attribute of corresponding control creates chart style model further according to the chart attribute of user's input, finally
Chart is generated by the corresponding data of target widget in chart and data descriptive model, chart style model.It can be according to user
Demand customizes chart, simplifies the design procedure of chart, improves efficiency, flexibility ratio and operability that chart generates.
The preferred embodiment of the disclosure is described in detail in conjunction with attached drawing above, still, the disclosure is not limited to above-mentioned reality
The detail in mode is applied, in the range of the technology design of the disclosure, those skilled in the art are considering specification and practice
After the disclosure, it is readily apparent that other embodiments of the disclosure, belongs to the protection scope of the disclosure.
It is further to note that specific technical features described in the above specific embodiments, in not lance
In the case where shield, it can be combined in any appropriate way.Simultaneously between a variety of different embodiments of the disclosure
Any combination can also be carried out, as long as it, without prejudice to the thought of the disclosure, equally should be considered as disclosure disclosure of that.
The disclosure is not limited to the precision architecture being described above out, and the scope of the present disclosure is only limited by the attached claims
System.
Claims (10)
1. a kind of chart generation method, which is characterized in that the described method includes:
According to the target widget that user in list selects, data descriptive model is created, the data descriptive model includes for retouching
State the attribute that reference axis corresponds to control;
According to the chart attribute that user inputs, chart style model is created;
According to the corresponding data of the target widget, the data descriptive model and the chart style model, chart is generated.
2. the method according to claim 1, wherein it is described according to the corresponding data of the target widget, it is described
Data descriptive model and the chart style model generate chart, comprising:
According to the first filter condition that user inputs, data filtering model is created;
According to the data filtering model, the corresponding data of the target widget are screened;
According to by screening the corresponding data of the target widget, the data descriptive model and the chart style model,
Generate the chart.
3. according to the method described in claim 2, it is characterized in that, described according to the corresponding data of the target widget, institute
Data descriptive model and the chart style model are stated, after generating chart, the method also includes:
According to the second filter condition that user inputs, user filtering model is created;
According to the user filtering model, the corresponding data of the target widget are screened;
According to by screening the corresponding data of the target widget, the data descriptive model and the chart style model,
Update the chart.
4. method according to any one of claim 1-3, which is characterized in that described corresponding according to the target widget
Data, the data descriptive model and the chart style model generate chart, comprising:
The data descriptive model is sent to backstage by foreground;
The corresponding data of the target widget are analyzed using the data descriptive model by the backstage, so as to by institute
It states target data corresponding with the data descriptive model in the corresponding data of target widget and is sent to the foreground;
The target data is rendered according to the chart style model by the foreground, generates the chart.
5. method according to any one of claim 1-3, which is characterized in that the data descriptive model includes: described
Attribute and the Processing Algorithm to the corresponding data of the target widget of attribute of the target widget in the list, reference axis;
The chart style model includes: at least one of chart title, subtype, sortord, display rule.
6. according to the method described in claim 3, it is characterized in that, first filter condition or the second filter condition packet
Include: in the list by least one of filter controls, filter condition, filtering rule, the data filtering model or institute
State user filtering model include: model name, it is described by the data type of filter controls, it is described corresponding described by filter controls
At least one of number, the filter condition, the filtering rule in list.
7. a kind of chart generating means, which is characterized in that described device includes:
Descriptive model creation module, the target widget for being selected according to user in list, creates data descriptive model, the number
It include the attribute that control is corresponded to for describing reference axis according to descriptive model;
Style model creation module, the chart attribute for being inputted according to user create chart style model;
Generation module, for according to the corresponding data of the target widget, the data descriptive model and the chart style mould
Type generates chart.
8. device according to claim 7, which is characterized in that the generation module includes:
Filtering model creates submodule, and the first filter condition for being inputted according to user creates data filtering model;
Filter submodule, for being screened to the corresponding data of the target widget according to the data filtering model;
Submodule is generated, for according to the corresponding data of the target widget, the data descriptive model and the institute by screening
Chart style model is stated, the chart is generated.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
The step of any one of claim 1-6 the method is realized when row.
10. a kind of electronic equipment characterized by comprising
Memory is stored thereon with computer program;
Processor, for executing the computer program in the memory, to realize described in any one of claim 1-6
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810996008.6A CN109325220A (en) | 2018-08-29 | 2018-08-29 | Chart generation method, device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810996008.6A CN109325220A (en) | 2018-08-29 | 2018-08-29 | Chart generation method, device, storage medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109325220A true CN109325220A (en) | 2019-02-12 |
Family
ID=65264342
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810996008.6A Pending CN109325220A (en) | 2018-08-29 | 2018-08-29 | Chart generation method, device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109325220A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110674227A (en) * | 2019-09-20 | 2020-01-10 | 上海东方富联科技有限公司 | Method, system, medium and terminal for generating data visualization chart and page |
CN111339463A (en) * | 2020-02-19 | 2020-06-26 | 望海康信(北京)科技股份公司 | List data display method and device and electronic equipment |
CN112883698A (en) * | 2021-03-22 | 2021-06-01 | 京东数字科技控股股份有限公司 | Chart generation method and device, computer equipment and storage medium |
CN113901561A (en) * | 2021-10-27 | 2022-01-07 | 广州山水比德设计股份有限公司 | Seedling table generation method and device and drawing operation system |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040252136A1 (en) * | 2003-06-13 | 2004-12-16 | Ankur Bhatt | Designing and generating charts to graphically represent data in a data source |
CN1801137A (en) * | 2004-12-20 | 2006-07-12 | 微软公司 | Method and system for applying a global formatting scheme to a chart in an electronic document |
US7840600B1 (en) * | 2006-12-29 | 2010-11-23 | Izenda, LLC | Systems and methods for interactively creating, customizing, and executing reports over the internet |
US20140040805A1 (en) * | 2012-08-02 | 2014-02-06 | International Business Machines Corporation | Chart generation based on user control inferences |
CN103778249A (en) * | 2014-02-18 | 2014-05-07 | 华为技术有限公司 | Report customization method and mobile terminal |
CN106155988A (en) * | 2015-03-31 | 2016-11-23 | 阿里巴巴集团控股有限公司 | Data drawing list method for drafting based on excel and relevant apparatus |
CN106598988A (en) * | 2015-10-16 | 2017-04-26 | 阿里巴巴集团控股有限公司 | Data processing method and device |
CN107451272A (en) * | 2017-08-03 | 2017-12-08 | 网易(杭州)网络有限公司 | Information displaying method, medium, device and computing device |
CN108153886A (en) * | 2017-12-28 | 2018-06-12 | 北京恒泰实达科技股份有限公司 | User-defined visual methods of exhibiting of the real time data in web applications |
US20180165851A1 (en) * | 2016-12-09 | 2018-06-14 | Dropbox, Inc. | Automated chart generation within a document generation application |
-
2018
- 2018-08-29 CN CN201810996008.6A patent/CN109325220A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040252136A1 (en) * | 2003-06-13 | 2004-12-16 | Ankur Bhatt | Designing and generating charts to graphically represent data in a data source |
CN1801137A (en) * | 2004-12-20 | 2006-07-12 | 微软公司 | Method and system for applying a global formatting scheme to a chart in an electronic document |
US7840600B1 (en) * | 2006-12-29 | 2010-11-23 | Izenda, LLC | Systems and methods for interactively creating, customizing, and executing reports over the internet |
US20140040805A1 (en) * | 2012-08-02 | 2014-02-06 | International Business Machines Corporation | Chart generation based on user control inferences |
CN103778249A (en) * | 2014-02-18 | 2014-05-07 | 华为技术有限公司 | Report customization method and mobile terminal |
CN106155988A (en) * | 2015-03-31 | 2016-11-23 | 阿里巴巴集团控股有限公司 | Data drawing list method for drafting based on excel and relevant apparatus |
CN106598988A (en) * | 2015-10-16 | 2017-04-26 | 阿里巴巴集团控股有限公司 | Data processing method and device |
US20180165851A1 (en) * | 2016-12-09 | 2018-06-14 | Dropbox, Inc. | Automated chart generation within a document generation application |
CN107451272A (en) * | 2017-08-03 | 2017-12-08 | 网易(杭州)网络有限公司 | Information displaying method, medium, device and computing device |
CN108153886A (en) * | 2017-12-28 | 2018-06-12 | 北京恒泰实达科技股份有限公司 | User-defined visual methods of exhibiting of the real time data in web applications |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110674227A (en) * | 2019-09-20 | 2020-01-10 | 上海东方富联科技有限公司 | Method, system, medium and terminal for generating data visualization chart and page |
CN111339463A (en) * | 2020-02-19 | 2020-06-26 | 望海康信(北京)科技股份公司 | List data display method and device and electronic equipment |
CN111339463B (en) * | 2020-02-19 | 2023-07-04 | 望海康信(北京)科技股份公司 | Display method and device of list data and electronic equipment |
CN112883698A (en) * | 2021-03-22 | 2021-06-01 | 京东数字科技控股股份有限公司 | Chart generation method and device, computer equipment and storage medium |
CN112883698B (en) * | 2021-03-22 | 2024-02-06 | 京东科技控股股份有限公司 | Chart generation method, apparatus, computer device and storage medium |
CN113901561A (en) * | 2021-10-27 | 2022-01-07 | 广州山水比德设计股份有限公司 | Seedling table generation method and device and drawing operation system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109325220A (en) | Chart generation method, device, storage medium and electronic equipment | |
CN104679519B (en) | Graphical user interface software function acquisition methods and device | |
CN109062567B (en) | B/S structure-based information management system rapid development platform | |
CN106599039B (en) | Statistical representation method supporting free combination nesting of relational database data | |
CN110489116A (en) | A kind of rendering method of the page, device and computer storage medium | |
CN107423061A (en) | A kind of list generation method based on ISON data | |
CN105009078A (en) | Building applications for configuring processes | |
CN108268525A (en) | A kind of report implementation method and device based on Excel template | |
CN107766310B (en) | Grid cell editing method and device | |
CN103793226B (en) | Pervasive application code framework fast-generating method and prototype system | |
US9501462B2 (en) | Form object having form representation and grid representation of form | |
CN110018826A (en) | User interface creating method and relevant device | |
US20100077325A1 (en) | In Situ Editing of GUI Features | |
CN113268227A (en) | Zero-code visualization software development platform and development method | |
Desolda et al. | End-user composition of interactive applications through actionable UI components | |
CN114239524A (en) | Questionnaire generation method, questionnaire generation device, computer equipment and storage medium | |
CN106407172A (en) | XML (Extensible Markup Language)-based report generating method | |
CN106484389A (en) | Stream of action sectional management | |
Radeke et al. | PIM Tool: Support for pattern-driven and model-based UI development | |
EP3786810A1 (en) | Automatic generation of computing artifacts for data analysis | |
US9082104B2 (en) | Method and apparatus for managing system specifications | |
CN106843846A (en) | A kind of MX frame pages designer and method for designing | |
CN110457023A (en) | Task creation method, apparatus, storage medium and electronic equipment | |
Khan et al. | A retargetable model-driven framework for the development of mobile user interfaces | |
CN113971053B (en) | Component configuration method, device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190212 |
|
RJ01 | Rejection of invention patent application after publication |