# 事件

# onRenderComplete

  • 参数类型:Function
  • 是否必填:否
  • 默认值:null
  • 描述:图表渲染结束回调函数
<script>
  import Charts from "apex-ui/components/charts/qacharts-min.js";

  let $chart;

  export default {
    onShow() {
      this.initChart();
    },
    initChart() {
      $chart = new Charts({
          ...
          ...
          ...
          onRenderComplete: () => {
            console.log('chart renderComplete')
          },
      });
    }
  };
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21