Summary of the invention
Technical problems to be solved in this application are to provide a kind of making data drawing list method and system, in order to solve chart display only simple in prior art, and need a large amount of code to write, make the problem that the efficiency of data drawing list is not high.
Present invention also provides a kind of system making data drawing list, in order to ensure said method implementation and application in practice.
In order to solve the problem, this application discloses a kind of method making data drawing list, the method comprises:
The data that the user received is imported into are encapsulated, the interface of the data after encapsulating and FusionCharts is matched;
Determine the to be produced subtype corresponding with the data that described user is imported into, utilize the interface data after described encapsulation, set up the schematic models corresponding with described subtype to be produced;
Generate the XML data that the schematic models of described chart are corresponding;
The data analysis statistics described user received imported into, generates the analysis statisticaling data bag corresponding with the data that described user is imported into;
Call the label matched with the XML data of described generation preset in tag library and generate, with the statistical graph of analysis statisticaling data bag corresponding to the data generated with described user is imported into and analysis chart.
Generate the XML data corresponding with described schematic models to comprise:
Velocity template is utilized automatically to load described interface data;
Generate the XML data corresponding with described schematic models.
The default label matched with described XML data that generates comprises:
XML data corresponding for described schematic models is carried out URL coding;
Data after described URL coding are stored in tag library with the form of tag parameter;
Generate the label matched with described XML data.
Also comprise: the statistical graph of the analysis statisticaling data bag that the data described and described user imported into are corresponding and analysis chart show on human-computer interaction interface.
A kind of making data drawing list system, this system comprises:
Data module, encapsulates for the data user received imported into, and the interface of the data after encapsulating and FusionCharts is matched;
Chart module, for utilizing the interface data after described encapsulation, sets up schematic models, and described schematic models are corresponding with the subtype of needs;
Nucleus module, the XML data that the schematic models for generating described chart are corresponding;
Business module, for the data analysis statistics described user received imported into, generates the analysis statisticaling data bag corresponding with the data that described user is imported into;
Views module, for calling the default label matched with the XML data of described generation that is that generate in tag library, has generated statistical graph and the analysis chart of the analysis statisticaling data bag corresponding with the data that described user is imported into.
Preferably, described core business module comprises: Velocity template;
Described Velocity template, for described interface data is added back(ing) board automatically, generates the XML data corresponding with the schematic models of described chart.
Preferably, described views module comprises: JSP tag library template;
Data after described URL coding for XML data corresponding for described schematic models is carried out URL coding, and are stored in tag library template with the form of tag parameter by described JSP tag library template.
As can be seen from the above technical solutions, in the application, propose a kind of method and system making data drawing list, the data that the user received is imported into are encapsulated, the interface of the data after encapsulating and FusionCharts is matched, determine the to be produced subtype corresponding with the data that described user is imported into, utilize the interface data after described encapsulation, set up the schematic models corresponding with described subtype to be produced, generate the XML data that described schematic models are corresponding, the data analysis statistics that the described user received is imported into, generate the analysis statisticaling data bag corresponding with the data that described user is imported into, call the label matched with the XML data of described generation in tag library, to generate statistical graph and the analysis chart of the analysis statisticaling data bag corresponding with the data that described user is imported into, described statistical graph and analysis chart are shown on human-computer interaction interface, it can not be simple chart display in the process generating described statistical graph and analysis chart, also add business diagnosis statistical function, and do not need a large amount of codes to write, improve the efficiency making data drawing list.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, be clearly and completely described the technical scheme in the embodiment of the present application, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of the application's protection.
The application can be used in numerous general or special purpose calculation element environment or configuration.Such as: personal computer, server computer, handheld device or portable set, laptop device, multi-processor device, the distributed computing environment comprising above any device or equipment etc.
The application can describe in the general context of computer executable instructions, such as program module.Usually, program module comprises the routine, program, object, assembly, data structure etc. that perform particular task or realize particular abstract data type.Also can put into practice the application in a distributed computing environment, in these distributed computing environment, be executed the task by the remote processing devices be connected by communication network.In a distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium comprising memory device.
The application's main thought can comprise, the data that the user received is imported into are encapsulated, the interface of the data after encapsulating and FusionCharts is matched, determine the to be produced schematic models corresponding with the data that described user is imported into, utilize the interface data after described encapsulation, set up the schematic models corresponding with described subtype to be produced, generate the XML data that the schematic models of described chart are corresponding, the data analysis statistics that the described user received is imported into, generate the analysis statisticaling data bag corresponding with the data that described user is imported into, call the default label matched with the XML data of described generation that is that generate in tag library, to generate statistical graph and the analysis chart of the analysis statisticaling data bag corresponding with the data that described user is imported into.
With reference to figure 1, show a kind of process flow diagram making the embodiment of the method 1 of data drawing list of the application, can comprise the following steps:
Step S101: the data that the user received is imported into encapsulated, makes the interface of the data after encapsulating and FusionCharts match;
Step S102: determine the to be produced subtype corresponding with the data that described user is imported into, utilize the interface data after described encapsulation, sets up the schematic models corresponding with described subtype to be produced;
Step S103: generate the XML data that the schematic models of described chart are corresponding;
Step S104: the data analysis statistics described user received imported into, generates the analysis statisticaling data bag corresponding with the data that described user is imported into;
Step S105: call the label matched with the XML data of described generation preset in tag library and generate, with the statistical graph of analysis statisticaling data bag corresponding to the data generated with described user is imported into and analysis chart.
In above-mentioned method, achieve a kind of method making data drawing list, in the method, analytic statistics has been carried out for described interface data, generate the analysis statisticaling data bag corresponding with the data that described user is imported into, for when calling the XML data corresponding with described schematic models, use matching label with XML data of presetting in tag library, generate statistical graph and the analysis chart of the analysis statisticaling data bag corresponding with the data that described user is imported into, so be no longer simple chart display, also add business diagnosis statistical function, and do not need to carry out a large amount of codes and write, just can complete the making of data drawing list, improve the efficiency making data drawing list.
Show in the application with reference to figure 2, Fig. 2, generate the XML data corresponding with described schematic models and comprise:
Step S201: the data that the user received is imported into encapsulated, makes the interface of the data after encapsulating and FusionCharts match;
Step S202: determine the to be produced subtype corresponding with the data that described user is imported into, utilize the interface data after described encapsulation, sets up the schematic models corresponding with described subtype to be produced;
Step S203: utilize Velocity template automatically to load described interface data;
Step S204: generate the XML data corresponding with described schematic models;
Step S205: the data analysis statistics described user received imported into, generates the analysis statisticaling data bag corresponding with the data that described user is imported into;
Step S206: call the label matched with the XML data of described generation preset in tag library and generate, with the statistical graph of analysis statisticaling data bag corresponding to the data generated with described user is imported into and analysis chart;
Step S207: the statistical graph of the analysis statisticaling data bag that the data described and described user imported into are corresponding and analysis chart show on human-computer interaction interface.
In said method, achieve a kind of method making data drawing list, in the process making data drawing list, analytic statistics has been carried out to described interface data, Velocity template is utilized automatically to load described interface data, generate the XML data corresponding with described schematic models, decrease the XML data file of a large amount of splicing, when generating statistical graph and the analysis chart of the analysis statisticaling data bag corresponding with the described data imported into, shown by man-machine interface, but be no longer simple chart display, also add business diagnosis statistical function, also reduce writing of code, improve the efficiency making data drawing list.
Show in the application with reference to figure 3, Fig. 3, the default label matched with described XML data that generates comprises:
Step S301: the data that the user received is imported into encapsulated, makes the interface of the data after encapsulating and FusionCharts match;
Step S302: determine the to be produced subtype corresponding with the data that described user is imported into, utilize the interface data after described encapsulation, sets up the schematic models corresponding with described subtype to be produced;
Step S303: utilize Velocity template automatically to load described interface data;
Step S304: generate the XML data corresponding with described schematic models;
Step S305: the data analysis statistics described user received imported into, generates the analysis statisticaling data bag corresponding with the data that described user is imported into;
Step S306: XML data corresponding for described schematic models is carried out URL coding;
Step S307: the data after described URL coding are stored in tag library with the form of tag parameter;
Step S308: generate the label matched with described XML data;
Step S309: call the default label matched with the XML data of described generation that is that generate in tag library, show statistical graph and the analysis chart of the analysis statisticaling data bag corresponding with the data that described user is imported into;
Step S310: the statistical graph of the analysis statisticaling data bag that the data described and described user imported into are corresponding and analysis chart show on human-computer interaction interface.
In said method, the basis of embodiment 2 achieves a kind of method making data drawing list, in the process making data drawing list, analytic statistics has been carried out to described interface data, preset the label generating and match with described XML data, XML data corresponding for described schematic models is carried out URL coding, data after described URL coding are stored in tag library with the form of tag parameter, generate the label matched with described XML data, decrease writing of Javascript code, and when generating statistical graph and the analysis chart of the analysis statisticaling data bag corresponding with the described data imported into, it is no longer simple chart display, also add business diagnosis statistical function, improve the efficiency making data drawing list.
For aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the application is not by the restriction of described sequence of movement, because according to the application, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be that the application is necessary.
Be directed to concrete operations environment, the data that the user received is imported into are encapsulated, the interface of the data after encapsulating and FusionCharts is matched, determine the to be produced subtype corresponding with the data that described user is imported into, utilize the interface data after described encapsulation, set up the schematic models corresponding with described subtype to be produced, Velocity template is utilized automatically to add back(ing) board described interface data, generate the XML data that the schematic models of described chart are corresponding, and by data analysis that the described user received is imported into, generate the analysis statisticaling data bag corresponding with the data that described user is imported into, XML data corresponding for described schematic models is carried out URL coding, data after described URL coding are stored in tag library with the form of tag parameter, generate the label matched with described XML data, for the label that default generation and described XML data match, thisly to be suitable for being used in tag library corresponding with subtype label, so the label corresponding with described XML data will be preset, above operating environment is in consistency operation.
Relative to the operation on backstage, input label statement during foregrounding, namely the label matched with the XML data of described generation in JSP tag library can be called, generate statistical graph and the analysis chart of the analysis statisticaling data bag corresponding with the data that described user is imported into, human-computer interaction interface shows.
A kind of to make the method that data drawing list embodiment of the method 1 provides corresponding with above-mentioned the application, and see Fig. 4, present invention also provides a kind of system embodiment 1 making data drawing list, in the present embodiment, this system can comprise:
Data module 401, chart module 402, nucleus module 403, business module 404 and views module 405;
Wherein:
Data module 401 encapsulates for the data user received imported into, and the interface of the data after encapsulating and FusionCharts is matched;
Chart module 402, for subtype to be produced corresponding to the data determined with described user is imported into, utilizes the interface data after described encapsulation, sets up the schematic models corresponding with described subtype to be produced;
Nucleus module 403 is for XML data corresponding to the schematic models that generate described chart;
The data analysis of business module 404 for the described user received being imported into, generates the statistical graph corresponding with the data that described user is imported into and analysis chart;
Views module 405, for calling the default label matched with the XML data of described generation that is that generate in tag library, generates statistical graph and the analysis chart of the analysis statisticaling data bag corresponding with the data that described user is imported into.
In above-mentioned system, achieve a kind of system making data drawing list, include data module, chart module, nucleus module, business module and views module, data module is utilized the data that the user received is imported into be encapsulated, the interface of the data after encapsulating and FusionCharts is matched, icon module is for subtype to be produced corresponding to the data determined with described user is imported into, utilize the interface data after described encapsulation, set up the schematic models corresponding with described subtype to be produced, nucleus module, for the XML data that the schematic models generating described chart are corresponding, business module, for the data analysis that the described user received is imported into, generate the statistical graph corresponding with the data that described user is imported into and analysis chart, views module, for calling the default label matched with the XML data of described generation that is that generate in tag library, generate statistical graph and the analysis chart of the analysis statisticaling data bag corresponding with the data that described user is imported into, and shown by man-machine interface.In this system, for when generating the XML data corresponding with described schematic models, Velocity template is utilized automatically to load described interface data, generate in the label matched with the XML data of described generation, from tag library, have invoked default label, so simplify the process of writing code, and be no longer simple chart display, also add business diagnosis statistical function, complete the making of data drawing list, improve the efficiency making data drawing list.
See Fig. 5, preferably, in the system of the making data drawing list described in the embodiment of the present application 2, nucleus module 403 comprises: Velocity template 406;
Velocity template 406, for described interface data is added back(ing) board automatically, generates the XML data corresponding with the schematic models of described chart;
Preferably, in the system of the making data drawing list described in the embodiment of the present application 2, views module 405 comprises: JSP tag library template 407;
Data after described URL coding for XML data corresponding for described schematic models is carried out URL coding, and are stored in tag library template with the form of tag parameter by JSP tag library template 407.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For device class embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades 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.
For convenience of description, various unit is divided into describe respectively with function when describing above device.Certainly, the function of each unit can be realized in same or multiple software and/or hardware when implementing the application.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the application can add required general hardware platform by software and realizes.Based on such understanding, the technical scheme of the application can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the application or embodiment.
Above a kind of method and system making data drawing list that the application provides are described in detail, apply specific case herein to set forth the principle of the application and embodiment, the explanation of above embodiment is just for helping method and the core concept thereof of understanding the application; Meanwhile, for one of ordinary skill in the art, according to the thought of the application, all will change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application.