Code execution logic | Call logic
- The saved chart runs on the production page to obtain csv, query results and other data, and calls slice_json under the superset class in views.core.py
- The get_payloa d method under the BaseViz class comprehensively calls the methods of the class and returns the final data ; the data required for the chart is processed by calling the get_data method; the chart configuration parameters are called by the query_obj method
- The query_obj method under the BaseViz class processes the incoming form_data, which is the parameter configuration content of the page; the inherited chart subclass rewrites this method, detects the form_data content, and prompts the user with the current chart parameter configuration method through appropriate error information
- The get_data method under the BaseViz class, which is rewritten by the inherited chart subclass, can process the incoming visual configuration items , or further modify the query results . The final result is the data received by the front end