| In today’s era of big data,data visualization is to enable people to quickly understand these data and make effective use of them,so as to analyze the hidden value information.The typical data visualization process is divided into three stages:first,the big data developers design the database according to the needs of data visualization and provide data sources;then,the back-end developers query the data sources and package the results into data packages;finally,the front-end engineers develop the visualization page according to the data packages.With the increase of requirements,this kind of lengthy development process will become the key factor affecting the team development efficiency in many times.In addition,most of the codes have high similarity,and the repetitive work is gradually reflected,reducing the development efficiency.To solve the above problems,code generation technology is an effective solution.Code generation technology is a kind of technology that makes use of program to generate code.It focuses on liberating coding productivity and programming with program.Compared with manual code writing,the former greatly improves the code quality of software and the working efficiency of developers.However,the existing code generation tools are difficult to meet the current data visualization development needs.The generated code is only suitable for some parts of the function,and can not run through the whole front and back end of the code module,and generally has the shortcomings of weak pertinence,poor scalability and high learning cost.This project mainly aims at the problems of the above code generation tools,designs a set of specific solutions,and provides a tool implementation.In the process of research and implementation,first of all,the code generation method is studied deeply.By combining fine-grained code blocks according to topology sorting,the front-end code is automatically generated,and by introducing reflection technology and design pattern,the back-end code is automatically deployed.Secondly,a configuration center based on B / S architecture is designed to provide configuration for the code generation module.Then,in order to ensure the reliability and performance of the tool,the tool provides heartbeat monitoring and performance monitoring functions for services.Finally,through the functional test and non functional test of the system,the correctness of visual data and the stability of the system are ensured while each function meets the requirements.This topic can effectively improve the efficiency of programmers in developing data visualization function,and also provide new ideas and guidance for the application of code generation technology in software engineering. |