(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d208896"],{a4e2:function(e,t,a){"use strict";a.r(t);var c=a("7a23");const n={class:"data-designer-chart-instance data-designer-chart-view-scatter",ref:"designerChartViewRef"},i={class:"data-designer-chart-container",ref:"designerChartViewInnerRef"};function r(e,t,a,r,l,s){return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",n,[Object(c["createElementVNode"])("div",i,null,512)],512)}var l=a("f04e"),s=a("917c"),h=a("a955"),o=a("3b20"),d=a("6fde"),u=Object(c["defineComponent"])({props:Object.assign(Object.assign({},o["h"].props),{setChartInstance:{type:Function}}),data(){return{chartType:[h["N"].SCATTER_SERIES]}},mixins:[o["h"]],setup(e,{emit:t}){const a=Object(c["ref"])(),n=Object(c["ref"])(null),i=Object(c["ref"])(null);function r(){return a.value=new s["Chart"](Object.assign(Object.assign(Object.assign({},Object(o["f"])()),e.chartCfg||{}),{container:i.value})),a.value.interaction("legend-highlight"),a.value.on("element:click",t=>{var a,c;const n=Object(o["w"])(t.data.data,null===(a=e.getCurrentDrillDownConfig)||void 0===a?void 0:a.call(e),e.chartData.id);n&&(null===(c=e.pushBreadcrumbEvent)||void 0===c||c.call(e,n)),Object(o["s"])(e.chartData,e.openDomGoto)}),a.value}Object(c["onMounted"])(()=>{r(),Object(o["i"])(n.value,a.value)});let h={};Object(c["watch"])(()=>e.chartData,t=>{var c;t&&a.value&&Object(d["Mc"])(t)&&(e.chartCfg&&e.chartCfg.width&&e.chartCfg.height&&(null===(c=a.value)||void 0===c||c.changeSize(+e.chartCfg.width,e.chartCfg.height)),Object(o["u"])(t,h)?(h=Object(l["U"])(t),f(a.value,t,e.chartDataResult)):h=Object(l["U"])(t))},{immediate:!0,deep:!0}),Object(o["C"])(e,a);let u={};function b(e,t){u=Object(l["U"])(t),a.value||r(),f(a.value,e,t)}function f(t,a,c){var i;Object(o["v"])(a)&&Object(d["Kc"])(a,c.chartData)&&(t.destroy(),t=r(),null===(i=e.setChartInstance)||void 0===i||i.call(e,t),g(t,a),Object(d["p"])(t,e.config,a,c.data),e.chartCfg&&e.chartCfg.width&&e.chartCfg.height&&(null===t||void 0===t||t.changeSize(+e.chartCfg.width,e.chartCfg.height)),t.render(),Object(d["tc"])(a)&&Object(o["i"])(n.value,t))}function g(t,a){t||(t=r());const{scales:c,dimensions:n,firstScale:i,secondScale:l}=Object(d["Kb"])(a);if(c.length){const e=Object(d["V"])(a);t.scale(e)}if(n.length&&c.length&&i&&l){const c=i?i.chartField.displayName:"",n=l?l.chartField.displayName:"",r={fields:[c,n]},s=[],h=[...r.fields],o=t.point().position(r).shape("circle").style({stroke:"#fff",lineWidth:1});o.tooltip(h.join("*")),s.push(o),Object(d["r"])(t,e.config,a,s)}Object(d["s"])(t,e.config,a),Object(d["q"])(t,e.config,a,e.chartDataResult.guidesData),Object(d["n"])(t,e.config,a,i&&i.chartField||void 0,l&&l.chartField||void 0),t.tooltip({shared:!0,showNil:!0,showMarkers:!1,title:n[0].chartField.displayName,showTitle:!0,customItems:e=>Object(d["Eb"])(e,a)}),Object(d["qd"])(t,a,e.config)}return Object(c["watch"])(()=>e.chartDataResult.data,()=>{Object(d["Kc"])(u,e.chartDataResult)||(n.value?b(e.chartData,e.chartDataResult):Object(c["onMounted"])(()=>{b(e.chartData,e.chartDataResult)}))},{immediate:!0,deep:!0}),Object(o["E"])(e,a,g),Object(o["D"])(e,a),Object(c["onBeforeUnmount"])(()=>{a.value.off()}),{designerChartViewRef:n,designerChartViewInnerRef:i,chart:a}}}),b=a("6b0d"),f=a.n(b);const g=f()(u,[["render",r]]);t["default"]=g}}]);