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:'05/26/2023',y:[9.79,9.79,9.76,9.76]},{ x:'05/29/2023',y:[9.76,9.76,9.73,9.76]},{ x:'05/30/2023',y:[10.20,10.70,10.15,10.15]},{ x:'05/31/2023',y:[10.15,10.20,9.95,9.99]},{ x:'06/01/2023',y:[10.10,10.10,10.00,10.00]},{ x:'06/02/2023',y:[10.05,10.25,10.00,10.15]},{ x:'06/05/2023',y:[10.40,10.40,10.05,10.05]},{ x:'06/06/2023',y:[10.00,10.05,9.93,9.93]},{ x:'06/07/2023',y:[10.00,10.00,9.96,9.96]},{ x:'06/08/2023',y:[9.96,10.20,9.96,10.00]},{ x:'06/09/2023',y:[10.35,11.00,10.35,10.40]},{ x:'06/12/2023',y:[10.40,10.45,10.10,10.40]},{ x:'06/13/2023',y:[10.45,10.45,10.15,10.15]},{ x:'06/14/2023',y:[10.20,10.20,10.00,10.10]},{ x:'06/15/2023',y:[10.10,10.35,10.10,10.30]},{ x:'06/16/2023',y:[10.35,10.35,10.20,10.25]},{ x:'06/19/2023',y:[10.10,10.25,10.10,10.15]},{ x:'06/20/2023',y:[10.15,10.20,10.15,10.15]},{ x:'06/21/2023',y:[10.15,10.20,10.15,10.20]},{ x:'06/26/2023',y:[10.15,10.15,10.00,10.00]},{ x:'06/27/2023',y:[10.00,10.10,9.93,9.96]},{ x:'06/28/2023',y:[9.96,9.99,9.92,9.93]},{ x:'06/29/2023',y:[9.93,9.97,9.90,9.97]},{ x:'06/30/2023',y:[9.97,9.97,9.96,9.97]},{ x:'07/03/2023',y:[9.92,9.99,9.66,9.99]},{ x:'07/04/2023',y:[10.00,10.00,9.80,9.86]},{ x:'07/05/2023',y:[9.86,9.89,9.79,9.87]},{ x:'07/06/2023',y:[9.89,9.89,9.77,9.80]},{ x:'07/07/2023',y:[9.78,9.80,9.74,9.74]},{ x:'07/10/2023',y:[9.73,9.73,9.72,9.72]},{ x:'07/11/2023',y:[9.72,9.72,9.72,9.72]},{ x:'07/12/2023',y:[9.72,9.72,9.45,9.55]},{ x:'07/13/2023',y:[9.49,9.61,9.33,9.35]},{ x:'07/14/2023',y:[9.35,9.38,9.21,9.28]},{ x:'07/17/2023',y:[9.18,9.20,9.06,9.09]},{ x:'07/18/2023',y:[9.02,9.24,9.02,9.24]},{ x:'07/19/2023',y:[9.15,9.29,9.12,9.29]},{ x:'07/20/2023',y:[9.06,9.12,9.06,9.12]},{ x:'07/21/2023',y:[9.07,9.14,9.04,9.12]},{ x:'07/24/2023',y:[9.04,9.08,9.04,9.07]},{ x:'07/25/2023',y:[9.25,9.25,9.07,9.08]},{ x:'07/26/2023',y:[9.08,9.10,9.07,9.07]},{ x:'07/27/2023',y:[9.04,9.10,9.04,9.08]},{ x:'07/28/2023',y:[9.10,9.10,9.06,9.08]},{ x:'07/31/2023',y:[9.05,9.09,8.85,8.94]},{ x:'08/01/2023',y:[8.95,9.07,8.95,8.98]},{ x:'08/02/2023',y:[9.00,9.00,8.95,8.95]},{ x:'08/04/2023',y:[9.01,9.02,9.00,9.02]},{ x:'08/07/2023',y:[8.93,8.96,8.93,8.96]},{ x:'08/08/2023',y:[8.94,8.94,8.90,8.90]},{ x:'08/09/2023',y:[8.91,8.91,8.81,8.81]},{ x:'08/10/2023',y:[8.81,8.81,8.61,8.65]},{ x:'08/11/2023',y:[8.65,8.79,8.62,8.79]},{ x:'08/14/2023',y:[8.80,9.30,8.80,8.89]},{ x:'08/15/2023',y:[0.00,0.00,0.00,0.00]},{ x:'08/16/2023',y:[8.98,8.98,8.82,8.82]},{ x:'08/17/2023',y:[8.62,9.17,8.62,8.97]},{ x:'08/18/2023',y:[8.99,9.09,8.81,8.94]},{ x:'08/21/2023',y:[8.98,9.04,8.96,9.04]},{ x:'08/22/2023',y:[9.13,9.15,9.06,9.15]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8418 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());