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:'04/30/2024',y:[5.15,5.15,5.07,5.10]},{ x:'05/02/2024',y:[5.14,5.29,5.07,5.10]},{ x:'05/03/2024',y:[5.19,5.19,5.06,5.17]},{ x:'05/06/2024',y:[5.12,5.17,4.90,5.05]},{ x:'05/07/2024',y:[4.97,5.00,4.90,5.00]},{ x:'05/08/2024',y:[5.00,5.01,4.92,4.99]},{ x:'05/09/2024',y:[4.92,5.10,4.92,5.05]},{ x:'05/10/2024',y:[5.04,5.09,4.98,5.03]},{ x:'05/13/2024',y:[4.91,5.04,4.90,5.01]},{ x:'05/14/2024',y:[4.92,5.00,4.75,4.99]},{ x:'05/15/2024',y:[4.96,4.96,4.80,4.87]},{ x:'05/16/2024',y:[5.08,5.08,4.87,4.97]},{ x:'05/17/2024',y:[4.94,4.99,4.88,4.98]},{ x:'05/20/2024',y:[4.98,4.98,4.92,4.95]},{ x:'05/21/2024',y:[5.00,5.00,4.95,5.00]},{ x:'05/22/2024',y:[5.02,5.02,4.80,5.00]},{ x:'05/23/2024',y:[5.05,5.05,4.99,5.04]},{ x:'05/24/2024',y:[5.05,5.50,5.00,5.50]},{ x:'06/11/2024',y:[7.15,7.15,6.90,6.95]},{ x:'06/12/2024',y:[7.05,7.05,6.91,6.96]},{ x:'06/13/2024',y:[6.96,6.96,6.90,6.94]},{ x:'06/14/2024',y:[6.80,6.99,6.80,6.98]},{ x:'06/17/2024',y:[6.60,6.90,6.60,6.85]},{ x:'06/18/2024',y:[6.80,6.85,6.80,6.80]},{ x:'06/19/2024',y:[6.60,6.80,6.60,6.80]},{ x:'06/20/2024',y:[6.81,6.81,6.75,6.80]},{ x:'06/21/2024',y:[6.70,6.79,6.63,6.79]},{ x:'06/24/2024',y:[6.77,6.95,6.68,6.94]},{ x:'06/25/2024',y:[6.94,6.94,6.88,6.93]},{ x:'06/26/2024',y:[6.93,6.93,6.88,6.91]},{ x:'06/27/2024',y:[6.94,6.94,6.70,6.88]},{ x:'06/28/2024',y:[6.85,7.10,6.79,7.10]},{ x:'07/01/2024',y:[7.19,7.19,6.50,7.00]},{ x:'07/02/2024',y:[6.87,7.10,6.80,7.10]},{ x:'07/03/2024',y:[7.00,7.06,6.99,7.05]},{ x:'07/04/2024',y:[7.05,7.09,7.05,7.09]},{ x:'07/05/2024',y:[7.09,7.09,7.00,7.03]},{ x:'07/12/2024',y:[7.19,7.19,7.17,7.19]},{ x:'07/15/2024',y:[7.50,7.53,7.50,7.51]},{ x:'07/16/2024',y:[7.50,7.76,7.50,7.76]},{ x:'07/17/2024',y:[8.00,8.12,8.00,8.11]},{ x:'07/18/2024',y:[8.03,8.30,8.03,8.25]},{ x:'07/19/2024',y:[8.45,8.50,8.11,8.25]},{ x:'07/22/2024',y:[8.49,8.49,8.00,8.22]},{ x:'07/23/2024',y:[8.21,8.39,8.21,8.34]},{ x:'07/26/2024',y:[8.45,8.45,8.29,8.38]},{ x:'07/29/2024',y:[8.50,8.50,8.25,8.27]},{ x:'07/30/2024',y:[8.34,8.34,8.13,8.13]},{ x:'07/31/2024',y:[8.13,8.13,8.00,8.07]},{ x:'08/01/2024',y:[8.07,8.07,7.74,7.74]},{ x:'08/02/2024',y:[7.77,7.77,7.20,7.20]},{ x:'08/05/2024',y:[7.48,7.48,6.48,6.48]},{ x:'08/06/2024',y:[6.66,6.70,6.50,6.70]},{ x:'08/07/2024',y:[6.90,7.02,6.90,7.02]},{ x:'08/08/2024',y:[7.13,7.13,7.00,7.02]},{ x:'08/09/2024',y:[7.13,7.13,6.95,7.08]},{ x:'08/12/2024',y:[7.18,7.18,6.81,7.08]},{ x:'08/13/2024',y:[7.08,7.08,6.97,7.08]},{ x:'08/14/2024',y:[7.13,7.13,7.05,7.09]},{ x:'08/15/2024',y:[7.10,7.11,7.01,7.07]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3494 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());