import{G as g}from"./GraphinaGoogleChartBase.js";class n extends g{setUpChartsHandler(){this.chartHandlers={column_google:e=>this.observeChartElement(e,"ColumnChart")}}observeChartElement(e,o){gcfe_public_localize.view_port==="off"?(this.observer||(this.observer=new IntersectionObserver(t=>{t.forEach(s=>{s.isIntersecting&&(this.setupChart(jQuery(s.target),o),this.observer.unobserve(s.target))})},{threshold:.1})),this.observer.observe(e[0])):this.setupChart(e,o)}getFinalChartOptions(e,o){return e.vAxis.format==="percent"&&(e.vAxis.format="#'%'"),e}setupTableData(e,o,t,s,_){var h,l;((h=e==null?void 0:e.google_chart_data)==null?void 0:h.title_array.length)>0&&((l=e==null?void 0:e.google_chart_data)==null?void 0:l.data.length)>0?(o.addColumn("string",e.google_chart_data.title),e.google_chart_data.title_array.forEach(r=>{o.addColumn("number",r),e.google_chart_data.annotation_show&&o.addColumn({type:"string",role:"annotation"})}),e.google_chart_data.data.forEach(r=>o.addRow(r)),t.show(),s.hide()):e.columns.length>0&&e.rows.length>0?(e.columns.forEach((r,f)=>{o.addColumn(r)}),e.rows.forEach(r=>o.addRow(r))):(t.hide(),s.show())}}window.graphinaGoogleColumnChart=new n;
//# sourceMappingURL=column_google.js.map
