| In the Internet era,the digital economy is becoming an important driving force for national economic growth,and enterprise digitalization has become an important strategic choice to support enterprise development and management.With the continuous development of enterprise digitalization,data visualization technology gradually occupies an important position in the application process.At the same time,as an important asset of an enterprise,the application and analysis of data can help enterprises respond to the ever-changing market changes.However,there are still many disadvantages in the application of traditional data visualization technology.For example,it needs to be developed separately for specific scenarios,which is inefficient and has high maintenance costs,it is difficult to select suitable components among many charts,and the single data visualization system is prone to form data islands and cannot tap the potential value of data,etc.This paper combines middle-end technology and "multi-tenancy",and implements a data visualization component system based on the data middle-end design,which has been applied in practical project scenarios.The main work of this paper is as follows:1.In view of the problem of high coupling of existing data visualization systems,this paper completes the extraction and encapsulation of the functions of data visualization components.First,the data visualization function is extracted as the process of combining SQL calculation results and ECHARTS to render into charts,then the SQL is assembled,executed,and the results are encapsulated,finally the visualization charts are classified and managed to realize the data visualization components and achieve high reusability.At the same time,this paper also studies the scalability of multi-source heterogeneous data sources and basic chart library,and adopts support EXCEL resources as data source and chart library template to realize the flexibility of data.2.In order to eliminate the problem of data islands,this paper uses the technical capabilities of the data center to synchronize user behavior logs and business data into the data warehouse through Flume and Sqoop,to achieve the function of basic data support for enterprise decision-making.3.Research and implementation of system security and user security.Based on the above research,this paper designs a multi-tenant architecture,which associates users and data with tenants,and combines with the security framework to achieve user authentication and permission verification.At the same time,a token verification mechanism is added to system calls to ensure system and user security.On this basis,a system tool class is researched and designed to realize the reading function of the database and provide support for the domestic gold warehouse database. |