import{G as m}from"./GraphinaApexChartBase.js";class p extends m{constructor(){super(),this.observer={}}setUpChartsHandler(){this.chartHandlers={heatmap:e=>this.observeChartElement(e,"heatmap")}}applyYAxisFormatter(e,t){const r=t.yaxis_label_prefix??"",s=t.yaxis_label_postfix??"",a=e.series??[];e.yaxis={labels:{formatter:function(l){var n;const i=parseInt(l,10),o=((n=a[i])==null?void 0:n.name)??l;return r+o+s}}}}applyDataLabelFormatter(e,t){let r=t.chart_datalabel_prefix??"",s=t.chart_datalabel_postfix??"";e.dataLabels||(e.dataLabels={}),e.dataLabels.formatter=a=>(t.string_format&&(a=this.formatNumber(a,t.chart_label_pointer_number_for_label)),r+a+s)}applyYAxisFormatter(e,t,r=!1){}getChartOptions(e,t,r,s){return t==="heatmap"&&(e.chart.events={mounted:(a,l)=>{const i=document.querySelector(`.graphina-elementor-chart[data-element_id="${s}"]`);i&&(i.style.height="")}}),e}}window.graphinaHeatmapChart=new p;
//# sourceMappingURL=heatmap.js.map
