     
     private func resizeDiv() {
         let height = frame.size.height
-        let width = self.frame.size.width
+        let width = frame.size.width
         let divCss = "'height:\(height)px;width:\(width)px;'"
         let jsString = "resizeDiv(\(divCss))"
         callJsMethod(jsString)

    // MARK: - Delegate
    // MARK: UIWebViewDelegate
    public func webView(webView: WKWebView, didFinishNavigation navigation: WKNavigation!) {
        self.callJsMethod("initEchartView()")
        resizeDiv()
        loadFinsih = true
    }

    public func webView(webView: WKWebView, runJavaScriptAlertPanelWithMessage message: String, initiatedByFrame frame: WKFrameInfo, completionHandler: () -> Void) {

    }
    
    public func loadEcharts() {
//        if !loadFinsih && !self.resizeDivFinish { // 如果还没页面加载完则等待 0.05 秒后刷新
//            dispatch_after(UInt64(Double(NSEC_PER_SEC) * 0.05), dispatch_get_main_queue(), { [unowned self] in 
//                self.loadEcharts()
//            })
//            return
//        }
        loadHTMLString(htmlContents, baseURL: NSURL(fileURLWithPath: bundlePath))
    }
    
    public func loadEcharts(with option: Option) {
