The invention discloses a method, a
system and equipment for generating ECharts chart resources based on a
server side. The method is executed in a Node.js environment and comprises the following steps: receiving and analyzing a chart generation request; loading an ECharts configuration template and obtaining
original data, and generating a complete
configuration item after
standardization processing; creating a virtual DOM (
Document Object Model) environment and container elements through the JSDOM; creating an off-screen canvas based on Canvas, initializing an ECharts instance and executing rendering; encoding the rendering result into an image
data stream; and performing format
adaptation and distribution according to the terminal type. The invention further provides a cross-end consistency guarantee mechanism, a block rendering optimization mechanism, an intelligent distribution mechanism and the like. Complete decoupling of the ECharts and the
server environment is achieved, static chart resources can be efficiently generated, large data volume
processing is supported, cross-terminal display consistency is ensured, the performance and safety of chart generation are remarkably improved, and the application range of chart generation is remarkably widened.