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:'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]},{ x:'02/16/2023',y:[9.04,9.04,8.97,9.00]},{ x:'02/17/2023',y:[9.00,9.04,8.95,9.00]},{ x:'02/20/2023',y:[9.01,9.07,9.00,9.04]},{ x:'02/21/2023',y:[9.04,9.11,9.03,9.05]},{ x:'02/22/2023',y:[9.06,9.11,9.02,9.05]},{ x:'02/23/2023',y:[9.11,9.17,9.07,9.08]},{ x:'02/24/2023',y:[9.10,9.14,9.08,9.13]},{ x:'03/01/2023',y:[9.12,9.12,9.02,9.12]},{ x:'03/02/2023',y:[9.12,9.12,9.05,9.08]},{ x:'03/03/2023',y:[9.08,9.10,9.05,9.09]},{ x:'03/06/2023',y:[9.09,9.24,9.09,9.15]},{ x:'03/07/2023',y:[9.13,9.18,9.12,9.13]},{ x:'03/08/2023',y:[9.17,9.17,9.12,9.14]},{ x:'03/09/2023',y:[9.15,9.18,9.13,9.14]},{ x:'03/10/2023',y:[9.14,9.18,9.09,9.18]},{ x:'03/13/2023',y:[9.24,9.24,9.10,9.12]},{ x:'03/14/2023',y:[9.12,9.12,9.01,9.02]},{ x:'03/15/2023',y:[9.03,9.07,9.02,9.02]},{ x:'03/16/2023',y:[9.00,9.00,8.90,8.90]},{ x:'03/17/2023',y:[8.91,9.01,8.90,8.99]},{ x:'03/20/2023',y:[8.99,9.02,8.98,9.02]},{ x:'03/21/2023',y:[9.02,9.04,9.00,9.04]},{ x:'03/22/2023',y:[9.05,9.06,9.00,9.02]},{ x:'03/23/2023',y:[9.03,9.03,8.97,8.97]},{ x:'03/24/2023',y:[8.98,9.05,8.98,9.05]},{ x:'03/27/2023',y:[9.05,9.05,8.97,9.00]},{ x:'03/28/2023',y:[9.02,9.02,8.97,8.97]},{ x:'03/29/2023',y:[8.97,9.05,8.95,9.02]},{ x:'03/30/2023',y:[9.02,9.02,8.96,8.96]},{ x:'03/31/2023',y:[9.29,9.39,9.16,9.17]},{ x:'04/06/2023',y:[9.18,9.28,9.11,9.11]},{ x:'04/07/2023',y:[9.13,9.18,9.08,9.10]},{ x:'04/10/2023',y:[9.07,9.11,9.03,9.10]},{ x:'04/11/2023',y:[9.10,9.12,9.00,9.03]},{ x:'04/12/2023',y:[9.01,9.10,9.00,9.02]} ] }], 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());