"use strict";var options={series:[{data:[{x:"New Delhi",y:218},{x:"Kolkata",y:149},{x:"Mumbai",y:184},{x:"Ahmedabad",y:55},{x:"Bangaluru",y:84},{x:"Pune",y:31},{x:"Chennai",y:70},{x:"Jaipur",y:30},{x:"Surat",y:44},{x:"Hyderabad",y:68},{x:"Lucknow",y:28},{x:"Indore",y:19},{x:"Kanpur",y:29}]}],legend:{show:!1},colors:["#5dd89e"],chart:{height:350,type:"treemap",parentHeightOffset:0},title:{text:"Basic Treemap"}},chart=new ApexCharts(document.querySelector("#basic_treemap_chart"),options);chart.render();options={series:[{name:"Desktops",data:[{x:"ABC",y:10},{x:"DEF",y:60},{x:"XYZ",y:41}]},{name:"Mobile",data:[{x:"ABCD",y:10},{x:"DEFG",y:20},{x:"WXYZ",y:51},{x:"PQR",y:30},{x:"MNO",y:20},{x:"CDE",y:30}]}],legend:{show:!1},chart:{height:350,type:"treemap",parentHeightOffset:0},colors:["#5dd89e","#efb100"],title:{text:"Multi-dimensional Treemap",align:"center"}};(chart=new ApexCharts(document.querySelector("#multi_series_chart"),options)).render();options={series:[{data:[{x:"INTC",y:1.2},{x:"GS",y:.4},{x:"CVX",y:-1.4},{x:"GE",y:2.7},{x:"CAT",y:-.3},{x:"RTX",y:5.1},{x:"CSCO",y:-2.3},{x:"JNJ",y:2.1},{x:"PG",y:.3},{x:"TRV",y:.12},{x:"MMM",y:-2.31},{x:"NKE",y:3.98},{x:"IYT",y:1.67}]}],legend:{show:!1},chart:{height:350,type:"treemap",parentHeightOffset:0},title:{text:"Treemap with Color scale"},dataLabels:{enabled:!0,style:{fontSize:"12px"},formatter:function(e,t){return[e,t.value]},offsetY:-4},plotOptions:{treemap:{enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!0,colorScale:{ranges:[{from:-6,to:0,color:"#ad46ff"},{from:.001,to:6,color:"#efb100"}]}}}};(chart=new ApexCharts(document.querySelector("#color_range_chart"),options)).render();options={series:[{data:[{x:"New Delhi",y:218},{x:"Kolkata",y:149},{x:"Mumbai",y:184},{x:"Ahmedabad",y:55},{x:"Bangaluru",y:84},{x:"Pune",y:31},{x:"Chennai",y:70},{x:"Jaipur",y:30},{x:"Surat",y:44},{x:"Hyderabad",y:68},{x:"Lucknow",y:28},{x:"Indore",y:19},{x:"Kanpur",y:29}]}],legend:{show:!1},chart:{height:350,type:"treemap",parentHeightOffset:0},title:{text:"Distibuted Treemap (different color for each cell)",align:"center"},colors:["#5dd89e","#615fff","#ad46ff","#f6339a","#fb2c36","#ff6900","#efb100","#62B7E5","#eb9d59","#adb5bd","#4a5a6b","#C0ADDB"],plotOptions:{treemap:{distributed:!0,enableShades:!1}}};(chart=new ApexCharts(document.querySelector("#distributed_treemap_chart"),options)).render();