A packaging method to simplify echarts calls
An encapsulation method and module encapsulation technology, applied in the direction of program control devices, execution examples, etc., can solve problems such as waste of efficiency, inability to invest time and manpower, and inefficiency, so as to simplify the number and complexity, reduce the amount of code, and improve development efficiency effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0031] The present invention constructs a batch of json data with html element ID values and corresponding echarts configuration parameters through parameter classification, simplified mapping, definition of default values, and module encapsulation processing; wherein echarts configuration parameters are simplified or original ecological configuration parameters, and call encapsulation The interface in the program parses the json data, and uses echarts to generate charts in batches;
[0032] The batch json data is similar to the following form:
[0033] var config = {"chart1":chart1_config};
[0034] Among them, the key value, chart1, is the ID value of the html element that needs to display the chart, and chart1_config is the echarts configuration parameter corresponding to chart1, which also uses the json format. The configuration parameter is the encapsulated json data and / or the original json data, call the function Determine the type of the current configuration parame...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


