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:'03/20/2024',y:[8.25,8.26,8.02,8.14]},{ x:'03/21/2024',y:[8.82,8.82,8.10,8.30]},{ x:'03/22/2024',y:[8.03,8.23,7.91,8.09]},{ x:'03/25/2024',y:[8.10,8.20,7.79,8.08]},{ x:'03/26/2024',y:[8.09,8.09,7.82,7.99]},{ x:'03/27/2024',y:[7.97,8.25,7.97,8.19]},{ x:'03/28/2024',y:[8.23,8.23,7.84,8.04]},{ x:'03/29/2024',y:[7.87,7.92,7.85,7.87]},{ x:'04/01/2024',y:[7.80,8.04,7.80,7.88]},{ x:'04/02/2024',y:[7.69,7.96,7.67,7.96]},{ x:'04/03/2024',y:[7.17,7.17,7.17,7.17]},{ x:'04/08/2024',y:[6.46,6.46,6.46,6.46]},{ x:'04/09/2024',y:[5.82,6.05,5.82,5.82]},{ x:'04/10/2024',y:[5.53,5.53,5.24,5.39]},{ x:'04/11/2024',y:[5.40,5.54,5.40,5.42]},{ x:'04/12/2024',y:[5.26,5.56,5.26,5.56]},{ x:'04/15/2024',y:[5.29,5.30,5.29,5.30]},{ x:'04/16/2024',y:[5.29,5.29,4.77,4.79]},{ x:'04/17/2024',y:[4.79,4.93,4.79,4.93]},{ x:'04/18/2024',y:[5.08,5.08,4.93,4.93]},{ x:'04/19/2024',y:[5.16,5.16,5.14,5.14]},{ x:'04/22/2024',y:[5.16,5.45,5.15,5.16]},{ x:'04/23/2024',y:[5.16,5.16,4.93,4.95]},{ x:'04/24/2024',y:[4.95,4.95,4.93,4.93]},{ x:'04/25/2024',y:[5.13,5.13,5.00,5.00]},{ x:'04/26/2024',y:[5.03,5.05,5.00,5.00]},{ x:'04/29/2024',y:[5.00,5.00,5.00,5.00]},{ x:'04/30/2024',y:[4.86,4.87,4.86,4.87]},{ x:'05/02/2024',y:[4.80,4.85,4.80,4.85]},{ x:'05/03/2024',y:[5.18,5.18,5.18,5.18]},{ x:'05/06/2024',y:[5.54,5.54,5.17,5.17]},{ x:'05/07/2024',y:[4.95,4.95,4.95,4.95]},{ x:'05/08/2024',y:[4.66,5.09,4.66,5.08]},{ x:'05/09/2024',y:[5.10,5.10,4.97,5.00]},{ x:'05/10/2024',y:[4.95,4.95,4.87,4.87]},{ x:'05/13/2024',y:[4.87,4.87,4.72,4.72]},{ x:'05/14/2024',y:[4.90,4.90,4.90,4.90]},{ x:'05/15/2024',y:[4.81,4.90,4.81,4.90]},{ x:'05/16/2024',y:[4.91,4.91,4.90,4.90]},{ x:'05/17/2024',y:[4.77,4.78,4.77,4.78]},{ x:'05/20/2024',y:[4.89,4.89,4.70,4.85]},{ x:'05/21/2024',y:[4.97,5.18,4.97,5.00]},{ x:'05/22/2024',y:[4.90,5.28,4.90,5.27]},{ x:'05/23/2024',y:[5.16,5.16,5.15,5.15]},{ x:'05/24/2024',y:[5.00,5.57,4.95,5.55]},{ x:'06/11/2024',y:[4.95,5.49,4.95,5.49]},{ x:'06/12/2024',y:[5.39,5.39,5.02,5.02]},{ x:'06/13/2024',y:[4.92,5.10,4.92,5.10]},{ x:'06/14/2024',y:[5.00,5.22,5.00,5.20]},{ x:'06/17/2024',y:[5.10,5.72,5.10,5.72]},{ x:'06/18/2024',y:[5.72,6.18,5.72,6.00]},{ x:'06/19/2024',y:[6.00,6.00,5.87,5.98]},{ x:'06/20/2024',y:[5.98,6.00,5.90,5.90]},{ x:'06/21/2024',y:[5.90,5.90,5.90,5.90]},{ x:'06/24/2024',y:[6.20,6.20,6.10,6.10]},{ x:'06/25/2024',y:[6.01,6.70,5.91,6.70]},{ x:'06/26/2024',y:[7.31,7.31,7.25,7.26]},{ x:'06/27/2024',y:[7.97,7.98,7.97,7.98]},{ x:'06/28/2024',y:[8.77,8.77,8.70,8.77]},{ x:'07/01/2024',y:[8.77,9.64,8.77,9.64]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4304 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());