function getChartColorsArray(e) { if (null !== document.getElementById(e)) { e = document.getElementById(e).getAttribute("data-colors"); if (e) return (e = JSON.parse(e)).map(function(e) { var t = e.replace(" ", ""); return -1 === t.indexOf(",") ? getComputedStyle(document.documentElement).getPropertyValue(t) || t : 2 == (e = e.split(",")).length ? "rgba(" + getComputedStyle(document.documentElement).getPropertyValue(e[0]) + "," + e[1] + ")" : t }) } } var chartCandlestickBasicColors = getChartColorsArray("basic_candlestick"), chartCandlestickComboColors = (chartCandlestickBasicColors && (options = { series: [{ data: [ { x:'12/22/2022',y:[0.00,0.00,0.00,0.00]},{ x:'12/23/2022',y:[0.00,0.00,0.00,0.00]},{ x:'12/26/2022',y:[0.00,0.00,0.00,0.00]},{ x:'12/27/2022',y:[0.00,0.00,0.00,0.00]},{ x:'12/28/2022',y:[0.00,0.00,0.00,0.00]},{ x:'12/29/2022',y:[0.00,0.00,0.00,0.00]},{ x:'12/30/2022',y:[0.00,0.00,0.00,0.00]},{ x:'01/03/2023',y:[0.00,0.00,0.00,0.00]},{ x:'01/04/2023',y:[0.00,0.00,0.00,0.00]},{ x:'01/05/2023',y:[0.00,0.00,0.00,0.00]},{ x:'01/06/2023',y:[0.00,0.00,0.00,0.00]},{ x:'01/09/2023',y:[0.00,0.00,0.00,0.00]},{ x:'01/10/2023',y:[0.00,0.00,0.00,0.00]},{ x:'01/11/2023',y:[6.99,6.99,6.99,6.99]},{ x:'01/12/2023',y:[6.99,6.99,6.31,6.31]},{ x:'01/13/2023',y:[0.00,0.00,0.00,0.00]},{ x:'01/16/2023',y:[0.00,0.00,0.00,0.00]},{ x:'01/17/2023',y:[5.80,5.80,5.80,5.80]},{ x:'01/30/2023',y:[6.34,6.38,6.34,6.38]},{ x:'01/31/2023',y:[6.40,6.47,6.40,6.47]},{ x:'02/01/2023',y:[7.09,7.09,7.09,7.09]},{ x:'02/02/2023',y:[7.74,7.74,7.09,7.10]},{ x:'02/03/2023',y:[6.39,6.76,6.39,6.76]},{ x:'02/06/2023',y:[7.34,7.34,7.29,7.29]},{ x:'02/07/2023',y:[7.80,7.80,6.93,6.93]},{ x:'02/08/2023',y:[7.52,7.52,7.50,7.52]},{ x:'02/09/2023',y:[7.52,7.53,7.09,7.53]},{ x:'02/10/2023',y:[7.50,7.50,7.22,7.22]},{ x:'02/13/2023',y:[7.22,7.22,7.22,7.22]},{ x:'02/14/2023',y:[7.22,7.22,7.22,7.22]},{ x:'02/15/2023',y:[6.81,6.81,6.81,6.81]},{ x:'02/16/2023',y:[6.51,6.51,6.51,6.51]},{ x:'02/17/2023',y:[6.54,6.54,6.23,6.23]},{ x:'02/20/2023',y:[6.85,6.85,5.89,5.89]},{ x:'02/21/2023',y:[6.17,6.39,5.53,5.53]},{ x:'02/22/2023',y:[5.50,5.51,5.07,5.07]},{ x:'02/23/2023',y:[5.40,5.56,5.16,5.16]},{ x:'02/24/2023',y:[5.17,5.67,5.17,5.67]},{ x:'03/08/2023',y:[40.90,40.90,36.40,36.40]},{ x:'03/09/2023',y:[34.20,34.20,33.10,33.25]},{ x:'03/10/2023',y:[0.00,0.00,0.00,0.00]},{ x:'03/13/2023',y:[34.30,34.30,34.30,34.30]},{ x:'03/14/2023',y:[31.90,31.90,31.90,31.90]},{ x:'03/15/2023',y:[30.80,32.00,30.80,31.35]},{ x:'03/16/2023',y:[30.30,34.45,30.30,34.45]},{ x:'03/17/2023',y:[36.70,37.85,36.70,37.85]},{ x:'03/20/2023',y:[38.05,38.05,37.80,37.80]},{ x:'03/21/2023',y:[36.50,41.15,36.50,41.15]},{ x:'03/22/2023',y:[41.05,42.50,37.15,42.50]},{ x:'03/23/2023',y:[43.90,43.90,43.90,43.90]},{ x:'03/24/2023',y:[43.65,43.65,39.55,39.55]},{ x:'03/27/2023',y:[42.70,42.70,37.05,38.80]},{ x:'03/28/2023',y:[38.80,39.75,38.80,39.45]},{ x:'03/29/2023',y:[36.50,38.25,36.50,38.25]},{ x:'03/30/2023',y:[36.25,38.10,36.25,38.10]},{ x:'03/31/2023',y:[0.00,0.00,0.00,0.00]},{ x:'04/06/2023',y:[37.85,40.25,37.85,40.25]},{ x:'04/07/2023',y:[41.55,41.55,40.90,40.90]},{ x:'04/10/2023',y:[40.95,40.95,40.50,40.85]},{ x:'04/11/2023',y:[42.20,42.20,37.25,41.80]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6103 Daily 股市資訊", align: "left", style: { fontWeight: 500 } }, xaxis: { labels: { format: 'dd/MM', } }, yaxis: { tooltip: { enabled: !0 } } }, (chart = new ApexCharts(document.querySelector("#basic_candlestick"), options)).render()), (chart = new ApexCharts(document.querySelector("#1"), options)).render());