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:'11/02/2022',y:[9.24,9.35,9.19,9.21]},{ x:'11/03/2022',y:[9.11,9.11,9.00,9.07]},{ x:'11/04/2022',y:[9.02,9.50,9.02,9.29]},{ x:'11/07/2022',y:[9.31,9.43,9.26,9.26]},{ x:'11/08/2022',y:[9.27,9.38,9.22,9.24]},{ x:'11/09/2022',y:[9.24,9.33,9.20,9.22]},{ x:'11/21/2022',y:[9.57,9.57,9.13,9.20]},{ x:'11/22/2022',y:[9.20,9.90,9.20,9.47]},{ x:'11/23/2022',y:[9.63,10.25,9.60,9.96]},{ x:'11/24/2022',y:[10.05,10.10,9.70,9.72]},{ x:'11/25/2022',y:[9.90,10.05,9.78,9.78]},{ x:'11/28/2022',y:[9.76,9.85,9.64,9.73]},{ x:'11/29/2022',y:[9.79,10.10,9.73,9.73]},{ x:'11/30/2022',y:[9.79,9.94,9.79,9.86]},{ x:'12/01/2022',y:[9.93,9.96,9.73,9.73]},{ x:'12/02/2022',y:[9.80,9.80,9.62,9.67]},{ x:'12/05/2022',y:[9.70,9.83,9.58,9.58]},{ x:'12/06/2022',y:[9.62,9.77,9.47,9.47]},{ x:'12/07/2022',y:[9.50,9.55,9.32,9.32]},{ x:'12/08/2022',y:[9.34,9.36,9.22,9.25]},{ x:'12/09/2022',y:[9.26,9.28,9.21,9.22]},{ x:'12/12/2022',y:[9.22,9.22,9.10,9.18]},{ x:'12/13/2022',y:[9.29,9.39,9.18,9.25]},{ x:'12/14/2022',y:[9.35,9.36,9.27,9.35]},{ x:'12/15/2022',y:[9.39,9.57,9.35,9.52]},{ x:'12/16/2022',y:[9.48,9.48,9.27,9.28]},{ x:'12/19/2022',y:[9.27,9.35,9.15,9.15]},{ x:'12/20/2022',y:[9.15,9.20,8.95,8.99]},{ x:'12/21/2022',y:[9.01,9.12,9.01,9.09]},{ x:'12/22/2022',y:[9.10,9.13,9.06,9.10]},{ x:'12/23/2022',y:[8.99,9.13,8.97,9.13]},{ x:'12/26/2022',y:[9.07,9.28,9.07,9.18]},{ x:'12/27/2022',y:[9.18,9.23,9.11,9.14]},{ x:'12/28/2022',y:[9.14,9.14,9.06,9.06]},{ x:'12/29/2022',y:[9.06,9.06,8.95,9.01]},{ x:'12/30/2022',y:[9.01,9.10,8.95,8.95]},{ x:'01/03/2023',y:[8.95,8.95,8.83,8.85]},{ x:'01/04/2023',y:[8.85,8.94,8.84,8.86]},{ x:'01/05/2023',y:[8.89,8.94,8.86,8.88]},{ x:'01/06/2023',y:[8.88,8.92,8.87,8.89]},{ x:'01/09/2023',y:[8.89,9.00,8.89,8.99]},{ x:'01/10/2023',y:[8.97,9.09,8.96,9.09]},{ x:'01/11/2023',y:[9.02,9.09,9.01,9.03]},{ x:'01/12/2023',y:[9.01,9.08,8.92,9.03]},{ x:'01/13/2023',y:[9.03,9.03,8.93,8.95]},{ x:'01/16/2023',y:[8.95,8.99,8.92,8.93]},{ x:'01/17/2023',y:[8.93,9.00,8.93,9.00]},{ x:'01/30/2023',y:[9.00,9.10,8.99,8.99]},{ x:'01/31/2023',y:[8.99,9.04,8.99,9.04]},{ x:'02/01/2023',y:[9.03,9.07,9.00,9.04]},{ x:'02/02/2023',y:[9.04,9.08,9.02,9.08]},{ x:'02/03/2023',y:[9.09,9.13,9.08,9.12]},{ x:'02/06/2023',y:[9.16,9.29,9.03,9.06]},{ x:'02/07/2023',y:[9.07,9.12,9.07,9.09]},{ x:'02/08/2023',y:[9.09,9.10,9.06,9.08]},{ x:'02/09/2023',y:[9.04,9.10,9.04,9.05]},{ x:'02/10/2023',y:[9.05,9.05,9.00,9.01]},{ x:'02/13/2023',y:[8.99,8.99,8.93,8.93]},{ x:'02/14/2023',y:[9.01,9.02,8.95,8.98]},{ x:'02/15/2023',y:[9.04,9.04,8.98,9.04]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1806 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());