master_template/public/assets/js/pages/dashboard-nft.init.js

1 line
7.5 KiB
JavaScript
Raw Normal View History

2024-06-10 12:21:58 +00:00
function getChartColorsArray(e){if(null!==document.getElementById(e)){var r=document.getElementById(e).getAttribute("data-colors");if(r)return(r=JSON.parse(r)).map(function(e){var r=e.replace(" ","");return-1===r.indexOf(",")?getComputedStyle(document.documentElement).getPropertyValue(r)||r:2==(e=e.split(",")).length?"rgba("+getComputedStyle(document.documentElement).getPropertyValue(e[0])+","+e[1]+")":r});console.warn("data-colors atributes not found on",e)}}var options1,chart1,options,chart,worldemapmarkers,areachartmini1Colors=getChartColorsArray("mini-chart-1"),areachartmini2Colors=(areachartmini1Colors&&(options1={series:[{data:[25,66,41,89,63,25,44,12]}],chart:{type:"line",width:80,height:30,sparkline:{enabled:!0}},colors:areachartmini1Colors,stroke:{curve:"smooth",width:2.3},tooltip:{fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:function(e){return""}}},marker:{show:!1}}},(chart1=new ApexCharts(document.querySelector("#mini-chart-1"),options1)).render()),getChartColorsArray("mini-chart-2")),areachartmini3Colors=(areachartmini2Colors&&(options1={series:[{data:[50,15,35,62,23,56,44,12]}],chart:{type:"line",width:80,height:30,sparkline:{enabled:!0}},colors:areachartmini2Colors,stroke:{curve:"smooth",width:2.3},tooltip:{fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:function(e){return""}}},marker:{show:!1}}},(chart1=new ApexCharts(document.querySelector("#mini-chart-2"),options1)).render()),getChartColorsArray("mini-chart-3")),areachartmini4Colors=(areachartmini3Colors&&(options1={series:[{data:[25,35,35,89,63,25,44,12]}],chart:{type:"line",width:80,height:30,sparkline:{enabled:!0}},colors:areachartmini3Colors,stroke:{curve:"smooth",width:2.3},tooltip:{fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:function(e){return""}}},marker:{show:!1}}},(chart1=new ApexCharts(document.querySelector("#mini-chart-3"),options1)).render()),getChartColorsArray("mini-chart-4")),areachartmini5Colors=(areachartmini4Colors&&(options1={series:[{data:[50,15,20,34,23,56,65,41]}],chart:{type:"line",width:80,height:30,sparkline:{enabled:!0}},colors:areachartmini4Colors,stroke:{curve:"smooth",width:2.3},tooltip:{fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:function(e){return""}}},marker:{show:!1}}},(chart1=new ApexCharts(document.querySelector("#mini-chart-4"),options1)).render()),getChartColorsArray("mini-chart-5")),areachartmini6Colors=(areachartmini5Colors&&(options1={series:[{data:[45,53,24,89,63,60,36,50]}],chart:{type:"line",width:80,height:30,sparkline:{enabled:!0}},colors:areachartmini5Colors,stroke:{curve:"smooth",width:2.3},tooltip:{fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:function(e){return""}}},marker:{show:!1}}},(chart1=new ApexCharts(document.querySelector("#mini-chart-5"),options1)).render()),getChartColorsArray("mini-chart-6")),areachartmini7Colors=(areachartmini6Colors&&(options1={series:[{data:[50,15,35,62,23,56,44,12]}],chart:{type:"line",width:80,height:30,sparkline:{enabled:!0}},colors:areachartmini6Colors,stroke:{curve:"smooth",width:2.3},tooltip:{fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:function(e){return""}}},marker:{show:!1}}},(chart1=new ApexCharts(document.querySelector("#mini-chart-6"),options1)).render()),getChartColorsArray("mini-chart-7")),areachartmini8Colors=(areachartmini7Colors&&(options1={series:[{data:[50,15,20,34,23,56,65,41]}],chart:{type:"line",width:80,height:30,sparkline:{enabled:!0}},colors:areachartmini7Colors,stroke:{curve:"smooth",width:2.3},tooltip:{fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:function(e){return""}}},marker:{show:!1}}},(chart1=new ApexCharts(document.querySelector("#mini-chart-7"),options1)).render()),getChartColorsArray("mini-chart-8")),dealTypeChartsColors=(areachartmini8Colors&&(options1={series:[{data:[45,53,24,89,63,60,36,50]}],chart:{type:"line",width:80,height:30,sparkline:{enabled:!0}},colors:areachartmini8Colors,stroke:{curve:"smooth",width:2.3},tooltip:{fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:function(e){return""}}},marker:{show:!1}}},(chart1=new ApexCharts(document.querySelector("#mini-chart-8"),options1)).render()),