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:'01/23/2024',y:[7.65,7.77,7.65,7.77]},{ x:'01/24/2024',y:[7.70,7.75,7.70,7.75]},{ x:'01/25/2024',y:[7.74,7.90,7.74,7.87]},{ x:'01/26/2024',y:[7.85,7.87,7.80,7.84]},{ x:'01/29/2024',y:[7.84,7.99,7.84,7.96]},{ x:'01/30/2024',y:[7.97,7.98,7.93,7.96]},{ x:'01/31/2024',y:[7.94,7.98,7.94,7.97]},{ x:'02/01/2024',y:[7.97,7.97,7.95,7.97]},{ x:'02/02/2024',y:[8.00,8.00,7.93,7.99]},{ x:'02/05/2024',y:[8.00,8.00,7.93,7.99]},{ x:'02/15/2024',y:[7.86,7.86,7.85,7.86]},{ x:'02/16/2024',y:[7.86,7.86,7.77,7.80]},{ x:'02/19/2024',y:[8.06,8.06,7.76,7.80]},{ x:'02/20/2024',y:[7.80,7.99,7.80,7.99]},{ x:'02/21/2024',y:[7.98,8.06,7.83,8.00]},{ x:'02/22/2024',y:[8.00,8.46,8.00,8.20]},{ x:'02/23/2024',y:[8.10,8.10,8.05,8.10]},{ x:'02/26/2024',y:[8.10,8.16,8.10,8.16]},{ x:'02/27/2024',y:[8.67,8.67,8.15,8.37]},{ x:'02/29/2024',y:[8.37,8.37,8.05,8.29]},{ x:'03/01/2024',y:[8.15,8.21,8.08,8.10]},{ x:'03/04/2024',y:[8.01,8.18,8.01,8.18]},{ x:'03/05/2024',y:[8.01,8.15,7.97,8.15]},{ x:'03/06/2024',y:[8.12,8.12,8.12,8.12]},{ x:'03/07/2024',y:[8.10,8.10,7.90,8.07]},{ x:'03/08/2024',y:[7.97,8.04,7.95,8.04]},{ x:'03/11/2024',y:[8.22,8.23,8.22,8.23]},{ x:'03/12/2024',y:[8.01,8.01,7.99,8.00]},{ x:'03/13/2024',y:[7.82,8.00,7.82,7.98]},{ x:'03/14/2024',y:[7.84,7.97,7.84,7.97]},{ x:'03/15/2024',y:[7.98,7.98,7.88,7.94]},{ x:'03/18/2024',y:[7.94,8.11,7.93,8.00]},{ x:'03/19/2024',y:[8.00,8.01,7.98,8.00]},{ x:'03/20/2024',y:[7.97,8.07,7.95,8.07]},{ x:'03/21/2024',y:[8.06,8.06,8.06,8.06]},{ x:'03/22/2024',y:[7.98,8.04,7.98,8.04]},{ x:'03/25/2024',y:[7.99,8.14,7.99,8.14]},{ x:'03/26/2024',y:[8.14,8.14,8.14,8.14]},{ x:'03/27/2024',y:[7.98,8.15,7.96,7.97]},{ x:'03/28/2024',y:[7.92,7.95,7.90,7.92]},{ x:'03/29/2024',y:[7.91,7.91,7.88,7.91]},{ x:'04/01/2024',y:[7.94,7.97,7.86,7.91]},{ x:'04/02/2024',y:[7.86,7.90,7.86,7.90]},{ x:'04/03/2024',y:[8.60,8.60,7.88,8.09]},{ x:'04/08/2024',y:[8.16,8.24,7.90,8.01]},{ x:'04/09/2024',y:[8.01,8.81,7.97,8.81]},{ x:'04/10/2024',y:[8.81,9.60,8.81,9.37]},{ x:'04/11/2024',y:[9.19,9.62,8.52,9.12]},{ x:'04/12/2024',y:[8.92,9.02,8.64,8.70]},{ x:'04/15/2024',y:[8.70,8.71,8.46,8.50]},{ x:'04/16/2024',y:[8.66,9.35,8.66,9.35]},{ x:'04/17/2024',y:[9.80,10.25,9.60,10.25]},{ x:'04/18/2024',y:[10.40,10.85,9.99,10.00]},{ x:'04/19/2024',y:[10.10,11.00,9.61,11.00]},{ x:'04/22/2024',y:[11.50,12.10,11.40,12.10]},{ x:'04/23/2024',y:[12.10,12.10,10.90,11.55]},{ x:'04/24/2024',y:[11.80,12.20,11.30,11.65]},{ x:'04/25/2024',y:[12.05,12.80,11.35,12.80]},{ x:'04/26/2024',y:[13.15,14.05,12.90,14.05]},{ x:'04/29/2024',y:[15.45,15.45,14.95,15.45]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6264 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());